Skip to content

Commit 9ee6ac2

Browse files
authored
[doc] Update docs for dhcp_relay config cli (#2598)
What I did Updated docs about dhcp_relay config cli How I did it Updated docs about dhcp_relay config cli Signed-off-by: Yaqiang Zhu <[email protected]>
1 parent c3c92a4 commit 9ee6ac2

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

doc/Command-Reference.md

+68
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,74 @@ This command is used to delete a configured DHCP Relay Destination IP address or
23492349
Restarting DHCP relay service...
23502350
```
23512351
2352+
**config dhcp_relay ipv4 helper add/del**
2353+
2354+
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.
2355+
2356+
- Usage:
2357+
```
2358+
config dhcp_relay ipv4 helper (add | del) <vlan_id> <dhcp_helper_ips>
2359+
```
2360+
2361+
- Example:
2362+
```
2363+
admin@sonic:~$ sudo config dhcp_relay ipv4 helper add 1000 7.7.7.7
2364+
Added DHCP relay address [7.7.7.7] to Vlan1000
2365+
Restarting DHCP relay service...
2366+
```
2367+
2368+
```
2369+
admin@sonic:~$ sudo config dhcp_relay ipv4 helper add 1000 7.7.7.7 1.1.1.1
2370+
Added DHCP relay address [7.7.7.7, 1.1.1.1] to Vlan1000
2371+
Restarting DHCP relay service...
2372+
```
2373+
2374+
```
2375+
admin@sonic:~$ sudo config dhcp_relay ipv4 helper del 1000 7.7.7.7
2376+
Removed DHCP relay address [7.7.7.7] from Vlan1000
2377+
Restarting DHCP relay service...
2378+
```
2379+
2380+
```
2381+
admin@sonic:~$ sudo config dhcp_relay ipv4 helper del 1000 7.7.7.7 1.1.1.1
2382+
Removed DHCP relay address [7.7.7.7, 1.1.1.1] from Vlan1000
2383+
Restarting DHCP relay service...
2384+
```
2385+
2386+
**config dhcp_relay ipv6 destination add/del**
2387+
2388+
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.
2389+
2390+
- Usage:
2391+
```
2392+
config dhcp_relay ipv6 destination (add | del) <vlan_id> <dhcp_destination_ips>
2393+
```
2394+
2395+
- Example:
2396+
```
2397+
admin@sonic:~$ sudo config dhcp_relay ipv6 destination add 1000 fc02:2000::1
2398+
Added DHCP relay address [fc02:2000::1] to Vlan1000
2399+
Restarting DHCP relay service...
2400+
```
2401+
2402+
```
2403+
admin@sonic:~$ sudo config dhcp_relay ipv6 destination add 1000 fc02:2000::1 fc02:2000::2
2404+
Added DHCP relay address [fc02:2000::1, fc02:2000::2] to Vlan1000
2405+
Restarting DHCP relay service...
2406+
```
2407+
2408+
```
2409+
admin@sonic:~$ sudo config dhcp_relay ipv6 destination del 1000 fc02:2000::1
2410+
Removed DHCP relay address [fc02:2000::1] from Vlan1000
2411+
Restarting DHCP relay service...
2412+
```
2413+
2414+
```
2415+
admin@sonic:~$ sudo config dhcp_relay ipv6 destination del 1000 fc02:2000::1 fc02:2000::2
2416+
Removed DHCP relay address [fc02:2000::1, fc02:2000::2] from Vlan1000
2417+
Restarting DHCP relay service...
2418+
```
2419+
23522420
Go Back To [Beginning of the document](#) or [Beginning of this section](#dhcp-relay)
23532421
23542422

0 commit comments

Comments
 (0)