1.拓扑图
2.R1配置
<Huawei>system-view
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1]ip pool PC
[R1-ip-pool-PC]gateway-list 192.168.1.1
[R1-ip-pool-PC]network 192.168.1.0 mask 24
[R1-ip-pool-PC]quit
[R1]dhcp enable
R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]dhcp select global
3.在PC1界面设置成DHCP自动获取,使用ipconfig查看地址
4.使用wireshark进行抓包,可以看到对应的DHCP报文