有了ROS軟路由的朋友,家里有個(gè)局域網(wǎng)還要買個(gè)多口的千兆的交換機(jī)會(huì)增加不少的成本。如果ROS軟路由的電腦主板上有足購(gòu)的PCI插槽或者集成二口千兆網(wǎng)卡的最好,那么按照下面的方法能實(shí)現(xiàn)多口千兆交換機(jī)的功能。一般家用的都是用ADSL拔號(hào)上網(wǎng)的,那么wan的網(wǎng)卡就用intel的100兆網(wǎng)卡即可。假如有五塊千兆網(wǎng)卡組成lan,即ether1,ether2,ether3,ether4,ether5,ether6(接寬帶的wan口)那么:
1、先建立一個(gè)名為bridge的橋
interface bridge add name=”bridge” disable=no
2、將ether1-ether5的五塊網(wǎng)卡加入到這個(gè)新建的橋中文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/251.html
interface bridge port add interface=ether1 bridge=bridge
interface bridge port add interface=ether2 bridge=bridge
interface bridge port add interface=ether3 bridge=bridge
interface bridge port add interface=ether4 bridge=bridge
interface bridge port add interface=ether5 bridge=bridge
ok,五塊已經(jīng)組成橋
3、設(shè)置橋的IP地址,如192.168.1.1文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/251.html
ip address add address 192.168.1.1/24 interface=bridge
這時(shí),可以用winbox連接ROS了,其他的設(shè)置皆可在winbox 里操作了。
5個(gè)lan口就像交換機(jī)一樣使用了,性能比普通的千兆交換機(jī)要好得多。文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/251.html
文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/251.html
評(píng)論