how to configured two routers with serial port dynamic ip address with command prompt 2026

 how to configured two routers with serial port dynamic ip address with command prompt 2026

how to configured two routers with serial port dynamic ip address with command prompt 2026

 

How to Configure Two Routers with Serial Port Using Dynamic IP Address (Command Prompt) – Complete Guide 2026

Website: https://sreekrishnatechbloganantapur2026.blogspot.com/
Email: pgollabala@gmail.com


Introduction

Configuring two routers using a serial port connection with dynamic IP addressing is an essential skill for networking students, IT support engineers, and DevOps professionals. In this guide, you will learn step-by-step configuration using command line (CLI), which is commonly used in real-world networking environments.

This tutorial is designed to help you:

  • Understand router-to-router communication

  • Configure serial interfaces

  • Enable dynamic IP addressing

  • Use routing protocols

  • Troubleshoot connectivity issues


What You Need Before Starting

Before configuration, ensure you have the following:

  • Two routers (Cisco or similar)

  • Serial DCE/DTE cable

  • Console cable

  • PC/Laptop with terminal software (Command Prompt / PuTTY)

  • Basic knowledge of networking


Network Topology

[Router1] -------- Serial Cable -------- [Router2]

Step 1: Connect Routers

  1. Connect Router1 and Router2 using a serial cable

  2. Identify:

    • One side will be DCE

    • Other side will be DTE

👉 The DCE side provides clock rate.


Step 2: Access Router CLI

Use Command Prompt or terminal software:

telnet 192.168.1.1

OR connect via console cable.


Step 3: Basic Configuration (Both Routers)

Enter Privileged Mode

enable

Enter Global Configuration Mode

configure terminal

Set Hostname

Router1:

hostname Router1

Router2:

hostname Router2

Step 4: Configure Serial Interface

On Router1 (DCE Side)

interface serial 0/0/0
ip address 10.0.0.1 255.255.255.252
clock rate 64000
no shutdown

On Router2 (DTE Side)

interface serial 0/0/0
ip address 10.0.0.2 255.255.255.252
no shutdown

Step 5: Configure Dynamic IP Address (DHCP)

Router1 as DHCP Server

ip dhcp pool NETWORK1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8

Configure Interface for LAN

interface gigabitEthernet 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown

Router2 as DHCP Client

interface gigabitEthernet 0/0
ip address dhcp
no shutdown

Step 6: Configure Routing (Dynamic Routing Protocol)

Use RIP (Routing Information Protocol) for dynamic routing.

On Router1

router rip
version 2
network 10.0.0.0
network 192.168.1.0
no auto-summary

On Router2

router rip
version 2
network 10.0.0.0
no auto-summary

Step 7: Verify Configuration

Check Interface Status

show ip interface brief

Check Routing Table

show ip route

Ping Test

From Router1:

ping 10.0.0.2

From Router2:

ping 10.0.0.1

Step 8: Troubleshooting Tips

If connection fails:

1. Check Interface Status

show interfaces serial 0/0/0

2. Ensure Interfaces are UP

no shutdown

3. Verify Clock Rate (DCE side only)

clock rate 64000

4. Check IP Addressing

show running-config

Common Mistakes to Avoid

  • Forgetting no shutdown

  • Missing clock rate on DCE side

  • Incorrect subnet mask

  • Wrong routing configuration

  • Not enabling routing protocol


Advantages of Dynamic IP Configuration

  • Automatic IP assignment

  • Reduced manual errors

  • Scalable network setup

  • Easy management


Real-World Use Cases

  • ISP connections

  • WAN networking

  • Enterprise branch connectivity

  • Network labs and simulations




Conclusion

Configuring two routers using a serial port with dynamic IP addressing is a fundamental networking skill. By following the above steps, you can successfully:

✔ Connect routers
✔ Assign IP addresses
✔ Configure DHCP
✔ Enable dynamic routing
✔ Test connectivity

This guide is perfect for students, job seekers, and IT professionals aiming to improve their networking skills in 2026.


About Us

Sree Krishna Tech Blog provides:

  • Laptop & Desktop Support

  • Networking Solutions

  • Software Installation

  • Remote IT Support

📧 Email: pgollabala@gmail.com
🌐 Website: https://sreekrishnatechbloganantapur2026.blogspot.com/




🔥 Start practicing today and become a networking expert in 2026!

to click read below steps as follows  


                             Dynamic ip address configuration two routers with serial cable with commands


cisco router configuration cisco 2520XM


router 0

router0
========

router>en

router#config t

router(config)#hostname r0

r0(config)#interface f0/0

r0(config-if)#ip add 10.0.0.1 255.0.0.0

r0(config-if)#no shutdown

r0(config-if)#exit

r0(config)#interface s1/0

ro(config-if)#ip add 20.0.0.1 255.0.0.0 

r0(config-if)#clock rate 64000

r0(config-if)#no shutdown

r0(config-if)#exit

r0(config)#

routing part

DYNAMIC IP ADDRESS

RIP
Configure all ip address
R0
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 20.0.0.0
Router(config-router)#network 30.0.0.0


EIGRP
R0
Router(config)#router eigrp 10
Router(config-router)#net 10.0.0.0
Router(config-router)#net 20.0.0.0
Router(config-router)#net 30.0.0.0


OSPF
R0
Router(config)#router ospf 10
Router(config-router)#net 10.0.0.0 0.255.255.255 area 0
Router(config-router)#net 20.0.0.0 0.255.255.255 area 0
Router(config-router)#net 30.0.0.0 0.255.255.255 area 0


DHCP CONFIGURATION

1.    Configure ip address only on router and enable routing
2.    On r0
Router(config)#ip dhcp pool aaa
Router(dhcp-config)#network 10.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 10.0.0.3 10.0.0.7
3.    Go to system and obtain ip automatically.





router1
========

router>en

router#config t

router(config)#hostname r1

r1(config)#interface f0/0

r1(config-if)#ip add 10.0.0.1 255.0.0.0

r1(config-if)#no shutdown

r1(config-if)#exit

r1(config)#interface s1/0

r1(config-if)#ip add 20.0.0.1 255.0.0.0 

r1(config-if)#clock rate 64000

r1(config-if)#no shutdown

r1(config-if)#exit

r1(config)#


routing part

DYNAMIC IP ADDRESS


RIP
Configure all ip address
R0
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 20.0.0.0
Router(config-router)#network 30.0.0.0

EIGRP
R0
Router(config)#router eigrp 10
Router(config-router)#net 10.0.0.0
Router(config-router)#net 20.0.0.0
Router(config-router)#net 30.0.0.0

OSPF
R0
Router(config)#router ospf 10
Router(config-router)#net 10.0.0.0 0.255.255.255 area 0
Router(config-router)#net 20.0.0.0 0.255.255.255 area 0
Router(config-router)#net 30.0.0.0 0.255.255.255 area 0


DHCP CONFIGURATION

1.    Configure ip address only on router and enable routing
2.    On r0
Router(config)#ip dhcp pool aaa
Router(dhcp-config)#network 30.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 30.0.0.1
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 30.0.0.3 30.0.0.7
3.    Go to system and obtain ip automatically.

to click here to more information about page
 

Popup Iframe Example

Post a Comment

Previous Post Next Post