[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bridging eth0/br0 & NetworkManager - can they coexist?



On 29/06/12 16:54, Camaleón wrote:
> Ah, then maybe you don't need a bridge but a virtual addressing layout:
> 
> http://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_One_Interface

But that fixes the IP addresses both to my local network.  The intended
NM approach was to allow the virtual network interfaces of virtual
machines the chance to pick up an IP address using DHCP whatever local
network they're on.

>>> There are some bridging samples here:
>>>
>>> http://wiki.debian.org/BridgeNetworkConnections#Configuring_bridging_in_.2BAC8-etc.2BAC8-network.2BAC8-interfaces
>>
>> Thanks. I did look at those.  And by following that configuration:
>>
>>  # Set up interfaces manually, avoiding conflicts with, e.g., network
>> manager
>>  iface eth0 inet manual
>>
>>  iface eth1 inet manual
>>
>>  # Bridge setup
>>  iface br0 inet dhcp
>>         bridge_ports eth0
>           ^^^^^^^^^^^^^^^^^
> 
> (you still need a second interface to create the bridge)

That would seem to conflict with this:

http://www.linux-kvm.org/page/Networking#public_bridge  (Debian's way)

(notwithstanding it was published some time ago and not by a
Debian-focused organisation, but still, it's documentation... :)


>> ... Network Manager cannot control eth0.  Under "Wired Networks" it
>> reports "Device not managed".
> 
> Yes, that's correct.

Hmm. Kinda doesn't fit the use case then :D

> Why do you want N-M to be in charge of your network? It does not look
> like a good approach if you are planning to use Debian as a VM host :-?

Because I have a multiplicity of networking requirements on my laptop.
I need VPN access, easy wireless configuration, and the ability to run
virtual machines with IP addresses on the local network (wherever I am).

> 
>> Besides, the comment in that configuration is "# Set up interfaces
>> manually, avoiding conflicts with, e.g., network manager" - so it's
>> clearly acknowledge here that bridging does indeed conflict with network
>> manager, and I shouldn't expect it to work using that example.
> 
> It's not that clear, at least from a practical point of view :-)

Agreed.  A conflict doesn't necessarily mean a mutex.  That was just
what I was inferring, reading between the lines and all that...

> 
> My experience tells me that I better do not mix them.

My experience is becoming more like yours in Debian .. but less like
yours in Fedora (sorry, I said the F-word!).


>> I believe harmony is possible between NM and br0 - I'm just unsure of
>> the approach in Debian.
> 
> I think you still need to add a second interface to the bridge...

Would this second interface have to physically exist?

Cheers,
Steve

-- 
Steve Dowe

Warp Universal Limited
http://warp2.me/sd


Reply to: