hellov22ex
2015-07-12 21:30:11 +08:00
# path: /etc/config/network
# LAN4 = WAN
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option type bridge
option ifname eth0.1
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
config interface wan
option ifname eth0.2
option proto dhcp
config switch eth0
option enable 1
option reset 1
option enable_vlan 1
config switch_vlan
option device eth0
option vlan 1
option ports "0 1 2 5t"
config switch_vlan
option device eth0
option vlan 2
option ports "3 5t"
抱歉,我直接全部复制了
这些代表的是什么,请自己百度学习下,这些都是从0开始算的