diff options
author | ume <ume@FreeBSD.org> | 2000-09-10 18:18:10 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2000-09-10 18:18:10 +0000 |
commit | 38e967c74742ab74c36b8bdc059758832ad5e0d1 (patch) | |
tree | a65231337b0f953cc0425d662e46171e297870ac /etc/rc.network6 | |
parent | 3c8715d5d7eb8c71443d92577f164167d6f1b236 (diff) | |
download | FreeBSD-src-38e967c74742ab74c36b8bdc059758832ad5e0d1.zip FreeBSD-src-38e967c74742ab74c36b8bdc059758832ad5e0d1.tar.gz |
Make default interface work.
Obtained from: KAME
Diffstat (limited to 'etc/rc.network6')
-rw-r--r-- | etc/rc.network6 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/rc.network6 b/etc/rc.network6 index 0b0f80f..124795d 100644 --- a/etc/rc.network6 +++ b/etc/rc.network6 @@ -319,7 +319,7 @@ network6_static_routes_setup() { network6_default_interface_setup() { # Choose IPv6 default interface if it is not clearly specified. case ${ipv6_default_interface} in - [Nn][Oo] | '') + '') for i in ${ipv6_network_interfaces}; do laddr=`network6_getladdr $i exclude_tentative` case ${laddr} in @@ -339,14 +339,13 @@ network6_default_interface_setup() { case ${ipv6_default_interface} in [Nn][Oo] | '') route add -inet6 fe80:: -prefixlen 10 ::1 -reject - route add -inet6 ff02:: -prefixlen 16 ::1 -reject + route add -inet6 fec0:: -prefixlen 10 ::1 -reject ;; *) laddr=`network6_getladdr ${ipv6_default_interface}` - route add -inet6 fe80:: ${laddr} -prefixlen 10 -interface \ - -cloning - route add -inet6 ff02:: ${laddr} -prefixlen 16 -interface \ + route add -inet6 fec0:: ${laddr} -prefixlen 10 -interface \ -cloning + ndp -I ${ipv6_default_interface} ;; esac } |