Bug 146277
Summary: | dhclient-script fails add route to gateway before adding the default route | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Y Subhash Chandra <yschandra> | ||||
Component: | dhcp | Assignee: | Jason Vas Dias <jvdias> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 3.0.1-31 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-08-19 10:11:47 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Y Subhash Chandra
2005-01-26 17:42:06 UTC
Created attachment 110259 [details]
Patched dhclient-script: Simple fix adding host route to gw before adding default route
Not sure it is a correct fix or not it works for me.
Your DHCP server is really not meant to be supplying you with a gateway router that is not on your configured subnet . This only works in your case because you are evidently on the same physical LAN as your router and your host sees the router's ARP entry . The operator of your DHCP server and router should be configuring the router with secondary IP addresses for each separate subnet served by the DHCP server, and giving out those secondary IPs that are on the lease subnet as the 'router' DHCP option for each lease . Also we don't want to add a host route for EVERY gateway, only for those not on the interface subnet . A better fix would be as follows: IF the gateway to be configured is not on interface subnet: IF an "ARP ping" succeeds for the gateway: add host route for gateway ELSE emit helpful log message and do not configure interface ENDIF ENDIF configure default gateway We also need to remember to delete the host route when an interface is reconfigured . I'll implement these changes in the next dhcp version for FC3 (dhcp-3.0.1-32_FC3). This is now done in dhcp-3.0.1-31_FC3, which can be downloaded from: http://people.redhat.com/~jvdias/DHCP/FC3/3.0.1-31_FC3 I've tested it with a DHCP server that supplies a router not on the subnet of the DHCP supplied IP address, and it works fine. Please test and let me know how it works for you and I'll push it to fc3-updates. Thanks! I have updated to dhcp-3.0.1-31_FC3 and tested it, it works great thanks. update package is published |