Adapt default network configuration for IPv6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36278 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
d60417f6ef
commit
4c9003ffc7
|
@ -12,3 +12,11 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -150,6 +150,8 @@ set network.loopback.ifname='lo'
|
|||
set network.loopback.proto='static'
|
||||
set network.loopback.ipaddr='127.0.0.1'
|
||||
set network.loopback.netmask='255.0.0.0'
|
||||
set network.globals='globals'
|
||||
set network.globals.ula_prefix='auto'
|
||||
EOF
|
||||
}
|
||||
|
||||
|
@ -174,6 +176,7 @@ set network.lan.type='bridge'
|
|||
set network.lan.proto='static'
|
||||
set network.lan.ipaddr='192.168.1.1'
|
||||
set network.lan.netmask='255.255.255.0'
|
||||
set network.lan.ip6assign='64'
|
||||
EOF
|
||||
}
|
||||
|
||||
|
@ -184,6 +187,9 @@ ucidef_set_interface_wan() {
|
|||
set network.wan='interface'
|
||||
set network.wan.ifname='$ifname'
|
||||
set network.wan.proto='dhcp'
|
||||
set network.wan6='interface'
|
||||
set network.wan6.ifname='@wan'
|
||||
set network.wan6.proto='dhcpv6'
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
|
@ -19,9 +19,21 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
|
||||
#### WAN configuration
|
||||
config interface wan
|
||||
option ifname "eth1"
|
||||
option proto dhcp
|
||||
|
||||
|
||||
#### WAN6 configuration
|
||||
config interface wan6
|
||||
option ifname "@wan"
|
||||
option proto dhcpv6
|
||||
|
||||
|
||||
#### Network global configuration
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -10,7 +10,15 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan
|
||||
option ifname eth1
|
||||
option proto dhcp
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -12,3 +12,7 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -13,6 +13,14 @@ config interface lan
|
|||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option nat 1
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
||||
## Example for ATM bridging.
|
||||
## Useful for PPPoE or IP over ATM. Will create 'nas${unit}'
|
||||
|
|
|
@ -10,11 +10,19 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan
|
||||
option ifname eth1
|
||||
option proto dhcp
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
||||
config switch
|
||||
option name rtl8366s
|
||||
option reset 1
|
||||
|
|
|
@ -9,3 +9,8 @@ config interface loopback
|
|||
config interface lan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface lan6
|
||||
option ifname @lan
|
||||
option proto dhcpv6
|
||||
option reqprefix no
|
||||
|
|
|
@ -11,6 +11,10 @@ set_lan_dhcp() {
|
|||
set network.lan='interface'
|
||||
set network.lan.ifname='$ifname'
|
||||
set network.lan.proto='dhcp'
|
||||
set network.lan6='interface'
|
||||
set network.lan6.ifname='@lan'
|
||||
set network.lan6.proto='dhcpv6'
|
||||
set network.lan6.reqprefix='no'
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,10 @@ set network.wan.ifname='nas0'
|
|||
set network.wan.proto='pppoe'
|
||||
set network.wan.username='foo'
|
||||
set network.wan.password='bar'
|
||||
set network.wan.ipv6='1'
|
||||
set network.wan6='interface'
|
||||
set network.wan6.ifname='@wan'
|
||||
set network.wan6.proto='dhcpv6'
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
|
@ -11,3 +11,11 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -20,3 +20,11 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -11,3 +11,11 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -14,7 +14,15 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -10,7 +10,15 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -12,6 +12,7 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config atm-bridge
|
||||
option unit 0
|
||||
|
@ -28,6 +29,14 @@ config interface wan
|
|||
# clone your eth0 address here
|
||||
# option macaddr '00:0A:FA:22:00:80'
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
||||
|
||||
# 2nd interface on Geos2
|
||||
#config interface wan
|
||||
# option proto pppoa
|
||||
|
|
|
@ -12,7 +12,15 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
|
@ -9,3 +9,8 @@ config interface loopback
|
|||
config interface wlan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface wlan6
|
||||
option ifname @wlan
|
||||
option proto dhcpv6
|
||||
option reqprefix no
|
||||
|
|
|
@ -12,7 +12,15 @@ config interface lan
|
|||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 64
|
||||
|
||||
config interface wan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface wan6
|
||||
option ifname @wan
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
|
|
Loading…
Reference in New Issue