Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP client must ignore default route option if classless static route option is set #5695

Closed
1 of 2 tasks
ignatk opened this issue Apr 3, 2017 · 1 comment · Fixed by #6885
Closed
1 of 2 tasks
Labels
bug 🐛 Programming errors, that need preferential fixing dhcp network

Comments

@ignatk
Copy link
Contributor

ignatk commented Apr 3, 2017

Submission type

  • Bug report
  • Request for enhancement (RFE)

systemd version the issue has been seen with

231 (but according to the source should apply to master)

Used distribution

Debian Jessie (with backports)

In case of bug report: Expected behaviour you didn't see

According to RFC 3442:

If the DHCP server returns both a Classless Static Routes option and
a Router option, the DHCP client MUST ignore the Router option.

In case of bug report: Unexpected behaviour you saw

When DHCP server is configured to send both SD_DHCP_OPTION_ROUTER and SD_DHCP_OPTION_CLASSLESS_STATIC_ROUTE, DHCP client in systemd-networkd sets them both as routes

In case of bug report: Steps to reproduce the problem

Configure DHCP server as following (example for dnsmasq):

dhcp-option=3,<default gateway>
dhcp-option=121,<some cidr>,<gateway>
@poettering poettering added bug 🐛 Programming errors, that need preferential fixing dhcp network labels Apr 4, 2017
ssahani pushed a commit to ssahani/systemd that referenced this issue Sep 21, 2017
…e is set.

According to RFC 3442:

If the DHCP server returns both a Classless Static Routes option and
a Router option, the DHCP client MUST ignore the Router option.

This work fixes systemd#5695.
@ssahani
Copy link
Contributor

ssahani commented Sep 22, 2017

Fix is waiting one #5695

@yuwata yuwata added the has-pr label Nov 1, 2017
ssahani pushed a commit to ssahani/systemd that referenced this issue Nov 21, 2017
…s set

According to RFC 3442:

If the DHCP server returns both a Classless Static Routes option and
a Router option, the DHCP client MUST ignore the Router option.

fixes systemd#5695.
keszybz pushed a commit that referenced this issue Nov 22, 2017
…s set (#6885)

According to RFC 3442:

If the DHCP server returns both a Classless Static Routes option and
a Router option, the DHCP client MUST ignore the Router option.

fixes #5695.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing dhcp network
Development

Successfully merging a pull request may close this issue.

4 participants