linux – VLAN over VxLAN tunnel drawback

0
19
linux – VLAN over VxLAN tunnel drawback


I m attempting to increase a layer 2 community (Vlans) over a layer 3 community utilizing vxlan tunnels … i arrange a lab the place i’ve two VMs the place,

  • I created a vxlan tunnel between the two most important interfaces of the VMs
  • I created 2 vlan sub-interfaces below the second interface for every machine
  • I linked every vlan sub interface with the vxlan sub interface in separate bridges for every machine
  • I assigned an ip to each bridge (10.1.100.1/24 , 10.1.100.2/24 and 10.1.100.3/24 , 10.1.100.4/24)
    ===> now when itry to ping from one bridge to a different in (identical vlan tag) it doesn t work
[root@Asguard ~]# ping 192.168.100.1 -I 192.168.100.3
PING 192.168.100.1 (192.168.100.1) from 192.168.100.3 : 56(84) bytes of knowledge.
From 192.168.100.3 icmp_seq=10 Vacation spot Host Unreachable
ping: sendmsg: No path to host
From 192.168.100.3 icmp_seq=11 Vacation spot Host Unreachable
From 192.168.100.3 icmp_seq=12 Vacation spot Host Unreachable
From 192.168.100.3 icmp_seq=14 Vacation spot Host Unreachable
From 192.168.100.3 icmp_seq=15 Vacation spot Host Unreachable
From 192.168.100.3 icmp_seq=16 Vacation spot Host Unreachable
From 192.168.100.3 icmp_seq=17 Vacation spot Host Unreachable

that is the script i run in every VM

VM1 :

#!/bin/bash

# Bridge and interface setup
ip hyperlink add br10 kind bridge
ip hyperlink add br20 kind bridge

ip hyperlink set br10 up
ip hyperlink set br20 up

# VLAN 10 on bridge br10
ip hyperlink add hyperlink enp0s9 identify enp0s9.10 kind vlan id 10
ip hyperlink set enp0s9.10 grasp br10
ip hyperlink set enp0s9.10 up

# VLAN 20 on bridge br20
ip hyperlink add hyperlink enp0s9 identify enp0s9.20 kind vlan id 20
ip hyperlink set enp0s9.20 grasp br20
ip hyperlink set enp0s9.20 up

# VXLAN on each bridges
ip hyperlink set vxlan1000 grasp br10
ip hyperlink set vxlan1000 up

#ip hyperlink add vxlan1000_2 kind vxlan id 1000 dev enp0s3 distant 10.1.25.235 dstport 4789
ip hyperlink set vxlan1000 grasp br20
ip hyperlink set vxlan1000 up

ip addr add 192.168.100.1/24 dev br10
ip addr add 192.168.100.2/24 dev br20

VM2

#!/bin/bash

# Bridge and interface setup
ip hyperlink add br11 kind bridge
ip hyperlink add br22 kind bridge

ip hyperlink set br11 up
ip hyperlink set br22 up

# VLAN 10 on bridge br10
ip hyperlink add hyperlink enp0s8 identify enp0s8.10 kind vlan id 10
ip hyperlink set enp0s8.10 grasp br11
ip hyperlink set enp0s8.10 up

# VLAN 20 on bridge br20
ip hyperlink add hyperlink enp0s8 identify enp0s8.20 kind vlan id 20
ip hyperlink set enp0s8.20 grasp br22
ip hyperlink set enp0s8.20 up

# VXLAN on each bridges
ip hyperlink add vxlan1001 kind vxlan id 1000 dev enp0s3 distant 10.1.25.31 dstport 4789
ip hyperlink set vxlan1001 grasp br11
ip hyperlink set vxlan1001 up

#ip hyperlink add vxlan1000_2 kind vxlan id 1000 dev enp0s3 distant 10.1.25.235 dstport 4789
ip hyperlink set vxlan1001 grasp br22
ip hyperlink set vxlan1001 up

ip addr add 192.168.100.3/24 dev br11
ip addr add 192.168.100.4/24 dev br22

!!!
i wish to understand how linux deal with the tagging and encapsulation to make them work collectively to make the vxlan extention

LEAVE A REPLY

Please enter your comment!
Please enter your name here