一.拓补图展示
二.需求分析
1.当建立好sever,使用dhcp select interface进行接口DHCP分配IP
2.建立好server,先使用ip pool name创建池塘然后使用network 192.168.1.0 mask 24进行全局配置IP
3.建立好IP后进行
三.所有配置内容
1.对server使用接口配置IP
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname server
[server]interface GigabitEthernet 0/0/0
[server-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[server-GigabitEthernet0/0/0]q
[server]dhcp enable
[server]interface GigabitEthernet 0/0/0
[server-GigabitEthernet0/0/0]dhcp select interface
[server-GigabitEthernet0/0/0]dhcp server dns-list 1.2.3.4
[server-GigabitEthernet0/0/0]q
2.对0/0/1进行全局配置IP
[server]dhcp enable
[server]ip pool Server
[server-ip-pool-Server]network 1.1.1.0 mask 24
[server-ip-pool-Server]gateway-list 1.1.1.1
[server-ip-pool-Server]dns-list 8.8.8.8 114.114.114.114
[server-ip-pool-Server]q
3.PC间的互通
对PC1进行ping
ping 1.1.1.0
Ping 1.1.1.0: 32 data bytes, Press Ctrl_C to break
From 0.0.0.0: Destination host unreachable
From