We want to restrict the access to the WebGui to our Admin Net. Therefore we created a bridge (vmbr1) for the admin net and added a route manually:
This works perfect (until the next reboot of course). We then added the command into etc/network/interfaces and it doesn't add the route at startup. I totally wonder why?
ip route add 10.0.0.0/8 via 10.220.10.2
This works perfect (until the next reboot of course). We then added the command into etc/network/interfaces and it doesn't add the route at startup. I totally wonder why?
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet dhcp
auto vmbr0
iface vmbr0 inet manual
bridge-ports eno1.4022
bridge-stp off
bridge-fd 0
#VM Internal
auto vmbr1
iface vmbr1 inet static
address 10.220.10.2
netmask 255.255.0.0
gateway 10.220.0.1
bridge-ports eno1.4020
bridge-stp off
bridge-fd 0
up ip route add 10.0.0.0/8 via 10.220.0.1
#Admin
Last edited: