Hi, for All, just quick review of how to simple setup a Cisco router
Setting up a basic Cisco router involves several steps to ensure it can route traffic between networks and provide basic connectivity.
1. **Connect to the Router**
Use a console cable to connect your computer to the router’s console port.
Open a terminal emulator (like PuTTY or Tera Term) and configure it to use the correct COM port with settings like 9600 baud rate, 8 data bits, no parity, 1 stop bit, and no flow control.
2. **Access the Router’s Command Line Interface (CLI)**
Power on the router and wait for it to boot.
You should see the router’s command prompt, usually something like `Router>`.
3. **Enter Privileged EXEC Mode**
Type `enable` and press Enter. You’ll enter privileged EXEC mode, indicated by the `Router#` prompt.
4. **Enter Global Configuration Mode**
Type `configure terminal` or `conf t` and press Enter. You’ll enter global configuration mode, indicated by the `Router(config)#` prompt.
5. **Configure the Hostname**
To set the router’s hostname, use the command:
“`
hostname MyRouter
“`
Replace `MyRouter` with your desired hostname.
6. **Set Passwords**
Set a password for privileged EXEC mode:
“`
enable secret yourpassword
“`
Set a password for the console port:
“`
line console 0
password consolepassword
login
“`
Set a password for the VTY lines (for remote access via Telnet/SSH):
“`
line vty 0 4
password vtypassword
login
“`
7. **Configure Interfaces**
Enter interface configuration mode for the interface you want to configure (e.g., GigabitEthernet0/0):
“`
interface GigabitEthernet0/0
“`
Assign an IP address and subnet mask:
“`
ip address 192.168.1.1 255.255.255.0
“`
Enable the interface:
“`
no shutdown
“`
8. **Configure Routing (if needed)**
For static routing, add a static route:
“`
ip route 192.168.2.0 255.255.255.0 192.168.1.2
“`
This command routes traffic for the 192.168.2.0/24 network through the next-hop address 192.168.1.2.
9. **Save the Configuration**
Exit configuration mode by typing `exit` or pressing `Ctrl+Z`.
Save the configuration to NVRAM so it persists after a reboot:
“`
write memory
“`
Or use:
“`
copy running-config startup-config
“`
10. **Verify the Configuration**
Use commands like `show running-config` to view the current configuration.
Use `show ip interface brief` to check the status of interfaces.
11. **Test Connectivity**
Use `ping` to test connectivity to other devices on the network.
Use `traceroute` to trace the path packets take to a destination.
This basic setup should get your Cisco router up and running for simple network routing tasks. For more advanced configurations, you can explore additional features like dynamic routing protocols, access control lists (ACLs), and Network Address Translation (NAT).