Tworzenie LACP na switchu CISCO

W wpisie pokażę jak stworzyć LACP na switchu CISCO

Na początek sprawdziłem czy porty są UP i czy są poprawnie podłączone – w moim przypadku był to port 8 i 10.

switch_CISCO#show interfaces GigabitEthernet1/0/10
GigabitEthernet1/0/10 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is abcd.abcd.abcd (bia abcd.abcd.abcd)
MTU 1500 bytes, BW 1000000 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, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 130
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 53000 bits/sec, 48 packets/sec
0 packets input, 57372 bytes, 0 no buffer
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 323 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns

switch_CISCO#show interfaces GigabitEthernet1/0/8
GigabitEthernet1/0/8 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is abcd.abcd.abcd (bia abcd.abcd.abcd)
MTU 1500 bytes, BW 1000000 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, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, 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 4000 bits/sec, 1 packets/sec
5 minute output rate 65000 bits/sec, 48 packets/sec
202516 packets input, 27538377 bytes, 0 no buffer
Received 1851 broadcasts (0 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
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 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

Więc skonfigurowałem sobie na nim LACP na porcie 8 i porcie 10:

switch_CISCO(config)#interface GigabitEthernet1/0/8
switch_CISCO(config-if)#channel-group 1 mode active
switch_CISCO(config-if)#exit
switch_CISCO(config)#interface GigabitEthernet1/0/8
switch_CISCO(config-if)#channel-group 1 mode active
switch_CISCO(config-if)#exit
switch_CISCO(config)#exit

I teraz poleceniem etherchannel summary sprawdziłem, czy jest wszystko okej:

switch_CISCO#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: 6
Number of aggregators: 6

Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi1/0/8(P) Gi1/0/10(w)

Zostało mi tylko na serwerze ustawić LACP poprawnie i można było cieszyć się poprawnie skonfigurowanym LACP.