Skip to content

Commit 556d0c6

Browse files
authored
[doc] Add docs for dhcp_relay show/clear cli (#2649)
What I did Add docs for dhcp_realy show/clear cli How I did it Add docs for dhcp_realy show/clear cli Signed-off-by: Yaqiang Zhu <[email protected]>
1 parent 2a6a06c commit 556d0c6

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

doc/Command-Reference.md

+93
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
* [Console connect commands](#console-connect-commands)
4141
* [Console clear commands](#console-clear-commands)
4242
* [DHCP Relay](#dhcp-relay)
43+
* [DHCP Relay show commands](#dhcp-relay-show-commands)
44+
* [DHCP Relay clear commands](#dhcp-relay-clear-commands)
4345
* [DHCP Relay config commands](#dhcp-relay-config-commands)
4446
* [Drop Counters](#drop-counters)
4547
* [Drop Counter show commands](#drop-counters-show-commands)
@@ -2407,6 +2409,97 @@ Go Back To [Beginning of the document](#) or [Beginning of this section](#consol
24072409
24082410
## DHCP Relay
24092411
2412+
### DHCP Relay show commands
2413+
2414+
This sub-section of commands is used to show the DHCP Relay IP address(es) in a VLAN interface and show dhcpv6_relay counter of a VLAN.
2415+
2416+
**show dhcp_relay ipv4 helper**
2417+
2418+
This command is used to show ipv4 dhcp_relay helper.
2419+
2420+
- Usage:
2421+
```
2422+
show dhcp_relay ipv4 helper
2423+
```
2424+
2425+
- Example:
2426+
```
2427+
admin@sonic:~$ show dhcp_relay ipv4 helper
2428+
-------- ---------
2429+
Vlan1000 192.0.0.1
2430+
192.0.0.2
2431+
-------- ---------
2432+
```
2433+
2434+
**show dhcp_relay ipv6 destination**
2435+
2436+
This command is used to show ipv6 dhcp_relay destination.
2437+
2438+
- Usage:
2439+
```
2440+
show dhcp_relay ipv6 destination
2441+
```
2442+
2443+
- Example:
2444+
```
2445+
admin@sonic:~$ show dhcp_relay ipv6 destination
2446+
--------  ------------
2447+
Vlan1000  fc02:2000::1
2448+
          fc02:2000::2
2449+
          fc02:2000::3
2450+
          fc02:2000::4
2451+
--------  ------------
2452+
```
2453+
2454+
**show dhcp_relay ipv6 counters**
2455+
2456+
This command is used to show ipv6 dhcp_relay counters.
2457+
2458+
- Usage:
2459+
```
2460+
show dhcp_relay ipv6 counters
2461+
```
2462+
2463+
- Example:
2464+
```
2465+
admin@sonic:~$ sudo sonic-clear dhcp_relay counters
2466+
     Message Type    Vlan1000
2467+
-------------------  ----------
2468+
            Unknown           0
2469+
            Solicit           0
2470+
          Advertise           0
2471+
            Request           5
2472+
            Confirm           0
2473+
              Renew           0
2474+
             Rebind           0
2475+
              Reply           0
2476+
            Release           0
2477+
            Decline           0
2478+
        Reconfigure           0
2479+
Information-Request           0
2480+
      Relay-Forward           0
2481+
        Relay-Reply           0
2482+
          Malformed           0
2483+
```
2484+
2485+
### DHCP Relay clear commands
2486+
2487+
This sub-section of commands is used to clear the DHCP Relay counters.
2488+
2489+
**sonic-clear dhcp_relay ipv6 counter**
2490+
2491+
This command is used to clear ipv6 dhcp_relay counters.
2492+
2493+
- Usage:
2494+
```
2495+
sonic-clear dhcp_relay ipv6 counter [-i <interface>]
2496+
```
2497+
2498+
- Example:
2499+
```
2500+
admin@sonic:~$ sudo sonic-clear dhcp_relay ipv6 counters
2501+
```
2502+
24102503
### DHCP Relay config commands
24112504
24122505
This sub-section of commands is used to add or remove the DHCP Relay Destination IP address(es) for a VLAN interface.

0 commit comments

Comments
 (0)