实验设备: 二层交换机一台,主机三台 实验步骤: 1.进入相应的接口 (以端口1设置Mac地址绑定,PC0接1端口举例) Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#Switch(config)#interface fa
思科交换机可以根据客户端mac地址限制访问 查看对应IP的mac地址及vlan show arp | in 10.1.62.188 进入设置模式 configure terminal mac address-table static 488a.d22e.bea9 vlan 656 drop 其中488a.d22e.bea9为该主机对应mac地址,656为对应的vlan
该示例中记录了Cat2960的MAC地址情况: Cat2960#sho mac address-table Mac Address Table------------------------------------------- Vlan Mac Address Type Ports---- ----------- -------- ----- All 0100.0ccc.cccc STATIC CPU All 0100.0ccc.cccd STATIC CPU All 0180.c200.00