H3C交换机做DHCP
今天给一个H3C S5500-28C-EI做DHCP,由于以前做华三设备很少,所以找了很多配置资料,终于在网上找到了一篇,挺实用,分享一下
#给Vlan定义地址并配置其工作在服务器模式
interface Vlan-interface11
ip address 172.18.11.1 255.255.255.0
dhcp select server global-pool
#给Vlan定义地址并配置其工作在服务器模式
interface Vlan-interface12
ip address 172.18.12.1 255.255.255.0
dhcp select server global-pool
#给Vlan定义地址并配置其工作在服务器模式
interface Vlan-interface13
ip address 172.18.13.1 255.255.255.0
dhcp select server global-pool
#定义DHCP实例名称,地址池,网关地址,DNS地址
dhcp server ip-pool vlan11
network 172.18.11.0 mask 255.255.255.0
gateway-list 172.18.11.1
dns-list 172.18.11.1 8.8.8.8 8.8.4.4 202.106.0.20
#定义DHCP实例名称,地址池,网关地址,DNS地址
dhcp server ip-pool vlan12
network 172.18.12.0 mask 255.255.255.0
gateway-list 172.18.12.1
dns-list 172.18.12.1 8.8.8.8 8.8.4.4 202.106.0.20
#定义DHCP实例名称,地址池,网关地址,DNS地址
dhcp server ip-pool vlan13
network 172.18.13.0 mask 255.255.255.0
gateway-list 172.18.13.1
dns-list 172.18.13.1 8.8.8.8 8.8.4.4 202.106.0.20
#定义各DHCP地址池禁止分配的IP地址(开始~结束)
dhcp server forbidden-ip 172.18.12.1 172.18.12.200
dhcp server forbidden-ip 172.18.11.1 172.18.11.200
dhcp server forbidden-ip 172.18.13.1 172.18.13.200
相关文章