Configure FreeBSD as ipv6 router
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Jan 2022 11:07:47 UTC
hello expert: Very thanks and hope I can get your help. I Use FreeBSD 13.0, and want to set it up as my home router. ipv4 is all well running. The problem is about the ipv6 part. Now, I can get the ipv6 prefix from my isp, the external interface and internal interface of the router can autoconf ipv6 address, the router can access the ipv6 internet. But the client behind the router(freebsd) can not assign an ipv6 address. Here is my configuration, It's great if you can give your comments about my configuration. I hope it's enough. Thanks very much. igb0 is the external interface igb2 is the internal interface. *---rc.conf---* ipv6_gateway_enable="YES" ipv6_activate_all_interfaces="NO" ipv6_network_interfaces="igb0 igb2" ipv6_cpe_wanif="igb0" ifconfig_igb0_ipv6="inet6 accept_rtadv up" ifconfig_igb2_ipv6="inet6 -accept_rtadv auto_linklocal up" rtsold_enable="YES" rtsold_flags="-aF" rtadvd_enable="YES" # Set to YES to enable an IPv6 router rtadvd_interfaces="igb2" # Interfaces rtadvd sends RA packets. dhcp6c_enable="YES" dhcp6c_interfaces="igb0" *---dhcp6c.conf---* interface igb0 { send ia-na 1; send ia-pd 1; send rapid-commit; #send domain-name-servers; }; id-assoc na 1 { }; id-assoc pd 1 { prefix ::/64 1800; prefix-interface igb2 { sla-len 0; sla-id 0; }; }; *--rtadvd.conf---* igb2:\ :prefixlex#64:\ *--pf.conf--* pass in inet6 all pass out inet6 all *---information ---* *root@home:/etc # ifconfig igb0* igb0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=4a500b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,NOMAP> ether c4:83:4f:16:3b:94 inet 192.168.88.250 netmask 0xffffff00 broadcast 192.168.88.255 inet6 fe80::c683:4fff:fe16:3b94%igb0 prefixlen 64 scopeid 0x1 inet6 2408:xxxx:xxxx:1d23:c683:4fff:fe16:3b94 prefixlen 64 autoconf media: Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> *root@home:/etc # ifconfig igb2* igb2: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=4a500b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,NOMAP> ether c4:83:4f:16:3b:96 inet 192.168.100.250 netmask 0xffffff00 broadcast 192.168.100.255 inet6 fe80::c683:4fff:fe16:3b96%igb2 prefixlen 64 scopeid 0x3 inet6 2408:xxxx:xxxx:1d21:c683:4fff:fe16:3b96 prefixlen 64 media: Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> BR//Pst M