Is Webmin smart enough to set up a second network bridge on Debian? Or do you need to manually add routes? I’ve tried for a couple of months now setting up a second network bridge to set up VMs on a different subnet. Simply adding the bridge in Webmin does not work and I’m unable to ping the router/anything.
I’ve tried variations of post-up ip route add/rule add but can’t seem to find a working solution (I actually had a working setup at one stage but after a reboot it was gone, couldn’t get back to the same settings as I’ve tried so many different ones).
Debian Jessie (8.11)
Linux version 3.16.0-6-amd64
Webmin: 1.881
This is my starting point for /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo br0 br1 eth0 eth1
iface lo inet loopback
allow-hotplug eth0 eth1
iface eth0 inet manual
iface br0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
bridge_ports eth0
dns-nameservers 192.168.1.1
gateway 192.168.1.1
iface eth1 inet manual
iface br1 inet static
address 10.0.0.100
netmask 255.255.255.0
broadcast 10.0.0.255
network 10.0.0.0
bridge_ports eth1
bridge_stp on
ip route show
default via 192.168.1.1 dev br0
10.0.0.0/24 dev br1 proto kernel scope link src 10.0.0.100
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.100
ping -c3 -Ibr0 192.168.1.1
— 192.168.1.1 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
ping -c3 -Ibr1 10.0.0.1
— 10.0.0.1 ping statistics —
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2007ms
pipe 3
ping -c3 -Ibr0 10.0.0.1
— 10.0.0.1 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.283/0.292/0.308/0.017 ms