Showing DHCP relay information

Display relay information to show relay information about DHCP routes and counters.

For scaling information on DHCP Relay forwarding (IPv4 or IPv6), see Release Notes for VOSS.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Display information about DHCP relay forward paths:

    show ip dhcp-relay fwd-path [vrf WORD<1-16>] [vrfids WORD<0-512>]

  3. Display information about DHCP relay counters:

    show ip dhcp-relay counters [vrf WORD<1-16>] [vrfids WORD<0-512>]

  4. Display the options for each listed interface:

    show ip dhcp-relay interface [gigabitethernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}] [vlan <1-4059>] [vrf WORD <1–16>] [vrfids WORD <0–512>]

Example

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1#show ip dhcp-relay interface


================================================================================
                                   Port Dhcp
================================================================================
PORT VRF                     MAX MIN                ALWAYS CIRCUIT REMOTE TRUST
NUM  NAME             ENABLE HOP SEC   MODE         BCAST  ID      ID     CIRC
--------------------------------------------------------------------------------


================================================================================
                                   Vlan Dhcp
================================================================================
VLAN VRF                     MAX MIN                ALWAYS CIRCUIT REMOTE TRUST
ID   NAME             ENABLE HOP SEC   MODE         BCAST  ID      ID     CIRC
--------------------------------------------------------------------------------

All 0 out of 0 of Vlan Dhcp Entries displayed

Variable definitions

Use the data in the following table to use the show ip dhcp-relay command.

Variable

Value

vrf WORD<1-16>

The name of the VRF.

vrfids WORD<0-512>

The ID of the VRF. The value is an integer in the range of 0–512.

Use the data in the following table to use the show ip dhcp-relay interface command.

Variable

Value

{slot/port[/sub-port][-slot/port[/sub-port]][,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

[vlan <1-4059>]

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

[vrf WORD<1-16>]

Specifies the name of the VRF.

[vrfids WORD<0-512>]

Specifies the ID of the VRF. The value is an integer from 0– 512.