cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
273
Views
0
Helpful
11
Replies
Beginner

Switching between one router

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!

Everyone's tags (1)
11 REPLIES 11
VIP Advisor

Re: Switching between one router

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

 



kind regards
Paul

Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
VIP Expert

Re: Switching between one router

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.
Beginner

Re: Switching between one router

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

 

VIP Expert

Re: Switching between one router

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

Re: Switching between one router

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

 

Highlighted
VIP Expert

Re: Switching between one router

No, what you have sounds correct.

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

Re: Switching between one router

Yep. Same thought came to me last night.

Sure enough, that's what is was.

 

Thanks!

VIP Expert

Re: Switching between one router

Your problem is solved then, correct?
Beginner

Re: Switching between one router

Yes. Thank you so much.

VIP Mentor

Re: Switching between one router

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' ?

Beginner

Re: Switching between one router

Sorry Georg - typo.

Cisco 1941

Bob

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards