Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #222510

Re: Passing multiple ethernet adapters to QEMU guest

From Andrew Wood <andrewjameswood@ymail.com>
Newsgroups linux.debian.user
Subject Re: Passing multiple ethernet adapters to QEMU guest
Date 2020-05-14 22:10 +0200
Message-ID <A6sl3-GL-7@gated-at.bofh.it> (permalink)
References <A6mSl-5nd-5@gated-at.bofh.it> <A6mSl-5nd-3@gated-at.bofh.it> <A6nv4-5zG-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 14/05/2020 15:50, Reco wrote:
> 	
> Qemu uses /etc/qemu-ifup by default which deliberately puts tap
> interface to the bridge which corresponds to the default route.
>
>
Im sorry I dont understand where the default route comes into it as none 
of the interfaces, virtual, bridge or the corresponding real hardware 
interface have any layer 3 addressing assigned, they are purely working 
at L2.

Ive got many VMs working with 1 virtual interface. Some on br1 some on 
br2 some on br3, its only when I try to put a VM on more than one I get 
a problem

The bridges are setup like this

#br1 on enp8s0f1 which has no IP address assigned
/sbin/brctl addbr br1
/sbin/brctl addif br1 enp8s0f1

/usr/bin/tunctl -u root -t br1p0
/sbin/brctl addif br1 br1p0

/usr/bin/tunctl -u root -t br1p1
/sbin/brctl addif br1 br1p1
.
.
.

/sbin/ip link set enp8s0f1 up
/sbin/ip link set br1 up

#br2 on ens7f0 which has no IP address assigned
/sbin/brctl addbr br2
/sbin/brctl addif br2 ens7f0

/usr/bin/tunctl -u root -t br2p0
/sbin/brctl addif br2 br2p0

/usr/bin/tunctl -u root -t br2p1
/sbin/brctl addif br2 br2p1
.
.
.

/sbin/ip link set ens7f0 up
/sbin/ip link set br2 up

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Passing multiple ethernet adapters to QEMU guest Andrew Wood <andrewjameswood@ymail.com> - 2020-05-14 16:20 +0200
  Re: Passing multiple ethernet adapters to QEMU guest Reco <recoverym4n@enotuniq.net> - 2020-05-14 17:00 +0200
    Re: Passing multiple ethernet adapters to QEMU guest Andrew Wood <andrewjameswood@ymail.com> - 2020-05-14 22:10 +0200
      Re: Passing multiple ethernet adapters to QEMU guest Reco <recoverym4n@enotuniq.net> - 2020-05-14 22:30 +0200

csiph-web