In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Experiment name: construction of Huawei layer 3 Router dhcp
Experimental topology diagram
3. Configuration idea: before configuring dhcp, let the whole network interwork first, and finally configure the dhcp server, first configure the ip address of pc7.pc8, create vlan10.vlan20 on switch lsw3, so that the vlan can be interconnected, then create vlan30, and configure ip address of vlan30, configure ip address on AR3, configure ip address at port 0 of vlan30, then configure dhcp service on router AR3, and configure dhcp relay on lsw3.
4. Configuration steps:
Step 1: configure the Ip address of pc7,pc8
Ip address 192.168.10.1 255.255.255.0
Gateway 192.168.10.254
Quit
Ip address 192.168.20.1 255.255.255.0
. Gateway 192.168.20.254
Quit
# next, create vlan 10dvlan20 on lsw3 to enable interworking between vlan.
# vlan10
Quit
Vlan 20
Quit
Int vlan 10
Ip address 192.168.10. 254 255.255.255.0
Undo shutdown
Int vlan 20
Ip address 192.168.20.254 255.255.255.0
Undo shutdown
Test with the command ping 192.168.20.1
# the above figure shows that the experiment is successful
# next create VLAN 30 on lsw3
# vlan 30
Int vlan 30
Ip address 192.168.30.1 255.255.255.0
Undo shutdown
# configure the ip address on the router port g0and0and0
Ip address 192.168.30.2 255.255.255.0
Undo shutdown
# configure a static route on the router to the 192.168.0.0 network segment, so that pc can ping the interface 192.168.30.2
# ip route-static 0.0.0.0 0.0.0.0 192.168.30.1
# Test with ping command
The above shows that the whole network has been interconnected.
| # next, configure the dhcp server on the router
Dhcp enable
Ip pool vlan 10
Network 192.168.10.0 mask 255.255.255.0
Gateway-list 192.168.10.254
Dns-list 8.8.8.8
Lease day 1
The same goes for dhcp enable
Ip pool vlan 20
Network 192.168.20.0 mask 255.255.255.0
Gateway-list 192.168.20.254
Dns-list 8.8.8.8
Lease day 1
# configure to find the DHCP server address pool in global mode
# interface g0/0/0
Dhcp select global / / find dhcp in global mode
# next configure dhcp trunk on the switch
Int vlan 10
Dhcp select relay
Dhcp-relay server-ip 192.168.30.2
Int vlan 20
Dhcp select relay
Dhcp relay server-ip 192.168.30.2
# testing and verification
# the above pictures show that the test is successful
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
© 2024 shulou.com SLNews company. All rights reserved.