SW1 配置如下:sysystem-view (进入全局模式)Enter system view, return user view with Ctrl+Z
[Huawei]sy[Huawei]sysname SW1 ( 设备命名)[SW1][SW1]d[SW1]dhcp en[SW1]dhcp enable (使用 DHCP 功能)Info: The operation may take a few seconds
Please wait for a moment
[SW1][SW1]ip pool 10 (创建全局地址池,同时进入全局地址池视图)Info:It's successful to create an IP address pool
[SW1-ip-pool-10]netw[SW1-ip-pool-10]network 192
0 m[SW1-ip-pool-10]network 192
0 mask 24(配置全局地址池可动态分配的 IP 地址范围)[SW1-ip-pool-10][SW1-ip-pool-10]dns-list 8
8 (配置 DNS )[SW1-ip-pool-10][SW1-ip-pool-10]gateway-list 192
1 (配置网关)[SW1-ip-pool-10]ex[SW1-ip-pool-10]excluded-ip-address 192
201 192
254 (保留不被分配的地址)[SW1-ip-pool-10][SW1-ip-pool-10]lease d[SW1-ip-pool-10]lease day 7 (IP 租约期限)[SW1-ip-pool-10][SW1-ip-pool-10]dis this