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

[doc] Update docs for dhcp_relay config cli #2598

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 IPv4 DHCP Relay helper addresses to a VLAN. Note that more than one DHCP Relay helper addresses 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 IPv6 DHCP Relay destination addresses to a VLAN. Note that more than one DHCP Relay Destination addresses can be operated on a VLAN interface.

- Usage:
```
config dhcp_relay ipv6 destination (add | del) <vlan_id> <dhcp_destination_ips>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why destination and not helper?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Contributor

Choose a reason for hiding this comment

The 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)


Expand Down