当前位置:网站首页>DHCP Relay

DHCP Relay

2022-06-22 09:33:00 A clever lamb

Purpose : solve DHCP How the server provides services for cross network segment access
requirement :s C On different networks ( Network segment )
(1) Selection meets RFC 1542 Standard router , Can be DHCP Messages are forwarded to different networks
(2) Use DHCP Relay agent (DHCP Relay Agent), Have the ability to DHCP Forward the message to DHCP The function of the server
 Insert picture description here

Premise

1、 Add two virtual networks VMnet1 and VMnet2, The type is host only mode , The subnet addresses are 192.168.10.0 and 192.168.20.0
image.png

2、 Prepare a virtual machine , The computer is named DNS1, Network adapter selection VMnet1, Turn off firewall ;
image.png

3、 Prepare a virtual machine , The computer is named (GW1), And add a network adapter , Turn off firewall ;
 Insert picture description here

4、 Prepare two computers , The computer names are Client1 and Client2,Client1 Your network adapter is VMnet1,Client2 Your network adapter is VMnet2.
 Insert picture description here
 Insert picture description here

One 、 Cross network DHCP The server (DNS1)

configure network
image.png

image.png

install DHCP
image.png
image.png
Create two scopes
Scope 1
image.png
image.png
image.png
image.png
Scope 2
image.png
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

Two 、 To configure DHCP Relay agent (GW1)

configure network
image.png
 Insert picture description here
 Insert picture description here
Add routing and remote access capabilities
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
Create a new routing protocol , choice DHCP Relay agent
 Insert picture description here
 Insert picture description here
 Insert picture description here
Connection interface , Select no connection DNS The network card of the server , Namely dns1 yes DNS The server , He is vmnet0 Network card of , So we choose vmnet1 network card
 Insert picture description here
 Insert picture description here

3、 ... and 、 Verification and testing

To configure client1 The network card of is automatically obtained
 Insert picture description here
 Insert picture description here
hold client2 The network card of is set to obtain automatically
image.png
 Insert picture description here

原网站

版权声明
本文为[A clever lamb]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220915517101.html