cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
518
Views
0
Helpful
2
Replies

router help

brijeshakbari
Level 1
Level 1

i have 2 routers

r1---fa 0/0---ip address ----192.168.1.1

r2--fa 0/1---ip address------192.168.2.1

i have connected them by fast ethernet .

can i ping them?

if yes then how? if no then why???

2 Replies 2

Satya Narra
Cisco Employee
Cisco Employee

Yes, when you have /16 mask or anything less than /24

No, when you have anything more than /24 mask.

The router only understands its subnets. if you have a /24 mask, it can send out the ping packets on any of its subnets.

darren.g
Level 5
Level 5

Brijesh Akbari wrote:

i have 2 routers

r1---fa 0/0---ip address ----192.168.1.1

r2--fa 0/1---ip address------192.168.2.1

i have connected them by fast ethernet .

can i ping them?

if yes then how? if no then why???

What subnet mask do you have configured on the networks?

If you have the "default" mask for that subnet - I.E. /24 or 255.255.255.0 - then no, you won't be able to PING (or anything else) between the two interfaces.

The reason you can't is because the two interfaces are in different IP subnets, and won't know how to communicate with each other without a router - which is impossible to have in the middle because they're physically connected.

If you're using a bigger subnet mask (say /22, or 255.255.252.0) then they will be able to communicate with each other because they're in the *same* IP subnet, and don't need a router to communicate.

If you want to link the two routers and have them communicate with each other via the link, you need to change your addressing scheme by putting both interfaces into the same IP subnet.

Either.

1) Change the address of R2 f0/1 to 192.168.1.2 (or the address of R1 F0/0 to 192.168.2.2)

or

2) Make the subnet way smaller, and change both addresses to fit into it - use a /30 mask (255.255.255.252), and put addresses 192.168.3.1 on R1 F0/0 and 192.168.3.2 on R2 F0/1.

You can then use 192.168.1.0/24 on another interface in R1, and 192.168.2.0/24 in another interface on R2 - assuming you need to.

Cheers.

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