Nguyễn Văn Huấn
Intern
Từ lý thuyết về giao thức dự phòng kết nối LACP ở bài viết trước. Ta sẽ thực hiện cấu hình LACP giữa 2 Switch và tìm hiểu cách hoạt động LACP khi gặp sự cố bằng cách thay đổi mode half duplex và full duplex giữa 2 thiết bị
Topology
Trạng thái của port-channel trên Switch2
Trạng thái của port-channel trên Switch3
Các port trong port-channel bao gồm Fa0/1, Fa0/2, Fa0/3
Port Fa0/1 bị loại ra khỏi port-channel
Port Fa0/1 được thương lượng lại vào port-channel
- Lab này, cấu hình LACP nhóm 3 port của Switch2 và Switch3

Topology
- Trên Switch2 cấu hình cho 3 port Fa0/1, Fa0/2, Fa0/3 vào port-channel 5 ở mode active
Switch(config)#interface port-channel 5
Switch(config-if)#exit
Switch(config)#int Fa0/1
Switch(config-if)#channel-group 5 mode active
Switch(config-if)#exit
Switch(config)#int Fa0/2
Switch(config-if)#channel-group 5 mode active
Switch(config-if)#exit
Switch(config)#int Fa0/3
Switch(config-if)#channel-group 5 mode active
- Trên Switch2, Các port Fa0/1, Fa0/2, Fa0/3 ở trạng thái stand-alone tức là 3 port này đang chờ thương lượng và ở mode active

Trạng thái của port-channel trên Switch2
- Trên Switch3, cấu hình cho 3 port Fa0/1, Fa0/2, Fa0/3 vào port-channel 5 ở mode passive
Switch#conf t
Switch(config)#interface port-channel 5
Switch(config-if)#exit
Switch(config)#int Fa0/1
Switch(config-if)#channel-group 5 mode passive
Switch(config-if)#exit
Switch(config)#int Fa0/2
Switch(config-if)#channel-group 5 mode passive
Switch(config-if)#exit
Switch(config)#int Fa0/3
Switch(config-if)#channel-group 5 mode passive
- Trên Switch3, các port Fa0/1, Fa0/2, Fa0/3 ở trạng thái in port-channel, tức là 3 port này đã thương lượng thành công với các port Switch2

Trạng thái của port-channel trên Switch3

Các port trong port-channel bao gồm Fa0/1, Fa0/2, Fa0/3
- Thử chỉnh port Fa0/1 của Switch2 từ half-duplex sang full-duplex
Switch(config)#interface FastEthernet0/1
Switch(config-if)#duplex full
- Port Fa0/1 bị loại ra khỏi port-channel do các port trong port-channel ở mode half-duplex còn Fa0/1 ở mode full-duplex

Port Fa0/1 bị loại ra khỏi port-channel
- Chỉnh lại port Fa0/1 của Switch2 thành half-duplex
Switch(config)#interface FastEthernet0/1
Switch(config-if)#duplex half
- Port Fa0/1 của Switch2 tự động được thương lượng lại để vào port-channel

Port Fa0/1 được thương lượng lại vào port-channel
Sửa lần cuối:
Bài viết liên quan
Bài viết mới