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

Static route with dhpc profile #153

Open
mickael-carl opened this issue Oct 1, 2017 · 1 comment
Open

Static route with dhpc profile #153

mickael-carl opened this issue Oct 1, 2017 · 1 comment
Labels

Comments

@mickael-carl
Copy link

mickael-carl commented Oct 1, 2017

I tried adding a static route to a dhcp profile, namely adding:
routes=('192.168.0.0/24 via 192.168.2.1')

However the route is never added, ip r doesn't show the route in question. When adding it to a static profile however it works. Is this intended behaviour ?

Basically I just don't want to add that route in some other script/unit. Here is the whole dhcp profile I used:

Description='A basic static ethernet connection'
Interface=enp0s31f6
Connection=ethernet
IP=static
Address=('192.168.2.3/24')
Routes=('192.168.0.0/24 via 192.168.2.1')
Gateway='192.168.2.254'
DNS=('192.168.2.254')
@joukewitteveen
Copy link
Owner

The profile you post has IP=static. I believe you are saying that it does work like this, but does not when you change that line to IP=dhcp? Could you add NETCTL_DEBUG=yes and scan the journal (or netctl status <profile> for clues about why routes are not added? I believe this should work.

Note though, that this is a bug tracker, not a support forum. While this may be a bug, it is usually expected that reporters try hard to find a cause of the issue they experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants