cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1205
Views
0
Helpful
11
Replies

Switching between one router

bobsather
Level 1
Level 1

Trying to route between two networks using ONE Cisco 1951 router. 192.168.0.x on G 0/0, and 192.168.1.x on G 0/1.

config t

int g 0/0

ip address 192.168.0.1 255.255.255.0

ip route 192.168.1.0 255.255.255.0 g 0/1

no shutdown

exit

config t

int g 0/1

ip address 192.168.1.1 255.255.255.0

ip route 192.168.0.0 255.255.255.0 g 0/0

no shutdown

exit

 

Static route does not show up in ip route

I can ping 1.1 and 0.1 from either side

Can't ping anything else on 0.x side from 1.x and visa-versa.

 

What am I missing? I don't have any other other routers, nor an Internet connection. This is a lab.

Help!

11 Replies 11

Hell

You dont say where your trying to connect to these subnets from?
However the reason why they don't show up in the route table as static routes is that those two subnets are connected routes>

sh ip route connected

 

int g 0/0

ip address 192.168.0.1 255.255.255.0

 

int g 0/1

ip address 192.168.1.1 255.255.255.0

ip route 192.168.0.0 255.255.255.0 g 0/0
ip route 192.168.1.0 255.255.255.0 g 0/1

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

To expand a bit on what Paul notes, a router will normally route between active connected interfaces automatically. (I.e. static route statements aren't needed.}

Connected interfaces have routing "priority" over static route statements.

These are different networks.

The show ip route connected list both a C and L connection for each. Two networks both variably subnetted and directly connected.

I would think that Cisco would automatically route between these two as they are both connected to same router.

I'm pretty sure all my routing stuff isn't being used as it seemingly has no effect on my ip route connections.

It's a brand new router with no script to speak of.

All I'm really trying to do is to connect one host on 192.168.0.x to another on 192.168.1.x and visa-versa.

Any suggestions are worth trying.

Thanks in advance for your help.

Bob

 

Are your hosts configured for their proper network and router interface IP as their gateway?

Hmm. Maybe. I might have this wrong.

Right now, if my host is on the 192.168.0 network, they point to 192.168.0.1  (the ip address of G 0/0)

Should the point to 192.168.1.1, the ip address of g 0/1? and visa-versa?

g 0/0 ip address 192.168.0.1

g 0/1 ip address 192.168.1.1

 

No, what you have sounds correct.

What kind of hosts (as some hosts, like Windows, might have a firewall blocking traffic)?

Yep. Same thought came to me last night.

Sure enough, that's what is was.

 

Thanks!

Your problem is solved then, correct?

Yes. Thank you so much.

Hello,

 

I might have missed that one, but I have never heard of a 1951 model ? 1941 and 2951, yes, but not 1951. Is that a typo ? Can you post the output of 'sh ver' ?

Sorry Georg - typo.

Cisco 1941

Bob

Review Cisco Networking for a $25 gift card