静态IP dhcp snooping的设置

网络 网络管理
这里我们介绍了静态IP dhcp snooping的配置内容。结合IP Source Guard进行设置,那么具体操作请从下文来了解一下吧。

在对DHCP设置的过程中,我们应该注意一些特别的地方。就如同我们下面将要讲解的静态IP dhcp snooping和IP Source Guard的内容。因为IP Source Guard不能和动态DHCP同时使用,所以就需要设置静态的效果。

  1. clock timezone WST 8  
  2. switch 1 provision ws-c3750g-48ts  
  3. system mtu routing 1500  
  4. ip subnet-zero  
  5. !  
  6. ip dhcp snooping vlan 1                (指定DHCP snooping防护的vlan)  
  7. ip dhcp snooping information option allow-untrusted  
  8. ip dhcp snooping database flash:snooping   (指定数据库路径)  
  9. ip dhcp snooping database write-delay 15   
  10. ip dhcp snooping                      (启动DHCP snooping)  
  11. !  
  12. !  
  13. !  
  14. interface GigabitEthernet1/0/45   (启动IP Source Guard的端口)  
  15. switchport mode access  
  16. switchport port-security  
  17. switchport port-security violation restrict  
  18. spanning-tree portfast  
  19. ip verify source port-security      
  20. (ip verify source port-security是配合启动IP soure binding使用  
  21. ip source binding 000A.E439.5F55 vlan 1 192.168.1.200 interface Gi1/0/45,
  22. 说明ip source binding和动态DHCP不能同时用,所以我们需要设置静态IP dhcp snooping)  )
  23. !  
  24. !  
  25. interface Vlan1  
  26. ip address 192.168.1.1 255.255.255.0  
  27. !  
  28. ip classless  
  29. ip http server  
  30. ip http secure-server  
  31. !  
  32. !  
  33. ip source binding 000A.E439.5F55 vlan 1 192.168.1.200 interface Gi1/0/45  
  34. !  
  35. control-plane  
  36. !  

注意使用如下命令查看工作状态:

  1. Switch#sh ip ver source               
  2. Switch#sh ip dhcp binding   
  3. Switch#sh ip dhcp snooping binding 

以上就是静态IP dhcp snooping和IP Source Guard的具体设置了。

责任编辑:佟健 来源: 百度空间
相关推荐

2010-09-03 11:21:57

2010-09-06 14:46:43

2010-08-30 09:56:09

IP dhcp sno

2010-09-01 15:32:02

DHCP Snoopi

2010-08-31 10:25:31

2010-09-29 15:52:15

2010-08-31 17:01:31

dhcp snoopi

2010-09-02 14:39:34

2010-09-01 16:11:46

显示DHCP snoo

2010-08-30 09:15:37

DHCP Snoopi

2010-09-26 14:52:22

DHCP Snoopi

2010-08-30 17:27:43

DHCP Snoopi

2010-09-01 09:31:15

2010-09-01 15:42:39

DHCP SnoopiARP

2010-08-31 16:57:13

DHCP SNOOPI

2010-09-27 10:40:21

DHCP Snoopi

2010-09-01 16:03:51

DHCP Snoopi

2010-08-31 10:17:14

2010-09-27 12:37:55

3750配置DHCP

2010-09-27 10:34:54

DHCP Snoopi
点赞
收藏

51CTO技术栈公众号