学习中的人们,很是热爱知识和学习
1900建vlan 在全局
vlan 9 name yirehe
在接口模式下 interface ethernet0/8
vlan-membreship static 9
启动中继在接口 trunk on
1900用的是0/27是级联口 interface fastethernet 0/27 因为是百兆
在特权下show vlan
做MAC地址表
interface f0/1
switchport port-security(启动安全性)
switchport port-security mac-address 加上PC机上的MAC地址(只让这个MAC地址上网)
如果用集线器街道f0/1可以接多台计算机。制止方法
switchport port-security maximum 1 (限制多少台PC机)
switchport port-security violation shutdown(违背这个规则,把这个接口SHUTDOWN)
还有一种MAC地址绑定
在全局mac-address-table permanent 00-F0-4C-83-65-73(MAC地址) fastethernet 0/3
只让那个接口和我通讯
mac-address-table restricted static 00-F0-4C-83-65-73 fastethernet 0/3 fastethernet 0/1
(只让fastethernet 0/1接口的PC机和我通讯)
在特权下
copy nvram tftp://IP 备份
进入接口
interface fastethernet 0/7
port secure max-mac-count1 (只能接一个电脑)
在全局
address-violation disable (如果接的不是一个电脑禁用掉它)
进入特权模式
show mac-address-table security