cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
728
Views
14
Helpful
5
Replies

Re:IP static route summary query

ambivert skill
Level 1
Level 1

Hi,

In my Lab environment in GNS I have connected two 7200 series router through fastethernet on router A I have given IP adress 192.168.10.54 and router B I have given IP address 192.168.10.53 and default route as 0.0.0.0 0.0.0.0 192.168.10.53 and when I run the command on router A it shows result as follows  "C  192.168.10.52/24 is directly connected ,Fast ethernet 2/0".

So I need to know why it's showing the result of .52 at last why not .53 or .54 at last what is the reason it's showing .52 which I have not mentioned in my IP address.

Thanks

1 Accepted Solution

Accepted Solutions

HI Ambivert,

Then thats the correct thing you are seeing. I have showed this to you on my previous update:

If you are using the /30 then the subnet would be displayed. 

R1(config)#int f1/0

R1(config-if)#ip address 192.168.10.54 255.255.255.252

R1#show ip route

     192.168.10.0/30 is subnetted, 1 subnets

C       192.168.10.52 is directly connected, FastEthernet1/0 <<<< 52 is displayed.

In your scenario:

===========

10.255.222.52 is the subnet and followed by the host ids.  ( 10.255.222.53 & 10.255.222.54 will be the two host which can be on .52 subnet hence it only shows you the .52 in the routing table.

Details on your subnet below:

http://www.subnet-calculator.com/subnet.php?net_class=A

http://www.subnetonline.com/pages/subnet-calculators/ip-subnet-calculator.php

HTH

Regards

Inayath

*Plz rate the helpfull posts.

View solution in original post

5 Replies 5

InayathUlla Sharieff
Cisco Employee
Cisco Employee

Hi Ambivert,

Can you paste the configuration?

I just tested this and it showing me the correct value:

R1---F1/0----------------F1/0 R2

R1

R1#sh run int f1/0

Building configuration...

Current configuration : 98 bytes

!

interface FastEthernet1/0

ip address 192.168.10.54 255.255.255.0

duplex auto

speed auto

end

R1#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

Gateway of last resort is not set

C    192.168.10.0/24 is directly connected, FastEthernet1/0 <<<<<

#########R2 Config###########

R2#sh run int f1/0

Building configuration...

Current configuration : 98 bytes

!

interface FastEthernet1/0

ip address 192.168.10.53 255.255.255.0

duplex auto

speed auto

end

ip route 0.0.0.0 0.0.0.0 192.168.10.54

R2#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

     Gateway of last resort is 192.168.10.54 to network 0.0.0.0

C    192.168.10.0/24 is directly connected, FastEthernet1/0 <<<<<<<

S*   0.0.0.0/0 [1/0] via 192.168.10.54

Questions:

======

1- I believe you are not using the default subnet mask on the interface? If i use /30 then I would be seeing the exact route:

R1(config)#int f1/0

R1(config-if)#ip address 192.168.10.54 255.255.255.252

R1#show ip route

     192.168.10.0/30 is subnetted, 1 subnets

C       192.168.10.52 is directly connected, FastEthernet1/0 <<<< 52 is displayed.

2- Kinldy provide us the config and we will tell you the reason you are seeing.

HTH

Regards

Inayath

*Plz rate the usefull posts.

Thanks Inayath I have use this not on default subnet but on subnet of /30 for you reference I am sending you my test

configuration we have like this R1 Fa0/1(10.225.222.54) ------R2 Fa0/1(10.225.222.53) but in #show ip route command it shows "C  10.225.222.52/30 is directly connected ,Fast ethernet 0/1".


So this thing is not clear why it's showing 10.225.222.52  .52 at last please let me know the reason behind it.

Regards

Ambivert

Hi,

it is showing the subnet  and the subnet is .52 , if you had .53 then it would be the host id and it would be a L route on newer 15.x IOS.

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

HI Ambivert,

Then thats the correct thing you are seeing. I have showed this to you on my previous update:

If you are using the /30 then the subnet would be displayed. 

R1(config)#int f1/0

R1(config-if)#ip address 192.168.10.54 255.255.255.252

R1#show ip route

     192.168.10.0/30 is subnetted, 1 subnets

C       192.168.10.52 is directly connected, FastEthernet1/0 <<<< 52 is displayed.

In your scenario:

===========

10.255.222.52 is the subnet and followed by the host ids.  ( 10.255.222.53 & 10.255.222.54 will be the two host which can be on .52 subnet hence it only shows you the .52 in the routing table.

Details on your subnet below:

http://www.subnet-calculator.com/subnet.php?net_class=A

http://www.subnetonline.com/pages/subnet-calculators/ip-subnet-calculator.php

HTH

Regards

Inayath

*Plz rate the helpfull posts.

ambivert skill
Level 1
Level 1

Thanks both of you for explaining me the reason behind it.

Regards

Ambivert

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card