routing

Dan Walrond <[email protected]> Tue, 1 Apr 2003 01:33:56 +0100
Newsgroups gmane.os.openbsd.ipv6
Message-ID <[email protected]>
Hello again,


Well I've made some progress but not much. My tunnel works and I can
ping the outside world via IPv6 from my OpenBSD router. I have two linux
boxes which I've configured with IPv6 addresses and they can talk to
each other fine. But I cannot ping the OpenBSD box, nor can I ping the
linux boxes from the OpenBSD box. I can ping the OpenBSD boxes own IPv6
address on the same ethernet as the linux boxen, but that's it. They
just won't talk with each other.

Hopefully I'm not overloading the mailing list with my configs. Can you
please tell what I've got wrong. Reading stuff on the internet isn't
helping me.

Okay, my config looks like.....

$ route show
Routing tables

Internet:
Destination      Gateway            Flags 
default          public1-leed4-6-gw UG     
80.7.77.0        link#3             U      
public1-leed4-6- 0:4:9b:ed:b0:a8    UH     
public1-leed4-6- localhost          UGH    
127.0.0.0        localhost          UG     
localhost.sumoda localhost          UH     
192.168.0.0      link#2             U      
seleya.sumodave. 0:a0:24:b8:64:a9   UH     
vixis.sumodave.c 0:a0:24:cc:7e:30   UH     
192.168.1.0      link#1             U      
algeron.sumodave localhost          UGH    
bortas.sumodave. 0:50:4:20:85:99    UH     
targ.sumodave.co 0:40:63:c0:b5:5e   UH     
BASE-ADDRESS.MCA localhost          U      

Internet6:
Destination      Gateway            Flags 
default          localhost.sumodave UG     
default          localhost.sumodave UG     
default          gif2004.tunnels.ip UG     
localhost.sumoda localhost.sumodave UH     
::127.0.0.0      localhost.sumodave UG     
::224.0.0.0      localhost.sumodave UG     
::255.0.0.0      localhost.sumodave UG     
::ffff:0.0.0.0   localhost.sumodave UG     
2001:618:4:16de:: link#1             U      
2001:618:4:16de::1 0:20:af:b5:bc:b7   UH     
2001:618:4:16de::3 0:50:4:20:85:99    UH     
2001:618:4:16de::5 0:40:63:c0:b5:5e   UH     
2001:618:4:2000:: walrond.tunnels.ip UG     
gif2004.tunnels. walrond.tunnels.ip UH     
walrond.tunnels. localhost.sumodave UH     
2002::           localhost.sumodave UG     
2002:7f00::      localhost.sumodave UG     
2002:e000::      localhost.sumodave UG     
2002:ff00::      localhost.sumodave UG     
fe80::           localhost.sumodave UG     
fe80::%ep0       link#1             U      
fe80::%ep1       link#2             U      
fe80::%ep2       link#3             U      
fe80::%lo0       fe80::1%lo0        U      
fe80::%gif0      link#19            U      
fe80::220:afff:feb5:bcb7%gif0 localhost.sumodave UH     
fec0::           localhost.sumodave UG     
ff01::           localhost.sumodave U      
ff02::%ep0       link#1             U      
ff02::%ep1       link#2             U      
ff02::%ep2       link#3             U      
ff02::%lo0       fe80::1%lo0        U      
ff02::%gif0      link#19            U      

$ netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu
Interface
default            80.7.77.1          UGS      -249  4996359   1500
ep2
80.7.77/24         link#3             UC          0        0   1500
ep2
80.7.77.1          0:4:9b:ed:b0:a8    UHL         1     1617   1500
ep2
80.7.77.83         127.0.0.1          UGHS        0      254  33224
lo0
127/8              127.0.0.1          UGRS        0        0  33224
lo0
127.0.0.1          127.0.0.1          UH          5    21486  33224
lo0
192.168.0/24       link#2             UC          0        0   1500
ep1
192.168.0.2        0:a0:24:b8:64:a9   UHL         0     1938   1500
ep1
192.168.0.3        0:a0:24:cc:7e:30   UHL         2  1092583   1500
ep1
192.168.1/24       link#1             UC          0        0   1500
ep0
192.168.1.1        127.0.0.1          UGHS        0        0  33224
lo0
192.168.1.3        0:50:4:20:85:99    UHL         0     5204   1500
ep0
192.168.1.5        0:40:63:c0:b5:5e   UHL         3   119271   1500
ep0
224/4              127.0.0.1          URS         0        0  33224
lo0

Internet6:
Destination                        Gateway                        Flags
Refs     Use    Mtu  Interface
::/104                             ::1                            UGRS
0        0  33224   lo0 =>
::/96                              ::1                            UGRS
0        0  33224   lo0 =>
default                            2001:618:4:2000::10bf          UGS
0       12   1280   gif0
::1                                ::1                            UH
12    20793  33224   lo0
::127.0.0.0/104                    ::1                            UGRS
0        0  33224   lo0
::224.0.0.0/100                    ::1                            UGRS
0        0  33224   lo0
::255.0.0.0/104                    ::1                            UGRS
0        0  33224   lo0
::ffff:0.0.0.0/96                  ::1                            UGRS
0        0  33224   lo0
2001:618:4:16de::/64               link#1                         UC
0        0   1500   ep0
2001:618:4:16de::1                 0:20:af:b5:bc:b7               UHL
1        8   1500   lo0
2001:618:4:16de::3                 0:50:4:20:85:99                UHL
0       38   1500   ep0
2001:618:4:16de::5                 0:40:63:c0:b5:5e               UHL
0       14   1500   ep0
2001:618:4:2000::/64               2001:618:4:2000::10c0          UGS
0        0  33224   gif0
2001:618:4:2000::10bf              2001:618:4:2000::10c0          UH
1        3   1280   gif0
2001:618:4:2000::10c0              ::1                            UH
1        0  33224   lo0
2002::/24                          ::1                            UGRS
0        0  33224   lo0
2002:7f00::/24                     ::1                            UGRS
0        0  33224   lo0
2002:e000::/20                     ::1                            UGRS
0        0  33224   lo0
2002:ff00::/24                     ::1                            UGRS
0        0  33224   lo0
fe80::/10                          ::1                            UGRS
0        3  33224   lo0
fe80::%ep0/64                      link#1                         UC
0        0   1500   ep0
fe80::%ep1/64                      link#2                         UC
0        0   1500   ep1
fe80::%ep2/64                      link#3                         UC
0        0   1500   ep2
fe80::%lo0/64                      fe80::1%lo0                    U
0        0  33224   lo0
fe80::%gif0/64                     link#19                        UC
0        0   1280   gif0
fe80::220:afff:feb5:bcb7%gif0      ::1                            UH
0        0  33224   lo0
fec0::/10                          ::1                            UGRS
0        0  33224   lo0
ff01::/32                          ::1                            U
0        0  33224   lo0
ff02::%ep0/32                      link#1                         UC
0        0   1500   ep0
ff02::%ep1/32                      link#2                         UC
0        0   1500   ep1
ff02::%ep2/32                      link#3                         UC
0        0   1500   ep2
ff02::%lo0/32                      fe80::1%lo0                    UC
0        0  33224   lo0
ff02::%gif0/32                     link#19                        UC
0        0   1280   gif0

Encap:
Source             Port  Destination        Port  Proto
SA(Address/Proto/Type/Direction)

$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
	inet6 ::1 prefixlen 128
	inet 127.0.0.1 netmask 0xff000000
lo1: flags=8008<LOOPBACK,MULTICAST> mtu 33224
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        media: Ethernet 10baseT
	inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
	inet6 fe80::220:afff:feb5:bcb7%ep0 prefixlen 64 scopeid 0x1
	inet6 2001:618:4:16de::1 prefixlen 64
ep1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        media: Ethernet 10baseT
	inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
	inet6 fe80::260:8ff:fe72:ab57%ep1 prefixlen 64 scopeid 0x2
ep2: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
mtu 1500
        media: Ethernet 10baseT
	inet6 fe80::2a0:24ff:fe4b:e814%ep2 prefixlen 64 scopeid 0x3
	inet 80.7.77.83 netmask 0xffffff00 broadcast 255.255.255.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun0: flags=10<POINTOPOINT> mtu 3000
tun1: flags=10<POINTOPOINT> mtu 3000
enc0: flags=0<> mtu 1536
bridge0: flags=0<> mtu 1500
bridge1: flags=0<> mtu 1500
vlan0: flags=0<> mtu 1500
vlan1: flags=0<> mtu 1500
gre0: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
        physical address inet 80.7.77.83 --> 213.253.1.201
	inet6 fe80::220:afff:feb5:bcb7%gif0 -> :: prefixlen 64 scopeid
	0x13
	inet6 2001:618:4:2000::10c0 -> 2001:618:4:2000::10bf prefixlen
	128
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280


$ ping6 2001:618:4:16de::5 
PING6(56=40+8+8 bytes) 2001:618:4:16de::1 --> 2001:618:4:16de::5
ping6: sendmsg: No route to host
ping6: wrote 2001:618:4:16de::5 16 chars, ret=-1


On the linux box to the OpenBSD box...

bortas:/usr/src# ping6 2001:618:4:16de::1
PING 2001:618:4:16de::1(2001:618:4:16de::1) 56 data bytes
From ::1 icmp_seq=1 Destination unreachable: Address unreachable

From the linux box to another linux box.....

bortas:/usr/src# ping6 2001:618:4:16de::3
PING 2001:618:4:16de::3(2001:618:4:16de::3) 56 data bytes
64 bytes from 2001:618:4:16de::3: icmp_seq=1 ttl=64 time=0.035 ms



Thanks,
Dan