Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two networks + static routing

Status
Not open for further replies.

beagle9479

IS-IT--Management
Jul 10, 2002
24
US
I have two networks, one 192.168.0.x and one 192.168.2.x . The purpose for splitting up my small company is so that half of the people use one DSL line and half use another. I have two BEFSRU31 routers, one for each network. I have both working as DHCP servers for their network. I want the people on the 192.168.2.x network to be able to talk to/see the people on the 192.168.0.x network. From what I understand, static routing is the way I want to go.

I setup static routing on the 192.168.2.x router with destination LAN of 192.168.0.0, subnet of 255.255.255.0 and default gateway 192.168.2.10 (LAN IP of the router). I then ran a network cable from a LAN port on both routers. Machines on the 192.168.2.x network should be able to see computers on the 192.168.0.x network. But they can't.
Please help
Thanks

 
It is possible that, a computer set as 192.168.0.x with a gateway of 192.168.0.10 and a subnet mask of 255.255.253.0  could see a computer of 192.168.2.x with a gateway of 192.168.2.10 and a subnet mask of 255.255.253.0
the odd subnet mask should tell the computers to allow the following subnets without a router
192.168.0.x
192.168.1.x
192.168.2.x
192.168.3.x
that should include all your computers, so they should not need to route locally, but WILL route to get to any other subnets
I tried to remain child-like, all I acheived was childish.
 
You told the 192.168.2.x network how to get to the 192.168.0.x network (via the router 192.168.2.10)but you didn't create a static route the other way so that the traffic has a return path.

The router on the 192.168.2.x network should have a route to 192.168.0.x via the 192.168.0.x router and the 192.168.0.x router should have a route to the 192.168.2.x network via the 192.168.2.x router. The devices on each LAN should have a default route via their local router.

Chris.
************************
Chris Andrew, CCNA
chris@iproute.co.uk
************************
 
if he has a link between the LAN ports, he has one physical network, and we do not need the routers to access all 508. addresses he has, we just need routers to access beyond them, by using a subnet mask of 255.255.253.0 all the computers are in a single subnet with two gateways (any one computer has a single gateway)

Unless, of course, I am wrong. (my concern is actually with DHCP, which, as a broadcast, may reach either router) I tried to remain child-like, all I acheived was childish.
 
255.255.253.0 is not a valid subnet mask.

22 bits would be 255.255.252.0

192.168.0.0 /22 gives a host range of 192.168.0.1 to 192.168.3.254

23 bits would be 255.255.254.0

192.168.0.0 /23 gives a host range of 192.168.0.1 to 192.168.1.254

So, if you are using two networks separated by routers and you are using /24 masks for each network then setting up a static route on each router so that each network can get to the other is a five minute job. Or, you could set up RIP or IGRP. Not really necessary in this case but might be fun to do.

Chris.
************************
Chris Andrew, CCNA
chris@iproute.co.uk
************************
 
rats I miss my binary calculator, 255.255.252.0 it is. I tried to remain child-like, all I acheived was childish.
 
Thank you very much for the help. But I have a question. I currently have a Class C network and to my knowledge I need to leave the subnet mask as 255.255.255.0 . Am I correct?

I setup the static routing on both routers as IPROUTE first suggested and I still do not have access from one network to the other.
 
Could you provide us with the router configs?

Chris.
************************
Chris Andrew, CCNA
chris@iproute.co.uk
************************
 

Router 1 (192.168.0.x network)
WAN IP - public IP

LAN IP - 192.168.0.10
subnet mask - 255.255.255.0

static routing tab
destination lan IP - 192.168.2.0
subnet mask - 255.255.255.0
default gateway - 192.168.0.10
hop count - 15
interface - LAN

Router 2 (192.168.2.x network)
WAN IP - public IP
LAN IP - 192.168.2.10
subnet mask - 255.255.255.0

static routing tab
destination lan IP - 192.168.0.0
subnet mask - 255.255.255.0
default gateway - 192.168.2.10
hop count - 15
interface - LAN

there are no filters or forwarding enabled

other hardware configuration
both routers are connected to 24 port switches feeding their part of the network, then I have one cable going from a LAN port on one router to a LAN port on the other router.

Let me know if you need anything more
Jeff

 
If the LAN ports on each router are each connecting to a 24 port switch, then what is connecting the routers? If there another port on each router? If so, what are their IP addresses?

Sounds like you'd be better off with a single router connecting both networks. You also need to make sure that the client PC's have a route to the other network via the correct router.

From one router, can you ping the other router? If not, what troubleshooting have you done and what have you determined?

From the looks of your router configs you're not going to get very far. For example, on router 2 you have the destination LAN of 192.168.0.0 /24 via the port 192.168.2.10. Doesn't 192.168.2.10 just connect into the 192.168.2.x network? How is traffic that is being directed to that port going to get to 192.168.0.x.

More information needed I think.

Chris.
************************
Chris Andrew, CCNA
chris@iproute.co.uk
************************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top