-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
net: shell: iface: Add command to set gateway #68465
net: shell: iface: Add command to set gateway #68465
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be a better fit to put this in IPv4 shell space? I. e.:
net ipv4 gateway <index> <address>
19b54c3
to
d2cb038
Compare
I was also thinking about putting it behind |
Add a command `net ipv4 gateway` that allows setting IPv4 gateway for an interface from net shell. Signed-off-by: Mateusz Karlic <[email protected]>
d2cb038
to
5af8574
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, if you have the time to spare, it would be nice to do the same for the netmask.
Preferably after this change #68419 |
Sure, I can take a look into it after that mentioned PR is merged |
Add a command
net iface set_ipv4_gateway
that allows setting IPv4 gateway for an interface from net shell.