ROS 千兆多网卡(lan)桥接 =路由器+多口千兆交换机

admin 路由技术评论5,3083字数 750阅读模式

有了ROS软路由的朋友,家里有个局域网还要买个多口的千兆的交换机会增加不少的成本。如果ROS软路由的电脑主板上有足购的PCI插槽或者集成二口千兆网卡的最好,那么按照下面的方法能实现多口千兆交换机的功能。一般家用的都是用ADSL拔号上网的,那么wan的网卡就用intel的100兆网卡即可。假如有五块千兆网卡组成lan,即ether1,ether2,ether3,ether4,ether5,ether6(接宽带的wan口)那么:
1、先建立一个名为bridge的桥
interface bridge add name=”bridge” disable=no

2、将ether1-ether5的五块网卡加入到这个新建的桥中

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,五块已经组成桥
3、设置桥的IP地址,如192.168.1.1

ip address add address 192.168.1.1/24 interface=bridge

这时,可以用winbox连接ROS了,其他的设置皆可在winbox 里操作了。
5个lan口就像交换机一样使用了,性能比普通的千兆交换机要好得多。

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2019年1月26日 11:52:12
  • 转载请务必保留本文链接:https://www.58pxe.com/251.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: