Nguyễn Văn Huấn
Moderator
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 5Switch(config-if)#exitSwitch(config)#int Fa0/1Switch(config-if)#channel-group 5 mode activeSwitch(config-if)#exitSwitch(config)#int Fa0/2Switch(config-if)#channel-group 5 mode activeSwitch(config-if)#exitSwitch(config)#int Fa0/3Switch(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 tSwitch(config)#interface port-channel 5Switch(config-if)#exitSwitch(config)#int Fa0/1Switch(config-if)#channel-group 5 mode passiveSwitch(config-if)#exitSwitch(config)#int Fa0/2Switch(config-if)#channel-group 5 mode passiveSwitch(config-if)#exitSwitch(config)#int Fa0/3Switch(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/1Switch(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/1Switch(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