2024年4月24日发(作者:集建明)
.
SW1配置如下:
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 .
.
.
[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.168.10.0 m
[SW1-ip-pool-10]network 192.168.10.0 mask 24(
配置全局地址池可动态分配的IP地址
范围
)
[SW1-ip-pool-10]
[SW1-ip-pool-10]dns-list 8.8.8.8 (配置DNS )
[SW1-ip-pool-10]
[SW1-ip-pool-10]gateway-list 192.168.10.1 (配置网关)
[SW1-ip-pool-10]ex
[SW1-ip-pool-10]excluded-ip-address 192.168.10.201 192.168.10.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 (查询当前模式的配置)
#
ip pool 10
gateway-list 192.168.10.1 (网关)
.
2024年4月24日发(作者:集建明)
.
SW1配置如下:
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 .
.
.
[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.168.10.0 m
[SW1-ip-pool-10]network 192.168.10.0 mask 24(
配置全局地址池可动态分配的IP地址
范围
)
[SW1-ip-pool-10]
[SW1-ip-pool-10]dns-list 8.8.8.8 (配置DNS )
[SW1-ip-pool-10]
[SW1-ip-pool-10]gateway-list 192.168.10.1 (配置网关)
[SW1-ip-pool-10]ex
[SW1-ip-pool-10]excluded-ip-address 192.168.10.201 192.168.10.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 (查询当前模式的配置)
#
ip pool 10
gateway-list 192.168.10.1 (网关)
.