An am working with a CentOS 7 system which has a single physical Ethernet port which connects it to a network. This network primarily is on one subnet ("management network"), but also uses a tagged VLAN (VLAN 137) which has a separate subnet for VMs.
When configured "normally" - it appears and works on the management subnet.
However, I want to create a bridge device which connects to the same physical adapter, but for the bridge to use the 137 VLAN.
I can't figure out how to do this. I can either have the NIC on the normal (no tag) LAN, and I can create a bridge device, which is either on the (main) LAN or the VLAN. But I cannot figure out how to get the host on the "main" network and the bridge on the VLAN at the same time.
It appears as though a NIC can only be assigned to a single "bridge" at a time, and that one bridge can be assigned to a single VLAN, or no VLAN.
I'm obviously missing something. Any ideas?
(P.S. Preferably doing this without Network Manager - which I assume is a must).
Without using a bridge, I made the following test on virtual server, the server has eth0 configure.
If I try to
ping google.it
If try to ping a host in the vlan subnet, you can see the vlan tag:
For me, you can have the management ip on the physical interface and the others ips on the vlan interfaces
Following config takes one NIC - creates a VLAN interface for it - then adds a bridge device to both the original NIC and the VLAN interface
ifcfg-br0
ifcfg-br0.137
ifcfg-eno1
ifcfg-eno1.137