30 July, 2014

Port-Security Trunk Port

SW2(config)#default interface fastEthernet 0/2
Interface FastEthernet0/2 set to default configuration

SW2(config)#int fas0/2
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport port-security maximum 50 vlan 123
SW2(config-if)#switchport port-security violation restrict
SW2(config-if)#switchport port-security
SW2(config-if)#do show run in fas 0/2
!
interface FastEthernet0/2
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport port-security maximum 50 vlan 123
 switchport port-security
 switchport port-security violation restrict
 shutdown
end