In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
DHCP configuration steps on Huawei routers:
1. Ensure that the links between the client and the server are interconnected
# SW1
Create VLAN 10
Put the port into VLAN 10
# Gateway
Configure a gateway IP address for VLAN 10 on Router
2. Configure the DHCP client
# enter PC, select "automatic acquisition", and click "apply"
3. Configure DHCP server
# create an IP address pool
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 3
# enable DHCP service
Dhcp enable
# configure DHCP selection method-global on the port that receives DHCP messages
Interface gi0/0/0
Dhcp select global / / indicates that when a DHCP message is received on the port
Go directly to the IP configured globally by the DHCP server
Select an available IP address from the address pool
One: sw1 configuration
[sw1] vlan batch 10 20 / / create vlan
[sw1] int g0/0/1
[sw1-GigabitEthernet0/0/1] port link-type access / / Port plus vlan
[sw1-GigabitEthernet0/0/1] port default vlan 10
[sw1-GigabitEthernet0/0/1] q
[sw1] int g0/0/2
[sw1-GigabitEthernet0/0/2] port link-type access
[sw1-GigabitEthernet0/0/2] port default vlan 20
[sw1-GigabitEthernet0/0/2] q
[sw1] int vlan 10
[sw1-Vlanif10] ip add 192.168.10.254 24
[sw1-Vlanif10] int vlan 20
[sw1-Vlanif20] ip add 192.168.20.1 24
[sw1-Vlanif20] int g0/0/3
[sw1-GigabitEthernet0/0/3] port link-type access
[sw1-GigabitEthernet0/0/3] port default vlan 20
[sw1-GigabitEthernet0/0/3] q
[sw1] rip / / RIP application
[sw1-rip-1] version 2
[sw1-rip-1] network 192.168.10.0
[sw1-rip-1] network 192.168.20.0
[sw2] dhcp enable / / enable dhcp
[sw1] int vlan 10
[sw1-Vlanif10] dhcp select relay / / dhcp Relay
[sw1-Vlanif10] dhcp relay server-ip 192.168.100.2
Sw2 configuration:
[sw2] vlan batch 30 40 50 60
[sw2] int g0/0/2
[sw2-GigabitEthernet0/0/2] port link-type a
[sw2-GigabitEthernet0/0/2] port link-type access
[sw2-GigabitEthernet0/0/2] port d
[sw2-GigabitEthernet0/0/2] port def
[sw2-GigabitEthernet0/0/2] port default vlan 30
[sw2-GigabitEthernet0/0/2] q
[sw2] int eth0/0/3
[sw2-Ethernet0/0/3] port link-type access
[sw2-Ethernet0/0/3] port default vlan 40
[sw2-Ethernet0/0/3] q
[sw2-Ethernet0/0/4] port link-type access
[sw2-Ethernet0/0/4] port default vlan 50
[sw2-Ethernet0/0/4] q
[sw2] int eth0/0/5
[sw2-Ethernet0/0/5] port link-type access
[sw2-Ethernet0/0/5] port default vlan 60
[sw2-Ethernet0/0/5] q
[sw2-Ethernet0/0/1] port link-type access
[sw2-Ethernet0/0/1] port default vlan 50
[sw2-Ethernet0/0/1] int g0/0/6
[sw2-Ethernet0/0/1] q
[sw2] int eth0/0/6
[sw2-Ethernet0/0/6] port link-type access
[sw2-Ethernet0/0/6] port default vlan 60
[sw2-Ethernet0/0/6] q
[sw2] int vlan 30
[sw2-Vlanif30] ip add 192.168.30.254
[sw2-Vlanif30] ip add 192.168.30.254 24
[sw2-Vlanif30] q
[sw2] int vlan 40
[sw2-Vlanif40] ip add 192.168.40.254 24
[sw2] int vlan 50
[sw2-Vlanif50] ip add 192.168.50.1 24
[sw2] int vlan 60
[sw2-Vlanif60] ip add 192.168.60.1 24
[sw2-Vlanif50] q
[sw2] rip
[sw2-rip-1] version 2
[sw2-rip-1] network 192.168.30.0
[sw2-rip-1] network 192.168.40.0
[sw2-rip-1] network 192.168.50.0
[sw2-rip-1] network 192.168.60.0
[sw2-rip-1] q
[sw2] dhcp enable
[sw2] int vlan 30
[sw2-Vlanif30] dhcp select relay
[sw2-Vlanif30] dhcp relay server-ip 192.168.100.2
[sw2-Vlanif30] q
[sw2] int vlan 40
[sw2-Vlanif40] dhcp select relay
[sw2-Vlanif40] dhcp relay server-ip 192.168.100.2
Three: R1 configuration
[r1] int g0/0/0
[r1-GigabitEthernet0/0/0] ip add 192.168.20.254
[r1-GigabitEthernet0/0/0] ip add 192.168.20.254 24
[r1-GigabitEthernet0/0/0] int g0/0/2
[r1-GigabitEthernet0/0/2] ip add 192.168.100.1 24
[r1-GigabitEthernet0/0/2] q
[r1] int g0/0/1
[r1-GigabitEthernet0/0/1] ip add 192.168.70.1 24
[r1] rip
[r1-rip-1] version 2
[r1-rip-1] network 192.168.20.0
[r1-rip-1] network 192.168.100.0
[r1-rip-1] network 192.168.70.0
[r1-rip-1] q
[r1] dhcp enable
[r1] int g0/0/0
[r1-GigabitEthernet0/0/0] dhcp select relay
[r1-GigabitEthernet0/0/0] dhcp relay server-ip 192.168.100.2
IV. R2 configuration
[r2] int g0/0/1
[r2-GigabitEthernet0/0/1] ip add 192.168.70.2 24
[r2-GigabitEthernet0/0/1] q
[r2] int g0/0/0
[r2-GigabitEthernet0/0/0] ip add 192.168.50.254 24
[r2-GigabitEthernet0/0/0] ip add 192.168.60.254
[r2-GigabitEthernet0/0/0] ip add 192.168.60.254 24
[r2-GigabitEthernet0/0/0] rip
[r2-rip-1] version 2
[r2-rip-1] network 192.168.70.0
[r2-rip-1] network 192.168.50.0
[r2-rip-1] network 192.168.60.0
[r2] dhcp enable
[r2] int g0/0/0
[r2-GigabitEthernet0/0/0] dhcp select relay
[r2-GigabitEthernet0/0/0] dhcp relay server-ip 192.168.100.2
[r2-GigabitEthernet0/0/0] q
[r2] int g0/0/2
[r2-GigabitEthernet0/0/2] dhcp select relay
[r2-GigabitEthernet0/0/2] dhcp relay server-ip 192.168.100.2
5. Dhcp configuration:
[dhcp] int vlan 100
[dhcp] interface g0/0/1
[dhcp-GigabitEthernet0/0/1] port link-type access
[dhcp-GigabitEthernet0/0/1] port default vlan 100
[dhcp-Vlanif100] ip add 192.168.100.2 24
[dhcp-Vlanif100] q
[dhcp] dhcp enable
[dhcp] ip pool vlan10 / / build address pool
[dhcp-ip-pool-vlan10] network 192.168.10.0 mask 24
[dhcp-ip-pool-vlan10] gateway-list 192.168.10.254
[dhcp-ip-pool-vlan10] dns-list 8.8.8.8
[dhcp-ip-pool-vlan10] Q
[dhcp] ip pool vlan20
[dhcp-ip-pool-vlan20] network 192.168.20.0 mask 24
[dhcp-ip-pool-vlan20] gateway-list 192.168.20.254
[dhcp-ip-pool-vlan20] dns-list 8.8.8.8
[dhcp-ip-pool-vlan20] q
[dhcp] ip pool vlan30
[dhcp-ip-pool-vlan30] network 192.168.30.0 mask 24
[dhcp-ip-pool-vlan30] gateway-list 192.168.30.254 mask 24
[dhcp-ip-pool-vlan30] gateway-list 192.168.30.254 mask 24
[dhcp-ip-pool-vlan30] gateway-list 192.168.30.254 mask 30
[dhcp-ip-pool-vlan30] gateway-list 192.168.30.254 mask 24
[dhcp-ip-pool-vlan30] gateway-list 192.168.30.254
[dhcp-ip-pool-vlan30] dns-list 8.8.8.8
[dhcp-ip-pool-vlan30] q
[dhcp] ip pool vlan40
[dhcp-ip-pool-vlan40] network 192.168.40.0 mask 24
[dhcp-ip-pool-vlan40] gateway-list 192.168.40.254
[dhcp-ip-pool-vlan40] dns-list 8.8.8.8
[dhcp] ip pool vlan50
[dhcp-ip-pool-vlan50] network 192.168.50.0 mask 24
[dhcp-ip-pool-vlan50] gateway-list 192.168.50.254
[dhcp-ip-pool-vlan50] dns-list 8.8.8.8
[dhcp] ip pool vlan60
[dhcp-ip-pool-vlan60] network 192.168.60.0 mask 24
[dhcp-ip-pool-vlan60] gateway-list 192.168.60.254
[dhcp-ip-pool-vlan60] dns-list 8.8.8.8
[dhcp-ip-pool-vlan60] q
[dhcp] int vlan 100
[dhcp-Vlanif100] dhcp select global
[dhcp-Vlanif100] q
[dhcp] ip route-static 0.0.0.0 0.0.0.0 192.168.100.1
6. Get ip and ping each other
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.