网络设备VLAN配置与命名全解析
1. VLAN在绑定和桥接设备上的配置
在绑定(bond)和桥接(bridge)设备上使用VLAN,可按以下步骤操作:
1. 添加绑定设备 :
# ip link add bond0 type bond
# ip link set bond0 type bond miimon 100 mode active-backup
# ip link set em1 down
# ip link set em1 master bond0
# ip link set em2 down
# ip link set em2 master bond0
# ip link set bond0 up
- 在绑定设备上设置VLAN :
# ip link add link bond0 name bond0.2 type vlan id 2
# ip link set bond0.2 up
- 添加桥接设备并将VLAN附加到其上 :
# ip link add br0 type bridge
# ip link set bond0.2 master br0
# ip link set br0 up
超级会员免费看
订阅专栏 解锁全文
1122

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



