You are not logged in.

#1 2015-02-21 16:05:49

pro_noob
Member
Registered: 2015-02-21
Posts: 3

help with bridge network configuration

I have a network card, and it is setup with:

ip addr add dev enp5s0 10.0.0.61/24
ip link set dev enp5s0 up
ip route add default via 10.0.0.1

brctl addbr br0
brctl addif br0 enp5s0
ip link set up dev br0

then I use the br0 bridge with a virtual machine and I am able to connect to the internet and all is working fine from the guest host.

But the moment do "ip link set up dev br0", I am not able to use the network from the host machine.

I thought about having a tap device that was added to the bridge. I tried some stuff that I was not able to get to work, so I am a bit lost at this point.

How can I configure it so the network is usable from the host and the virtual machine guest at the same time? 

Thanks.

Offline

#2 2015-02-21 17:26:10

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: help with bridge network configuration

I don't see any use in setting up a bridge with just one interface. Shouldn't a bridge connect to interfaces with each other?
Which VM software are you using?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#3 2015-02-22 02:46:28

pro_noob
Member
Registered: 2015-02-21
Posts: 3

Re: help with bridge network configuration

qemu creates a tap device and attaches it to the bridge with:
qemu-system-i386 -net nic -net bridge,br=br0
And that works great, network inside virtual machine is ok and all.

To get network access for the host I tried to create another tap device and add it to the bridge:
ip tuntap add mode tap enta
ip addr add dev enta 10.0.0.62/24
brctl addif br0 enta
ip link set dev enta up

The enta device shows: no-carrier ... master br0 state down...

So probably something is missing here, probably me not doing the right things here...

Last edited by pro_noob (2015-02-22 02:51:13)

Offline

Board footer

Powered by FluxBB