Cisco三层Port-channel的调试

上次在虚拟器里做了二层的Port-Channel,挺顺利的。

昨天在Cisco 6509上,把电信和网通的线路做成Port-channel,碰到一个奇怪的事情。Port-Channel做好后,手动把TEL电信端口Shutdown后,网通线路不能马上起来,会有12~15个丢包。反之,把网通端口Shutdown后,电信线路却不丢包。在两台6509上都试了多次,分别断开其中一条,情况都这样。。。不解!

1、拓朴
Cisco 6509-2( g2/1:TEL | g2/2CNC)===============(g2/23:TEL | g2/24:CNC)Cisco 6509-1

2、配置
C6509-1
[quote]
#int range gi 2/23 – 24
#shutdown
#no switchport
#no ip address

#channel-group 1 mode active
#exit

#int po1
#no switchport
#desc WL-PortChannel
#ip add 172.16.12.1 255.255.255.0
#exit

#int range gi 2/23 – 24
#no shut
#end

[/quote]

[quote]
cisco6509-1#sho run int gi 2/23
Building configuration…

Current configuration : 110 bytes
!
interface GigabitEthernet2/23
description WL-pChannel-TEL
no ip address
channel-group 1 mode active
end

cisco6509-1#sho run int gi 2/24
Building configuration…

Current configuration : 110 bytes
!
interface GigabitEthernet2/24
description WL-pChannel-CNC
no ip address
channel-group 1 mode active
end
[/quote]

另一台Cisco 6509-2:类似。
[quote]
#int range gi 2/1 – 2
#shutdown
#no switchport

#channel-group 1 mode Passive
#exit

#int po1
#no switchport
#ip add 172.16.12.2 255.255.255.0
#exit

#int range gi 2/1 – 2
#no shut
#end

[quote]

3、状态,线路切换后。
[quote]
cisco6509-1#sho int port 1
Port-channel1 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 0022.5623.6c00 (bia 0022.5623.6c00)
Description: WL-PortChannel
Internet address is 172.16.12.1/24
MTU 1500 bytes, BW 200000 Kbit, DLY 100 usec,
reliability 255/255, txload 9/255, rxload 2/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is unknown
input flow-control is off, output flow-control is off
Members in this channel: Gi2/23 Gi2/24
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:02:45, output 00:02:48, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1975000 bits/sec, 650 packets/sec
5 minute output rate 7805000 bits/sec, 866 packets/sec
L2 Switched: ucast: 2945 pkt, 2842098 bytes – mcast: 394 pkt, 30367 bytes
L3 in Switched: ucast: 37553200 pkt, 47334751556 bytes – mcast: 0 pkt, 0 bytes mcast
L3 out Switched: ucast: 24976048 pkt, 12299271722 bytes mcast: 0 pkt, 0 bytes
37056384 packets input, 46644188801 bytes, 0 no buffer
Received 6718 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
24684581 packets output, 12215576734 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
[/quote]

[quote]

cisco6509-1#sho etherchannel 1 detail
Group state = L3
Ports: 2 Maxports = 16
Port-channels: 1 Max Port-channels = 16
Protocol: LACP
Minimum Links: 0
Ports in the group:
——————-
Port: Gi2/23
————

Port state = Up Mstr In-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x55 Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/23 SA bndl 32768 0x1 0x1 0x218 0x3D

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/23 SA bndl 32768 0x0 0x1 0x403 0x3D

Age of the port in the current state: 0d:15h:55m:14s

Port: Gi2/24
————

Port state = Up Mstr In-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 1 Load = 0xAA Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/24 SA bndl 32768 0x1 0x1 0x219 0x3D

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/24 SA bndl 32768 0x0 0x1 0x404 0x3D

Age of the port in the current state: 0d:15h:50m:43s

Port-channels in the group:
———————-

Port-channel: Po1 (Primary Aggregator)

————

Age of the Port-channel = 0d:18h:22m:17s
Logical slot/port = 14/1 Number of ports = 2
HotStandBy port = null
Passive port list = Gi2/23 Gi2/24
Port state = Port-channel L3-Ag Ag-Inuse
Protocol = LACP
Fast-switchover = disabled

Ports in the Port-channel:

Index Load Port EC state No of bits
——+——+——+——————+———–
0 55 Gi2/23 Active 4
1 AA Gi2/24 Active 4

Time since last port bundled: 0d:15h:50m:43s Gi2/24
Time since last port Un-bundled: 0d:15h:53m:14s Gi2/24

Last applied Hash Distribution Algorithm: Fixed
[/quote]

[quote]
cisco6509-1#sho int g 2/23
GigabitEthernet2/23 is up, line protocol is up (connected)
Hardware is C6k 1000Mb 802.3, address is 0022.5623.6c00 (bia 0022.5623.6c00)
Description: WL-pChannel-TEL
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 3/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 10/100/1000BaseT
input flow-control is off, output flow-control is off
Clock mode is auto
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:55, output 00:00:47, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1507000 bits/sec, 349 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
L2 Switched: ucast: 0 pkt, 0 bytes – mcast: 0 pkt, 0 bytes
L3 in Switched: ucast: 0 pkt, 0 bytes – mcast: 0 pkt, 0 bytes mcast
L3 out Switched: ucast: 0 pkt, 0 bytes mcast: 0 pkt, 0 bytes
27038120 packets input, 37103242856 bytes, 0 no buffer
Received 3130 broadcasts (3127 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
15156946 packets output, 4081264330 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out

cisco6509-1# sh int g 2/23 etherchannel
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x55 Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/23 SA bndl 32768 0x1 0x1 0x218 0x3D

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/23 SA bndl 32768 0x0 0x1 0x403 0x3D

Age of the port in the current state: 0d:00h:42m:05s
[/quote]
[quote]
cisco6509-1#sho int g 2/24
GigabitEthernet2/24 is up, line protocol is up (connected)
Hardware is C6k 1000Mb 802.3, address is 0022.5623.6c00 (bia 0022.5623.6c00)
Description: WL-pChannel-CNC
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 22/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 10/100/1000BaseT
input flow-control is off, output flow-control is off
Clock mode is auto
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:10, output 00:00:39, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 735000 bits/sec, 362 packets/sec
5 minute output rate 8947000 bits/sec, 996 packets/sec
L2 Switched: ucast: 0 pkt, 0 bytes – mcast: 0 pkt, 0 bytes
L3 in Switched: ucast: 0 pkt, 0 bytes – mcast: 0 pkt, 0 bytes mcast
L3 out Switched: ucast: 0 pkt, 0 bytes mcast: 0 pkt, 0 bytes
10812804 packets input, 10347052096 bytes, 0 no buffer
Received 3710 broadcasts (3620 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
10239692 packets output, 8686723464 bytes, 0 underruns
0 output errors, 0 collisions, 6 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out

cisco6509-1# sh int g 2/24 etherchannel
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 1 Load = 0xAA Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/24 SA bndl 32768 0x1 0x1 0x219 0x3D

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/24 SA bndl 32768 0x0 0x1 0x404 0x3D

Age of the port in the current state: 0d:00h:37m:56s
[/quote]

5、手动shutdown gi2/23 电信端口后,有短时间丢包现像,不能无间断切换。手动shutdown掉网通端口gi 2/24,线路保持畅通,不丢包。

何解?

shutdown g2/23 后,g2/24继续工作:
[quote]
cisco6509-jt#sho etherchannel 1 detail
Group state = L3
Ports: 2 Maxports = 16
Port-channels: 1 Max Port-channels = 16
Protocol: LACP
Minimum Links: 0
Ports in the group:
——————-
Port: Gi2/23
————

Port state = Down Not-in-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = null GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/23 FA down 32768 0x1 0x1 0x218 0x7

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/23 SP down 32768 0x0 0x1 0x403 0x34

Age of the port in the current state: 0d:19h:11m:57s

Port: Gi2/24
————

Port state = Up Mstr In-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 1 Load = 0xFF Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/24 SA bndl 32768 0x1 0x1 0x219 0x3D

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/24 SA bndl 32768 0x0 0x1 0x404 0x3D

Age of the port in the current state: 0d:00h:02m:29s

Port-channels in the group:
———————-

Port-channel: Po1 (Primary Aggregator)

————

Age of the Port-channel = 0d:21h:39m:01s
Logical slot/port = 14/1 Number of ports = 1
HotStandBy port = null
Passive port list = Gi2/23 Gi2/24
Port state = Port-channel L3-Ag Ag-Inuse
Protocol = LACP
Fast-switchover = disabled

Ports in the Port-channel:

Index Load Port EC state No of bits
——+——+——+——————+———–
1 FF Gi2/24 Active 8

Time since last port bundled: 0d:00h:02m:31s Gi2/24
Time since last port Un-bundled: 0d:00h:01m:31s Gi2/23

Last applied Hash Distribution Algorithm: Fixed
[/quote]

shutdown g2/24后,短暂丢包。
[quote]
cisco6509-1(config)#int g 2/24
cisco6509-1(config-if)#shut
cisco6509-1(config-if)#end
cisco6509-1#sho eth
cisco6509-1#sho etherc
cisco6509-1#sho etherchannel 1 de
cisco6509-1#sho etherchannel 1 detail
Group state = L3
Ports: 2 Maxports = 16
Port-channels: 1 Max Port-channels = 16
Protocol: LACP
Minimum Links: 0
Ports in the group:
——————-
Port: Gi2/23
————

Port state = Up Mstr In-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = Po1 GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0xFF Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/23 SA bndl 32768 0x1 0x1 0x218 0x3D

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/23 SA bndl 32768 0x0 0x1 0x403 0x3D

Age of the port in the current state: 0d:00h:04m:27s

Port: Gi2/24
————

Port state = Down Not-in-Bndl
Channel group = 1 Mode = Active Gcchange = –
Port-channel = null GC = – Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = LACP

Flags: S – Device is sending Slow LACPDUs F – Device is sending fast LACPDUs.
A – Device is in active mode. P – Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi2/24 FA down 32768 0x1 0x1 0x219 0x7

Partner's information:

Partner Partner LACP Partner Partner Partner Partner Partner
Port Flags State Port Priority Admin Key Oper Key Port Number Port State
Gi2/24 SP down 32768 0x0 0x1 0x404 0x34

Age of the port in the current state: 0d:00h:07m:13s

Port-channels in the group:
———————-

Port-channel: Po1 (Primary Aggregator)

————

Age of the Port-channel = 0d:21h:43m:43s
Logical slot/port = 14/1 Number of ports = 1
HotStandBy port = null
Passive port list = Gi2/23 Gi2/24
Port state = Port-channel L3-Ag Ag-Inuse
Protocol = LACP
Fast-switchover = disabled

Ports in the Port-channel:

Index Load Port EC state No of bits
——+——+——+——————+———–
0 FF Gi2/23 Active 8

Time since last port bundled: 0d:00h:04m:28s Gi2/23
Time since last port Un-bundled: 0d:00h:00m:15s Gi2/24

Last applied Hash Distribution Algorithm: Fixed

cisco6509-jt# sho int port 1
Port-channel1 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 0022.5623.6c00 (bia 0022.5623.6c00)
Description: WL-PortChannel
Internet address is 172.16.12.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is unknown
input flow-control is off, output flow-control is off
Members in this channel: Gi2/23
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:20:06, output 00:01:58, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 397000 bits/sec, 150 packets/sec
5 minute output rate 502000 bits/sec, 56 packets/sec
L2 Switched: ucast: 2958 pkt, 2843593 bytes – mcast: 448 pkt, 34741 bytes
L3 in Switched: ucast: 44902245 pkt, 49633787423 bytes – mcast: 0 pkt, 0 bytes mcast
L3 out Switched: ucast: 34985310 pkt, 23601069387 bytes mcast: 0 pkt, 0 bytes
44273144 packets input, 48905081358 bytes, 0 no buffer
Received 8032 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
34496513 packets output, 23288855512 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
cisco6509-jt#sho int g 2/24
GigabitEthernet2/24 is administratively down, line protocol is down (disabled)
Hardware is C6k 1000Mb 802.3, address is 0022.5623.6c00 (bia 0022.5623.6c00)
Description: WL-pChannel-CNC
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 0/255, rxload 0/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is 10/100/1000BaseT
input flow-control is off, output flow-control is off
Clock mode is auto
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:01:11, output 00:00:26, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
L2 Switched: ucast: 0 pkt, 0 bytes – mcast: 0 pkt, 0 bytes
L3 in Switched: ucast: 0 pkt, 0 bytes – mcast: 0 pkt, 0 bytes mcast
L3 out Switched: ucast: 0 pkt, 0 bytes mcast: 0 pkt, 0 bytes
14665288 packets input, 11327442856 bytes, 0 no buffer
Received 4389 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
19799453 packets output, 19478649205 bytes, 0 underruns
0 output errors, 0 collisions, 7 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
cisco6509-1#
[/quote]

发表评论

电子邮件地址不会被公开。 必填项已用*标注