[Solved] From VM into Wireless Mesh

I have a server running KVM. Inside KVM, I have many virtual machines. The host and VMs all connect to OpenWRT LAN using a physical cable. I would like only one VM's traffic not to be part of the LAN but instead be pushed into the WIFI mesh.

Q1: Is it possible to push only some traffic into the WIFI mesh (this VM's MAC address) while using a single cable? I blindly guess it has something to do with NAT or traffic tags / rules but need some more pointers...

Q2: Can I make this special VM use the WIFI mesh's DHCP server to get an IP address?

the server has an ip address on your lan

and an ip address on your mesh ?

The server only has an IP address from the LAN. I want only a single VM to have a MESH address. If it helps I can give the signal VM both a LAN and a MESH address but prefer it have only a MESH address.

if the router can support vlans and also the server you can do like this:

ex: /etc/network/interfaces (debian, ubuntu, etc)

## Ethernet first interface no vlan
auto eth0
iface eth0 inet dhcp

# Ethernet interface vlan 80 (mesh vlan)
auto eth0.80
iface eth0.80 inet dhcp
        metric 2
        vlan-raw-device eth0
1 Like

My notes for future people

@ncompact Is there any package or software I need to install to see LuCI -> Network -> Switch like they do here?
[Solved] Proper way to create VLANs on OpenWrt (?) - Installing and Using OpenWrt / Network and Wireless Configuration - OpenWrt Forum

to my knowledge there is no switch in an x86 installation (I assumed on the server kvm)

you can try installing swconfig but i assume you won't see anything of interest.

what version of openwrt are you using?

Model	           	D-Link DIR-878 A1
Architecture 		MediaTek MT7621 ver:1 eco:3
Target Platform		ramips/mt7621
Firmware Version	OpenWrt 22.03.5 r20134-5f15225c1e / LuCI openwrt-22.03 branch git-23.093.57104-ce20b4a
Kernel Version		5.10.176

I assume then that you have something like this:
luci -> network -> interfaces -> devices -> select configure on br-lan

view:

Oh it is a bridge device. I was assuming it one of these three; mac vlan, VLAN (802.1q), VLAN (802.1ad). Is there a page that explains the differences between the these three and a bridge device with some VLAN options set? Also is there page that explains mac vlan the four mode? I especially would like to learn more about MAC LAN mode of Bridge (Support direct communication between MAC VLANs) vs bridge device

I assume you are asking how to create a vlan on the router.

the first question I ask is how was your mesh created (I assume you have a main lan and then you created another interface for the mesh) ?

as for the documentations I refer you to google + term you want to know about ...

1 Like

Thanks for all your help. I reread what you said and realized I got my self messed up. I was thinking there needs to be at least two bridges. I will experiment but I think you solved it. The two links are very help.

Thank you @ncompact !

it was a pleasure to help you these images should help you:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.