Skip to main content

Deciding on Static Routing

More
17 years 4 days ago #23259 by drummond
Hi guys if anyone can help or point me in the right direction would be great what Im trying to do is determine the static routing information for each gateway in a network.

example -
LAN 1
192.168.1.0 - 192.168.1.63
subnet - 255.255.255.192

- Connected by router -

LAN 2
192.168.2.0 - 192.168.2.63
255.255.255.192

How do I determine the static routing of the gateway?

Is it just the Destination address - Subnet Number - Network Address?

e.g. Lan 1 talking to LAN 2
192.168.2.0 255.255.255.192 192.168.1.63

Any help would be great.
Cheers.
More
17 years 3 days ago #23265 by TheBishop
Not clear here whether your two subnets are connected via a pair of routers with some sort of WAN in between them or by a single router directly connecting both subnets. However your approach is basically the same. there needs to be a routing table entry at each 'side' that tells the router about the distant IP network (defined by the network address and subnet mask) and the IP address of the gateway or interface that leads to it
More
17 years 3 days ago #23267 by S0lo
Replied by S0lo on topic Re: Deciding on Static Routing
I assume that you have 2 LANs connected by a single router.

Then a route (wither static or dynamic) will have to include some thing like this:

Destination Network Address - Subnet Mask - Next Hop Address

Or

Destination Network Address - Subnet Mask - Internal interface

In your case:
e.g. Lan 1 talking to LAN 2
192.168.2.0 255.255.255.192 Fa0/0

were Fa0/0 is the router interface connected to LAN 2.

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
17 years 3 days ago #23271 by drummond
Yep its 2 LANs connected by a single router.
More
16 years 11 months ago #23341 by Elohim
If you have two networks connected to the same router, you don't need any static routes on the router at all. Since the networks are directly connected to the router, the router already knows how reach it. All you have to do is configure the hosts to use the router as a default gateway.
Time to create page: 0.137 seconds