S5700交换机默认开启STP协议,引起的互联端口阻塞,ospf邻居不能建立的故障

发布时间:  2014-09-12 浏览次数:  4303 下载次数:  0
问题描述
1、客户现网组网结构如下图所示:
2、三台交换机运行ospf
3、DS_01和DS_02无法正常建立ospf邻居关系
4、DS_01和DS_02互联接口为up状态,但ping不通
告警信息
处理过程
1、关闭DS_01跟DS_02互联接口STP
[DS_01-GigabitEthernet0/0/1]stp dis
[DS_01-GigabitEthernet0/0/1]
Jun 18 2013 10:00:44-08:00 DS_01 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 46, the change loop count is 0, and the maximum number of records is 4095.

[DS_01-GigabitEthernet0/0/1]
Jun 18 2013 10:00:57-08:00 DS_01 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.2, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
Jun 18 2013 10:01:01-08:00 DS_01 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.2, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
Jun 18 2013 10:01:01-08:00 DS_01 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.2, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)
Jun 18 2013 10:01:02-08:00 DS_01 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.2, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
Jun 18 2013 10:01:02-08:00 DS_01 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.2, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
2、1、关闭DS_02跟DS_01互联接口STP
[DS_02-GigabitEthernet0/0/1]stp dis
[DS_02-GigabitEthernet0/0/1]
Jun 18 2013 10:01:02-08:00 DS_02 %%01OSPF/4/NBR_CHANGE_E(l)[19]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.1, NeighborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)

Jun 18 2013 10:01:02-08:00 DS_02 %%01OSPF/4/NBR_CHANGE_E(l)[20]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.1, NeighborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)

Jun 18 2013 10:01:02-08:00 DS_02 %%01OSPF/4/NBR_CHANGE_E(l)[21]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.1, NeighborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchange)

Jun 18 2013 10:01:02-08:00 DS_02 %%01OSPF/4/NBR_CHANGE_E(l)[22]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.1, NeighborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)

Jun 18 2013 10:01:02-08:00 DS_02 %%01OSPF/4/NBR_CHANGE_E(l)[23]:Neighbor changes event: neighbor status changed. (ProcessId=1, NeighborAddress=10.1.1.1, NeighborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)

Jun 18 2013 10:01:05-08:00 DS_02 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 47, the change loop count is 0, and the maximum number of records is 4095.
3、DS_01跟DS_02互联接口可以ping通
<DS_02>ping 10.1.1.1
  PING 10.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 time=50 ms
    Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 time=50 ms
    Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 time=50 ms

  --- 10.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/44/50 ms

4、DS_01和DS_02 ospf邻居正常建立
<DS_01>dis ospf peer

  OSPF Process 1 with Router ID 10.1.0.254
   Neighbors

Area 0.0.0.0 interface 10.1.1.1(Vlanif10)'s neighbors
Router ID: 10.1.0.253       Address: 10.1.1.2       
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 10.1.1.1  BDR: 10.1.1.2  MTU: 0   
   Dead timer due in 37  sec
   Retrans timer interval: 5
   Neighbor is up for 00:24:05    
   Authentication Sequence: [ 0 ]






根因
1、查看DS_01和DS_02接口状态:
<DS_02>dis inter g0/0/1
GigabitEthernet0/0/1 current state : UP
Line protocol current state : UP
Description:to DS_01
Switch Port, PVID :   10, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc71-34c6
Last physical up time   : 2013-06-17 10:19:46 UTC-08:00
Last physical down time : 2013-06-17 10:19:45 UTC-08:00
Current system time: 2013-06-18 09:54:11-08:00
Hardware address is 4c1f-cc71-34c6
    Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
    Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
    Input: 2712014 bytes, 24340 packets
    Output: 390823 bytes, 4740 packets
    Input:
      Unicast: 73 packets, Multicast: 24204 packets
      Broadcast: 63 packets
    Output:
      Unicast: 74 packets, Multicast: 4616 packets
      Broadcast: 50 packets
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
2、ping互联接口地址:
<DS_02>ping 10.1.10.1
  PING 10.1.10.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.10.1 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss
3、查看接口stp状态:
[DS_01]dis stp inter g0/0/1
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge         :32768.4c1f-cc43-65a7
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc37-0688 / 1
CIST RegRoot/IRPC   :32768.4c1f-cc43-65a7 / 0
CIST RootPortId     :128.26
BPDU-Protection     :Disabled
TC or TCN received  :45
TC count per hello  :0
STP Converge Mode   :Normal
Time since last TC  :0 days 0h:13m:51s
Number of TC        :8
Last TC occurred    :GigabitEthernet0/0/2
----[Port25(GigabitEthernet0/0/1)][FORWARDING]----
Port Protocol       :Enabled
Port Role           :Designated Port
Port Priority       :128
Port Cost(Dot1T )   :Config=auto / Active=1
Designated Bridge/Port   :32768.4c1f-cc43-65a7 / 128.25
Port Edged          :Config=default / Active=disabled
Point-to-point      :Config=auto / Active=true
Transit Limit       :147 packets/hello-time
Protection Type     :None
Port STP Mode       :MSTP
Port Protocol Type  :Config=auto / Active=dot1s
BPDU Encapsulation  :Config=stp / Active=stp
PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send      :13
TC or TCN received  :6
BPDU Sent           :8109            
          TCN: 0, Config: 0, RST: 0, MST: 8109
BPDU Received       :7            
          TCN: 0, Config: 0, RST: 0, MST: 7

<DS_02>dis stp inter g0/0/1
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge         :32768.4c1f-cc71-34c6
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc37-0688 / 1
CIST RegRoot/IRPC   :32768.4c1f-cc71-34c6 / 0
CIST RootPortId     :128.27
BPDU-Protection     :Disabled
TC or TCN received  :58
TC count per hello  :0
STP Converge Mode   :Normal
Time since last TC  :0 days 0h:11m:26s
Number of TC        :9
Last TC occurred    :GigabitEthernet0/0/3
----[Port25(GigabitEthernet0/0/1)][DISCARDING]----
Port Protocol       :Enabled
Port Role           :Alternate Port
Port Priority       :128
Port Cost(Dot1T )   :Config=auto / Active=1
Designated Bridge/Port   :32768.4c1f-cc43-65a7 / 128.25
Port Edged          :Config=default / Active=disabled
Point-to-point      :Config=auto / Active=true
Transit Limit       :147 packets/hello-time
Protection Type     :None
Port STP Mode       :MSTP
Port Protocol Type  :Config=auto / Active=dot1s
BPDU Encapsulation  :Config=stp / Active=stp
PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send      :6
TC or TCN received  :13
BPDU Sent           :7            
          TCN: 0, Config: 0, RST: 0, MST: 7
BPDU Received       :8040            
          TCN: 0, Config: 0, RST: 0, MST: 8040
建议与总结
用交换机构建三层路由网络时,互联接口的STP要关闭,因为交换机的STP默认为开启状态,并且STP运算是以物理环路为主。

END