In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Huawei dhcp and Relay
Configuration:
Train of thought:
1. Configure the DHCP client
Make sure that each PC is the way to automatically obtain IP addresses
2. Configure SW1
# create VLAN 10,20
# put the relevant ports into the corresponding VLAN
# configure the interconnection link between switches-Trunk
3. Configure SW2
# create VLAN 10,20,30pr 40
# put the relevant ports into the corresponding VLAN
# configure the interconnection link between switches-Trunk
# configure SW2 as the gateway for each VLAN
& enable routing function
& configure the SVI corresponding to each VLAN
& configure the Internet segment with R1 as a layer 3 port
4. Configure the relevant interface address of R1
5. Configure R1: DHCP server related parameters:
# create a DHCP address pool
-vlan 10
-vlan 20
-vlan 30
# enable DHCP service
7. Configure DHCP relay under SVI on SW2:
Interface vlan 10-> dhcp select relay
Dhcp relay server-ip 192.168.88.88
Interface vlan 20-> dhcp select relay
Dhcp relay server-ip 192.168.88.88
Interface vlan 30While-> dhcp select relay
Dhcp relay server-ip 192.168.88.88
Steps:
1.SW1: create vlan10 20
Add e0Accord 2 e0Accord 1 to VLAN10 VLAN 20
Configure e0swap 3 to trunk mode
2.SW2: create vlan10 20 30 40
Add e0Accord 1 to VLAN30
E0swap 2 is in trunk mode (sw2 is a layer 3 switch)
E0Accord 1 add vlan30 g0Accord 3 add vlan 40
Vlan10 Gateway: 192.168.10.254 255.255.255.0
Vlan20 Gateway: 192.168.20.254 255.255.255.0
Vlan30 Gateway: 192.168.20.254 255.255.255.0
Ip:192.168.88.66 255.255.255.0 for vlan40
3. Configure R1 to configure ip:192.168.88.88 255.255.255.0 for g0amp 0
Enable the dhcp function
Create an address pool:
1. Ip pool vlan10
Network 192.168.10.0 mask 255.255.255.0
Gateway-list 192.168.10.254
Dns-list 1.1.1.1
Lesae day 3
2. Ip pool vlan20
Network 192.168.20.0 mask 255.255.255.0
Gateway-list 192.168.10.254
Dns-list 1.1.1.1
Lesae day 3
3. Ip pool vlan30
Network 192.168.30.0 mask 255.255.255.0
Gateway-list 192.168.10.254
Dns-list 1.1.1.1
Lesae day 3
Configure on the interface g0swap 0:
Dhcp select global
4. Turn on the routing function:
Ip route-static 0.0.0.0 0.0.0.0 192.168.88.66
4. Configure DHCP trunking under SVI on SW2:
Enable the dhcp function first
Interface vlan 10-> dhcp select relay
Dhcp relay server-ip 192.168.88.88
Interface vlan 20-> dhcp select relay
Dhcp relay server-ip 192.168.88.88
Interface vlan 30While-> dhcp select relay
Dhcp relay server-ip 192.168.88.88
5. Check the configuration on the PC and ping each other
Pc1:
Pc2:
Pc3:
All PCs can communicate with each other through ping
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: 276
*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
© 2024 shulou.com SLNews company. All rights reserved.