You are not logged in.

#1 2015-03-08 10:50:24

Lockheed
Member
Registered: 2010-03-16
Posts: 1,542

br0 IP managed by VM - how to set its gateway?

This is br0 config:

/etc/netctl/bridge

                                                                                           
Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(internal)
IP=no
Gateway='192.168.7.1'
## Ignore (R)STP and immediately activate the bridge
#SkipForwardingDelay=yes

It receives DHCP IP from a VM, which means that after a host reboot, there is a time gap between br0 is up, and the VM is up and have its IP online (192.168.7.1).

The problem of which I think this is the cause, is that the gateway does not get set up and I have to do it manually after each host reboot with:

ip route add default via 192.168.7.1

I tried adding it to root dcron with

@reboot sleep 90 ; ip route add default via 192.168.7.1

but it doesn't work. Besides, it is an ugly workaround, anyway.

Offline

Board footer

Powered by FluxBB