Display DHCPv4 Relay Information

  1. Access privileged EXEC mode on a device where DHCP relay is configured.
  2. Display statistics such as the number of client packets and the number of dropped server packets for the device.
    device# show ip dhcp relay statistics
    
    Address   Disc.   Offer  Req.   Ack   Nak   Decline     Inform
    -------   -----   -----  ----   ---   ---   -------     ------
    2.3.4.5     300     100  1211  1201     0         0         0        
    10.0.1.2    300     100  1211  1207     0         0         0        
    
    Client Packets: 2701
    Server Packets: 2932
    Client Packets Dropped: 0
    Server Packets Dropped: 0
  3. Display all DHCP relay addresses configured on the device.
    device# show ip dhcp relay address
    
    DHCP Relay Information Option: Enabled
    DHCP Relay Broadcast Flooding: Enabled
    ---------                     -------------                 --------
    Interface                     Relay Address                 VRF Name
    ---------                     -------------                 --------
    eth 0/18                       105.0.0.10                    default-vrf
    eth 0/18                       107.0.0.1                     default-vrf
    ve  200                        107.0.0.1                     default-vrf
  4. Display all DHCP relay addresses configured for a specific interface on the device.
    device# show ip dhcp relay address interface ethernet 0/18
    DHCP Relay Information Option: Enabled
    DHCP Remote ID (Type:Length:Vlan:Mac): 00:08:0000:000000f8003e
    ---------                     -------------                 --------
    Interface                     Relay Address                 VRF Name
    ---------                     -------------                 --------
    eth 0/18                       105.0.0.10                    default-vrf
    eth 0/18                       107.0.0.1                     default-vrf

    This example displays addresses configured on interface 0/18.

    device# show ip dhcp relay address interface ve 200
    DHCP Relay Information Option: Enabled
    DHCP Remote ID (Type:Length:Vlan:Mac): 00:08:0000:000000f8003d
    ---------                     -------------                 --------
    Interface                     Relay Address                 VRF Name
    ---------                     -------------                 --------
    ve 200                         107.0.0.1                     default-vrf

    This example displays addresses configured on VE 200.