题目要求:
1. 先配g0/0/0和g0/0/1的网关接口ip
2.开启DHCP服务、挖地址池、下放地址、设置网关接口、设置dns解析
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool zuo
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-zuo]network 192.168.1.0 mask 255.255.255.0
[Huawei-ip-pool-zuo]gateway-list 192.168.1.1
[Huawei-ip-pool-zuo]dns-list 8.8.8.8 114.114.114.114
3.按要求,pc1、pc2不能获取250-254的地址
[Huawei-ip-pool-zuo]excluded-ip-address 192.168.1.250 192.168.1.254
4.在g0/0/0接口调用服务
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]dhcp select global
5.打开pc1和pc2的DHCP获取地址
6.检查 是否符合要求
pc3、pc4的dhcp操作一样,要想固定下放ip需加两条命令
[Huawei-ip-pool-you]static-bind ip 172.16.1.2 mac-address 5489-98E8-19F5
[Huawei-ip-pool-you]static-bind ip 172.16.1.6 mac-address 5489-989B-1E47
检查