# Switch Configuration

## Procedure

1. Configure the management interface and IP address on both switches in the pair
2. The switch pair must be configured with `vsx-sync` enabled for high availability and redundancy 

   Sample configuration:

   ```
   ```
   vsx  
       inter-switch-link lag 256  
       role primary  
       keepalive peer 192.168.0.1 source 192.168.0.0  
       vsx-sync loop-protect-global mclag-interfaces vsx-global
   ```
   ```

   ```
   ```
   vsx  
       inter-switch-link lag 256  
       role secondary  
       keepalive peer 192.168.0.0 source 192.168.0.1  
       vsx-sync loop-protect-global mclag-interfaces vsx-global
   ```
   ```
3. Create a Multi-Chassis Link Aggregation Group (MC-LAG) between the ArubaCX switch and the upstream network, referred to as `lag1`
4. Configure the `lag1` interface on both switches in the pair Sample configuration: 

   ```
   ```
   interface lag 1 multi-chassis  
       no shutdown  
       no routing  
       vlan trunk native 1  
       vlan trunk allowed 1,175  
       lacp mode active  
       loop-protect
   ```
   ```
5. The switch ports connected to the server’s management interfaces should be set to “Trunk mode” with a “Native VLAN” Sample configuration: 

   ```
   ```
   interface 1/1/1  
   no shutdown  
   no routing  
   vlan trunk native 175  
   vlan trunk allowed 175
   ```
   ```
