如何在华为交换机上进行批量管理端口呢,例如同时将多个端口加入到一个vlan中,下面yjbys为大家介绍华为交换机批量管理端口的方法!欢迎参考学习!
首先在S5700交换机上创建一个端口组(port-group 1),然后设置改组的.成员是哪些端口
[A]port-group 1
[A-port-group-1]group-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/10
将该组的link-type设置成access
[A-port-group-1]port link-type access
[A-GigabitEthernet0/0/3]port link-type access
[A-GigabitEthernet0/0/4]port link-type access
[A-GigabitEthernet0/0/5]port link-type access
[A-GigabitEthernet0/0/6]port link-type access
[A-GigabitEthernet0/0/7]port link-type access
[A-GigabitEthernet0/0/8]port link-type access
[A-GigabitEthernet0/0/9]port link-type access
[A-GigabitEthernet0/0/10]port link-type access
将改组的所有成员加入到vlan2中
[A-port-group-1]port default vlan 2
[A-GigabitEthernet0/0/3]port default vlan 2
[A-GigabitEthernet0/0/4]port default vlan 2
[A-GigabitEthernet0/0/5]port default vlan 2
[A-GigabitEthernet0/0/6]port default vlan 2
[A-GigabitEthernet0/0/7]port default vlan 2
[A-GigabitEthernet0/0/8]port default vlan 2
[A-GigabitEthernet0/0/9]port default vlan 2
[A-GigabitEthernet0/0/10]port default vlan 2
[A-port-group-1]
验证是否成功
[A]display vlan 2
--------------------------------------------------------------------------------
U: UpD: DownTG: TaggedUT: Untagged
MP: Vlan-mappingST: Vlan-stacking
#: ProtocolTransparent-vlan*: Management-vlan
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
2 common UT:GE0/0/3(D) GE0/0/4(D) GE0/0/5(D) GE0/0/6(D)
GE0/0/7(D) GE0/0/8(D) GE0/0/9(D) GE0/0/10(D)
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
2 enable default enable disable VLAN 0002
[A]
可以看到vlan2中已经有3-10端口了,这样就可以轻松的将多个端口同时的加入到一个vlan中了,你学会了吗?
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)