A、 switch(config-if) # switchport mode trunk
Switch(config-if) # switchport port-security maximum 1
B、 switch(config-if)# switchport mode trunk
Switch(config-if)# switchport port-security mac-address 1
C、 switch(config-if) # switchport mode access
Switch(config-if)# switchport port-security maximum 1
D、 switch(config-if) # switchport mode access
Switch(config-if) # switchport port-security mac-address 1