Package: bridge-utils
Version: 1.5-9

I'm currently using the following setup: dedicated Server -> bridge-utils (eth0 -> br0)

Once i installed bridge utils and setup my /etc/network/interfaces as follows:

#source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback

iface eth0 inet manual

auto br0
iface br0 inet static
        address 37.187.163.XYZ
        netmask 255.255.255.0
        network 37.187.163.0
        broadcast 37.187.163.255
        gateway 37.187.163.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 1
        bridge_hello 2
        bridge_maxage 12

After restarting the system, it becomes inaccessible. This is because of the following reasons:

1.) net.ipv4.ip_forward is per default set to "0", you have to manually change it, is this correct? I've thought this setting got adjusted to "1" automatically in wheezy.

2.) The routing-table gets messed up. Although the system brings up br0 it still tries to default route via eth0 and also a route via eth0 is existant which should not be the case:

root@server:~# ip route show
default via 37.187.163.254 dev eth0
37.187.163.0/24 dev eth0  proto kernel  scope link  src 37.187.163.XYZ
37.187.163.0/24 dev br0  proto kernel  scope link  src 37.187.163.XYZ

To get this fixed you have to manually change the default route to br0 and remove the route via eth0:

ip route delete 37.187.163.0/24 dev eth0
ip route delete default via 37.187.163.254 dev eth0
ip route add default via 37.187.163.254 dev br0


3.) Also, in wheezy the eth0-interface didnt get an ip address assigned to it when set to manual mode while having a br0 interface, in jessie this is somehow different:

br0       Link encap:Ethernet  HWaddr 00:25:90:a4:6c:ba
inet addr:37.187.163.XYZ Bcast:37.187.163.255 Mask:255.255.255.0
          inet6 addr: fe80::225:90ff:fea4:6cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:81357 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1121 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3808194 (3.6 MiB)  TX bytes:111797 (109.1 KiB)

eth0      Link encap:Ethernet  HWaddr 00:25:90:a4:6c:ba
inet addr:37.187.163.XYZ Bcast:37.187.163.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:108814 errors:0 dropped:59 overruns:0 frame:0
          TX packets:1430 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18440817 (17.5 MiB)  TX bytes:142265 (138.9 KiB)
          Memory:fba20000-fba3ffff

eth0 seems to be virtual (Memory:fba20000-fba3ffff) but why does it show the address of br0 while wheezy did not?


Thanks.

I am using Debian GNU/Linux Jessie, 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24).

--
Florian Strankowski

Core Solutions
Adolph Schönfelder Straße 68
22083 Hamburg, Germany

web   https://coresec.de

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden and may be unlawful.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to