en
conf t
hostname 30-0017-XXXXX !请输入实际配置的交换机ACS-ID
enable secret 5 c2918
!
username cisco password 7 c2918
aaa new-model
interface Range FastEthernet0/1-24
switchport mode access //设置接口为access模式
switchport port-security //打开该接口的端口安全功能
switchport port-security aging time 2 //表示这个端口上安全地址的老化时间2分钟
switchport port-security violation restrict //设置处理违例的方式为restrict
switchport port-security aging type inactivity //表示这个端口上安全地址的老化时间类型为静态
macro description cisco-desktop
spanning-tree portfast //加速生成树协议的收敛过程:端口快速
spanning-tree bpduguard enable //启用bpduguard
no shut
interface GigabitEthernet0/1
no shut
interface GigabitEthernet0/2
no shut
interface Vlan1
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载