Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Construction and Application of DHCP-Relay Service (detailed explanation of experiment)

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1. Preparation for the experiment:

(1) GNS3 software:

1. One layer 2 switch

2. One layer 3 switch

3. Two PCs

4. A DHCP server

Experimental topology diagram:

(2) VMware virtual machine (vmnet1, vmnet2, vmnet8 are all host-only modes)

1. Open a CentOS7 to use as a dhcp server

2. Open two Windows as clients

2. The experiment begins:

Step 1: install the dhcp service for the server when you are able to connect to the network

Step 2: enter the layer 2 switch and create three different vlan

Step 3: enter the sw2, divide the different interfaces into their own vlan, and give f1max 0 as the trunk link interface.

Step 4: enter sw3 with vlan

Step 5: in sw3, configure trunk interface, and assign different vlan virtual interfaces with their own gateways.

Step 6: after the ip address is configured, the end is returned. Check whether the IP is correct and correspond to each other.

Enter the show ip int b command

Step 7: go back to the server, first set the network card to host-only mode, and then configure the static IP address

Step 8: restart the network service and check the ip address

Step 9: modify the dhcp file (if you don't know this part very well, you can see my previous blog)

Copy the case file to / etc/dhcp/dhcpd.conf first

Then go to the / etc/dhcp/dhcpd.conf file to modify the zone configuration file and add three different network segments

Step 10: open the dhcp service and check whether it is active

Step 11: in sw3, go to each gateway interface and configure dhcp relay

Step 12: test the experimental results, in two clients, see if you can get the ip addresses of different vlan from the dhcp server (in this case, both clients must be in host-only mode)

(1) first, win10-1 is vlan10, and the ip address of 10 network segments should be obtained.

And can communicate with 192.168.100.100.

(2) win10-2 corresponds to vlan20, and the ip address of 20 network segments should be obtained.

And it can also interoperate with 192.168.100.100.

At this time, the interworking of the whole network is realized.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report