
一、路由器配置
Huaweiundo info-center enable
Info: Information center is disabled.
DHCP-SERVERsysname DHCP-Server
DHCP-Serverdis this
sysname DHCP-Server
undo info-center enable
return
DHCP-Serverdhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
DHCP-Serverdis this
sysname DHCP-Server
undo info-center enable
dhcp enable
return
DHCP-Serverint g0/0/0
DHCP-Server-GigabitEthernet0/0/0ip add 172.16.0.2 24
DHCP-Server-GigabitEthernet0/0/0dhcp select interface
DHCP-Server-GigabitEthernet0/0/0dhcp server dns-list 221.141.85.68
DHCP-Server-GigabitEthernet0/0/0dhcp server dns-list 8.8.8.8
DHCP-Server-GigabitEthernet0/0/0quit
DHCP-Serverquit
save
The current configuration will be written to the device.
Are you sure to continue?Y/Ny
Info: Please input the file name ( *.cfg, *.zip ) vrpcfg.zip:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
二、PC1和PC2自动获取IP 地址、网关和DNS






实验成功。