代码示例:IP dhcp snooping配置(1)(4)
4、DHCP设置,分配固定IP
有时我们需要控制IP分配,可以使用下面方法!
- system mtu routing 1500
- ip subnet-zero
- ip dhcp excluded-address 192.168.1.1
- !
- ip dhcp pool test
- host 192.168.1.18 255.255.255.0 分给用户的IP)
- client-identifier 0101.0bf5.395e.55用户端mac)
- client-name test
- !
- ip dhcp pool go
- network 192.168.1.0 255.255.255.0 启动网内DHCP)
- !
- Switch#sh ip dhcp binding
- IP address Client-ID/ Lease expiration Type
- Hardware address
- 192.168.1.18 0101.0bf5.395e.55 Infinite Manual
时间仓促,没能进行很好的测试,希望大家能够讨论,给与指正!
评论暂时关闭