1、C/S架构 动态分配IP地址,子网掩码,网关,DNS等信息
<Huawei>system-view
[Huawei]sysname dhcp-server
[dhcp-server]interface GigabitEthernet 0/0/0
[dhcp-server-GigabitEthernet0/0/0]ip address 10.1.1.254 24
[dhcp-server-GigabitEthernet0/0/0]quit
[dhcp-server]dhcp enable
[dhcp-server]interface GigabitEthernet 0/0/0
[dhcp-server-GigabitEthernet0/0/0]dhcp select interface