aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/dhcp/files/dhclient-exit-hooks
AgeCommit message (Collapse)Author
2019-03-24dhcp: Add the default route optionZhixiong Chi
Add the default route option for the operation of adding route, while we set the static route and the mask setting is 0. For example: add_routes 32 169 254 169 254 10 209 67 4 0 10 209 67 1 The first route (169.254.169.254/32 via 10.209.67.4) is added successfully, but the second route (10.209.67.1, default) is not added at all. Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2014-06-24dhcp: add dhcp classless static route supportAndy Ning
dhclient needs to be configured to request classess static routes (option code 121) from dhcp server. And dhclient-script will call dhclient-exit-hooks which will parse and add the static routes received from dhcp server into the routing table. The support are built into both controller image and usb guest image, but only guest image makes use of it to add static route for instance to access metadata. Signed-off-by: Andy Ning <andy.ning@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>