Configuring your devices

To perform the base configuration of routers and switches in Cisco Packet Tracer, follow these general steps


enable


configure terminal

hostname <hostname>


enable secret <password>

line console 0

password <password>

login

line vty 0 15

password <password>

login

transport input telnet ssh


interface <interface-type> <interface-number>

ip address <ip-address> <subnet-mask>

no shutdown

end

copy running-config startup-config

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