Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to configure openvpn in bridging configuration. First step of doing this requires creating bridge interface (br0), bridging together physical ethernet interface (eth0) and logical tap0 interface. This can be done with simple script but I want to use less popular approach, configuring bridge interface entirely via /etc/network/interfaces file (on Debian linux).

So I have removed all eth0 definitions form /etc/network/interfaces and replaced if with following br0 definition:

auto br0
iface br0 inet static
pre-up  openvpn --mktun --dev tap0
address 10.0.0.1
netmask 255.255.255.0
bridge_ports eth0 tap0
post-down openvpn --rmtun --dev tap0

This works as I expected, but there is only one problem: interface eth0 is part of bridge interface br0 AND it also receive it's own IP address from my DHCP server (located on same LAN where eth0 is connected).

My questions is: how to stop eth0 interface from obtaining it's own IP address? (It should only be part of br0 bridge).

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Add the line iface eth0 manual to the /etc/network/interfaces file. This will tell network manager to ignore the eth0 file.

share|improve this answer
    
Thank you, it helped! (but line should be "iface eth0 inet manual" :-) –  user71061 Mar 12 '11 at 15:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.