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

Configures the maximum number of hops before a DHCP packet is discarded (1 to 16). The default is 4. To configure this option to the default value, use the default operator with this command.

MIN SEC

Configures 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 (0 to 65535). The default is 0 seconds. To configure this option to the default value, use the default operator with this command.

MODE

Configures DHCP mode to forward DHCP messages only.

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

Configures the DHCP circuit as trusted.