DHCP configuration - relay global configuration [simple topology, detailed code]

Topology

insert image description here

configuration

1. Configure HDCP server

Configure the interface IP address

int g/0/0/0
ip add 192.168.12.1 24

Enable DHCP

dhcp enable
ip pool mypool
network 192.168.0.0 mask 24
gateway-list 192.168.0.254

The interface calls the global DHCP

int g0/0/0
dhcp select gloabl

2. Configure DHCP relay

Configure interface address

int g/0/0/0
ip add 192.168.12.2 24
int g0/0/1
ip add 192.168.0.254 24

Enable DHCP

dhcp enable
This may be an error-prone point, and the relay also needs to enable DHCP.

Configure relay server

int g0/0/1
dhcp select relay
dhcp relay server-ip 192.168.12.1

3. Configure routing

HDCP server (R1)

ip route-static 192.168.0.0 24 192.168.12.2
This may be an error-prone point, because the DHCP server and client are not on the same network segment, so routing needs to be configured.

Whether the test was successful

There is a source IP under PC1 multicast, so the configuration is successful.
insert image description here
The ping test was also successful.
insert image description here

Guess you like

Origin blog.csdn.net/qq_48330132/article/details/128326749