Problem with missing routes due to recent DHCP -> static change

Dmitriy Kalinin

Would you be ok with specifying this additional options in the deployment
manifest per subnet?

On Mon, Jun 1, 2015 at 11:06 AM, aaron_huber <aaron.m.huber(a)>

Yes, once the /etc/network/interfaces file is converted to "static" and it
does an ifdown/ifup then the route disappears because it is no longer being
added by the DHCP client. Technically I think the best solution would be
just add any routes that were configured in DHCP to the interfaces file (at
least on Ubuntu, see

I was just poking around on the best place to find the info. The
/var/lib/dhcp/dhclient.eth0.leases file will contain an entry like the
following that specifies the route information retrieved from DHCP:

option rfc3442-classless-static-routes 32,169,254,169,254,10,65,25,10;

That would be equivalent to:

post-up route add gw


View this message in context:
Sent from the CF BOSH mailing list archive at
cf-bosh mailing list