4、DHCP设置,分配固定IP

有时我们需要控制IP分配,可以使用下面方法!

  1. system mtu routing 1500  
  2. ip subnet-zero  
  3. ip dhcp excluded-address 192.168.1.1  
  4. !  
  5. ip dhcp pool test  
  6. host 192.168.1.18 255.255.255.0 分给用户的IP)  
  7. client-identifier 0101.0bf5.395e.55用户端mac)  
  8. client-name test  
  9. !  
  10. ip dhcp pool go  
  11. network 192.168.1.0 255.255.255.0 启动网内DHCP)  
  12. !  
  13.  
  14. Switch#sh ip dhcp binding   
  15. IP address    Client-ID/                Lease expiration        Type  
  16.                   Hardware address  
  17. 192.168.1.18     0101.0bf5.395e.55    Infinite             Manual 

时间仓促,没能进行很好的测试,希望大家能够讨论,给与指正! 
 


相关内容