How to configure static routing on cisco router using serial port?

CCNA

In the previous article we learn that how to configure static routing on Cisco router using the fast ethernet port on the router but sometimes we use the serial port on the router and then we want to configure the router with static routing. In that case, we use this method for configuring static routing on the router. Static routing on the serial port is a little bit different from static routing configuration on the router using fast ethernet port because now in serial ports we also assign clock rate on routers interface which will be DCE. In this tutorial, we learn about that how to configure static routing on the serial port using a basic lab in cisco packet tracer. Let’s start to configure static routing.

Also Read: How to configure static routing on routers along with switches

static routing on serial port

Now, first of all, we assign IP address on routers interfaces and both PC also and make them up using no shut command on routers.

I think you also know how to assign an IP address to PC. So, I am going start configuration of routers. if you don’t know how to assign IP address on PC read my previous articles on CCNA.

How to configure a router and how to connect two different networks through a router?

How to configure basic static routing on routers

Learn how to configure static routing on 4 routers?

Now configure router R1

— System Configuration Dialog —

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1

R1(config)#

R1(config)#interface FastEthernet0/0

R1(config-if)#ip address 1.0.0.1 255.0.0.0

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#exit

R1(config)#interface Serial0/0/0

R1(config-if)#ip address 2.0.0.1 255.0.0.0

R1(config-if)#clock rate 64000

R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R1(config-if)#exit

 

Now configure router R2

— System Configuration Dialog —

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!

Router>enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2

R2(config)#

R2(config)#interface FastEthernet0/0

R2(config-if)#ip address 3.0.0.1 255.0.0.0

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#exit

R2(config)#interface Serial0/0/0

R2(config-if)#ip address 2.0.0.2 255.0.0.0

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R2(config-if)#exit

 

Now again go to router R1 and configure static routing on it

R1(config)#ip route 3.0.0.0 255.0.0.0 2.0.0.2

Now go to router R2 and configure static routing on it

R2(config)#ip route 1.0.0.0 255.0.0.0 2.0.0.1

 

Now I am here show you how to troubleshoot a static routing configured router

On R1 router we use this commands

R1#show ip route

Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP

D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP

i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area

* – candidate default, U – per-user static route, o – ODR

P – periodic downloaded static route

Gateway of last resort is not set

C 1.0.0.0/8 is directly connected, FastEthernet0/0

C 2.0.0.0/8 is directly connected, Serial0/0/0

S 3.0.0.0/8 [1/0] via 2.0.0.2

explanation of above results how to check by this command on the router.

In above output, C indicates that directly connected networks on the router. In this case network, 1.0.0.0 and 2.0.0.0 are directly connected to this router R1.

S indicates that indirectly connected networks on the router through static routing. In this case network, 3.0.0.0 is indirectly connected and statically routed via 2.0.0.2 port address.

Now if you want to check these computers are communicate or not then go to command prompt pc0 and open command prompt then type this command.

Packet Tracer PC Command Line 1.0
PC>ping 3.0.0.2

Pinging 3.0.0.2 with 32 bytes of data:

Request timed out.
Reply from 3.0.0.2: bytes=32 time=3ms TTL=126
Reply from 3.0.0.2: bytes=32 time=3ms TTL=126
Reply from 3.0.0.2: bytes=32 time=1ms TTL=126

Ping statistics for 3.0.0.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 2ms

THAT’S IT

Now If this result will be displayed on your PC, your computers surely communicate with each other. If you have any queries and suggestions regarding this comment or contact me directly I will be there to help you with any type of problem.

Your thoughts?

This site uses Akismet to reduce spam. Learn how your comment data is processed.