Cấu hình Link Aggregation Control Protocol (LACP) trên switch Juniper EX Series

Cấu hình Link Aggregation Control Protocol (LACP) trên switch Juniper EX Series

Bài viết này Datech sẽ hướng dẫn các bạn cấu hình Link Aggregation trên switch Juniper sử dụng giao thức Link Aggregation Control Protocol (LACP) theo mô hình ví dụ phía dưới.

 


Tạo Vlan và gán interface cho Vlan trên SW 1 và SW 2

[edit]
root@SW1# set vlans v10 vlan-id 10
root@SW1# set vlans v20 vlan-id 20
root@SW1# set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members v10
root@SW1# set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan members v20
root@SW1#commit

[edit]
root@SW2# set vlans v10 vlan-id 10
root@SW2# set vlans v20 vlan-id 20
root@SW2# set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members v10
root@SW2# set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan members v20
root@SW2#commit

- Kiểm tra lại cấu hình.


+ Trên SW1 :

- Chỉ định số lượng aggregated links trên switch

root@SW1# set chassis aggregated-devices ethernet device-count 1

- Xóa cấu hình logical unit trên các interface sẽ nằm trong group, logical unit không được cho phép trong aggregated links.

root@SW1# delete interfaces xe-0/0/5 unit 0
root@SW1# delete interfaces xe-0/0/6 unit 0

- Thiết lập các cổng là thành viên logical aggregated ethernet port (ae0)

root@SW1# set interfaces xe-0/0/5 ether-options 802.3ad ae0
root@SW1# set interfaces xe-0/0/6 ether-options 802.3ad ae0

- Thiết lập LACP mode cho interface ae0

root@SW1# set interfaces ae0 aggregated-ether-options lacp active

- Cấu hình interface ae0 thành trunk, và khai báo các vlan được cho phép trên trunk.

root@SW1# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk
root@SW1# set interfaces ae0 unit 0 family ethernet-switching vlan members [v10 v20]
root@SW1#commit

+ Trên SW2 : tương tự ta sẽ cấu hình như trên

- Chỉ định số lượng aggregated links trên switch

root@SW2# set chassis aggregated-devices ethernet device-count 1

- Xóa cấu hình logical unit trên các interface sẽ nằm trong group, logical unit không được cho phép trong aggregated links.

root@SW2# delete interfaces xe-0/0/5 unit 0
root@SW2# delete interfaces xe-0/0/6 unit 0

- Thiết lập các cổng là thành viên logical aggregated ethernet port (ae0)

root@SW2# set interfaces xe-0/0/5 ether-options 802.3ad ae0
root@SW2# set interfaces xe-0/0/6 ether-options 802.3ad ae0

- Thiết lập LACP mode cho interface ae0

root@SW2# set interfaces ae0 aggregated-ether-options lacp active

- Cấu hình interface ae0 thành trunk, và khai báo các vlan được cho phép trên trunk.

root@SW2# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk
root@SW2# set interfaces ae0 unit 0 family ethernet-switching vlan members [v10 v20]
root@SW2#commit

- Kiểm tra lại cấu hình trên SW1 và SW2 :

[​IMG]

[​IMG]
 

Kiểm tra kết nối trên các Host 

[​IMG]

[​IMG]
 
 

Như vậy là chúng ta đã hoàn thành Cấu hình Link Aggregation Control Protocol (LACP) trên switch Juniper EX Series, chúc các bạn thực hiện thành công. Hi vọng bài viết này sẽ giúp ích cho các bạn trong công việc.

Nếu bạn có vấn đề gì thắc mắc đừng ngần ngại liên hệ với chúng tôi theo thông tin dưới đây để được hỗ trợ thêm.

Hẹn gặp lại các bạn trong các bài viết tiếp theo !

 

CÔNG TY CỔ PHẦN DỊCH VỤ CÔNG NGHỆ DATECH

• Địa chỉ: Số 23E4 KĐT Cầu Diễn, Tổ 7, Phú Diễn, Bắc Từ Liêm, Hà Nội

• Điện thoại: 02432012368

• Hotline: 098 115 6699

• Email: info@datech.vn

• Website: https://datech.vn