[Aruba CX] Cấu hình Link Aggregation Group (LAG) trên Aruba

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

  1. huunhanntt

    huunhanntt Member

    Bài viết này sẽ hướng dẫn các bạn cấu hình Link Aggregation Group (LAG) trên thiết bị Switch Aruba CX. Link aggregation cung cấp những ưu điểm sau :
    • Tăng băng thông bằng cách gộp các cổng vật lý thành một aggregate link, trong aggregate link lưu lượng truy cập được phân phối trên các cổng thành viên.
    • Cải thiện độ tin cậy của liên kết. Các cổng thành viên sẽ tự động backup lẫn nhau. Khi một cổng thành viên bị lỗi, lưu lượng truy cập được tự động chuyển sang các cổng thành viên khác.
    [​IMG]

    Trong mô hình ví dụ sau, ta sẽ cấu hình LAG giữa switch 1 và 3 sử dụng Static LAG và dùng LACP mode giữa Swicth 3 và 2.

    [​IMG]

    Các bước cấu hình :


    + Trên Switch 1 :


    - Tạo Vlan 2 và cấu hình cổng 1/1/1 thuộc Vlan 2 :


    Switch1# configure terminal
    Switch1(config)# vlan 2
    Switch1(config-vlan-2)# exit
    Switch1(config)# interface 1/1/1
    Switch1(config-if)# no routing
    Switch1(config-if)# no shutdown
    Switch1(config-if)# vlan access 2
    Switch1(config-if)# exit


    - Cấu hình interface lag 1 :


    Switch1(config)# interface lag 1
    Switch1(config-lag-if)# no routing
    Switch1(config-lag-if)# no shutdown
    Switch1(config-lag-if)# vlan trunk native 1
    Switch1(config-lag-if)# vlan trunk allowed 1,2
    Switch1(config-lag-if)# exit


    - Đưa cổng 1/1/4 và 1/1/5 vào interface lag 1 :

    Switch1(config)# interface 1/1/4,1/1/5
    Switch1(config-if-<1/1/4,1/1/5>)# lag 1
    Switch1(config-if-<1/1/4,1/1/5>)# no shutdown
    Switch1(config-if-<1/1/4,1/1/5>)# exit


    + Trên Switch 3 :

    - Tạo Vlan 2 :

    Switch3# configure terminal
    Switch3(config)# vlan 2
    Switch3(config-vlan-2)# exit


    - Cấu hình interface lag 1 :


    Switch3(config)# interface lag 1
    Switch3(config-lag-if)# no routing
    Switch3(config-lag-if)# no shutdown
    Switch3(config-lag-if)# vlan trunk native 1
    Switch3(config-lag-if)# vlan trunk allowed 1,2
    Switch3(config-lag-if)# exit


    - Đưa cổng 1/1/4 và 1/1/5 vào interface lag 1:

    Switch3(config)# int 1/1/4,1/1/5
    Switch3(config-if-<1/1/4,1/1/5>)# lag 1
    Switch3(config-if-<1/1/4,1/1/5>)# no shutdown
    Switch3(config-if-<1/1/4,1/1/5>)# exit


    - Cấu hình interface lag 2 :

    Switch3(config)# interface lag 2
    Switch3(config-lag-if)# no shutdown
    Switch3(config-lag-if)# no routing
    Switch3(config-lag-if)# lacp mode active
    Switch3(config-lag-if)# vlan trunk native 1
    Switch3(config-lag-if)# vlan trunk allowed 1,2
    Switch3(config-lag-if)# exit


    - Đưa cổng 1/1/6 và 1/1/7 vào interface lag 2:

    Switch3(config)# interface 1/1/6,1/1/7
    Switch3(config-if-<1/1/6,1/1/7>)# lag 2
    Switch3(config-if-<1/1/6,1/1/7>)# no shutdown
    Switch3(config-if-<1/1/6,1/1/7>)# exit


    + Trên Swich 2 :

    - Tạo vlan 2 và đưa cổng 1/1/3 vào Vlan 2 :

    Switch2# configure terminal
    Switch2(config)# vlan 2
    Switch2(config-vlan-2)# exit
    Switch2(config)# interface 1/1/3
    Switch2(config-if)# vlan access 2
    Switch2(config-if)# exit


    - Cấu hình interface lag 2 :


    Switch2(config)# interface lag 2
    Switch2(config-lag-if)# no routing
    Switch2(config-lag-if)# no shutdown
    Switch2(config-lag-if)# lacp mode active
    Switch2(config-lag-if)# vlan trunk native 1
    Switch2(config-lag-if)# vlan trunk allowed 1,2
    Switch2(config-lag-if)# exit


    - Đưa cổng 1/1/6 và 1/1/7 vào interface lag 2:

    Switch2(config)# interface 1/1/6,1/1/7
    Switch2(config-if-<1/1/6,1/1/7>)# lag 2
    Switch2(config-if-<1/1/6,1/1/7>)# no shutdown
    Switch2(config-if-<1/1/6,1/1/7>)# exit

    - Dùng lệnh show interface brief để xem trạng thái của các interface LAG :


    Trên SW 1 :

    [​IMG]

    Trên SW 2 :

    [​IMG]

    Trên SW 3 :

    [​IMG]

    - Cấu hình trên các Switch :

    + SW 1 :

    Current configuration:
    !
    !Version ArubaOS-CX Virtual.10.06.0001
    !export-password: default
    hostname Switch1
    user admin group administrators password ciphertext AQBapcjXbEstoK/9IiO+HmqVEYsZ5TyYOYginZvOka6sIZOoYgAAAK4ZL4jHjGuHPV+89vz9ba0XPV5g48yxf1SEBP/PQtwxehAnuCYJA/WCw5dCGSba2MyfEu3cHkuS7NRTQ7PD8n
    pEVTAJpQDpKKU5WqL0YXwfCmnCMHSiP1dMaZkZBMBqWLeI
    led locator on
    !
    !
    !
    !
    ssh server vrf mgmt
    vlan 1-2
    interface mgmt

    no shutdown
    no lldp transmit
    no lldp receive
    ip dhcp
    interface lag 1
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 1-2
    interface 1/1/1
    no shutdown
    no routing
    vlan access 2
    interface 1/1/4
    no shutdown
    lag 1
    interface 1/1/5
    no shutdown
    lag 1
    !
    !
    !
    !
    !
    https-server vrf mgmt


    + SW 2 :

    Current configuration:
    !
    !Version ArubaOS-CX Virtual.10.06.0001
    !export-password: default
    hostname Switch2
    user admin group administrators password ciphertext AQBapfg/GDUodWnCV+JECJBtViCn7pL/gKr+imoIJoVZpKOuYgAAAOfT7LkxuDUxU8bXUBwR3QerSjde+XfyTiPGCCTNiP71ITPrYyQIMLb4O5pGgYCyKp6FObeAoGrHTiXLBcB/Sw
    Bxpi1+5xIosEgUAvwpJOhf4EeFbhOm8v1jjwvUXJS9fBMZ
    led locator on
    !
    !
    !
    !
    ssh server vrf mgmt
    vlan 1-2
    interface mgmt

    no shutdown
    no lldp transmit
    no lldp receive
    ip dhcp
    interface lag 2
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 1-2
    lacp mode active
    interface 1/1/3
    no shutdown
    no routing
    vlan access 2
    interface 1/1/6
    no shutdown
    lag 2
    interface 1/1/7
    no shutdown
    lag 2
    !
    !
    !
    !
    !
    https-server vrf mgmt


    + SW 3 :

    Current configuration:
    !
    !Version ArubaOS-CX Virtual.10.06.0001
    !export-password: default
    hostname Switch3
    user admin group administrators password ciphertext AQBapS2OJ5T8WGGsW9AGcEu4rD8KAHDT4K6MsD4keyrhyp4WYgAAANW5rrLduR7rIFhf1/JC+sVAHvKwXq5y3R+gZM0wwCAriOTmWPhlmN9mqdyaK5zqYWGF8GUTa0EH3ISMShJrW5
    d17B4rT6f0ZKv4wWobotD3FJ5avGMITYnqcaJbpHuSv+Vf
    led locator on
    !
    !
    !
    !
    ssh server vrf mgmt
    vlan 1-2
    interface mgmt

    no shutdown
    no lldp transmit
    no lldp receive
    ip dhcp
    interface lag 1
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 1-2
    interface lag 2
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed 1-2
    lacp mode active
    interface 1/1/4
    no shutdown
    lag 1
    interface 1/1/5
    no shutdown
    lag 1
    interface 1/1/6
    no shutdown
    lag 2
    interface 1/1/7
    no shutdown
    lag 2
    !
    !
    !
    !
    !
    https-server vrf mgmt


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

trang này