Summary: | init.d/net bombs when DHCP gateway is on different subnet to the IP | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Adam Nielsen <a.nielsen> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to allow a gateway in a different subnet to the IP in a DHCP response |
Description
Adam Nielsen
2006-10-20 05:02:00 UTC
Created attachment 100114 [details, diff]
Patch to allow a gateway in a different subnet to the IP in a DHCP response
This patch (hopefully) applies to /lib/rcscripts/net.modules.d/helpers.d/udhcpc-ifconfig and if a DHCP response is received with a gateway on an unknown subnet, it adds a host route telling the kernel that the gateway is available on the same interface that DHCP is being performed on.
This fixes the bug for me, and should not otherwise affect the behaviour of the script.
We let the dhcp clients use their own scripts starting with baselayout-1.12 which is now stable. Basically we punted the entire helpers.d directory from baselayout. If /sbin/dhclient-script still has your issue then please re-open this bug - hopefully with a patch for it :) |