华为s5700配置DHCP

system-view
#开启dhcp服务
dhcp enable
#定义一个vlan2的pool
ip pool vlan2
gateway-list 10.1.2.254
network 10.1.2.0 mask 255.255.255.0
dns-list 223.5.5.5
dns-list 223.6.6.6
excluded-ip-address 10.1.2.1 10.1.2.49
excluded-ip-address 10.1.2.200 10.1.2.253
lease day 7
#应用到接口下
interface Vlanif2
ip address 10.1.2.254 255.255.255.0
dhcp select global
#查看ip pool
dis ip pool
dis ip pool name vlan2
  • homelab/网络/华为s5700配置dhcp.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)