

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


enable Enter privileged EXEC mode configure terminal Enter global configuration mode hostname [name] Set device hostname service password-encryption Encrypt all passwords enable secret [password] Set encrypted privileged mode password banner motd #Message# Display message of the day banner
interface [type/number] Enter interface configuration mode ip address [IP] [MASK] Assign IP address to interface no shutdown Activate the interface description [text] Add description to interface
vlan [#] Create VLAN name [vlan-name] Assign VLAN name interface [type/number] Select switchport interface switchport mode access Set port as access switchport access vlan [#] Assign VLAN to access port switchport mode trunk Set trunk mode show vlan brief Display VLAN info
ip route [network] [mask] [next-hop] Add static route ip default-gateway [IP] Set default gateway show ip interface brief Show IPs and interface status show ip route Show routing table ping [IP] Test connectivity
access-list [#] permit/deny [IP] [WILDCARD] Create ACL rule
ip access-group [#] in/out Apply ACL to interface login Enable password checking on console line line console 0 Enter console config mode password [password] Set console password
CIDR Subnet Mask # of Hosts /8 255.0.0.0 16,777, /16 255.255.0.0 65, /24 255.255.255.0 254 /25 255.255.255.128 126 /26 255.255.255.192 62 /27 255.255.255.224 30 /28 255.255.255.240 14 /29 255.255.255.248 6
show running-config Displays current configuration show startup-config Displays saved configuration show interfaces Displays all interface status show mac address-table Displays MAC address table