In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Huawei's global DHCP settings
Lab Topology:
Purpose: to configure DHCP,pc1 and pc2 to automatically assign network parameters
Experimental requirements: two PCs, one layer 2 switch, one router
The steps of the experiment:
1. Ensure that the links between the client and the server are interconnected
SW: create VLAN 10 to put ports into VLAN 10
System-view
[Huawei] sysname sw
[sw] vlan 10
[sw-vlan10] exit
[sw-vlan10] q
[sw] port-group group-member gi0/0/1 gi0/0/2 gi0/0/3
[sw-port-group]
Jan 8 2018 17:35:46-08:00 sw DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 6, the ch
Ange loop count is 0, and the maximum number of records is 4095.
[sw-port-group] port link-type access
[sw-GigabitEthernet0/0/1] port link-type access
[sw-GigabitEthernet0/0/2] port link-type access
[sw-GigabitEthernet0/0/3] port link-type access
[sw-port-group] port default vlan 10
[sw-GigabitEthernet0/0/1] port default vlan 10 (put the API into the corresponding VLAN)
[sw-GigabitEthernet0/0/2] port default vlan 10
[sw-GigabitEthernet0/0/3] port default vlan 10
[sw-port-group]
[sw]
Gateway: configure a gateway IP address for VLAN 10 on Router
System-view
Enter system view, return user view with Ctrl+Z.
[Huawei] sysname gateway
[gateway] vlan 10 (create VLAN 10)
[Huawei-vlan10] quit
[gateway] interface Vlanif 10
[gateway-Vlanif10] undo shutdown (enable svi API)
Info: Interface Vlanif10 is not shutdown.
[gateway-Vlanif10] ip address 192.168.10.254 255.255.255.0 (set gateway IP address)
[gateway-Vlanif10] quit
[gateway]
2. Configure the DHCP client
Enter PC and select "automatic acquisition", "Click" application
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 the DHCP service
Dhcp enable
On the port that receives DHCP messages, configure the DHCP selection method-global; interface gi0/0/0dhcp select global / / means that when the DHCP message is received on the port, it goes directly to the DHCP server to select an available IP address from the globally configured IP address pool.
[gateway] ip pool vlan-10 (create IP address pool)
Info: It's successful to create an IP address pool.
[gateway-ip-pool-vlan-10] network 192.168.10.0 mask 255.255.255.0
[gateway-ip-pool-vlan-10] gateway-list 192.168.10.254 (set default gateway)
[gateway-ip-pool-vlan-10] dns-list 8.8.8.8 (set dns default address)
[gateway-ip-pool-vlan-10] lease day 3 (set valid duration)
[gateway-ip-pool-vlan-10] q
[gateway] dhcp enable (enable DHCP)
Info: The operation may take a few seconds. Please wait for a moment.done.
[gateway] interface GigabitEthernet 0/0/0
[gateway-GigabitEthernet0/0/0] dhcp select global
(enable finding available ip addresses in the global configuration)
[gateway-GigabitEthernet0/0/0]
4. Verification and testing
Summary of the experiment:
DHCP configuration ideas:
1. Ensure the interworking of DHCP messages between DHCP client and server
two。 Configure the DHCP client
Configure PC to obtain IP address automatically
3. Configure the DHCP server
Remove IP addresses / segments that cannot be automatically assigned
Create an IP address pool
Available IP address space
Default gateway
DNS server
4. Enable the DHCP service
Verify, test, save
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.