-
Notifications
You must be signed in to change notification settings - Fork 809
[doc] Update docs for dhcp_relay config cli #2598
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2348,6 +2348,74 @@ This command is used to delete a configured DHCP Relay Destination IP address or | |
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| **config dhcp_relay ipv4 helper add/del** | ||
|
|
||
| This command is used to add or delete an IPv4 DHCP Relay helper IP address or multiple IP addresses to a VLAN. Note that more than one DHCP Relay helper IP address can be operated on a VLAN interface. | ||
|
|
||
| - Usage: | ||
| ``` | ||
| config dhcp_relay ipv4 helper (add | del) <vlan_id> <dhcp_helper_ips> | ||
| ``` | ||
|
|
||
| - Example: | ||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv4 helper add 1000 7.7.7.7 | ||
| Added DHCP relay address [7.7.7.7] to Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv4 helper add 1000 7.7.7.7 1.1.1.1 | ||
| Added DHCP relay address [7.7.7.7, 1.1.1.1] to Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv4 helper del 1000 7.7.7.7 | ||
| Removed DHCP relay address [7.7.7.7] from Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv4 helper del 1000 7.7.7.7 1.1.1.1 | ||
| Removed DHCP relay address [7.7.7.7, 1.1.1.1] from Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| **config dhcp_relay ipv6 destination add/del** | ||
|
|
||
| This command is used to add or del an IPv6 DHCP Relay destination IP address or multiple IP addresses to a VLAN. Note that more than one DHCP Relay Destination IP address can be operated on a VLAN interface. | ||
|
|
||
| - Usage: | ||
| ``` | ||
| config dhcp_relay ipv6 destination (add | del) <vlan_id> <dhcp_destination_ips> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why destination and not helper?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to our discussion, add ipv4 helper and ipv6 destination. ipv4 helper part I added is in line2351-line2382
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, helpers are DHCPv4 only concept, DHCPv6 it use relay destination. |
||
| ``` | ||
|
|
||
| - Example: | ||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv6 destination add 1000 fc02:2000::1 | ||
| Added DHCP relay address [fc02:2000::1] to Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv6 destination add 1000 fc02:2000::1 fc02:2000::2 | ||
| Added DHCP relay address [fc02:2000::1, fc02:2000::2] to Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv6 destination del 1000 fc02:2000::1 | ||
| Removed DHCP relay address [fc02:2000::1] from Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| ``` | ||
| admin@sonic:~$ sudo config dhcp_relay ipv6 destination del 1000 fc02:2000::1 fc02:2000::2 | ||
| Removed DHCP relay address [fc02:2000::1, fc02:2000::2] from Vlan1000 | ||
| Restarting DHCP relay service... | ||
| ``` | ||
|
|
||
| Go Back To [Beginning of the document](#) or [Beginning of this section](#dhcp-relay) | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.