bridge 是 桥接,桥接的是三层口子。
switch0是二层口子。
由于bridge是三层,所以速度上比switch要慢一些了,但是会有一些feature可以使用。
- switch 0的配置
configure
set interfaces switch switch0 switch-port interface eth2
set interfaces switch switch0 switch-port interface eth3
set interfaces switch switch0 switch-port interface eth4
commit
- bridge的配置
set interfaces bridge br0 address 192.168.2.1/24
set interfaces switch switch0 bridge-group bridge br0
set interfaces ethernet eth1 bridge-group bridge br0
commit
save
exit
本文介绍了在网络设备中如何配置桥接(bridge)与交换机(switch)接口。桥接适用于三层网络,能够提供额外的功能但速度较慢;而交换机则用于二层网络,速度更快。文章详细展示了如何通过命令行设置bridge与switch0,并将其应用到具体的网络接口。
1146

被折叠的 条评论
为什么被折叠?



