Proper way to setup IPv6 gateway on running node without reboot?
Lev Serebryakov
lev at FreeBSD.org
Tue Apr 19 19:26:06 UTC 2011
Hello, Doug.
You wrote 19 апреля 2011 г., 22:48:39:
>> ifconfig shows only one "inet6" address for each (manually
>> configured), and these nd6 flags:
>> nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
> Re-read what I wrote above. You've got to enable the link-local
> addresses for each interface.
man ifconfig has only one mention about link-local addresses in BUGS
section (with warning about removing them by hands) and mention, that
they are automagically assigned on interface creation, if
net.inet6.ip6.auto_linklocal is set to 1 (which is true on my system,
but all my interfaces were created BEFORE IPv6 has been enabled in
system).
/etc/rc.d/auto_linklocal works only with lo0.
It seems to me, that it is impossible to force kernel to create
link-local addresses for already-created interfaces. But I want to be
wrong here!
> If that doesn't work, please paste full 'ifconfig' output into your next
> message.
gateway# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=20db<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING,VLAN_HWCSUM,WOL_MAGIC>
ether 00:07:e9:09:ed:f3
inet 192.168.134.1 netmask 0xffffff00 broadcast 192.168.134.255
inet6 2001:470:hhhh:1::1 prefixlen 64
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet 1000baseT <full-duplex>
status: active
gateway# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:02:6f:53:67:5a
inet 192.168.135.1 netmask 0xffffff00 broadcast 192.168.135.255
inet6 2001:470:hhhh:2::1 prefixlen 64
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid home.serebryakov.spb.ru channel 8 (2447 MHz 11g) bssid 00:02:6f:53:67:5a
regdomain ROW country RU indoor ecm authmode WPA2/802.11i
privacy MIXED deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit
txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
--
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>
More information about the freebsd-net
mailing list