Hi everyone,
I'm trying to achieve the following scenario:
I need within the same VM to interact with differents CPEs. On the VM, each network interface is putted in a specific network namespace, I didn't mention on the picture to keep it simple.
The connection is working but not as expected because I see some packet loss.
When doing a tcpdump on vmbr1 while pinging 8.8.8.8 I see the reply coming back but never see the request:
Here are the configurations:
^ no ip because the ip will be handled by the differents interfaces in the VM.
Openswitch configuration:
enx00249b150602 is my second network card connected to the trunk port in the switch.
I've setup the interface using the GUI from proxmox which gives me the following config for my network interfaces:
In the VM I see sometimes the reply back, sometimes it gets lost.
Do you have an idea about what causing this issue? Do I need to apply some ebtables magic to make it works?
I'm trying to achieve the following scenario:
Code:
+-------+
| | 192.168.1.1/24 +----------------------------------------------------+
| CPE +-------------------------+ | +------------------------------+ |
| | | | | VM | |
+-------+ | | VLAN101 +--+----+ | |
| +---------+ ens19 | 192.168.1.2 | |
+-------+ +----------------+ Trunk port | | +--+----+ | |
| | 192.168.2.1/24 | +----------------+---+ | VLAN201 | | |
| CPE +-----------------+ SWITCH |------------| vmbr1 +---------+ +--+----+ | |
| | | +----------------+---+ | +--+ ens20 | 192.168.2.2 | |
+-------+ +-------+--------+ | | +--+----+ | |
| | | | | |
+-------+ | | | VLAN301 +--+----+ | |
| | 192.168.3.1/24 | | +---------+ ens21 | 192.168.3.2 | |
| CPE +-------------------------+ | +-------+ | |
| | | |------------------------------+ |
+-------+ +----------------------------------------------------+
I need within the same VM to interact with differents CPEs. On the VM, each network interface is putted in a specific network namespace, I didn't mention on the picture to keep it simple.
The connection is working but not as expected because I see some packet loss.
When doing a tcpdump on vmbr1 while pinging 8.8.8.8 I see the reply coming back but never see the request:
Code:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vmbr1, link-type EN10MB (Ethernet), capture size 262144 bytes
11:11:26.561793 c8:cd:72:99:99:93 > 02:ce:55:77:46:01, ethertype IPv4 (0x0800), length 100: 8.8.8.8 > 192.168.2.57: ICMP echo reply, id 1106, seq 1, length 64
11:11:27.581802 c8:cd:72:99:99:93 > 02:ce:55:77:46:01, ethertype IPv4 (0x0800), length 100: 8.8.8.8 > 192.168.2.57: ICMP echo reply, id 1106, seq 2, length 64
11:11:28.606044 c8:cd:72:99:99:93 > 02:ce:55:77:46:01, ethertype IPv4 (0x0800), length 100: 8.8.8.8 > 192.168.2.57: ICMP echo reply, id 1106, seq 3, length 64
11:11:29.629867 c8:cd:72:99:99:93 > 02:ce:55:77:46:01, ethertype IPv4 (0x0800), length 100: 8.8.8.8 > 192.168.2.57: ICMP echo reply, id 1106, seq 4, length 64
11:11:30.653591 c8:cd:72:99:99:93 > 02:ce:55:77:46:01, ethertype IPv4 (0x0800), length 100: 8.8.8.8 > 192.168.2.57: ICMP echo reply, id 1106, seq 5, length 64
Here are the configurations:
Code:
7: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 00:24:9b:15:06:02 brd ff:ff:ff:ff:ff:ff
inet6 fe80::224:9bff:fe15:602/64 scope link
valid_lft forever preferred_lft forever
Openswitch configuration:
Code:
root@pve-master:~# ovs-vsctl show
c5f561b0-b3d3-409a-9531-db590aa8480c
Bridge "vmbr1"
Port "vmbr1"
Interface "vmbr1"
type: internal
Port "enx00249b150602"
Interface "enx00249b150602"
Port "tap100i1"
tag: 101
Interface "tap100i1"
ovs_version: "2.7.0"
enx00249b150602 is my second network card connected to the trunk port in the switch.
I've setup the interface using the GUI from proxmox which gives me the following config for my network interfaces:
Code:
net1: virtio=02:CE:55:77:46:01,bridge=vmbr1,queues=1,tag=101
In the VM I see sometimes the reply back, sometimes it gets lost.
Do you have an idea about what causing this issue? Do I need to apply some ebtables magic to make it works?