Skip to content

Commit

Permalink
[doc] Add docs for dhcp_relay show/clear cli (#2649)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
yaqiangz authored Feb 14, 2023
1 parent 2a6a06c commit 556d0c6
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
* [Console connect commands](#console-connect-commands)
* [Console clear commands](#console-clear-commands)
* [DHCP Relay](#dhcp-relay)
* [DHCP Relay show commands](#dhcp-relay-show-commands)
* [DHCP Relay clear commands](#dhcp-relay-clear-commands)
* [DHCP Relay config commands](#dhcp-relay-config-commands)
* [Drop Counters](#drop-counters)
* [Drop Counter show commands](#drop-counters-show-commands)
Expand Down Expand Up @@ -2407,6 +2409,97 @@ Go Back To [Beginning of the document](#) or [Beginning of this section](#consol

## DHCP Relay

### DHCP Relay show commands

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.

**show dhcp_relay ipv4 helper**

This command is used to show ipv4 dhcp_relay helper.

- Usage:
```
show dhcp_relay ipv4 helper
```

- Example:
```
admin@sonic:~$ show dhcp_relay ipv4 helper
-------- ---------
Vlan1000 192.0.0.1
192.0.0.2
-------- ---------
```

**show dhcp_relay ipv6 destination**

This command is used to show ipv6 dhcp_relay destination.

- Usage:
```
show dhcp_relay ipv6 destination
```

- Example:
```
admin@sonic:~$ show dhcp_relay ipv6 destination
--------  ------------
Vlan1000  fc02:2000::1
          fc02:2000::2
          fc02:2000::3
          fc02:2000::4
--------  ------------
```

**show dhcp_relay ipv6 counters**

This command is used to show ipv6 dhcp_relay counters.

- Usage:
```
show dhcp_relay ipv6 counters
```

- Example:
```
admin@sonic:~$ sudo sonic-clear dhcp_relay counters
     Message Type    Vlan1000
-------------------  ----------
            Unknown           0
            Solicit           0
          Advertise           0
            Request           5
            Confirm           0
              Renew           0
             Rebind           0
              Reply           0
            Release           0
            Decline           0
        Reconfigure           0
Information-Request           0
      Relay-Forward           0
        Relay-Reply           0
          Malformed           0
```

### DHCP Relay clear commands

This sub-section of commands is used to clear the DHCP Relay counters.

**sonic-clear dhcp_relay ipv6 counter**

This command is used to clear ipv6 dhcp_relay counters.

- Usage:
```
sonic-clear dhcp_relay ipv6 counter [-i <interface>]
```

- Example:
```
admin@sonic:~$ sudo sonic-clear dhcp_relay ipv6 counters
```

### DHCP Relay config commands

This sub-section of commands is used to add or remove the DHCP Relay Destination IP address(es) for a VLAN interface.
Expand Down

0 comments on commit 556d0c6

Please sign in to comment.