Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I have inserted 8 tap interfaces in a Cisco Libvirt xml file that will create a guestmachine running Ciscio iOs image:
<interface type="ethernet">
<start mode="onboot" />
<target dev="cisco-89" />
</interface>
<interface type="ethernet">
<start mode="onboot" />
<target dev="cisco-90" />
</interface>
<interface type="ethernet">
<start mode="onboot" />
<target dev="cisco-91" />
</interface>
<interface type="ethernet">
<start mode="onboot" />
<target dev="cisco-92" />
</interface>
<interface type="ethernet">
<start mode="onboot" />
<target dev="cisco-93" />
</interface>
However, what I want to find out is, when I boot up the Cisco iOs image and type show interfaces summary, it gives me a list of:
GigabyteEthernet1
GigabyteEthernet2
GigabyteEthernet3
How do I know which tap device is assigned to which GigabyteEthernet inside the guestmachine?
Do I assume that cisco-89 corresponds to GigabyteEthernet1?
Thanks in advance
Generally, the order in which the taps are created is the PCI bus order in which they get attached to the VM. If IOS (and this is something I don't know) sets up ordering according to the way it detects devices on the PCI bus, then the order will match, if not, it might end up being random on every reboot.
The only means of testing I can think of it to run traffic through a specific interface and watch the traffic stats on the hosts