Santiago Garcia Mantinan schreef op 27-08-2016 12:02:
On Aug 25 2016, Dryden Personalis wrote:
iface eth0 inet dhcp
iface eth0:1 inet manual

There is a problem here, these two lines shouldn't exist at all.

iface br1 inet static
  bridge_ports eth0:1
  bridge_fd 0
  address <address>
  netmask 255.255.255.0

Because you are using at br1 an alias of the interface that DHCP is
assigning the IP to. You shouldn't assign an IP to an interface you are
using on the bridge, instead assign the IP to the bridge itself:

iface br1 inet dhcp
bridge_ports eth0

If you want more addresses you can add them later in the same br1 definition
with an up statement using ifconfig or ip addr add, for example.

The thing here is to assign the IPs to br1, not to its bridged interfaces.

So what if I want two separate "devices" with two separate IP addresses? I don't want all addresses on that bridge.

There are a few options that I can see:

- create two bridges and give each of them an IP, but not the device itself
- don't use bridges, and only use virtual interfaces: eth0:0, eth0:1.

- or a mixture: eth0:0 == ip address, eth0:1 -> br1 == ip address.

But that seems like the same thing to me.

Reply via email to