2024年6月4日发(作者:过星腾)
中兴3950/5950交换机的端口隔离命令
查看交换机配置
ND_ZHL_SW3>enable
ND_ZHL_SW3#show running
首先:看那些端口是上联口trunk口
ND_ZHL_SW3>enable
ND_ZHL_SW3#
ND_ZHL_SW3#show vlan trunk
VLAN Name IsDynamic PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 NO
30 VLAN0030 NO
100 VLAN0100 NO fei_1/24 (注:24为trunk口那
么,就要设置成上联口promis)
ND_ZHL_SW3#
第一:设置交换机端口隔离
ND_ZHL_SW3>enable
ND_ZHL_SW3#
ND_ZHL_SW3#configure terminal
ND_ZHL_SW3(config)#vlan private-map session-id 1 isolate fei_1/1-23 promis fei_1/24
(注: fei_1/1-23是批量设置成隔离口,有多个上联口的话要分开写例如把23,24口设置成上
联口,1到22是隔离口要这样写
ND_ZHL_SW3(config)#vlan private-map session-id 1 isolate fei_1/1-21 promis fei_1/22,fei_1/23,
fei_1/24 )
ND_ZHL_SW3(config)#exit
ND_ZHL_SW3#write
第二:取消交换机端口隔离
ND_ZHL_SW3>enable
ND_ZHL_SW3#configure terminal
Enter configuration commands, one per line. End with CTRL/Z.
1
ND_ZHL_SW3(config)#no vlan private-map session-id 1
ND_ZHL_SW3(config)#exit
ND_ZHL_SW3#write
...[OK]
ND_ZHL_SW3#
第三:查看隔离端口设置情
ND_ZHL_SW3>enable
ND_ZHL_SW3#
ND_ZHL_SW3#show vlan private-map
Session Isolate_Ports Promis_Ports Community_ports Vlan_Cfg Vlan
------------------------------------------------------------------------------
1 fei_1/1-22 fei_1/23-24 0
附加一:备份交换机的配置文件。
ND_ZHL_SW2#copy flash: /cfg/ tftp: //192.168.5.200/
附加二:恢复交换机的配置文件。
ND_ZHL_SW2#copy tftp: //10.145.138.35/ flash: /cfg/
附加三:重起交换机。
ND_ZHL_SW3#reload
Proceed with reload? [yes/no]:y
Write DHCP snooping database to flash?[Y:write manually,N:reload directly]:n
2
2024年6月4日发(作者:过星腾)
中兴3950/5950交换机的端口隔离命令
查看交换机配置
ND_ZHL_SW3>enable
ND_ZHL_SW3#show running
首先:看那些端口是上联口trunk口
ND_ZHL_SW3>enable
ND_ZHL_SW3#
ND_ZHL_SW3#show vlan trunk
VLAN Name IsDynamic PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 NO
30 VLAN0030 NO
100 VLAN0100 NO fei_1/24 (注:24为trunk口那
么,就要设置成上联口promis)
ND_ZHL_SW3#
第一:设置交换机端口隔离
ND_ZHL_SW3>enable
ND_ZHL_SW3#
ND_ZHL_SW3#configure terminal
ND_ZHL_SW3(config)#vlan private-map session-id 1 isolate fei_1/1-23 promis fei_1/24
(注: fei_1/1-23是批量设置成隔离口,有多个上联口的话要分开写例如把23,24口设置成上
联口,1到22是隔离口要这样写
ND_ZHL_SW3(config)#vlan private-map session-id 1 isolate fei_1/1-21 promis fei_1/22,fei_1/23,
fei_1/24 )
ND_ZHL_SW3(config)#exit
ND_ZHL_SW3#write
第二:取消交换机端口隔离
ND_ZHL_SW3>enable
ND_ZHL_SW3#configure terminal
Enter configuration commands, one per line. End with CTRL/Z.
1
ND_ZHL_SW3(config)#no vlan private-map session-id 1
ND_ZHL_SW3(config)#exit
ND_ZHL_SW3#write
...[OK]
ND_ZHL_SW3#
第三:查看隔离端口设置情
ND_ZHL_SW3>enable
ND_ZHL_SW3#
ND_ZHL_SW3#show vlan private-map
Session Isolate_Ports Promis_Ports Community_ports Vlan_Cfg Vlan
------------------------------------------------------------------------------
1 fei_1/1-22 fei_1/23-24 0
附加一:备份交换机的配置文件。
ND_ZHL_SW2#copy flash: /cfg/ tftp: //192.168.5.200/
附加二:恢复交换机的配置文件。
ND_ZHL_SW2#copy tftp: //10.145.138.35/ flash: /cfg/
附加三:重起交换机。
ND_ZHL_SW3#reload
Proceed with reload? [yes/no]:y
Write DHCP snooping database to flash?[Y:write manually,N:reload directly]:n
2