[Aruba] Cấu hình Virtual Router Redundancy Protocol (VRRP) trên Switch Aruba

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

  1. nhatquangit

    nhatquangit Member

    Bài viết này sẽ hướng dẫn các bạn cấu hình Virtual Router Redundancy Protocol (VRRP) trên thiết bị Switch Aruba. VRRP là một giao thức dự phòng, trong mạng các thiết bị biên, thường được cấu hình để gởi các gói tin đến default gateway. Nếu như gateway này gặp sự cố các thiết bị sử dụng nó sẽ bị cô lập.

    VRRP được sử dụng để tránh trường hợp trên, bằng cách gán IP được sử dụng làm default gateway cho “virtual router”, trong đó :

    • Owner chuyển tiếp lưu lượng cho VR, là Master router cho VR đó. Địa chỉ IP vật lý của Owner giống như địa chỉ Virtual IP của VR.
    • Backup là dự phòng cho Owner và sẽ thay thế Owner làm Master router khi Owner không sẵn sàng.
    Trong mô hình ví dụ, Switch 1 mà Master cho Vlan 10, Vlan 10 thuộc instance 1, ta sẽ cấu hình Switch 1 là root cho instance 1, tượng tự Switch 2 mà Master cho Vlan 20, Vlan 20 thuộc instance 2, ta sẽ cấu hình Switch 2 là root cho instance 2.

    [​IMG]

    + Cấu hình trên Switch 1 :

    hostname "Switch1"
    ip routing
    vlan 1

    name "DEFAULT_VLAN"
    untagged 1-24
    ip address dhcp-bootp
    exit
    vlan 10
    name "VLAN10"
    ip address 10.1.1.1 255.255.255.0
    tagged 1-2,23
    exit
    vlan 20
    name "VLAN20"
    ip address 20.1.1.2 255.255.255.0
    tagged 1-2,23
    exit
    router vrrp
    enable
    exit
    snmp-server community "public" unrestricted
    spanning-tree
    spanning-tree config-name "Region1"
    spanning-tree instance 1 vlan 10
    spanning-tree instance 1 priority 1
    spanning-tree instance 2 vlan 20
    spanning-tree instance 2 priority 2
    vlan 10

    vrrp vrid 10
    owner
    virtual-ip-address 10.1.1.1 255.255.255.0
    priority 255
    enable
    exit
    exit
    vlan 20
    vrrp vrid 20
    backup
    virtual-ip-address 20.1.1.1 255.255.255.0
    enable
    exit
    exit

    + Cấu hình trên Switch 2 :

    hostname "Switch2"
    ip routing
    vlan 1

    name "DEFAULT_VLAN"
    untagged 1-24
    ip address dhcp-bootp
    exit
    vlan 10
    name "VLAN10"
    ip address 10.1.1.2 255.255.255.0
    tagged 1-2,23
    exit
    vlan 20
    name "VLAN20"
    ip address 20.1.1.1 255.255.255.0
    tagged 1-2,23
    exit
    router vrrp
    enable
    exit
    snmp-server community "public" unrestricted
    spanning-tree
    spanning-tree config-name "Region1"
    spanning-tree instance 1 vlan 10
    spanning-tree instance 1 priority 2
    spanning-tree instance 2 vlan 20
    spanning-tree instance 2 priority 1
    vlan 10

    vrrp vrid 10
    backup
    virtual-ip-address 10.1.1.1 255.255.255.0
    enable
    exit
    exit
    vlan 20
    vrrp vrid 20
    owner
    virtual-ip-address 20.1.1.1 255.255.255.0
    priority 255
    enable
    exit
    exit

    + Cấu hình trên Switch 3 :

    hostname "Switch3"
    vlan 1

    name "DEFAULT_VLAN"
    untagged 1-24
    ip address dhcp-bootp
    exit
    vlan 10
    name "VLAN10"
    tagged 2,23
    no ip address
    exit
    vlan 20
    name "VLAN20"
    tagged 2,23
    no ip address
    exit
    snmp-server community "public" unrestricted
    spanning-tree
    spanning-tree config-name "Region1"
    spanning-tree instance 1 vlan 10
    spanning-tree instance 2 vlan 20


    + Cấu hình trên Switch 4 :

    hostname "Switch4"
    vlan 1

    name "DEFAULT_VLAN"
    untagged 1-48
    ip address dhcp-bootp
    exit
    vlan 10
    name "VLAN10"
    tagged 2,23
    no ip address
    exit
    vlan 20
    name "VLAN20"
    tagged 2,23
    no ip address
    exit
    snmp-server community "public" unrestricted
    spanning-tree
    spanning-tree config-name "Region1"
    spanning-tree instance 1 vlan 10
    spanning-tree instance 2 vlan 20


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

trang này