Configuring your devices
To perform the base configuration of routers and switches in Cisco Packet Tracer, follow these general steps
Access the device CLI: Double-click on the router or switch in Packet Tracer to access its Command Line Interface (CLI).
Enable privileged EXEC mode: Enter the following command to access the privileged EXEC mode:
enable
Configure the hostname: Set a hostname for the device using the following command:
php
configure terminal
hostname <hostname>
Replace <hostname> with the desired hostname for the device.
Secure privileged EXEC mode with a password: Set a password to secure access to the privileged EXEC mode using the following command:
enable secret <password>
Replace <password> with the desired password.
Secure console access with a password: Set a password to secure access to the device's console using the following command:
line console 0
password <password>
login
Replace <password> with the desired console password.
Secure remote access (optional): If you want to enable remote access via Telnet or SSH, configure the appropriate settings using the following commands:
line vty 0 15
password <password>
login
transport input telnet ssh
Replace <password> with the desired password.
Configure IP addressing: Set an IP address and subnet mask for the device's interface using the following command:
interface <interface-type> <interface-number>
ip address <ip-address> <subnet-mask>
no shutdown
Replace <interface-type> with the specific interface type (e.g., FastEthernet, GigabitEthernet) and <interface-number> with the interface number (e.g., 0/0, 1/1). Replace <ip-address> with the desired IP address and <subnet-mask> with the appropriate subnet mask.
Save and exit: Save the configuration changes and exit the CLI using the following commands:
end
copy running-config startup-config
This will save the configuration to non-volatile memory, ensuring that the configuration persists upon device reboot.
By following these steps, you can perform the base configuration of routers and switches in Cisco Packet Tracer. Remember to adjust the specific commands and parameters according to your network requirements and the devices being configured.
Here is an example on how to make a default config
Basic Base Configuration:
Enable // Enable the Command Line Interface
Configure Terminal // Enter the global configuration mode
Hostname SW3 // Set the device name. We use "R" for a router and "SW" for a switch
Banner motd #Authorrized Access Only# // Set a message to display during login
Service password-encryption // Encrypt passwords
Line console 0 // Enter the console line configuration mode
Password cisco // Set the password for console access. example password is "cisco"
Login
Exit // Exit the console line configuration mode
Enable secret cisco.
Line vty 0 4 // Enter the VTY line configuration mode
Password cisco // Set the password for VTY access. This password MUST ALWAYS be "cisco".
Login
End // Exit the configuration mode. Basic configuration is complete.
Copy running-config startup-config // Save the configuration