一、启用arp-check的功能<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

在全局配置模式下开启ARP-CHECK功能
S<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />2126G-2(config)#port-security arp-check

二、启用DHCP中继

S2126G-2(config)#service dhcp
S2126G-2(config)#ip helper-address DHCP服务器IP地址

三、启用端口安全

S2126G-2(config)#interface fastethernet 端口号
S2126G-2(config-if)#switchport port-security  

四、启用端口自动绑定功能

S2126G-2(config-if)#service dhcp address-bind port