Bug 769463
Summary: | Classless Static Route with 0.0.0.0 GW Fails | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | James Cape <jamescape777> | |
Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> | |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 16 | CC: | jpopelka | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | dhcp-4.2.3-6.P2.fc16 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1527995 (view as bug list) | Environment: | ||
Last Closed: | 2012-01-28 03:32:00 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1527995 |
Description
James Cape
2011-12-20 22:28:03 UTC
Thanks. What about ? diff --git a/dhclient-script b/dhclient-script @@ -427,7 +427,8 @@ dhconfig() { fi gateway=${static_routes[$i+1]} - if is_router_reachable ${gateway}; then + if [ "${gateway}" = "0.0.0.0" ] || + is_router_reachable ${gateway}; then metric='' for t in ${route_targets[@]}; do if [ ${t} = ${target} ]; then Looks like it will work. I've coiped/pasted the static routes section into /etc/dhcp/dhclient-up-hook (or whatever it's called), so I'll test with it later today. Latest dhcpd can be used to test this by doing this: scope ... { // static route for 224.0.0.0/4 to 0.0.0.0 option classless-static-routes 4.224 0.0.0.0; } should end up with: $ ip route ... 224.0.0.0/4 dev em2 proto static $ on the client. dhcp-4.2.3-6.P2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/dhcp-4.2.3-6.P2.fc16 Package dhcp-4.2.3-6.P2.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dhcp-4.2.3-6.P2.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0822/dhcp-4.2.3-6.P2.fc16 then log in and leave karma (feedback). dhcp-4.2.3-6.P2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |