@@ -3482,24 +3482,91 @@ This command is used to show ipv6 dhcp_relay counters.
34823482 Malformed 0
34833483 ```
34843484
3485+ **show dhcp_relay ipv4 counters**
3486+
3487+ This command is used to show ipv4 dhcp_relay counters
3488+
3489+ - Usage:
3490+ ```
3491+ show dhcp_relay ipv4 counters [--dir (TX|RX)] [--type <type>] [<vlan_interface>]
3492+ Options:
3493+ --dir [TX|RX]
3494+ --type [Unknown|Discover|Offer|Request|Decline|Ack|Nak|Release|Inform|Bootp]
3495+ ```
3496+
3497+ - Example:
3498+ ```
3499+ admin@sonic:~$ show dhcp_relay ipv4 counters Vlan1000 --type Discover
3500+ +---------------------+-----------+----+----+
3501+ | Vlan1000 (Discover) | Intf Type | TX | RX |
3502+ +---------------------+-----------+----+----+
3503+ | Vlan1000 | VLAN | 0 | 0 |
3504+ | eth0 | MGMT | 0 | 0 |
3505+ | Ethernet0 | Downlink | 0 | 0 |
3506+ | Ethernet1 | Downlink | 0 | 0 |
3507+ | Ethernet2 | Downlink | 0 | 0 |
3508+ | Ethernet3 | Downlink | 0 | 0 |
3509+ | Ethernet4 | Downlink | 0 | 0 |
3510+ | PortChannel101 | Uplink | 0 | 0 |
3511+ | PortChannel103 | Uplink | 0 | 0 |
3512+ | PortChannel105 | Uplink | 0 | 0 |
3513+ | PortChannel106 | Uplink | 0 | 0 |
3514+ +---------------------+-----------+----+----+
3515+
3516+
3517+ admin@sonic:~$ show dhcp_relay ipv4 counters Vlan1000 --dir RX
3518+ +----------------+-----------+---------+----------+-------+---------+---------+-----+-----+---------+--------+-------+
3519+ | Vlan1000 (RX) | Intf Type | Unknown | Discover | Offer | Request | Decline | Ack | Nak | Release | Inform | Bootp |
3520+ +----------------+-----------+---------+----------+-------+---------+---------+-----+-----+---------+--------+-------+
3521+ | Vlan1000 | VLAN | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3522+ | eth0 | MGMT | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3523+ | Ethernet0 | Downlink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3524+ | Ethernet1 | Downlink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3525+ | Ethernet2 | Downlink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3526+ | PortChannel101 | Uplink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3527+ | PortChannel103 | Uplink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3528+ | PortChannel105 | Uplink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3529+ | PortChannel106 | Uplink | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3530+ +----------------+-----------+---------+----------+-------+---------+---------+-----+-----+---------+--------+-------+
3531+ ```
3532+
34853533### DHCP Relay clear commands
34863534
34873535This sub-section of commands is used to clear the DHCP Relay counters.
34883536
3489- **sonic-clear dhcp_relay ipv6 counter **
3537+ **sonic-clear dhcp_relay ipv6 counters **
34903538
34913539This command is used to clear ipv6 dhcp_relay counters.
34923540
34933541- Usage:
34943542 ```
3495- sonic-clear dhcp_relay ipv6 counter [-i <interface>]
3543+ sonic-clear dhcp_relay ipv6 counters [-i <interface>]
34963544 ```
34973545
34983546- Example:
34993547 ```
35003548 admin@sonic:~$ sudo sonic-clear dhcp_relay ipv6 counters
35013549 ```
35023550
3551+ **sonic-clear dhcp_relay ipv4 counters**
3552+
3553+ This command is used to clear ipv4 dhcp_relay counters.
3554+
3555+ - Usage:
3556+ ```
3557+ sonic-clear dhcp_relay ipv4s counter [-i <interface>] [--dir (TX|RX)] [--type <type>]
3558+ Options:
3559+ -i, --interface TEXT
3560+ --dir [TX|RX]
3561+ --type [Unknown|Discover|Offer|Request|Decline|Ack|Nak|Release|Inform|Bootp]
3562+ ```
3563+
3564+ - Example:
3565+ ```
3566+ admin@sonic:~$ sudo sonic-clear dhcp_relay ipv4 counters
3567+ Clear DHCPv4 relay counter done
3568+ ```
3569+
35033570### DHCP Relay config commands
35043571
35053572This sub-section of commands is used to add or remove the DHCP Relay Destination IP address(es) for a VLAN interface.
0 commit comments