Chapter 44: DHCP Commands
DHCP Relay
– 1338 –
•
To start DHCP relay service, enter the
command.
E
XAMPLE
Console(config)#interface vlan 1
Console(config-if)#ip dhcp relay server 10.1.0.99
Console(config-if)#
R
ELATED
C
OMMANDS
ip dhcp restart relay
This command enables DHCP relay for the specified VLAN. Use the
no
form
to disable it.
D
EFAULT
S
ETTING
Disabled
C
OMMAND
M
ODE
Privileged Exec
C
OMMAND
U
SAGE
This command is used to configure DHCP relay functions for host devices
attached to the switch. If DHCP relay service is enabled, and this switch
sees a DHCP request broadcast, it inserts its own IP address into the
request so the DHCP server will know the subnet where the client is
located. Then, the switch forwards the packet to the DHCP server on
another network. When the server receives the DHCP request, it allocates a
free IP address for the DHCP client from its defined scope for the DHCP
client’s subnet, and sends a DHCP response back to the DHCP relay agent
(i.e., this switch). This switch then broadcasts the DHCP response received
from the server to the client.
E
XAMPLE
In the following example, the device is reassigned the same address.
Console#ip dhcp restart relay
Console#show ip interface
Vlan 1 is up, addressing mode is Dhcp
Interface address is 10.1.0.254, mask is 255.255.255.0, Primary
MTU is 1500 bytes
Proxy ARP is disabled
Split horizon is enabled
Console#
R
ELATED
C
OMMANDS
Содержание SSE-G2252
Страница 42: ...44 General IP Routing on page 627...
Страница 174: ...Chapter 6 VLAN Configuration Configuring VLAN Mirroring 178 Figure 6 27 Showing the VLANs to Mirror...
Страница 511: ...Chapter 14 Basic Administration Protocols UDLD Configuration 518 Figure 14 100 Displaying UDLD Neighbor Information...
Страница 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Страница 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Страница 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Страница 1007: ...Chapter 33 Address Table Commands 1019...
Страница 1137: ...Chapter 38 Quality of Service Commands 1150...
Страница 1366: ...Chapter 46 IP Routing Commands Global Routing Configuration 1381 Connected 2 Total 2 FIB 0 Console...