networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Simple static route
PostPosted: Fri Mar 01, 2013 1:44 pm 
Offline
New Member
New Member

Joined: Tue Feb 26, 2013 4:08 am
Posts: 25
Certs: mcitp
I have three routers A B C

Router A directly connected to router B and C (f0/0 f0/1).

Router A
----------------------------------
Router>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

1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, FastEthernet0/1

Router>show ip int br
Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 1.1.1.1 YES manual up up

FastEthernet0/1 2.2.2.2 YES manual up up

Vlan1 unassigned YES unset administratively down down



Router B
---------------------------------------------------------------------------------
Router#show ip route


Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
S 2.2.2.0 [1/0] via 1.1.1.0
[1/0] via 1.1.1.1

Router#show ip int br
Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 1.1.1.2 YES manual up up

FastEthernet0/1 unassigned YES unset administratively down down

Vlan1 unassigned YES unset administratively down down


Router C
-------------------------------------------------------------------------------
Router#show ip route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnets
S 1.1.1.0 [1/0] via 2.2.2.0
[1/0] via 2.2.2.2
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, FastEthernet0/0

Router#sh ip int br
Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 2.2.2.3 YES manual up up

FastEthernet0/1 unassigned YES unset administratively down down

Vlan1 unassigned YES unset administratively down down




When I try to ping from router B to C. It's give me this error

Router#ping 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:

IP: tableid=0, s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), routed via RIB

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, sending

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, encapsulation failed
.
IP: tableid=0, s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), routed via RIB

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, sending
!
IP: tableid=0, s=2.2.2.2 (FastEthernet0/0), d=1.1.1.2 (FastEthernet0/0), routed via RIB

IP: s=2.2.2.2 (FastEthernet0/0), d=1.1.1.2 (FastEthernet0/0), len 128, rcvd 3

IP: tableid=0, s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), routed via RIB

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, sending

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, encapsulation failed
.
IP: tableid=0, s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), routed via RIB

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, sending
!
IP: tableid=0, s=2.2.2.2 (FastEthernet0/0), d=1.1.1.2 (FastEthernet0/0), routed via RIB

IP: s=2.2.2.2 (FastEthernet0/0), d=1.1.1.2 (FastEthernet0/0), len 128, rcvd 3

IP: tableid=0, s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), routed via RIB

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, sending

IP: s=1.1.1.2 (local), d=2.2.2.2 (FastEthernet0/0), len 128, encapsulation failed
.
Success rate is 40 percent (2/5), round-trip min/avg/max = 3/4/5 ms


Top
 Profile  
 
 Post subject: Re: Simple static route
PostPosted: Fri Mar 01, 2013 2:07 pm 
Offline
New Member
New Member

Joined: Mon Sep 10, 2012 7:40 am
Posts: 12
Certs: CCNA
Could you share your running-configs?

BTW, from the output you posted, that ping is from B to A.


Last edited by fsolisa on Fri Mar 01, 2013 2:28 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Simple static route
PostPosted: Fri Mar 01, 2013 2:16 pm 
Offline
New Member
New Member

Joined: Tue Feb 26, 2013 4:08 am
Posts: 25
Certs: mcitp
Router#sh startup-config
startup-config is not present
Router#sh running-config
Building configuration...

Current configuration : 539 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 2.2.2.0 255.255.255.0 1.1.1.0
ip route 2.2.2.0 255.255.255.0 1.1.1.1
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!end


Top
 Profile  
 
 Post subject: Re: Simple static route
PostPosted: Fri Mar 01, 2013 2:22 pm 
Offline
New Member
New Member

Joined: Mon Sep 10, 2012 7:40 am
Posts: 12
Certs: CCNA
Why 2 static routes to the same network?

Basic syntax should be like this:
ip route {destination prefix} {destination prefix mask} {forwarding router's address}

So, leave only this one:
ip route 2.2.2.0 255.255.255.0 1.1.1.1


Top
 Profile  
 
 Post subject: Re: Simple static route
PostPosted: Fri Mar 01, 2013 2:56 pm 
Offline
New Member
New Member

Joined: Tue Feb 26, 2013 4:08 am
Posts: 25
Certs: mcitp
Now Working
:thankyou:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group