VXLAN Base Configuration Example

NOTE:

Enable IP routing function before using this feature, for details please refer to Configuring IP Routing.


Topology


SW1 Configure


set vlans vlan-id 10
set vlans vlan-id 2000 l3-interface vlan2000
set interface gigabit-ethernet te-1/1/1 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 vlan2000 address 100.10.1.1 prefix-length 24
set protocols static route 20.20.20.1/32 next-hop 100.10.1.2
set protocols static route 30.30.30.1/32 next-hop 100.10.1.2
set vxlans source-interface lo address 10.10.10.1
set vxlans vni 1000 flood vtep 20.20.20.1
set vxlans vni 1000 flood vtep 30.30.30.1
set vxlans vni 1000 vlan 10
set vxlans vni 1000 decapsulation mode none
set vxlans vni 1000 encapsulation mode none
set ip routing enable true

SW2 Configure

set vlans vlan-id 10
set vlans vlan-id 2000 l3-interface vlan2000
set interface gigabit-ethernet te-1/1/1 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 vlan2000 address 100.10.2.1 prefix-length 24
set protocols static route 10.10.10.1/32 next-hop 100.10.2.2
set protocols static route 30.30.30.1/32 next-hop 100.10.2.2
set vxlans source-interface lo address 20.20.20.1
set vxlans vni 1000 flood vtep 10.10.10.1
set vxlans vni 1000 vlan 10
set vxlans vni 1000 decapsulation mode none
set vxlans vni 1000 encapsulation mode none
set ip routing enable true

SW3 Configure

set vlans vlan-id 10
set vlans vlan-id 2000 l3-interface vlan2000
set interface gigabit-ethernet te-1/1/1 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 30.30.30.1 prefix-length 32
set l3-interface vlan-interface vlan2000 address 100.10.3.1 prefix-length 24
set protocols static route 10.10.10.1/32 next-hop 100.10.3.2
set protocols static route 20.20.20.1/32 next-hop 100.10.3.2 
set vxlans source-interface lo address 30.30.30.1
set vxlans vni 1000 flood vtep 10.10.10.1
set vxlans vni 1000 vlan 10
set vxlans vni 1000 decapsulation mode none
set vxlans vni 1000 encapsulation mode none
set ip routing enable true




Copyright © 2024 Pica8 Inc. All Rights Reserved.