[one-users] Gateway configured where not specified

Marco Lanzotti - ADGlamor marco.lanzotti at adglamor.com
Tue Aug 13 03:17:21 PDT 2013


On 13/08/2013 11:11, Marco Lanzotti - ADGlamor wrote:
>
> If I add an interface with public IP and default gateway configured 
> default route still via 192.168.1.1.

I think problem is in /etc/one-context.d/00-network script, in function 
get_gateway():

     if [ -z "$gateway" ]; then
         if [ "$DEV" = "eth0" ]; then
             net_prefix=$(echo $NETWORK | cut -d'.' -f1,2,3)
             gateway="${net_prefix}.1"
         fi
     fi

It set default gateway to ip x.x.x.1 if not specified. Whi?

Bye,
Marco



More information about the Users mailing list