show ip dhcp-relay interface

Display information about the Dynamic Host Configuration Protocol (DHCP) relay configuration for specific interface(s).

Syntax

Command Parameters

gigabitethernet {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 <0-512>
Specifies the ID of the VRF. The value is an integer in the range of 0 to 512.

Default

None

Command Mode

User EXEC

Command Output

The show ip dhcp-relay interface command displays the following information:

Output field

Description

PORT NUM

Indicates the port number.

VRF NAME

Identifies the VRF name of the DHCP relay interface.

ENABLE

Specifies if the DHCP-relay interface from the client to the server is enabled on the switch

MAX HOP

Displays the maximum number of hops before a DHCP packet is discarded.

MIN SEC

Displays the minimum seconds count for DHCP. If the secs field in the DHCP packet header is greater than this value, the device relays or forwards the packet; otherwise, the packet is dropped.

MODE

Displays the DHCP mode.

ALWAYS BCAST

Specifies the dhcp-relay interface instance is located on bcast.

CIRCUIT ID

Show the circuit ID associated with the respective interface.

REMOTE ID

Shows the remote ID associated with the respective interface.

TRUST CIRC

Displays the DHCP trusted circuit configuration.

SMART RELAY

Displays the status of Smart Relay on the VLAN.

Example

The following example displays information for all interfaces.

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
----------------------------------------------------------------------------------------------------
1/5      GlobalRouter     false  4   0     dhcp & bootp false  false  false  false


====================================================================================================
                                   Vlan Dhcp
====================================================================================================
VLAN VRF                     MAX MIN                ALWAYS CIRCUIT REMOTE TRUST  SMART
ID   NAME             ENABLE HOP SEC   MODE         BCAST  ID      ID     CIRC   RELAY
----------------------------------------------------------------------------------------------------
2    GlobalRouter     false  4   0     dhcp & bootp false  false   false  false  disabled
5    GlobalRouter     true   4   0     dhcp & bootp false  false   false  false  disabled

All 2 out of 2 of Vlan Dhcp Entries displayed