Display information about the Dynamic Host Configuration Protocol (DHCP) relay configuration for specific interface(s).
show ip dhcp-relay interface
show ip dhcp-relay interface [gigabitethernet]
show ip dhcp-relay interface [gigabitethernet] <1-4059>
show ip dhcp-relay interface [gigabitethernet] <1-4059> [vrf WORD<1-16>]
show ip dhcp-relay interface [gigabitethernet] <1-4059> [vrfids WORD<0-512>]
show ip dhcp-relay interface [gigabitethernet] <1-4059> {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
show ip dhcp-relay interface [gigabitethernet] [vrf WORD<1-16>]
show ip dhcp-relay interface [gigabitethernet] [vrf WORD<1-16>] [vrfids WORD<0-512>]
show ip dhcp-relay interface [gigabitethernet] [vrfids WORD<0-512>]
show ip dhcp-relay interface [gigabitethernet] {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
show ip dhcp-relay interface [gigabitethernet] {slot/port[/sub-port][-slot/port[/sub-port]][,...]} [vrf WORD<1-16>]
show ip dhcp-relay interface [gigabitethernet] {slot/port[/sub-port][-slot/port[/sub-port]][,...]} [vrf WORD<1-16>] [vrfids WORD<0-512>]
show ip dhcp-relay interface [gigabitethernet] {slot/port[/sub-port][-slot/port[/sub-port]][,...]} [vrfids WORD<0-512>]
show ip dhcp-relay interface [vlan]
show ip dhcp-relay interface [vlan] [<1-4059>]
show ip dhcp-relay interface [vrf WORD<1-16>]
show ip dhcp-relay interface [vrf WORD<1-16>] [vrfids WORD<0-512>]
show ip dhcp-relay interface [vrfids WORD<0-512>]
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.
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.
None
User EXEC
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. |