Configuring Hostname, Passwords, and Banners in GNS3
Objective:
Configure the hostname of network devices.
Set up passwords for different levels of access.
Configure a message banner for security purposes.
Topology:
Two routers are connected by a serial link.
One PC to simulate an end device.

Step-by-Step Configuration:
Step 1: Create the GNS3 Topology
Open GNS3.
Drag and drop two Cisco routers (e.g., Cisco 7200 or 2800 series) onto the workspace.
Create a serial connection between the two routers using the "Add a Link" tool. You can use the Serial0/0 interfaces for both routers.
Add a PC to represent an end device and connect it to one of the router's Ethernet interfaces (e.g., FastEthernet 0/0).
Step 2: Basic Router Configuration
Start both routers by right-clicking and selecting "Start."
Access the routers via the console by right-clicking the router and selecting "Console."
Step 3: Configure Hostname
Enter Global Configuration mode on both routers.
Set the hostname for both routers.
On Router1:
On Router2:
Verify hostname changes:
Step 4: Configure Passwords
Configure console password on both routers to secure local access.
On Router1:
On Router2:
Configure enable password (privileged mode) on both routers.
On Router1:
On Router2:
Configure enable secret (for encrypted privileged mode password) on both routers.
On Router1:
On Router2:
Configure vty password (for remote access):
On Router1:
On Router2:
Step 5: Configure Login Banner
Create a login banner on both routers to display a security warning message.
On Router1:
On Router2:
Verify banner configuration by checking the startup configuration.
Step 6: Save Configuration
Save the configurations to avoid losing them after a reboot.
On Router1:
On Router2:
Step 7: Verify Configuration
Test local console login by exiting to the user mode and then trying to enter privileged mode.
Test the same on Router2.
Test remote login (via VTY) using a terminal program (e.g., PuTTY or Tera Term).
Step 8: Final Verification
Verify hostname:
Verify password settings:
Verify banner:
Keywords
Hostname Configuration, Router Configuration, Console Password, Enable Password, Enable Secret, VTY Password, Login Banner, Message of the Day (MOTD), Global Configuration Mode, GNS3 Simulation, Cisco Routers, Access Control, Privileged Mode, Security Configuration, Router Authentication, Router Passwords, Line Configuration, Router Setup, Telnet Access, Configuration Save, سیسکو , آموزش سیسکو
Last updated