Requirements
...
- An Trident-II Series switch
- PICOS OS Release more than 2.5 version
Overview
In this example, VXLAN ECMP is configured to run on a VXLAN domain. VTEP interfaces sources are configured to the loopback address. Interfaces are configured for VLAN tagging and encapsulation. Static route protocols is configured to facilitate unicast routing.
...
Configuring VXLAN on Trident-II Series Switches
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and copy and paste the commands into the CLI.
SW1 Configure
Code Block |
---|
set vlans vlan-id 10 set vlans vlan-id 1000 l3-interface 1000 set vlans vlan-id 2000 l3-interface 2000 set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000 set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 2000 set interface gigabit-ethernet te-1/1/10 family ethernet-switching native-vlan-id 10 set l3-interface loopback lo address 10.10.10.1 prefix-length 32 set l3-interface vlan-interface 1000 address 100.10.1.1 prefix-length 24 set l3-interface vlan-interface 2000 address 100.20.1.1 prefix-length 24 set protocols static route 20.20.20.1/32 next-hop 100.10.1.2 set protocols static route 20.20.20.1/32 next-hop 100.20.1.2 set vxlans source-interface loopbacklo address 10.10.10.1 set vxlans vni 1000 vlan 10 set vxlans vni 1000 flood vtep 20.20.20.1 |
...
Code Block |
---|
set vlans vlan-id 10 set vlans vlan-id 1000 l3-interface 1000 set vlans vlan-id 2000 l3-interface 2000 set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000 set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 2000 set interface gigabit-ethernet te-1/1/10 family ethernet-switching native-vlan-id 10 set l3-interface loopback lo address 20.20.20.1 prefix-length 32 set l3-interface vlan-interface 1000 address 100.10.2.1 prefix-length 24 set l3-interface vlan-interface 2000 address 100.20.2.1 prefix-length 24 set protocols static route 10.10.10.1/32 next-hop 100.10.2.2 set protocols static route 10.10.10.1/32 next-hop 100.20.2.2 set vxlans source-interface loopbacklo address 20.20.20.1 set vxlans vni 1000 vlan 10 set vxlans vni 1000 flood vtep 10.10.10.1 |
...
The following example shows how to set up a basic VXLAN ECMP configuration with VXLAN domain. To configure VXLAN ECMP on Trident-II Series switches, follow these steps:
Configure VXLAN Step-by-Step for SW1
Configure the VLAN ID to 10 for vxlan domain.
Code Block set vlans vlan-id 10
Configure the VLAN ID to 1000 and 2000 for ip routing.
Code Block set vlans vlan-id 1000 l3-interface 1000 set vlans vlan-id 2000 l3-interface 2000
Configure the te-1/1/1 interface VLAN ID to 1000.
Code Block set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000
Configure the te-1/1/2 interface VLAN ID to 2000.
Code Block set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 2000
Configure the te-1/1/10 interface VLAN ID to 10
Code Block set interface gigabit-ethernet te-1/1/10 family ethernet-switching native-vlan-id 10
Configure ip address for the loopback interface.
Code Block set l3-interface loopback lo address 10.10.10.1 prefix-length 32
Configure ip address and MTU for the vlan-interface 1000.
Code Block set l3-interface vlan-interface 1000 address 100.10.1.1 prefix-length 24
Configure ip address and MTU for the vlan-interface 2000.
Code Block set l3-interface vlan-interface 2000 address 100.20.1.1 prefix-length 24
Configure static route for the VXLAN ECMP.
Code Block set protocols static route 20.20.20.1/32 next-hop 100.10.1.2 set protocols static route 20.20.20.1/32 next-hop 100.20.1.2
Configure VTEP interface sources ip address.
Code Block set vxlans source-interface loopbacklo address 10.10.10.1
Configure a VLAN ID 10 to a VNI 1000
Code Block set vxlans vni 1000 vlan 10
Configure flood vtep ip address for a VNI
Code Block set vxlans vni 1000 flood vtep 20.20.20.1
...
Configure the VLAN ID to 10 for vxlan domain.
Code Block set vlans vlan-id 10
Configure the VLAN ID to 1000 and 2000 for ip routing.
Code Block set vlans vlan-id 1000 l3-interface 1000 set vlans vlan-id 2000 l3-interface 2000
Configure the te-1/1/1 interface VLAN ID to 1000.
Code Block set interface gigabit-ethernet te-1/1/1 family ethernet-switching native-vlan-id 1000
Configure the te-1/1/2 interface VLAN ID to 2000.
Code Block set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 2000
Configure the te-1/1/10 interface VLAN ID to 10
Code Block set interface gigabit-ethernet te-1/1/10 family ethernet-switching native-vlan-id 10
Configure ip address for the loopback interface.
Code Block set l3-interface loopback lo address 20.20.20.1 prefix-length 32
Configure ip address and MTU for the vlan-interface 1000.
Code Block set l3-interface vlan-interface 1000 address 100.10.2.1 prefix-length 24
Configure ip address and MTU for the vlan-interface 2000.
Code Block set l3-interface vlan-interface 2000 address 100.20.2.1 prefix-length 24
Configure static route for the VXLAN ECMP.
Code Block set protocols static route 10.10.10.1/32 next-hop 100.10.2.2 set protocols static route 10.10.10.1/32 next-hop 100.20.2.2
Configure VTEP interface sources ip address.
Code Block set vxlans source-interface loopbacklo address 20.20.20.1
Configure a VLAN ID 10 to a VNI 1000
Code Block set vxlans vni 1000 vlan 10
Configure flood vtep ip address for a VNI
Code Block set vxlans vni 1000 flood vtep 10.10.10.1
...