ipv6 routing
Dan Langille
dan at langille.org
Fri Oct 1 12:47:09 UTC 2010
On Fri, October 1, 2010 8:31 am, Hiroki Sato wrote:
> "Dan Langille" <dan at langille.org> wrote
> in <0a85d5595ffdc548668406d3e87621c2.squirrel at nyi.unixathome.org>:
>
> da> > Can you show the results of "ifconfig fxp1"?
> da>
> da> # ifconfig fxp1
> da> fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
> da> options=9<RXCSUM,VLAN_MTU>
> da> ether 00:04:ac:d3:70:12
> da> inet 10.55.0.1 netmask 0xffffff00 broadcast 10.55.0.255
> da> inet6 2001:470:1f07:b80::1 prefixlen 64
> da> nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
> da> media: Ethernet autoselect (100baseTX <full-duplex>)
> da> status: active
>
> The fxp1 should have "inet6 fe80::0204:acff:fed3:7012%fxp1 prefixlen
> 64" here.
[root at bast:~] # ifconfig fxp1 inet6 fe80::0204:acff:fed3:7012%fxp1
prefixlen 64
[root at bast:~] # ifconfig fxp1
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9<RXCSUM,VLAN_MTU>
ether 00:04:ac:d3:70:12
inet 10.55.0.1 netmask 0xffffff00 broadcast 10.55.0.255
inet6 2001:470:1f07:b80::1 prefixlen 64
inet6 fe80::204:acff:fed3:7012%fxp1 prefixlen 64 scopeid 0x2
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
> Do you set ipv6_enable="YES" in rc.conf on the router box? If not,
> the fe80:: address is not automatically added, and probably you will
> have trouble in IPv6 configuration in various ways.
Yes, it is there. I suspect the address was removed when I was working on
this late Thursday night.
# grep ipv6_enable /etc/rc.conf
ipv6_enable="YES"
Ahhh!
[root at bast:~] # /etc/rc.d/rtadvd restart
Stopping rtadvd.
Waiting for PIDS: 98221.
Starting rtadvd.
[root at bast:~] # ifconfig fxp1
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9<RXCSUM,VLAN_MTU>
ether 00:04:ac:d3:70:12
inet 10.55.0.1 netmask 0xffffff00 broadcast 10.55.0.255
inet6 2001:470:1f07:b80::1 prefixlen 64
inet6 fe80::204:acff:fed3:7012%fxp1 prefixlen 64 scopeid 0x2
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
[root at bast:~] #
[root at kraken ~]# rtsol em0
[root at kraken ~]# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
ether 00:1b:21:51:ab:2d
inet 10.55.0.44 netmask 0xffffff00 broadcast 10.55.0.255
inet6 fe80::21b:21ff:fe51:ab2d%em0 prefixlen 64 scopeid 0x1
inet6 2001:470:1f07:b80:21b:21ff:fe51:ab2d prefixlen 64 autoconf
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
[root at kraken ~]#
$ ping6 ipv6.google.com
PING6(56=40+8+8 bytes) 2001:470:1f07:b80:21b:21ff:fe51:ab2d -->
2001:4860:800f::63
16 bytes from 2001:4860:800f::63, icmp_seq=0 hlim=57 time=23.122 ms
16 bytes from 2001:4860:800f::63, icmp_seq=1 hlim=57 time=22.188 ms
16 bytes from 2001:4860:800f::63, icmp_seq=2 hlim=57 time=20.816 ms
^C
--- ipv6.l.google.com ping6 statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 20.816/22.042/23.122/0.947 ms
Thank you for your help. I appreciate it. :)
--
Dan Langille -- http://langille.org/
More information about the freebsd-net
mailing list