1口和3口是同一根线的两端,这个配置应该是关闭端口,是不是我配置写的不对
我想实现端口检测到环路就自动关闭端口,不用自动打开
(0)
1、配置环路检测命令
全局模式下
loopback-detection global enable vlan 1 to 4094
loopback-detection interval-time 250
接口模式下
loopback-detection enable vlan 1 to 4094
loopback-detection action shutdown
2、环路检测和stp 不兼容,关闭stp
3、按照这样的配置你试试
(0)
[QuDongJiFang]display interface g1/0/1 GigabitEthernet1/0/1 current state: DOWN IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 48bd-3d7f-20e2 Description: GigabitEthernet1/0/1 Interface Loopback is not set Media type is twisted pair, Port hardware type is 1000_BASE_T Unknown-speed mode, unknown-duplex mode Link speed type is autonegotiation, link duplex type is autonegotiation Flow-control is not enabled The Maximum Frame Length is 9600 Broadcast MAX-ratio: 100% Unicast MAX-ratio: 100% Multicast MAX-ratio: 100% PVID: 1010 Mdi type: auto Port link-type: access Tagged VLAN ID : none Untagged VLAN ID : 1010 Port priority: 0 Last clearing of counters: Never Peak value of input: 95310279 bytes/sec, at 2000-04-26 13:04:27 Peak value of output: 95310288 bytes/sec, at 2000-04-26 13:04:27 Last 300 seconds input: 0 packets/sec 111 bytes/sec 0% Last 300 seconds output: 0 packets/sec 131 bytes/sec 0% Input (total): 579553160 packets, 311969435525 bytes 0 unicasts, 579552454 broadcasts, 694 multicasts, 0 pauses Input (normal): 579553160 packets, 311969435525 bytes 0 unicasts, 579552454 broadcasts, 694 multicasts, 0 pauses Input: 12 input errors, 0 runts, - giants, - throttles 11 CRC, - frame, 0 overruns, 1 aborts - ignored, - parity errors Output (total): 580011287 packets, 312010532565 bytes 0 unicasts, 580010241 broadcasts, 1046 multicasts, 0 pauses Output (normal): 580011287 packets, 312010532565 bytes 0 unicasts, 580010241 broadcasts, 1046 multicasts, 0 pauses Output: 0 output errors, - underruns, - buffer failures 0 aborts, 0 deferred, 0 collisions, - late collisions - lost carrier, - no carrier [QuDongJiFang]
loopback-detection 后边只有三个选项,enable,,,interval-time,,,,,multi-port-mode 我把VLAN删除以后,还是不能关闭端口
#Apr 26 14:14:30:748 2000 QuDongJiFang LPDETECT/5/LOOPBACKED: Trap 1.3.6.1.4.1.25506.2.95.1.0.1<hh3cLpbkdtTrapLoopbacked>: Loopback exists on the interface 18874368 GigabitEthernet1/0/1. %Apr 26 14:14:30:975 2000 QuDongJiFang LPDETECT/5/LPDETECT_SHUTDOWN: Loopback exists on GigabitEthernet1/0/1 and this interface is shut down. %Apr 26 14:14:31:145 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is DOWN. %Apr 26 14:14:31:265 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is DOWN. %Apr 26 14:14:36:668 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is UP. %Apr 26 14:14:36:785 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is UP. %Apr 26 14:14:37:620 2000 QuDongJiFang LLDP/6/LLDP_CREATE_NEIGHBOR: New neighbor created on Port GigabitEthernet1/0/2 (IfIndex 18878464), Chassis ID is 48bd-3d7f-20e0, Port ID is GigabitEthernet1/0/1. %Apr 26 14:14:37:865 2000 QuDongJiFang LLDP/6/LLDP_CREATE_NEIGHBOR: New neighbor created on Port GigabitEthernet1/0/1 (IfIndex 18874368), Chassis ID is 48bd-3d7f-20e0, Port ID is GigabitEthernet1/0/2. #Apr 26 14:14:38:467 2000 QuDongJiFang LPDETECT/5/LOOPBACKED: Trap 1.3.6.1.4.1.25506.2.95.1.0.1<hh3cLpbkdtTrapLoopbacked>: Loopback exists on the interface 18874368 GigabitEthernet1/0/1. %Apr 26 14:14:38:695 2000 QuDongJiFang LPDETECT/5/LPDETECT_SHUTDOWN: Loopback exists on GigabitEthernet1/0/1 and this interface is shut down. %Apr 26 14:14:38:865 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is DOWN. %Apr 26 14:14:39:244 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is DOWN. %Apr 26 14:14:44:729 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is UP. %Apr 26 14:14:44:845 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is UP. %Apr 26 14:14:45:620 2000 QuDongJiFang LLDP/6/LLDP_CREATE_NEIGHBOR: New neighbor created on Port GigabitEthernet1/0/2 (IfIndex 18878464), Chassis ID is 48bd-3d7f-20e0, Port ID is GigabitEthernet1/0/1. %Apr 26 14:14:45:865 2000 QuDongJiFang LLDP/6/LLDP_CREATE_NEIGHBOR: New neighbor created on Port GigabitEthernet1/0/1 (IfIndex 18874368), Chassis ID is 48bd-3d7f-20e0, Port ID is GigabitEthernet1/0/2. #Apr 26 14:14:46:188 2000 QuDongJiFang LPDETECT/5/LOOPBACKED: Trap 1.3.6.1.4.1.25506.2.95.1.0.1<hh3cLpbkdtTrapLoopbacked>: Loopback exists on the interface 18874368 GigabitEthernet1/0/1. %Apr 26 14:14:46:415 2000 QuDongJiFang LPDETECT/5/LPDETECT_SHUTDOWN: Loopback exists on GigabitEthernet1/0/1 and this interface is shut down. %Apr 26 14:14:46:585 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/1 link status is DOWN. %Apr 26 14:14:46:953 2000 QuDongJiFang IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is DOWN.
总是关闭然后又打开,这是什么情况
[QuDongJiFang]display interface g1/0/1 GigabitEthernet1/0/1 current state: DOWN IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 48bd-3d7f-20e2 Description: GigabitEthernet1/0/1 Interface Loopback is not set Media type is twisted pair, Port hardware type is 1000_BASE_T Unknown-speed mode, unknown-duplex mode Link speed type is autonegotiation, link duplex type is autonegotiation Flow-control is not enabled The Maximum Frame Length is 9600 Broadcast MAX-ratio: 100% Unicast MAX-ratio: 100% Multicast MAX-ratio: 100% PVID: 1010 Mdi type: auto Port link-type: access Tagged VLAN ID : none Untagged VLAN ID : 1010 Port priority: 0 Last clearing of counters: Never Peak value of input: 95310279 bytes/sec, at 2000-04-26 13:04:27 Peak value of output: 95310288 bytes/sec, at 2000-04-26 13:04:27 Last 300 seconds input: 0 packets/sec 111 bytes/sec 0% Last 300 seconds output: 0 packets/sec 131 bytes/sec 0% Input (total): 579553160 packets, 311969435525 bytes 0 unicasts, 579552454 broadcasts, 694 multicasts, 0 pauses Input (normal): 579553160 packets, 311969435525 bytes 0 unicasts, 579552454 broadcasts, 694 multicasts, 0 pauses Input: 12 input errors, 0 runts, - giants, - throttles 11 CRC, - frame, 0 overruns, 1 aborts - ignored, - parity errors Output (total): 580011287 packets, 312010532565 bytes 0 unicasts, 580010241 broadcasts, 1046 multicasts, 0 pauses Output (normal): 580011287 packets, 312010532565 bytes 0 unicasts, 580010241 broadcasts, 1046 multicasts, 0 pauses Output: 0 output errors, - underruns, - buffer failures 0 aborts, 0 deferred, 0 collisions, - late collisions - lost carrier, - no carrier [QuDongJiFang]
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明