#
Introduction
Navigating the intricacies of Cisco routers and switches can be challenging, especially for those new to network administration. This cheat sheet offers a concise and easy-to-follow guide for configuring Cisco devices, covering the essentials from initial setup to more complex configurations. Whether you’re setting up interfaces, establishing routing protocols, or configuring VLANs on a switch, these commands provide a solid foundation for managing Cisco network devices.
#
Cisco Router Configuration Commands
#
Basic Setup
Enter Global Configuration Mode:
Set Hostname:
Set Console Password:
Set Enable Secret Password:
1
| enable secret [password]
|
Set VTY (Telnet/SSH) Passwords:
#
Interface Configuration
Enter Interface Configuration Mode:
1
| interface [type][number]
|
Set IP Address:
1
| ip address [ip_address] [subnet_mask]
|
Enable Interface:
#
Static Routing
Add Static Route:
1
| ip route [destination_network] [subnet_mask] [next_hop_ip/gateway]
|
#
Saving Configuration
Save Configuration:
or
1
| copy running-config startup-config
|
#
Cisco Switch Configuration Commands
#
Basic Setup
Enter Global Configuration Mode:
Set Hostname:
Set Console Password:
Set Enable Secret Password:
1
| enable secret [password]
|
Set VTY (Telnet/SSH) Passwords:
#
VLAN Configuration
Create VLAN:
Assign VLAN Name:
Assign VLAN to Port:
1
| interface [type][number] (e.g., interface FastEthernet0/1)
|
1
| switchport access vlan [vlan_id]
|
#
Trunk Configuration (for Interconnecting Switches)
Set Trunk Port:
1
| interface [type][number]
|
1
| switchport trunk allowed vlan [vlan_list/all]
|
#
Saving Configuration
Save Configuration:
or
1
| copy running-config startup-config
|
#
Conclusion
This Cisco configuration cheat sheet is an invaluable resource for both seasoned network professionals and newcomers alike. It simplifies the process of configuring Cisco routers and switches, ensuring efficient and accurate network setup. By keeping these commands at your fingertips, you can confidently manage and maintain a robust and secure Cisco network environment.