Wednesday, June 2, 2021

Aruba CX VSX Config Example

This is an example of how to set up a VSX cluster for Aruba CX switches.  As well as setting up a lag from each one of the members of the VSX down to another switch.

Version:  10.05.0020





VSX1

// Set up the VSX first
vsx
    vsx system-mac 02:00:00:00:00:01
    inter-switch-link lag 10
    role primary
    keepalive peer 169.254.1.2 source 169.254.1.1
    vsx-sync lldp mclag-interfaces static-routes stp-global time vsx-global
    exit
// create you VLAN's
vlan 2
    vsx-sync
interface vlan 2
    vsx-sync active-gateways
    ip address 1.1.1.2/24
    active-gateway ip mac 02:02:00:00:00:00
    active-gateway ip 1.1.1.1
interface vlan 100
    ip address 169.254.1.1/30
// Configure your interfaces
interface lag 1
    no shutdown
    no routing
    vlan trunk native 1 tag
    vlan trunk allowed 2
    lacp mode active
// "lag 10" is the vsx link between the 2 switches... ALLOW ALL VLANS!!!! 
interface lag 10
    no shutdown
    no routing
    vlan trunk native 1 tag
    vlan trunk allowed all
    lacp mode active
interface 1/1/1
    no shutdown
    lag 10
interface 1/1/2
    no shutdown
    lag 10
interface 1/1/3
    no shutdown
    lag 1

VSX2

//  The if you create a vlan and want to "vsx-sync" it you MUST do it on the PRIMARY VSX switch. Then it will be synced over to the SECONDARY VSX switch.

vsx
    vsx system-mac 02:00:00:00:00:01
    inter-switch-link lag 10
    role secondary
    keepalive peer 169.254.1.1 source 169.254.1.2
    vsx-sync lldp mclag-interfaces static-routes stp-global time vsx-global
    exit
vlan 2
    vsx-sync
interface vlan 2
    vsx-sync active-gateways
    ip address 1.1.1.3/24
    active-gateway ip mac 02:02:00:00:00:00
    active-gateway ip 1.1.1.1
interface vlan 100
    ip address 169.254.1.2/30
interface lag 1
    no shutdown
    no routing
    vlan trunk native 1 tag
    vlan trunk allowed 2
    lacp mode active
interface lag 10
    no shutdown
    no routing
    vlan trunk native 1 tag
    vlan trunk allowed all
    lacp mode active
interface 1/1/1
    no shutdown
    lag 10
interface 1/1/2
    no shutdown
    lag 10
interface 1/1/3
    no shutdown
    lag 1


VSX3

vlan 2
    name test-vlan
interface mgmt
    no shutdown
    ip dhcp
interface lag 1
    no shutdown
    no routing
    vlan trunk native 1 tag
    vlan trunk allowed 2
    lacp mode active
interface 1/1/2
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed all
interface 1/1/3
    no shutdown
    lag 1
interface 1/1/4
    no shutdown
    lag 1
interface 1/1/7
    no shutdown
    no routing
    vlan trunk native 1
    vlan trunk allowed all
interface vlan 2
    ip address 1.1.1.5/24

Now that we have everything all set up we can do a little testing to make sure that everything is working right.




Now test from switch CX3 and see if you can ping up to one of the VSX interfaces.













No comments:

Post a Comment