routing on linux machine

General discussion about Linux, Linux distribution, using Linux etc.

routing on linux machine

Postby hussainhm » Mon May 25, 2009 11:30 am

i have a two networks in my home pc's

1) 192.168.0.1/24
2) 172.16.0.1/24



both networks i have one linux server (192.168.0.2 255.255.255.0)
2nd linux server (172.16.0.1 255.255.255.0)

how can i create a getway on my linux machine who ping each of them.
hussainhm
Cadet
 
Posts: 3
Joined: Mon Mar 16, 2009 5:30 pm
WLM: hussain_hm@hotmail.com

Postby lambda » Mon May 25, 2009 11:38 am

you have one network with a linux pc and some other machines.
you have another network with a different linux pc and some other machines.

is that correct?

if so, you just need to put them all on the same switch and add interface aliases on the linux machines. if you can't do that, put one more ethernet card in each linux machine and connect them directly with a crossover cable.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby hussainhm » Mon May 25, 2009 12:28 pm

lambda wrote:you have one network with a linux pc and some other machines.
you have another network with a different linux pc and some other machines.

is that correct?

if so, you just need to put them all on the same switch and add interface aliases on the linux machines. if you can't do that, put one more ethernet card in each linux machine and connect them directly with a crossover cable.


there is know way to create gateway on each machine using iptable
hussainhm
Cadet
 
Posts: 3
Joined: Mon Mar 16, 2009 5:30 pm
WLM: hussain_hm@hotmail.com

Postby lambda » Mon May 25, 2009 1:15 pm

there is know way to create gateway on each machine using iptable
i have no idea what you're trying to say. did you mean to type "no" or "know"? iptables isn't required for gateways.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron