This page serves as a comprehensive reference guide for the essential Cisco IOS router commands used in the Smart Campus project. Use this cheat sheet to configure interfaces, enable routing, set up DHCP, and troubleshoot the network in Packet Tracer or GNS3.
These commands are used to navigate the router's operating system and verify your current settings.
enable
configure terminal
exit
enable: Moves from User Mode (>) to Privileged Mode (#).
configure terminal: Enters Global Configuration Mode (Router(config)#).
exit: Moves back one configuration level.
show ip interface brief
show ip route
show running-config
show ip interface brief: Displays all interfaces, their assigned IP addresses, and their up/down status.
show ip route: Displays the routing table (shows connected networks, RIP routes, and static routes).
show running-config: Displays the active configuration of the entire router.
Used to assign IP addresses to physical ports (Gigabit for LANs, Serial for WANs/Campuses).
interface gig0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface gig0/0: Selects the Gigabit Ethernet interface.
ip address [ip] [mask]: Assigns the IP address and subnet mask.
no shutdown: Turns the interface ON (interfaces are disabled by default).
interface serial 0/1/0
ip address 10.10.10.1 255.255.255.252
clock rate 64000
no shutdown
clock rate 64000: Required only on the DCE side of a serial cable to set the data transmission speed between routers.
Used when a single physical router port needs to act as the gateway for multiple VLANs.
interface gig0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
interface gig0/0.10: Creates a virtual sub-interface for VLAN 10.
encapsulation dot1Q 10: Tells the router to tag and listen for VLAN 10 traffic.
Used to automatically assign IP addresses to PCs, IoT devices, and smart sensors.
ip dhcp pool Admin_Pool
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 192.168.10.1
ip dhcp pool [name]: Creates a new DHCP pool.
network: Defines the range of IPs the router is allowed to hand out.
default-router: Sets the Default Gateway for the end devices.
Used to allow different routers (e.g., Main Campus and Branch Campus) to communicate.
router rip
version 2
network 10.0.0.0
network 192.168.10.0
router rip / version 2: Enables the RIP routing protocol with subnetting support.
network [ip]: Tells the router to advertise its connected networks to other routers.
ip route 0.0.0.0 0.0.0.0 10.10.10.6
ip route 0.0.0.0 0.0.0.0 [next-hop]: Creates a Default Static Route to send unknown traffic (like internet/cloud requests) to a specific exit IP.
Always save your work and test device connectivity.
ping 192.168.10.5
copy running-config startup-config
ping [ip]: Tests connectivity to another device. Replies (!!!!!) indicate success.
copy running-config startup-config: Saves the configuration so it is not lost when the router reboots. (Shortcut: do wr from config mode).