Hi,
I have a box acting as a gateway for my lan at home. It connects through PPPoE (tun0) to the provider and gets the configuration for the outside world (I'm using net/dhcpcd). The clients (on the lan) are served by rtadvd() and net/dhcpd.
I have a 192.168.1.0/24 network for LAN and also want a fd00::/64 besides the 2a02:x:x:x::/64 from the provider.
The problem I have is, if I assign fd00::1 in rc.conf, I can't ping it from other machines in the LAN (nor the other way around).
I noticed, if I just add another IP (like fd00::2) at a later time with ifconfig(), ping starts working (both ways, on all IPs). So, as a workaround, I don't assign the gateway's fd00::1 during boot in rc.conf, but in dhcpcd.conf like this:
The only difference in the the outcome is the line
I tried to add this route in the "static" version, but couldn't manage to do so (neither in rc.conf, nor later with route(8))
I have a box acting as a gateway for my lan at home. It connects through PPPoE (tun0) to the provider and gets the configuration for the outside world (I'm using net/dhcpcd). The clients (on the lan) are served by rtadvd() and net/dhcpd.
I have a 192.168.1.0/24 network for LAN and also want a fd00::/64 besides the 2a02:x:x:x::/64 from the provider.
The problem I have is, if I assign fd00::1 in rc.conf, I can't ping it from other machines in the LAN (nor the other way around).
I noticed, if I just add another IP (like fd00::2) at a later time with ifconfig(), ping starts working (both ways, on all IPs). So, as a workaround, I don't assign the gateway's fd00::1 during boot in rc.conf, but in dhcpcd.conf like this:
Code:
# instead of rc.conf:
interface igb0
static ip6_address=fd00::1/64
The only difference in the the outcome is the line
Code:
fd00::/64 link#1 U igb0
Code:
ifconfig_igb0="inet 192.168.1.1 netmask 255.255.255.0"
# doesn't work, not pingable; use dhcpcd
#ifconfig_igb0_ipv6="inet6 fd00::1/64 defaultif"
#ipv6_static_routes="lan"
#ipv6_route_lan="-net -inet6 fd00::/64 fd00::1"
ifconfig_tun0_ipv6="inet6 accept_rtadv"
ipv6_cpe_wanif="tun0"
ipv6_activate_all_interfaces="YES"
gateway_enable="YES"
ipv6_gateway_enable="YES"
dhcpcd_enable="YES"
# ppp
[...]
rtadvd_enable="YES"
rtadvd_interfaces="igb0"
# dhcp server
dhcpd_enable="YES"
dhcpd_ifaces="igb0"
# don't start here; service (re-)started in dhcpcd.enter-hook
#dhcpd6_enable="YES"
dhcpd6_ifaces="igb0"
Code:
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=e527bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether [...]
inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::4262:31ff:fe00:66b8%igb0 prefixlen 64 scopeid 0x1
inet6 fd00::1 prefixlen 64
inet6 2a02:[...]::1 prefixlen 64
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=1<PERFORMNUD>
igb3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=e527bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether [...]
inet6 fe80::4262:31ff:fe00:66bb%igb3 prefixlen 64 scopeid 0x4
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=1<PERFORMNUD>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
options=80000<LINKSTATE>
inet6 fe80::[...]%tun0 prefixlen 64 scopeid 0x6
inet6 2a02:[...] prefixlen 128
inet xx.xx.xx.xx --> 10.0.0.1 netmask 0xffffffff
groups: tun
nd6 options=41<PERFORMNUD,NO_RADR>
Opened by PID xxx
% netstat -nr
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 10.0.0.1 UGS tun0
10.0.0.1 link#6 UH tun0
yy.yy.yy.yy link#6 UHS lo0
127.0.0.1 link#5 UH lo0
192.168.1.0/24 link#1 U igb0
192.168.1.1 link#1 UHS lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
default fe80::1%tun0 UGS tun0
::1 link#5 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
2a02:[...]::/64 link#1 U igb0
2a02:[...]::1 link#1 UHS lo0
2a02:[...] link#6 UHS lo0
fd00::/64 link#1 U igb0
fd00::1 link#1 UHS lo0 <--- only in workaround
fe80::/10 ::1 UGRS lo0
fe80::%igb0/64 link#1 U igb0
fe80::4262:31ff:fe00:66b8%igb0 link#1 UHS lo0
fe80::%igb3/64 link#4 U igb3
fe80::4262:31ff:fe00:66bb%igb3 link#4 UHS lo0
fe80::%lo0/64 link#5 U lo0
fe80::1%lo0 link#5 UHS lo0
fe80::%tun0/64 link#6 US tun0
fe80::bc18:874c%tun0 link#6 UHS lo0
ff02::/16 ::1 UGRS lo0
ff02::%tun0/32 fe80::bc18:874c%tun0 US tun0