全局模式:
[Huawei]dhcp enable
[Huawei]ip pool vlan10
[Huawei-ip-pool-vlan10]network 192.168.1.0 mask 255.255.255.0
[Huawei-ip-pool-vlan10]gateway-list 192.168.1.254
[Huawei-ip-pool-vlan10]dns-list 8.8.8.8
[Huawei-ip-pool-vlan10]lease day 3
[Huawei-ip-pool-vlan10]excluded-ip-address 192.168.1.253
[Huawei]interface Vlanif 10 //进入vlan10内
[Huawei]ip add 192.168.1.254 24
[Huawei-Vlanif10]dhcp select global
接口模式:
[Huawei]dhcp enable
[Huawei]interface Vlanif 10
[Huawei-Vlanif10]ip add 192.168.10.1 24
[Huawei-Vlanif10]dhcp select interface
[Huawei-Vlanif10]dhcp server lease day 8
[Huawei-Vlanif10]dhcp server dns-list 8.8.8.8
[Huawei-Vlanif10]dhcp server excluded-ip-address 192.168.10.200 192.168.10.254
相关文章
- 12-13S5700交换机配置端口镜像
- 12-13NETBASE DAY04(02):交换机进阶配置
- 12-13DHCP工作流程与简单配置
- 12-13DHCP动态主机配置协议
- 12-13DHCP服务安装与配置实训操作说明
- 12-13DHCP与DHCP中继原理与配置!
- 12-13DHCP配置
- 12-13DHCP三种配置
- 12-13DHCP配置
- 12-13华为交换机配置NTP服务端/客户端