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  | 
                            
                                 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.  | 
                        
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