做软路由时 通常电脑PCI接口最多的只有4个,也就是说最多只能插4块网卡接入4条宽带,这让做小区宽带的太为难了。
利用带VLan功能的交换机可以实现扩展网卡的功能,下面是交换机扩展网卡的telnet命令:
进入路由器:
telnet 192.168.1.1
用户名:root
密码:路由器密码(输入密码时屏幕不会显示)
扩展1台交换机23WAN:
以下需一次一行输入
nvram setjhl_vlan="eth1|24,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23<"
nvram set wan_ifname="eth1.24"
nvram set wan1_ifname="eth1.2"
nvram set wan2_ifname="eth1.3"
nvram set wan3_ifname="eth1.4"
nvram set wan4_ifname="eth1.5"
nvram set wan5_ifname="eth1.6"
nvram set wan6_ifname="eth1.7"
nvram set wan7_ifname="eth1.8"
nvram set wan8_ifname="eth1.9"
nvram set wan9_ifname="eth1.10"
nvram set wan10_ifname="eth1.11"
nvram set wan11_ifname="eth1.12"
nvram set wan12_ifname="eth1.13"
nvram set wan13_ifname="eth1.14"
nvram set wan14_ifname="eth1.15"
nvram set wan15_ifname="eth1.16"
nvram set wan16_ifname="eth1.17"
nvram set wan17_ifname="eth1.18"
nvram set wan18_ifname="eth1.19"
nvram set wan19_ifname="eth1.20"
nvram set wan20_ifname="eth1.21"
nvram set wan21_ifname="eth1.22"
nvram set wan22_ifname="eth1.23"
nvram commit
reboot
扩展2台交换机46WAN:
以下()里需一次一行输入,()号不用输
(nvram setjhl_vlan="eth1|24,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23<")
nvram set wan_ifname="eth1.24"
nvram set wan1_ifname="eth1.2"
nvram set wan2_ifname="eth1.3"
nvram set wan3_ifname="eth1.4"
nvram set wan4_ifname="eth1.5"
nvram set wan5_ifname="eth1.6"
nvram set wan6_ifname="eth1.7"
nvram set wan7_ifname="eth1.8"
nvram set wan8_ifname="eth1.9"
nvram set wan9_ifname="eth1.10"
nvram set wan10_ifname="eth1.11"
nvram set wan11_ifname="eth1.12"
nvram set wan12_ifname="eth1.13"
nvram set wan13_ifname="eth1.14"
nvram set wan14_ifname="eth1.15"
nvram set wan15_ifname="eth1.16"
nvram set wan16_ifname="eth1.17"
nvram set wan17_ifname="eth1.18"
nvram set wan18_ifname="eth1.19"
nvram set wan19_ifname="eth1.20"
nvram set wan20_ifname="eth1.21"
nvram set wan21_ifname="eth1.22"
nvram set wan22_ifname="eth1.23"
nvram set wan23_ifname="eth2.24"
nvram set wan24_ifname="eth2.2"
nvram set wan25_ifname="eth2.3"
nvram set wan26_ifname="eth2.4"
nvram set wan27_ifname="eth2.5"
nvram set wan28_ifname="eth2.6"
nvram set wan29_ifname="eth2.7"
nvram set wan30_ifname="eth2.8"
nvram set wan31_ifname="eth2.9"
nvram set wan32_ifname="eth2.10"
nvram set wan33_ifname="eth2.11"
nvram set wan34_ifname="eth2.12"
nvram set wan35_ifname="eth2.13"
nvram set wan36_ifname="eth2.14"
nvram set wan37_ifname="eth2.15"
nvram set wan38_ifname="eth2.16"
nvram set wan39_ifname="eth2.17"
nvram set wan40_ifname="eth2.18"
nvram set wan41_ifname="eth2.19"
nvram set wan42_ifname="eth2.20"
nvram set wan43_ifname="eth2.21"
nvram set wan44_ifname="eth2.22"
nvram set wan45_ifname="eth2.23"
nvram commit
reboot
扩展3台交换机69WAN:
以下()里需一次一行输入,()号不用输
(nvram setjhl_vlan="eth1|24,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23<")
nvram set wan_ifname="eth1.24"
nvram set wan1_ifname="eth1.2"
nvram set wan2_ifname="eth1.3"
nvram set wan3_ifname="eth1.4"
nvram set wan4_ifname="eth1.5"
nvram set wan5_ifname="eth1.6"
nvram set wan6_ifname="eth1.7"
nvram set wan7_ifname="eth1.8"
nvram set wan8_ifname="eth1.9"
nvram set wan9_ifname="eth1.10"
nvram set wan10_ifname="eth1.11"
nvram set wan11_ifname="eth1.12"
nvram set wan12_ifname="eth1.13"
nvram set wan13_ifname="eth1.14"
nvram set wan14_ifname="eth1.15"
nvram set wan15_ifname="eth1.16"
nvram set wan16_ifname="eth1.17"
nvram set wan17_ifname="eth1.18"
nvram set wan18_ifname="eth1.19"
nvram set wan19_ifname="eth1.20"
nvram set wan20_ifname="eth1.21"
nvram set wan21_ifname="eth1.22"
nvram set wan22_ifname="eth1.23"
nvram set wan23_ifname="eth2.24"
nvram set wan24_ifname="eth2.2"
nvram set wan25_ifname="eth2.3"
nvram set wan26_ifname="eth2.4"
nvram set wan27_ifname="eth2.5"
nvram set wan28_ifname="eth2.6"
nvram set wan29_ifname="eth2.7"
nvram set wan30_ifname="eth2.8"
nvram set wan31_ifname="eth2.9"
nvram set wan32_ifname="eth2.10"
nvram set wan33_ifname="eth2.11"
nvram set wan34_ifname="eth2.12"
nvram set wan35_ifname="eth2.13"
nvram set wan36_ifname="eth2.14"
nvram set wan37_ifname="eth2.15"
nvram set wan38_ifname="eth2.16"
nvram set wan39_ifname="eth2.17"
nvram set wan40_ifname="eth2.18"
nvram set wan41_ifname="eth2.19"
nvram set wan42_ifname="eth2.20"
nvram set wan43_ifname="eth2.21"
nvram set wan44_ifname="eth2.22"
nvram set wan45_ifname="eth2.23"
nvram set wan46_ifname="eth3.24"
nvram set wan47_ifname="eth3.2"
nvram set wan48_ifname="eth3.3"
nvram set wan49_ifname="eth3.4"
nvram set wan50_ifname="eth3.5"
nvram set wan51_ifname="eth3.6"
nvram set wan52_ifname="eth3.7"
nvram set wan53_ifname="eth3.8"
nvram set wan54_ifname="eth3.9"
nvram set wan55_ifname="eth3.10"
nvram set wan56_ifname="eth3.11"
nvram set wan57_ifname="eth3.12"
nvram set wan58_ifname="eth3.13"
nvram set wan59_ifname="eth3.14"
nvram set wan60_ifname="eth3.15"
nvram set wan61_ifname="eth3.16"
nvram set wan62_ifname="eth3.17"
nvram set wan63_ifname="eth3.18"
nvram set wan64_ifname="eth3.19"
nvram set wan65_ifname="eth3.20"
nvram set wan66_ifname="eth3.21"
nvram set wan67_ifname="eth3.22"
nvram set wan68_ifname="eth3.23"
nvram commit
reboot
哈哈,交换机等于网卡了,这下就怕你没有那么RMB装宽带了吧!