In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Advanced! Detailed explanation and experimental steps of medium-sized network architecture DHCP
DHCP:
Dynamic host configuration protocol
Dynamic host configuration protocol
-dynamically configure IP addresses and other related information for the host
DHCP definition: dynamic host configuration protocol
DHCP function:
Automatic configuration and centralized management of IP addresses for a large number of end hosts
Save workload and reduce human configuration errors
DHCP working process:
-device Rol
DHCP server
DHCP client
-how it works:
1.DHCP client sends discover message; broadcast mode
After the 2.DHCP server receives it, it returns an offer message; broadcast mode
3.DHCP client sends request message; broadcast mode
After the 4.DHCP server receives it, it returns an ack message; broadcast mode
The configuration idea of DHCP:
1. Configure the DHCP client
two。 Configure the DHCP server
# enable DHCP function
[R2] dhcp enable # create DHCP address pool * Global address pool [R2] ip pool ABC [R2-ip-pool-ABC] network 192.168.1.0 mask 255.255.255.0 [R2-ip-pool-ABC] gateway-list 192.168.1.254 [R2-ip-pool-ABC] dns-list 8.8.8.8
# determine the DHCP selection mode
-need to be configured on the port that receives messages from the DHCP client
-Command:
[R2] interface gi0/0/0
[R2-gi0/0/0] dhcp select global-> from this interface
All DHCP requests received are directly on the local device.
Address pool (ip pool) is used to get addresses
DHCP server configuration: interface address pool
# enable DHCP function
[R2] dhcp enable
# create a DHCP address pool:
Address pool of the interfac
-use the IP address of the port that receives DHCP messages
The network segment that is located as the IP required by the DHCP client
Address space
-configuration commands:
Interface gi0/0/0
Dhcp server dns-list 8.8.8.8
# determine the DHCP selection mode
When we configure the address pool on the DHCP server is
When it belongs to the "interface type", we are receiving the DHCP
The DHCP selection mode on the port of "message" should be pressed
Configure as follows:
Interface gi0/0/0
Dhcp select interface
=
DHCP Relay:
When the DHCP client is not on the same network segment as the DHCP server
We need to configure DHCP relay
And in general, it is configured under a gateway interface of VLAN
Configuration commands:
-enable DHCP featur
Dhcp enable
-configure DHCP trunk (under gateway interface) interface vlanif 10 ip address 192.168.1.254 255.255.255.0 dhcp select relay dhcp relay server-ip 192.168.12.2
Create the switch VLAN and add the port to the appropriate VLAN
[H1] vlan batch 20 30 40 88
[H1] port-group group-member Gi 0/0/1 to gi 0/0/4
[H1-port-group] port link-type access
[H1-GigabitEthernet0/0/1] port default vlan 88
[H1-GigabitEthernet0/0/2] port default vlan 20
[H1-GigabitEthernet0/0/3] port default vlan 30
[H1-GigabitEthernet0/0/4] port default vlan 40
Dhcp server opens dhcp and creates three address pools
[R1] dhcp enable
[R1] ip pool 20
[R1-ip-pool-20] network 192.168.20.0 mask 255.255.255.0
[R1-ip-pool-20] gateway-list 192.168.20.254
[R1-ip-pool-20] dns-list 8.8.8.8
[R1] ip pool 30
[R1-ip-pool-30] network 192.168.30.0 mask 255.255.255.0
[R1-ip-pool-30] gateway-list 192.168.30.254
[R1-ip-pool-30] dns-list 8.8.8.8
[R1] ip pool 40
[R1-ip-pool-40] network 19 creates the switch VLAN and adds the port to the corresponding VLAN
[H1] vlan batch 20 30 40 88
[H1] port-group group-member Gi 0/0/1 to gi 0/0/4
[H1-port-group] port link-type access
[H1-GigabitEthernet0/0/1] port default vlan 88
[H1-GigabitEthernet0/0/2] port default vlan 20
[H1-GigabitEthernet0/0/3] port default vlan 30
[H1-GigabitEthernet0/0/4] port default vlan 40
Dhcp server opens dhcp and creates three address pools
[R1] dhcp enable
[R1] ip pool 20
[R1-ip-pool-20] network 192.168.20.0 mask 255.255.255.0
[R1-ip-pool-20] gateway-list 192.168.20.254
[R1-ip-pool-20] dns-list 8.8.8.8
[R1] ip pool 30
[R1-ip-pool-30] network 192.168.30.0 mask 255.255.255.0
[R1-ip-pool-30] gateway-list 192.168.30.254
[R1-ip-pool-30] dns-list 8.8.8.8
[R1] ip pool 40
[R1-ip-pool-40] network 192.168.40.0 mask 255.255.255.0
[R1-ip-pool-40] gateway-list 192.168.40.254
[R1-ip-pool-40] dns-list 8.8.8.8
[R1-GigabitEthernet0/0/0] ip add 192.168.88.1 24
[R1-GigabitEthernet0/0/0] dhcp select global
Add VLAN to IP and set DHCP relay mode
[H1] int vlan 20
[H1-Vlanif20] ip add 192.168.20.254 24
[H1-Vlanif20] dhcp select relay
[H1-Vlanif20] dhcp relay server-ip 192.168.88.1
[H1-Vlanif30] ip add 192.168.30.254 24
[H1-Vlanif30] dhcp select relay
[H1-Vlanif30] dhcp relay server-ip 192.168.88.1
[H1-Vlanif40] ip address 192.168.40.254 24
[H1-Vlanif40] dhcp select relay
[H1-Vlanif40] dhcp relay server-ip 192.168.88.1
[H1-Vlanif88] ip add 192.168.88.254 242.168.40.0 mask 255.255.255.0
[R1-ip-pool-40] gateway-list 192.168.40.254
[R1-ip-pool-40] dns-list 8.8.8.8
[R1-GigabitEthernet0/0/0] ip add 192.168.88.1 24
[R1-GigabitEthernet0/0/0] dhcp select global
Add VLAN to IP and set DHCP relay mode
[H1] int vlan 20
[H1-Vlanif20] ip add 192.168.20.254 24
[H1-Vlanif20] dhcp select relay
[H1-Vlanif20] dhcp relay server-ip 192.168.88.1
[H1-Vlanif30] ip add 192.168.30.254 24
[H1-Vlanif30] dhcp select relay
[H1-Vlanif30] dhcp relay server-ip 192.168.88.1
[H1-Vlanif40] ip address 192.168.40.254 24
[H1-Vlanif40] dhcp select relay
[H1-Vlanif40] dhcp relay server-ip 192.168.88.1
[H1-Vlanif88] ip add 192.168.88.254 24
Finally, the ip verification experiment is obtained by host allocation.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Sudo apt isntall yum vimyum-y install Python-pippip install-- upgrade pippip install-U os-testr
© 2024 shulou.com SLNews company. All rights reserved.