http://blog.csdn.net/oyangshanjin/article/details/38128295
swconfig 是OpenWrt用来配置交换机的命令。
交换机是二层设备,是我们用来配置vlan的必备利器。
swconfig list 现实系统交换机。
swconfig dev <switch0/eth1> show现实当前端口配置。
所谓家庭路由器=交换机+网络服务程序+无线
企业级路由器还有些路由功能等。
root@YSWiFi:~# swconfig
swconfig dev <dev> [port <port>|vlan <vlan>] (help|set <key> <value>|get <key>|load <config>|show)
root@YSWiFi:~# swconfig dev eth1 show
Global attributes:
enable_vlan: 1
Port 0:
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
pvid: 2
link: port:1 link:up speed:100baseT full-duplex auto
Port 2:
pvid: 2
link: port:2 link:up speed:100b