[Juniper] Cấu hình Link Aggregation trên switch Juniper

Thảo luận trong 'Tổng hợp' bắt đầu bởi conghuynh, 22/9/21.

  1. conghuynh

    conghuynh Member

    Bài viết này 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.

    [​IMG]

    1. 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.

    [​IMG]
    [​IMG]

    2. Cấu hình Link Aggregation trên SW1 và SW2 :


    + 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]

    [​IMG]
    [​IMG]

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

    [​IMG]
    [​IMG]

    !!! Cám ơn các bạn đã theo dõi bài viết !!!
     

trang này