Skip to content

作业

1.拓扑图

  • 1715073917001.png

2.交换机配置

由于交换机端口一致,两台交换机配置一样

Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface range fa0/1-2
Switch(config-if-range)#switchport mode access 
Switch(config-if-range)#ex
Switch(config)#interface fa0/3
Switch(config-if)#switchport mode trunk

3.配置交换机端口安全

可任选其中一个交换机进行配置

Switch(config)#interface fa0/1
Switch(config-if)#switchport port-security 
Switch(config-if)#switchport port-security maximum 1
Switch(config-if)#switchport port-security violation shutdown 
Switch(config-if)#switchport port-security mac-address sticky