Hello,
I've just installed a FreeBSD 9.1 on my computer:
My ISP is providing me two IPv4 and an IPv6, so in my /etc/rc.conf:
Please note that the IPv6 gateway is on a different subnet, that's why I declared a static route.
After reboot, everything seems fine:
Well, I have no default route for IPv6. Is that OK?
I can ping myself:
I can't ping the gateway:
What's wrong?
Thanks for your help.
I've just installed a FreeBSD 9.1 on my computer:
Code:
# uname -a
FreeBSD cirdan.nospam.fr.eu.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 [email]root@farrell.cse.buffalo.edu[/email]:/usr/obj/usr/src/sys/GENERIC amd64
My ISP is providing me two IPv4 and an IPv6, so in my /etc/rc.conf:
Code:
hostname="cirdan.nospam.fr.eu.org"
ifconfig_em0="inet 5.135.180.147/24"
defaultrouter="5.135.180.254"
ifconfig_em0_ipv6="inet6 2001:41d0:8:bb93::2012/64"
ipv6_static_routes="ovhgw"
ipv6_route_ovhgw="2001:41D0:8:BBff:ff:ff:ff:ff -prefixlen 128 -interface em0"
ipv6_defaultrouter="2001:41D0:8:BBff:ff:ff:ff:ff"
After reboot, everything seems fine:
Code:
# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
ether 4c:72:b9:4f:19:9d
inet 5.135.180.147 netmask 0xffffff00 broadcast 5.135.180.255
inet6 fe80::4e72:b9ff:fe4f:199d%em0 prefixlen 64 scopeid 0x1
inet6 2001:41d0:8:bb93::2012 prefixlen 64
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
# netstat -rn:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 5.135.180.254 UGS 0 113 em0
5.135.180.0/24 link#1 U 0 0 em0
5.135.180.147 link#1 UHS 0 0 lo0
127.0.0.1 link#5 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#5 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
2001:41d0:8:bb93::/64 link#1 U em0
2001:41d0:8:bb93::2012 link#1 UHS lo0
2001:41d0:8:bbff:ff:ff:ff:ff 4c:72:b9:4f:19:9d UHS em0
fe80::/10 ::1 UGRS lo0
fe80::%em0/64 link#1 U em0
fe80::4e72:b9ff:fe4f:199d%em0 link#1 UHS lo0
fe80::%lo0/64 link#5 U lo0
fe80::1%lo0 link#5 UHS lo0
ff01::%em0/32 fe80::4e72:b9ff:fe4f:199d%em0 U em0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%em0/32 fe80::4e72:b9ff:fe4f:199d%em0 U em0
ff02::%lo0/32 ::1 U lo0
I can ping myself:
Code:
# ping6 -c 1 2001:41d0:8:bb93::2012
PING6(56=40+8+8 bytes) 2001:41d0:8:bb93::2012 --> 2001:41d0:8:bb93::2012
16 bytes from 2001:41d0:8:bb93::2012, icmp_seq=0 hlim=64 time=0.046 ms
--- 2001:41d0:8:bb93::2012 ping6 statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms
Code:
# ping6 -c 1 2001:41d0:8:bbff:ff:ff:ff:ff
PING6(56=40+8+8 bytes) 2001:41d0:8:bb93::2012 --> 2001:41d0:8:bbff:ff:ff:ff:ff
ping6: sendmsg: Operation not permitted
ping6: wrote 2001:41d0:8:bbff:ff:ff:ff:ff 16 chars, ret=-1
--- 2001:41d0:8:bbff:ff:ff:ff:ff ping6 statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss
Thanks for your help.