S1#show ip int brief
S1#show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi0/0 connected 5 auto auto unknown
Gi0/1 connected 2 auto auto unknown
Gi0/2 connected 1 auto auto unknown
Gi0/3 connected 1 auto auto unknown
Gi1/0 connected 1 auto auto unknown
Gi1/1 connected 1 auto auto unknown
Gi1/2 connected 1 auto auto unknown
Gi1/3 TRUNK LINK connected trunk auto auto unknown
For portsecurty
S1(config)#int gi0/0
S1(config-if)#shutdown
S1(config-if)#no shutdown
S1#show int gigabitEthernet 1/3
GigabitEthernet1/3 is up, line protocol is up (connected)
Hardware is iGbE, address is 00c2.b321.5d07 (bia 00c2.b321.5d07)
Description: TRUNK LINK
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Unknown, Unknown, link type is force-up, media type is unknown media type
output flow-control is unsupported, input flow-control is unsupported
Auto-duplex, Auto-speed, link type is force-up, media type is unknown
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of «show interface» counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 4000 bits/sec, 6 packets/sec
12142 packets input, 1388735 bytes, 0 no buffer
Received 2529 broadcasts (2529 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 2529 multicast, 0 pause input
70557 packets output, 6336086 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
clear counters
S1#clear counters gi1/3
Clear "show interface" counters on this interface [confirm]
S1#
*Mar 16 00:13:22.908: %CLEAR-5-COUNTERS: Clear counter on interface GigabitEthernet1/3 by console
S1#
S1(config-if)#switchport trunk allowed vlan add 3
S1(config-if)#switchport trunk allowed vlan add 4
next 51