1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
配置如下:
ip dhcp pool YuanYiWuShi-print //配置DHCP POOL
host 192.77.28.103 255.255.255.0 //设置需要静态分配IP地址的
client-identifier 0100.1599.e02e.2b //配置MAC,此处需要注意,mac加上01
default-router 192.77.28.254
dns-server 192.77.16.1 8.8.8.8
lease infinite
#show ip dhcp binding
192.77.28.103 0100.1599.e02e.2b Infinite Manual
如果要立即生效,需要清空自动分配ip的缓存。
#clear ip dhcp binding
#arp 192.77.28.103 0015.99e0.2e2b arpa //防止指定ip盗用的
以上在cisco 6509E 配置通过
华三S7506E 配置给主机分配ip
dhcp server ip-pool 10
static-bind ip-address 192.168.10.100 mask 255.255.255.0
static-bind mac-address 0002-2c00-f256
|
本文转自 古老 51CTO博客,原文链接:http://blog.51cto.com/yzmlinux/1727260,如需转载请自行联系原作者