cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
939
Views
0
Helpful
4
Replies

Routing between subnets on separate routers

Matt Cornall
Level 1
Level 1

Hi guys,

Little stuck with a router config, can't get the networks to speak to each other - new to this but can't see why this shouldn't work!

Router1

Fa0/0 connected to a switch and advertising 10.1.1.0/24 (10.1.1.1 assigned)

Fa0/1 connected to Router2 via 10.9.9.8/31 (10.9.9.9 assigned)

Router2

Fa0/0 connected to a switch and advertising 192.168.1.0/24 (192.168.1.1 assigned)

Fa0/1 connected to Router1 via 10.9.9.8/31 (10.9.9.10 assigned)

All ports are configured and up, and I can ping from hosts to routers on both sides and between routers but the traffic won't cross routers from 192.168.1.0/24 into 10.1.1.0/24 over the 10.9.9.8/31, what am I missing?

Regards,

Matt

4 Replies 4

acampbell
VIP Alumni
VIP Alumni

Hi Matt,

Have you actually added the static routing you require to route accross the network

Router 1
!
ip route 192.168.1.0 255.255.255.0 10.9.9.10 name route-to-router2
!


Router 2
!
ip route 10.1.1.0 255.255.255.0 10.9.9.9 name route-to-router1
!

Also will you change the mask on subnet 10.9.9.8/31 tp 10.9.9.8/30 (255.255.255.252)
if you want to use .9 & .10

Regards
Alex

Regards, Alex. Please rate useful posts.

Says "invalid next hop (it's the router)

Please see attached topology

I can ping;

From PC1 to 10.1.1.1 + 10.9.9.9

From PC0 tp 192.168.1.1 + 10.9.9.10

From Router0 to Router1

From Router 1 to Router0

I Cannot ping;

From PC1 to 10.9.9.10

From PC0 to 10.9.9.9

Basically whenever the connection passes between routers

Hi Matt,

Looking at your diagram

You need to get the masks sorted out on both routers


Your router configs should be:-


Router 0
!
host router0
!
int fas0/0
desc *** *** ROUTER 0 PC LAN *** ***
ip add 10.1.1.1 255.255.255.0
no shut
!
int fas0/1
desc *** ROUTER 0 to ROUTER 1 WAN ***
ip add 10.9.9.9 255.255.255.252
no shut
!
!
ip route 192.168.1.0 255.255.255.0 10.9.9.10 name route-to-router1
!

Router 1
!
host router1
!
int fas0/0
desc *** *** ROUTER 1 PC LAN *** ***
ip add 192.168.1.1 255.255.255.0
no shut
!
int fas0/1
desc *** ROUTER 1 to ROUTER 9 WAN ***
ip add 10.9.9.10 255.255.255.252
no shut
!
!
ip route 10.1.1.0 255.255.255.0 10.9.9.9 name route-to-router1
!

Make sure that the PCs have the local router address as their default gateways


Regards
Alex

Regards, Alex. Please rate useful posts.

Hi Alex, 

Thanks for getting back to me, the subnets look correct to me?

10.9.9.8/30 = 

10.9.9.8 Network

10.9.9.9-10 hosts (assigned)

10.9.9.9.11 Broadcast

Doesn't it?

/30 = 255.255.255.252

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