Question

VLAN on which bridge?

  • 12 April 2019
  • 6 replies
  • 8100 views

Badge
Hi together,

I have build the network scenario with 2x 10GB and 2x 1GB NICs separated like shown in the figure.
https://portal.nutanix.com/#/page/solutions/details?targetId=BP-2071-AHV-Networking:top_open_vswitch_bridge_and_bond_recommendations.html

br0: (br0-up / balance-tcp)
  • eth2, 10GB NIC
  • eth3, 10GB NIC
br1: (br1-up / balance-tcp)
  • eth0, 1GB NIC
  • eth1, 1GB NIC
Everything works so far..

Now I have created a new VLAN on bridge br1 for the VMs.
# acli net.create br1_vlan99 vswitch_name=br1 vlan=99

I can see it in Prism under Settings/Network Configuration.




Now my questions are:

1: How can I see on which bridge the vlan is mapped?
For example, I need to know which vlan goes over the 10GB bridge and which on the 1GB bridge.
The option when creating a new vlan interface contains the bridge name doesn't count!

2: Where is the config file located for this vlan interface (tap)?
If I am correct this should be an tap interface on each nutanix AHV node..

Thanks a lot for your help!

6 replies

Badge
I can neither see the vlan tap interface as described in https://next.nutanix.com/installation-configuration-23/how-do-we-see-tap-interfaces-on-underlying-ovs-bridge-and-how-to-check-packet-flow-through-the-bridge-interfaces-31466


this is the result with "ovs-vsctl show" for br1:

Badge
I found a solution for Question 1!

You can see it with the REST API v2.

The section "networks" shows the vSwitch for each VLAN.
code:
      "name": "br1_vlan99",
"vswitch_name": "br1"



and the vSwitch referres to the related bridge 🙂
Userlevel 2
Badge +5
If you change into acli on any CVM you can list your VLANs with

code:
 net.list


and show their details including bridge assignment with

code:
 net.get *
Userlevel 2
Badge +5
To avoid new VLANs ending up on the wrong bridge, I normally create VLANs in acli as well:

code:
 net.create br1_99 vswitch_name=br1 vlan=99
Badge
thanks for the reply.

Indeed, with net.get * you can see the bridge as well.
Userlevel 2
Badge +9
With the following, the identifier is the VLAN ID.

code:
acli net.get 


Also with following, you can get the list of VM's, and their MAC's tied to a Network Name.

code:
acli net.list_vm 

Reply