Configuring Active-Active VLAG


Referencing the sample topology in the figure below, use the following steps to configure Active-Active VLAG:



Note: There must be a physical connection between PN-0 and PN-1 before you can configure VLAG.






Figure 9 - Active-Active VLAG over a Trunk with a Switch and Host

 

Three Netvisor One switches in a common fabric with the Spine switch as the RSTP root.


It’s important to note that ports 19-22 on PN-0 and PN-1 are ports connected to PN-2 (Spine).


Port 26 connects PN-0 to PN-1 for the cluster configuration required for VLAG.


On PN-2, use the following command:


CLI (network-admin@switch) > stp-modify bridge-priority 4096


Create the fabric and add the switches:


On PN-2, use the fabric-create command:


CLI (network-admin@switch) > fabric-create name fab-VLAG


On PN-1, join the fabric:


CLI (network-admin@switch) > fabric-join name fab-VLAG


On PN-0, join the fabric:


CLI (network-admin@switch) > fabric-join name fab-VLAG


Create VLAN connectivity from the top switch to the bottom:


On PN-2, create the VLAN with scope fabric:


CLI (network-admin@switch) > vlan-create id 25 scope fabric


On PN-0, add the VLAN and untag the port connected to the host.


CLI (network-admin@switch) > vlan-port-add vlan-id 25 untagged ports 9


On PN-1, add the VLAN and untag the port connected to the host.


CLI (network-admin@switch) > vlan-port-add vlan-id 25 untagged ports 9


On PN-0, modify the host STP port to be an edge port.


CLI (network-admin@switch) > stp-port-modify port 9 edge


On PN-1, modify the host STP port to be an edge port.


CLI (network-admin@switch) > stp-port-modify port 9 edge


Create a cluster configuration between PN-1 and PN-0. This creates the cluster across port 26.


On PN-0, enter the cluster-create command:


CLI (network-admin@switch) > cluster-create name VLAG cluster-node-1 PN-0 cluster-node-2 PN-1


You must disable ports between PN-2 and PN-0, and then create a static trunk between them:


On PN-0, modify the ports facing PN-2:


CLI (network-admin@switch) > port-config-modify port 19,20 disable


Then create the trunk on PN-0:


CLI (network-admin@switch) > trunk-create name pn0-to-pn2 port 19,20 lacp-mode off


CLI (network-admin@switch) > trunk-show format all layout vertical


switch:                tac-1

trunk-id:              253

name:                  pn0-to-pn2

ports:                 none

speed:                 disable

egress-rate-limit:     unlimited

autoneg:               off

jumbo:                 on

enable:                off

lacp-mode:             off

lacp-priority:         0

lacp-timeout:          slow

lacp-fallback:         bundle

lacp-fallback-timeout: 50

lacp-individual:       none

stp-port-cost:         2000

stp-port-priority:     128

reflect:               off

edge-switch:           no

pause:                 no

description:           

loopback:              off

receive-only:          on

unknown-ucast-level:   %

unknown-mcast-level:   %

broadcast-level:       %

lport:                 0

rem-rswitch-port-mac:  00:00:00:00:00:00

rswitch-default-vlan:  0

status:                

config:                

trunk-hw-id:           0

send-port:             4294967295

routing:               yes

host-enable:           no

 

From the above output, you can find the name of the trunk configuration, pn0-to-pn2. You need this information to create the VLAG.


Then, on PN-1, repeat the same commands to create a trunk between PN-1 and PN-2.


You must disable ports between PN-2 and PN-1, and then create a static trunk between them:


On PN-1, modify the ports facing PN-2:


CLI (network-admin@switch) > port-config-modify port 21,22 disable


CLI (network-admin@switch) > trunk-create name pn1-to-pn2 port 21,22 lacp-mode off


CLI (network-admin@switch) > trunk-show format all layout vertical


switch:               PN-0

intf:                 129

name:                 pn1-to-pn2

port:                 21-22

speed:                10g

autoneg:              off

jumbo:                off

enable:               off

lacp-mode:            off

lacp-priority:        32768

lacp-timeout:         slow

reflect:              off

edge-switch:          no

pause:                no

description:          

loopback:             off

mirror-only:          off

lport:                0

rswitch-default-vlan: 0

port-mac-address:     06:60:00:02:10:80

status:               

config:               

send-port:            0


Now create the VLAG from the bottom switches going upward and static trunk from the top down. Keep one side of the VLAG disabled while you configure this step.


On PN-0, use the VLAG-create command:


CLI (network-admin@switch) > VLAG-create name to-spine port 128 peer-port 129 peer-switch PN-1 lacp-mode off mode active-active


On PN-2, create a trunk with the name trunk-pn:


CLI (network-admin@switch) > trunk-create name trunk-pn port 19,20,21,22 lacp-mode off


Now, you can enable ports on all switches:


On PN-2, enter the port-config-modify command:


CLI (network-admin@switch) > port-config-modify port 19,20,21,22 enable


On PN-0, enter the port-config-modify command:


CLI (network-admin@switch) > port-config-modify port 19,20 enable


On PN-1, enter the port-config-modify command:


CLI (network-admin@switch) > port-config-modify port 21,22 enable


Create the server-facing VLAG:


On PN-0, enter the vlag-create command:


CLI (network-admin@switch) > vlag-create name to-spine port 9 peer-port 9 peer-switch PN-1 lacp-mode active mode active-active


Display the VLAG configuration information:


CLI (network-admin@switch) > vlag-show format all layout vertical


id:               a000024:0

name:             to-spine

cluster:          VLAG

mode:             active-active

switch:           pubdev02

port:             trunk2

peer-switch:      pubdev01

peer-port:        129

failover-move-L2: no

status:           normal

local-state:      enabled,up

lacp-mode:        off

lacp-timeout:     slow

lacp-key:         26460

lacp-system-id:   110013777969246