Hi,
We're in the process of enabling IPv6 on our network and servers. The network is done, now we're looking into the process of enabling ipv6 on servers, preferably without reboots. The problem is, is that I can't get it to work without the reboot. The default route always binds on lo0 in that case.
Example.
This is my routing table running only ipv4:
Now I set in /etc/rc.conf:
Consequenty I run:
em0 gets the correct ipv6 address.
Now my routing tables looks like this (note the default ipv6 route is bound on lo0):
For reference, if I reboot with the same /etc/rc.conf, my routing table looks like this:
.. and I have full ipv6 functionality.
What am I missing? We'd of course like to enable ipv6 on hosts without rebooting them.
-- Frederique
We're in the process of enabling IPv6 on our network and servers. The network is done, now we're looking into the process of enabling ipv6 on servers, preferably without reboots. The problem is, is that I can't get it to work without the reboot. The default route always binds on lo0 in that case.
Example.
This is my routing table running only ipv4:
Code:
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 87.250.133.1 UGS 5 63 em0
87.250.133.0/24 link#1 U 0 0 em0
87.250.133.5 link#1 UHS 0 0 lo0
87.250.133.7 link#1 UHS 0 0 lo0 =>
87.250.133.7/32 link#1 U 0 0 em0
127.0.0.1 link#3 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fe80::%lo0/64 link#3 U lo0
fe80::1%lo0 link#3 UHS lo0
ff01:3::/32 fe80::1%lo0 U lo0
ff02::%lo0/32 fe80::1%lo0 U lo0
Now I set in /etc/rc.conf:
Code:
ipv6_enable="YES"
ipv6_network_interfaces="em0"
ipv6_ifconfig_em0="2A02:F18:1:8501:87:250:133:5/64"
ipv6_defaultrouter="FE80::1%em0"
ipv6_ifconfig_em0_alias0="2A02:F18:1:8501:87:250:133:7/128"
Consequenty I run:
Code:
# /etc/rc.d/network_ipv6 start
/etc/rc.d/network_ipv6: DEBUG: checkyesno: ipv6_enable is set to YES.
/etc/rc.d/network_ipv6: DEBUG: run_rc_command: doit: network_ipv6_start
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
/etc/rc.d/network_ipv6: DEBUG: checkyesno: ipv6_gateway_enable is set to NO.
net.inet6.ip6.forwarding: 0 -> 0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
inet6 2a02:f18:1:8501:87:250:133:5 prefixlen 64 tentative
/etc/rc.d/network_ipv6: DEBUG: checkyesno: ipv6_gateway_enable is set to NO.
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net default: gateway FE80::1%em0
/etc/rc.d/network_ipv6: DEBUG: checkyesno: ipv6_ipv4mapping is set to NO.
IPv4 mapped IPv6 address support=NO
em0 gets the correct ipv6 address.
Now my routing tables looks like this (note the default ipv6 route is bound on lo0):
Code:
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 87.250.133.1 UGS 2 264 em0
87.250.133.0/24 link#1 U 0 0 em0
87.250.133.5 link#1 UHS 0 3 lo0
87.250.133.7 link#1 UHS 0 0 lo0 =>
87.250.133.7/32 link#1 U 0 0 em0
127.0.0.1 link#3 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0 =>
default fe80::1%em0 UGS lo0
::1 ::1 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
2a02:f18:1:8501::/64 link#1 U em0
2a02:f18:1:8501:87:250:133:5 link#1 UHS lo0
2a02:f18:1:8501:87:250:133:7 link#1 UHS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#3 U lo0
fe80::1%lo0 link#3 UHS lo0
ff01:1::/32 2a02:f18:1:8501:87:250:133:5 U em0
ff01:3::/32 fe80::1%lo0 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%em0/32 2a02:f18:1:8501:87:250:133:5 U em0
ff02::%lo0/32 fe80::1%lo0 U lo0
For reference, if I reboot with the same /etc/rc.conf, my routing table looks like this:
Code:
# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 87.250.133.1 UGS 1 1062 em0
87.250.133.0/24 link#1 U 0 0 em0
87.250.133.5 link#1 UHS 0 3 lo0
87.250.133.7 link#1 UHS 0 0 lo0 =>
87.250.133.7/32 link#1 U 0 0 em0
127.0.0.1 link#3 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0 =>
default fe80::1%em0 UGS em0
::1 ::1 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
2a02:f18:1:8501::/64 link#1 U em0
2a02:f18:1:8501:87:250:133:5 link#1 UHS lo0
2a02:f18:1:8501:87:250:133:7 link#1 UHS lo0
fe80::/10 ::1 UGRS lo0
fe80::%em0/64 link#1 U em0
fe80::250:56ff:fe8a:34%em0 link#1 UHS lo0
fe80::%lo0/64 link#3 U lo0
fe80::1%lo0 link#3 UHS lo0
ff01:1::/32 fe80::250:56ff:fe8a:34%em0 U em0
ff01:3::/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%em0/32 fe80::250:56ff:fe8a:34%em0 U em0
ff02::%lo0/32 ::1 U lo0
.. and I have full ipv6 functionality.
What am I missing? We'd of course like to enable ipv6 on hosts without rebooting them.
-- Frederique