Overview & Purpose
This configuration includes setting the hostname, enabling SSH, configuring interfaces, setting up DHCP, and ensuring internet access and inter-LAN communication.
Objectives
Will understand the basic of Cisco configuration
Self-taught before production hands-on.
LAB Topology
Here is the lab topology
Step 1: Access the Router
Connect to your Cisco router via console or any other method and enter global configuration mode:
Step 2: Set the Hostname
Set the router hostname to RTR-01:
Step 3: Configure SSH and Secure Login
Enable SSH for secure remote access and configure the login credentials:
Step 4: Configure Interfaces
Interface GigabitEthernet 0/0 (Connected to ISP)
Configure the interface to use DHCP for the ISP connection:
Interface GigabitEthernet 0/1 (Connected to LAN 1)
Configure the interface for the 172.16.22.0/24 network:
Interface GigabitEthernet 0/2 (Connected to LAN 2)
Configure the interface for the 172.16.10.0/24 network:
Step 5: Configure DHCP for Both Networks
Set up DHCP pools for both LANs:
DHCP for LAN 1 (172.16.22.0/24)
DHCP for LAN 2 (172.16.10.0/24)
Step 6: Enable NAT for Internet Access
Configure NAT to allow clients on both LANs to access the internet:
Step 7: Enable Inter-LAN Communication
By default, the router will allow communication between the two LANs since they are directly connected to the router. No additional configuration is required unless you want to restrict traffic (e.g., using ACLs).
Now set both clients IP as dhcp by running the following command:
The clients should fetch the IP address from the dhcp server of its own network dhcp pool server.
Step 8: Save the Configuration
Save the configuration on the router to ensure it persists after a reboot:
Step 9: Verify the Configuration
Check Interfaces
Check NAT translation
Ensure that the client IPs already on the NAT table
Check DHCP Leases
This will show the connected DHCP IPs of every connected user.
Clear IP DHCP Leases
This will clear all DHCP binding IP addresses, so next time the client reconnects and releases the IP, it will get a new IP.
Check Routing Table
Check the routing tables, just to ensure that the client can access to the Internet
Test Internet Access
Congratulations for your first lab!