Support dhcp static routes

Bug #1190372 reported by Vish Ishaya
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Cirros ignores classless static routes passed by dhcp option 121:

It would be nice if it would add the routes to its routing table entries.

I'm not sure whether it supports option 33:

but 121 is far more convienient.

Related branches

description: updated
Scott Moser (smoser)
Changed in cirros:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Harm Weites (harmw) wrote :

This patch adds additional routes requested with -O staticroutes (option 121). I'm not sure on how udhcpc should idealy request option 121 per default, so I configured it to ask explicitly.

Tested on Openstack (using dnsmasq) configured with 2 host_routes in the subnet.

Revision history for this message
Harm Weites (harmw) wrote :

Proper patch.

Revision history for this message
Ilkka Tengvall (ilkka-tengvall) wrote :

This patch is needed while using openstack with provider networks and external gateway devices. We are having such setup, and were affected by the bug. Without the patch the cirros guests will not get gateway out of the openstack, nor will it get metadata.

Here is a blog about how to setup the openstack for it:

Without this correction cirros image is rather useless in openstack with external routers.

Revision history for this message
Scott Moser (smoser) wrote :

fix-committed in revision 284.

Changed in cirros:
status: Confirmed → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

fix released in 0.3.2

Changed in cirros:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.