static routing configuartion on cisco router using serial port.

Posted: March 30, 2015 in CCNA
Tags: , ,

Learn how to configure static routing using serial port on cisco routers.This is a basic Lab to show you how to configure static routing on cisco router using serial interfaces like se0/0/0 or se0/0/1.This is little bit different from  static routing done using fast ethernet port, because now you have to assign clock rate on on of it interface which will be DCE.

static routing using serial port

Lets start configuring static routing.

First of all we need to assign ip addresses on both pc and then assign ip addresses on each and every interfaces of routers and make them up using no shutdown command.

Here in this article i assume that you know how to assign ip address on pc.so i am going to start configuration on routers.

 

CONFIGURATION ON ROUTER0 Say R1:

Router>enable

Router#config t

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

Router(config)#hostname R1

R1(config)#int fa0/0

R1(config-if)#ip address 10.0.0.1 255.0.0.0

R1(config-if)#no shut

R1(config-if)#exit

R1(config)#int se0/0/0

R1(config-if)#ip address 20.0.0.1 255.0.0.0

R1(config-if)#clock rate 64000

R1(config-if)#no shut

 

CONFIGURATION ON ROUTER1 Say R2:

Router>enable

Router#config t

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

Router(config)#hostname R2

R2(config)#int fa0/0

R2(config-if)#ip address 30.0.0.1 255.0.0.0

R2(config-if)#no shut

R2(config-if)#exit

R2(config)#int se0/0/0

R2(config-if)#ip address 20.0.0.2 255.0.0.0

R2(config-if)#no shut

 

Now again go back to Router R1 and configure route in global configuration mode:

R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2

Now again go back to Router R2 and configure route in global configuration mode.

R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1

 

STATIC ROUTING TROUBLESHOOTING COMMANDS:

here I am on router R1 :

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 10.0.0.0/8 is directly connected, FastEthernet0/0
C 20.0.0.0/8 is directly connected, Serial0/0/0
S 30.0.0.0/8 [1/0] via 20.0.0.2

 

Explanation of above command:

You can see the above output.In above output C means directly connected network.so in case of router R1 network 10.0.0.0 and network 20.0.0.0 is directly connected to it.

S indicating the indirectly connected network here which is network 30.0.0.0 and is staticly routed via 20.0.0.2 port address.

 

Now if you are intrested in seeing the detail information of every interfaces of this router you just type belwo command.

R1#show interfaces
FastEthernet0/0 is up, line protocol is up (connected)
Hardware is Lance, address is 000a.f334.aa01 (bia 000a.f334.aa01)
Internet address is 10.0.0.1/8
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of “show interface” counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier

 

If you want to trace the route or path to pc5 located in network 30.0.0.0 and you are on pc4 which is in network  10.0.0.0 just type below command and it will show you the route to pc5.

R1#traceroute 30.0.0.5
Type escape sequence to abort.
Tracing the route to 30.0.0.5

1 20.0.0.2 2 msec 0 msec 0 msec
2 * 13 msec 0 msec

 

If you want to see the arp table type below command:

R1#show ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.0.0.1 – 000A.F334.AA01 ARPA FastEthernet0/0

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s