Cisco Packet Tracer Commands
Networking
Terminal type of modes
We can have EXEC Mode, Privileged EXEC Mode, Global Configuration Mode, Interface Configuration.
Configure Hostname
Set Password
To secure privileged EXEC access, use the enable secret password global config command:
Configure VTY Lines
Virtual terminal (VTY) lines allow remote access through Telnet or SSH to the device:
Encrypt Passwords
Startup-config and running-config files show most passwords in plain text, which is a security threat. Use the following command to encrypt passwords:
Use the show running-config command to verify that the passwords are now encrypted:
Warning Messages
Set up a warning message using the banner command:
Configuration Files
- startup-config: This is the saved configuration file stored in NVRAM. It contains all the commands that the device will use on startup or reboot. Flash does not lose its content when the device is powered off.
- running-config: This is stored in Random Access Memory (RAM). It reflects the current configuration. Modifying a running configuration affects the operation of a Cisco device immediately. RAM is volatile and loses all content when the device is powered off or restarted.
To save the running configuration to the startup configuration:
Modify Running Configuration
Use the reload command to remove a configuration:
To erase the startup configuration:
Manual IP Address Configuration for End Devices
Configure Switch Virtual Interface
Static Routing
R1 is manually configured with a static route to reach the 10.1.1.0/24 network. If this path changes, R1 will require a new static route.
Basic Steps in Configuring a Router
Configure Hostname
Secure the Privileged EXEC Mode
Secure the User EXEC Mode
Secure Remote Access via Telnet and SSH
Protect All Passwords in the Configuration File
Provide a Legal Notification
Save the Configuration
Configuring Router Interfaces
At this point, the routers have their basic configurations. The next step is to configure their interfaces because end devices cannot reach the routers until the interfaces are configured. There are many different types of interfaces for Cisco routers. For example, the Cisco ISR 4321 router is equipped with two Gigabit Ethernet interfaces:
- GigabitEthernet 0/0/0 (G0/0/0)
- GigabitEthernet 0/0/1 (G0/0/1)
Configuring a router interface is very similar to configuring a management SVI on a switch. Specifically, it involves issuing the following commands:
Example:
Verify the configuration:
Configuration Verification Commands
Popular show commands used to verify interface configuration.
Show ip interface brief
Show ipv6 interface brief
Show ip route
Codes of ip routers