How to Setup VXLAN?

  1. Communication mode of VXLAN

  • (1) Routing mode: Communication between different network segments

 End to End communication:

The two end devices establish a direct VXLAN tunnel, through which all data traffic is transmitted. The subnets on both devices form a unified Layer 2 subnet.

 

Multiterminal forward communication:

VXLAN1.2

The objective is to establish a VXLAN tunnel between Device A and Device B, while simultaneously enabling Device C to also establish a VXLAN tunnel with Device B. This configuration facilitates the formation of a unified layer 2 subnet for the devices within subnets under both Device A and Device C, requiring potential data forwarding through multiple tunnels to reach its intended destination.

 

  • (2) Bridge mode: Communicates with a Network Segment

 End to End communication:

VXLAN1.3

The two end devices establish a direct VXLAN tunnel, through which all data traffic is transmitted. The subnets on both devices form a unified Layer 2 subnet.

 

Multiterminal forward communication:

VXLAN1.4

Establish a VXLAN tunnel between Device A and Device B, while also configuring a VXLAN tunnel between Device C and Device B. This configuration enables the subnet devices under both Device A and Device C to form a unified layer 2 subnet, with data potentially being forwarded through multiple tunnels in order to reach its intended destination.

 

  1. Settings of VXLAN

  • VTEP Name: VTEP name and virtual NIC device name; Example: vxlan0-n
  • VTEP IP: Virtual network adapter device IPaddr;
  • VNI: The unique identifier of the tunnel must be the same as the VNI of the peer device. The VNI rules must be unique;
  • Local IP: The WAN IP address of the local VTEP;
  • Remote IP: WAN IP address of the peer VTEP;
  • Port: UDP port number used by the VXLAN. The default UDP port number is 8472;
  • Remote Network: Specifies the subnet of the peer VTEP;
  • Bridge: The default mode is route mode. Select Bridge mode to enable.

 

  1. Example of VXLAN

End to End communication:

VXLAN3.1

Device A settings:

VXLAN3.2

Device B settings:

VXLAN3.3

Test Result:

Ping subdevice of device A (192.168.2.139) from subdevice of device B (192.168.3.243)

VXLAN3.4

Ping the subdevice of device B (192.168.3.243) from the subdevice of device A (192.168.2.139)

VXLAN3.5

Multiterminal forward communication:

Device B settings:

VXLAN3.7

Device A settings:

VXLAN3.8

For Device A, also need to add new Static Routes of vxlan1(VTEP Name), add the Host IP of Device C. Here we set 192.168.3.0/255.255.255.0/0.0.0.0/0.

Device C settings:

VXLAN3.10

For Device C, also need to add new Static Routes of vxlan2(VTEP Name), add the Host IP of Device A. Here we set 192.168.2.0/255.255.255.0/0.0.0.0/0.

VXLAN3.11

 

Test Result:

Ping the subdevice of device C (192.168.3.243) from the subdevice of device A (192.168.2.139)

Ping the subdevice of device A (192.168.2.139) from subdevice of device C (192.168.3.243)

 

Relevant Resources:

  1. What is  VALAN? And its role in IoT?
Print Email

Comment

Be the first one who leave the comment.

Leave a Reply

We use cookies to deliver you the best experience. By browsing our website you agree to our use of cookies.