Skip to contentSkip to conversation

binding physical interfaces to virtual interfaces

DISCUSSION carlopmart 2 participants 2 messages Jul 11, 2008 KVM

lore
Share & tools
lore

carlopmart

author
#0 lore raw

Hi all,

I have a linux host with three physical interfaces: br0, br1 and br2. i would
like to setup a virtual guest with three virtual interfaces binded each one to each physical host interface like on vmware or xen I can do. How can I do??

Many thanks.

Signature · 2 lines
CL Martinez
carlopmart {at} gmail {d0t} com
#1 lore raw
Quoted 4 lines · carlopmart

I have a linux host with three physical interfaces: br0, br1 and br2. i
would like to setup a virtual guest with three virtual interfaces binded each one to each physical host interface like on vmware or xen I can do. How can I do??

Create three copies of /etc/kvm/kvm-ifup, where each one assigns the tap device to a differrent bridge.

Then, just add multiple -net nic options to the kvm commandline to create the virtual nics, and multiple -net tap options, using the script=/path/to/custom/kvm-ifup parameter to assign each nic to a separate bridge.

See the kvm man page for all the details.

Signature · 2 lines
Freddie Cash
[email protected]