Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Figure 1 VXLAN Networking Topology with Centralized Gateway Deployment

Image RemovedImage Added

As shown in Figure 1, in the centralized gateway scenario, an enterprise has its own servers in different data centers, Server 1 belongs to VLAN 200, Server 1 belongs to VLAN 100 and Server 3 belongs to VLAN 300. Server 1, Server 2 and Server 3 are located in different network segments. Cross-subnet packet forwarding needs to be implemented through a centralized Layer 3 gateway.

...

Code Block
admin@Switch1# set vlans vlan-id 200
admin@Switch1# set vlans vlan-id 3073
admin@Switch1# set vlans vlan-id 3073 l3-interface vlan3073
admin@Switch1# set vlan-interface interface vlan3073 vif vlan3073 address 100.30.3.3 prefix-length 24
admin@Switch1# set interface gigabit-ethernet gete-1/1/1 family ethernet-switching native-vlan-id 3073
admin@Switch1# set interface gigabit-ethernet gete-1/1/5 family ethernet-switching port-mode trunk
admin@Switch1# set interface gigabit-ethernet gete-1/1/5 family ethernet-switching vlan members 200

...

Code Block
admin@Switch1# set vxlans source-interface loopback address 3.3.3.3
admin@Switch1# set vxlans vni 10030 interface gete-1/1/5 vlan 200
admin@Switch1# set vxlans vni 10030 flood vtep 1.1.1.1

...

Code Block
admin@Switch2# set vlans vlan-id 100
admin@Switch2# set vlans vlan-id 200
admin@Switch2# set vlans vlan-id 4094
admin@Switch2# set vlans vlan-id 4094 l3-interface vlan4094
admin@Switch2# set vlan-interface interface vlan4094 vif vlan4094 address 100.10.2.2 prefix-length 24
admin@Switch2# set interface gigabit-ethernet gete-1/1/25 family ethernet-switching native-vlan-id 4094
admin@Switch2# set interface gigabit-ethernet gete-1/1/3 family ethernet-switching port-mode trunk
admin@Switch2# set interface gigabit-ethernet gete-1/1/3 family ethernet-switching vlan members 100

...

Code Block
admin@Switch2# set vxlans source-interface loopback address 2.2.2.2
admin@Switch2# set vxlans vni 10010 interface gete-1/1/3 vlan 100
admin@Switch2# set vxlans vni 10010 flood vtep 1.1.1.1

...

Code Block
admin@Switch3# set vlans vlan-id 100 l3-interface vlan100
admin@Switch3# set vlans vlan-id 200 l3-interface vlan200
admin@Switch3# set vlans vlan-id 300 l3-interface vlan300
admin@Switch3# set vlans vlan-id 3073 l3-interface vlan3073
admin@Switch3# set vlans vlan-id 4094 l3-interface vlan4094
admin@Switch3# set l3-interface vlan-interface vlan100 address 192.168.10.254 prefix-length 24
admin@Switch3# set l3-interface vlan-interface interface vlan3073 vifvlan200 address 192.168.20.254 prefix-length 24
admin@Switch3# set l3-interface vlan-interface vlan300 address 192.168.30.254 prefix-length 24
admin@Switch3# set l3-interface vlan-interface vlan3073 address 100.30.3.4 prefix-length 24
admin@Switch3# set vlanl3-interface vlan-interface vlan4094 vif vlan4094 address 100.10.2.1 prefix-length 24
admin@Switch3# set interface gigabit-ethernet te-1/1/2 family ethernet-switching native-vlan-id 100300
admin@Switch3# set interface gigabit-ethernet gete-1/1/2 family ethernet-switching port-mode trunk
admin@Switch3# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 200
admin@Switch3# set interface gigabit-ethernet te-1/1/23 family ethernet-switching native-vlan-id 3073
admin@Switch3# set interface gigabit-ethernet gete-1/1/27 family ethernet-switching native-vlan-id 4094

...

Code Block
admin@Switch1# run show vxlan tunnel
Total number of tunnels: 1

VNI 10030, Encap:service-vlan-delete, Decap:service-vlan-add-replace
  src addr:3.3.3.3, dst addr:1.1.1.1, state:UP
  traffic type:all
  nexthops:100.30.3.4
  output ports:gete-1/1/1

admin@Switch2# run show vxlan tunnel
Total number of tunnels: 1

VNI 10010, Encap:service-vlan-delete, Decap:service-vlan-add-replace
  src addr:2.2.2.2, dst addr:1.1.1.1, state:UP
  traffic type:all
  nexthops:100.10.2.1
  output ports:gete-1/1/25

admin@Switch3# run show vxlan tunnel
Total number of tunnels: 2

VNI 10010, Encap:service-vlan-delete, Decap:service-vlan-add-replace
  src addr:1.1.1.1, dst addr:2.2.2.2, state:UP
  traffic type:all
  nexthops:100.10.2.2
  output ports:te-1/1/27

VNI 10030, Encap:service-vlan-delete, Decap:service-vlan-add-replace
  src addr:1.1.1.1, dst addr:3.3.3.3, state:UP
  traffic type:all
  nexthops:100.30.3.3
  output ports:te-1/1/23

...

Code Block
admin@Switch1# run show vxlan address-table
VNID           MAC address          Type        Interface          VTEP
-----------    -----------------    -------     ----------------          ---------------
10030          00:00:00:00:22:22    Dynamic     gete-1/1/5                          
10030          50:9a:4c:e6:7b:71    Dynamic                        1.1.1.1      
Entries in access port:  1
Entries in network port: 1

admin@Switch2# run show vxlan address-table
VNID           MAC address          Type        Interface          VTEP
-----------    -----------------    -------      ----------------      ---------------
10010          00:00:00:00:44:44    Dynamic     gete-1/1/3                        
10010          50:9a:4c:e6:7b:71    Dynamic                        1.1.1.1     
Entries in access port:  1
Entries in network port: 1


admin@Switch3# run show vxlan address-table
VNID           MAC address            Type         Interface            VTEP
-----------    -----------------      -------      ----------------           ---------------
10010          00:00:00:00:44:44      Dynamic                           2.2.2.2     
10030          00:00:00:00:22:22      Dynamic                           3.3.3.3       
Entries in access port:  0
Entries in network port: 2

...

Code Block
admin@Switch3# run show vxlan arp
IP-ADDRESS       MAC-ADDRESS  VNI      REMOTE-VTEP    Interface           Status        Age
---------------  -----------------     --------       ---------------           ----------    -------   ----
192.168.10.1     00:00:00:00:44:44     10010          2.2.2.2                     2             Dynamic      Dynamic  0  
192.168.20.1     00:00:00:00:22:22     10030          3.3.3.3                     3             Dynamic      Dynamic  0