network: Unbind DHCPv6 from underlying interfaces
This allows IPv6 to set up without IPv4 being up thus IPv6-only or IPv6+DS-Lite working with the default config. Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 42848
This commit is contained in:
parent
fa5237d936
commit
c118e5edf4
13 changed files with 12 additions and 16 deletions
|
@ -62,7 +62,7 @@ EOF
|
||||||
set network.$1.proto='dhcp'
|
set network.$1.proto='dhcp'
|
||||||
delete network.wan6
|
delete network.wan6
|
||||||
set network.wan6='interface'
|
set network.wan6='interface'
|
||||||
set network.wan6.ifname='@wan'
|
set network.wan6.ifname='$ifname'
|
||||||
set network.wan6.proto='dhcpv6'
|
set network.wan6.proto='dhcpv6'
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -14,9 +14,5 @@ config interface lan
|
||||||
option netmask 255.255.255.0
|
option netmask 255.255.255.0
|
||||||
option ip6assign 60
|
option ip6assign 60
|
||||||
|
|
||||||
config interface wan6
|
|
||||||
option ifname @wan
|
|
||||||
option proto dhcpv6
|
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
option ula_prefix auto
|
option ula_prefix auto
|
||||||
|
|
|
@ -190,7 +190,7 @@ set network.wan='interface'
|
||||||
set network.wan.ifname='$ifname'
|
set network.wan.ifname='$ifname'
|
||||||
set network.wan.proto='dhcp'
|
set network.wan.proto='dhcp'
|
||||||
set network.wan6='interface'
|
set network.wan6='interface'
|
||||||
set network.wan6.ifname='@wan'
|
set network.wan6.ifname='$ifname'
|
||||||
set network.wan6.proto='dhcpv6'
|
set network.wan6.proto='dhcpv6'
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ config interface wan
|
||||||
|
|
||||||
#### WAN6 configuration
|
#### WAN6 configuration
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname "@wan"
|
option ifname "eth1"
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ config interface wan
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth1
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -14,7 +14,7 @@ config interface lan
|
||||||
option ip6assign 60
|
option ip6assign 60
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -29,7 +29,7 @@ config interface lan
|
||||||
option ip6assign 60
|
option ip6assign 60
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname wan
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -18,7 +18,7 @@ config interface lan
|
||||||
option ip6assign 60
|
option ip6assign 60
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -21,7 +21,7 @@ config interface wan
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -17,7 +17,7 @@ config interface wan
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -30,7 +30,7 @@ config interface wan
|
||||||
# option macaddr '00:0A:FA:22:00:80'
|
# option macaddr '00:0A:FA:22:00:80'
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname nas0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -19,7 +19,7 @@ config interface wan
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
|
@ -19,7 +19,7 @@ config interface wan
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config interface wan6
|
config interface wan6
|
||||||
option ifname @wan
|
option ifname eth0
|
||||||
option proto dhcpv6
|
option proto dhcpv6
|
||||||
|
|
||||||
config globals globals
|
config globals globals
|
||||||
|
|
Loading…
Reference in a new issue