0

My etc/network/interfaces file originally only included info regarding lo:

# The loopback network interface
auto lo
iface lo inet loopback

ifconfig shows me that eth0 is getting an IP from DHCP.

Here's what I want to do instead:

  • create a bridge group
  • take eth0 and eth1 and add them to the bridge group
  • eth0 and eth1 do not get IPs
  • assign ip address 192.168.1.253 to the bridge
  • add a default route

So the first thing I thought I should do is edit etc/network/interfaces to this:

# The loopback network interface
auto lo 
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet manual
pre-up   ifconfig $IFACE up
pre-down ifconfig $IFACE down

allow-hotplug eth1
iface eth1 inet manual
pre-up   ifconfig $IFACE up
pre-down ifconfig $IFACE down

auto br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.1.253
broadcast 192.169.1.255
netmask 255.255.255.0

If I reboot, eth0 grabs an IP from DHCP and the bridge is nowhere to be seen. However cat /etc/network/interfaces shows my config is still there

How can I check to see if something is overriding this config? (there's no interfaces.d directory)

Or is something wrong with my code as shown above?

I'm running WANem 3.0 on Knoppix

E C
  • 99

0 Answers0