Catalyst設定
passive同士だとLAGにならないため注意。active同士だと可能。
EtherChannelにVlanを割り当てる場合、作成されたPort-channelの論理i/fに設定。
Switch123# configure terminal
Switch123(config)# interface range gi0/4-5
Switch123(config-if-range)# channel-protocol lacp
Switch123(config-if-range)#channel-group 1 mode {active,passive}
Switch123(config-if-range)# end
Switch123(config)# interface Port-chaannel 1
Switch123(config-if)# switchport access vlan 60
使用しているEtherChannelプロトコルなどを確認
Switch123#show etherchannel
Channel-group listing:
----------------------
Group: 1
----------
Group state = L2
Ports: 2 Maxports = 16
Port-channels: 1 Max Port-channels = 16
Protocol: LACP
Minimum Links: 0
Group: 2
----------
Group state = L2
Ports: 2 Maxports = 8
Port-channels: 1 Max Port-channels = 1
Protocol: -
Minimum Links: 0
メンバーポートやチャンネルポートのステータスを確認
Switch123#show etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi0/4(P) Gi0/5(P)
2 Po2(SD) - Gi0/6(D) Gi0/7(D)
論理リンクのステータスとメンバーポートのi/fを確認
Switch123#show interfaces port-channel 1
Port-channel1 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 34a8.4eda.1685 (bia)
MTU 1500 bytes, BW 2000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 1000Mb/s, link type is auto, media type is unknown
input flow-control is off, output flow-control is unsupported
Members in this channel: Gi0/4 Gi0/5
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output 00:00:01, 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 1000 bits/sec, 1 packets/sec
5 minute output rate 1000 bits/sec, 1 packets/sec
285 packets input, 29039 bytes, 0 no buffer
Received 259 broadcasts (258 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 259 multicast, 0 pause input
0 input packets with dribble condition detected
--More-- 200 packets output, 14868 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 ```
Switch123#show spanning-tree vlan 60
VLAN0060
Spanning tree enabled protocol ieee
Root ID Priority 32828
Address 34a8.4e6e.7800
Cost 3
Port 56 (Port-channel1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32828 (priority 32768 sys-id-ext 60)
Address 34a8.4eda.1680
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Po1 Root FWD 3 128.56 P2p
EtherChannelの設定したポートの対抗側を何も設定していないポートに冗長接続してstpを確認すると論理i/fから、物理i/fに変化してループ接続となった。
Switch123#show spanning-tree
VLAN0060
Spanning tree enabled protocol ieee
Root ID Priority 32828
Address 34a8.4e6e.7800
Cost 4
Port 4 (GigabitEthernet0/4)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32828 (priority 32768 sys-id-ext 60)
Address 34a8.4eda.1680
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/4 Root FWD 4 128.4 P2p
Gi0/5 Altn BLK 4 128.5 P2p
HP2530設定
lacpはlacpプロトコルを指定する場合に使用。使用しない場合はtrunk。
Trunk-nameはi/fの名前を指定。trk1,trk2,trk3が予め定義されている。
HP2530# configure
HP2530(config)# trunk 1-2 trk1 lacp/trunk
HP2530(config)# vlan 60
HP2530(config)# tagged trk1
LAGの一覧表示
Load Balancing Method: L3-based (default)
5 | 10/100TX | Trk2 LACP
6 | 10/100TX | Trk2 LACP
7 | 10/100TX | Trk1 Trunk
8 | 10/100TX | Trk1 Trunk
LACP情報の要約表示
HP2530(config)# show lacp
LACP
LACP Trunk Port LACP Admin Oper
Port Enabled Group Status Partner Status Key Key
----- ------- ------- ------- ------- ------- ------ ------
5 Active Trk2 Up Yes Success 0 31
6 Active Trk2 Up Yes Success 0 31
lacp統計情報
HP2530(config)# show lacp counters
LACP Port Counters.
LACP LACP Marker Marker Marker Marker
Port Trunk PDUs Tx PDUs Rx Req. Tx Req. Rx Resp. Tx Resp. Rx Error
---- ------ --------- --------- -------- -------- -------- -------- --------
5 Trk2 8 4 0 0 0 0 0
6 Trk2 8 4 0 0 0 0 0
LACPローカル情報の表示
HP2530(config)# show lacp local
LACP Local Information.
System ID: 1402ec-1de4a0
LACP Tx Rx Timer
Port Trunk Mode Aggregated Timer Expired
---- ------ -------- ----------- ------ --------
5 Trk2 Active Yes Slow No
6 Trk2 Active Yes Slow No
lacpピア情報
HP2530(config)# show lacp peer
LACP Peer Information.
System ID: 1402ec-1de4a0
Local Local Port Oper LACP Tx
Port Trunk System ID Port Priority Key Mode Timer
------ ------ -------------- ----- --------- ------- -------- -----
5 Trk2 34a84e-6e7800 261 32768 1 Active Slow
6 Trk2 34a84e-6e7800 262 32768 1 Active Slow
LACPモード固定
ポートでLACPアクティブ/パッシブの有効化
「show lacp」で確認するとTRUNKGROUPがDyn1と表記される
HP2530(config)# interface 1-2 lacp {active,passive}
HP2530# show lacp
LACP
LACP Trunk Port LACP Admin Oper
Port Enabled Group Status Partner Status Key Key
----- ------- ------- ------- ------- ------- ------ ------
5 Passive Dyn1 Up Yes Success 0 0
6 Passive Dyn1 Up Yes Success 0 0
参考