Make default interface work.
Obtained from: KAME
This commit is contained in:
parent
4a950c224b
commit
31a054d673
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user