1828488 Members
2781 Online
109978 Solutions
New Discussion

Re: Static Routing

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Static Routing

Hi,

We have planned to configure 4 Networks with static routing. The rough network plan is given below,

NW Range - 192.168.1.0, Hosts per N/W - 6

Subnet Mask - 255.255.255.248

Network -1 : 192.168.1.8
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network2).
host1-LAN : 192.168.1.9
host1-External : 10.0.0.1

Network-2 : 192.168.1.16
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network1).
host1-LAN : 192.168.1.17
host1-External : 10.0.0.2
Host2 - has two NICs - one for LAN and the other for Routing the other network (Network3)
host2-LAN : 192.168.1.18
host2-External : 11.0.0.1


Network3 : 192.168.1.24
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network2).
host1-LAN : 192.168.1.25
host1-External : 11.0.0.2
Host2 - has two NICs - one for LAN and the other for Routing the other network (Network4)
host2-LAN : 192.168.1.26
host2-External : 12.0.0.1

Network4 : 192.168.1.32
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network3).
host1-LAN : 192.168.1.33
host1-External : 12.0.0.2

Now please help me in configuring Static Route entries in these routers.

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
3 REPLIES 3
Stuart Browne
Honored Contributor
Solution

Re: Static Routing

Funkyness..

Assumptions: LAN = eth0, External = eth1

Network-1
Host 1:
route add default eth1

Network-2
Host 1:
route add default eth0 gw 192.168.1.18
route add -net 192.168.1.8 netmask 255.255.255.248 eth1

Host 2:
route add default eth1
route add -net 192.168.1.8 netmask 255.255.255.248 eth0 gw 192.168.1.16

Network-3
Host 1:
route add default eth1
route add -net 192.168.1.32 netmask 255.255.255.248 eth0 gw 192.168.1.25

Host 2:
route add default eth0 gw 192.168.1.24
route add -net 192.168.1.32 netmask 255.255.255.248 eth1

Network-4
Host 1:
route add default eth1

Or something like that. Simply put..

The end ones (Network1/Network4) don't care, everything is down the external, thus only defaults.

The two middle networks have the default of the larger side of the newtorks, and smaller of the single subnet's of which are the opposite direction.

As a drawing, it's quite ugly ;P lots of over-lapping lines in the middle.

Enjoy ;)
One long-haired git at your service...
Karthik S S
Honored Contributor

Re: Static Routing

Thanks a lot .. it worked ..!!!

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Stuart Browne
Honored Contributor

Re: Static Routing

*YAY!* *does a funky dance* it worked! it worked! *dances away*

(0pts pls)
One long-haired git at your service...