|
本帖最后由 vade 于 2011-3-5 22:00 编辑
我今天搞一天, 老是有问题. 这款好像比较特别, 别的机器port 5是CPU的. 这款PORT 0 是CPU.
root@OpenWrt:~# swconfig dev eth0 help
Switch 1: eth0(AR7240 built-in switch), ports: 6 (cpu @ 0), vlans: 16
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): apply (Activate changes in the hardware)
Attribute 3 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID)
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (int): pvid (Primary VLAN ID)
经过测试, port 1 => lan 1, port 2 => lan 2, port 3 => lan3, port 4 => lan4, wan 不知道对应什么.
我划分成2个VLAN, 没成砖, 但vlan1(lan4) 却不能拨号, 不知怎么回事.
config 'interface' 'wan1'
option 'ifname' 'eth0.1'
option 'proto' 'pppoe'
option 'username' '****'
option 'password' '****'
config 'switch_vlan'
option 'device' 'eth0'
option 'vlan' '1'
option 'ports' '0 4'
config 'switch_vlan'
option 'device' 'eth0'
option 'vlan' '2'
option 'ports' '0 1 2 3' |
|