Hi, I think a better idea will be to add the route in the following manner.
route add -net 10.50.81.0 netmask 255.255.255.0 dev eth1 route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0 please remove the default gw if you have one as this will throw all the packets to that interface. I think you have eth0 192.168.0.1 as the default gw. route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1 This should solve the problem Regards Abdul Khader On Thu, 2004-05-27 at 17:20, Amod Malviya wrote: > Yoga > > Although the convention is that Class A private address (10.x.x.x) have a netmask of > 8 (255.0.0.0), its not mandatory, hence, that cannot be the problem. > > Goutam > > Your routing tables look alright. However, you might want to add the following > entries: > > route add -net 10.50.81.0 netmask 255.255.255.0 gw 10.50.81.22 > route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.1 > > Also, please verify that you do not have any firewall setup. To disable the firewall: > > /etc/rc.d/init.d/iptables stop > /etc/rc.d/init.d/ipchains stop > > If you wish to keep a firewall, have the correct configuration (If that is creating > the problem). > > Regards > --Amod > > ----- Original Message ----- > From: "Yoganandam Goteti" <[EMAIL PROTECTED]> > Date: Thu, 27 May 2004 16:15:11 +0530 > To: <[EMAIL PROTECTED]> > Subject: Re: [LIH]RH8.0 networking problem > > > > > From: "Goutam Baul" <[EMAIL PROTECTED]> > > > > > Dear All, > > > > > > I am installing RH 8.0 on an intel box with two Ethernet cards. > > > > > > Eth0 192.168.0.1/24 > > > Eth1 10.50.81.22/24 > > > > > > The default gateway is set to 192.168.0.1. When I am trying to ping any > > > machine in the LAN (say, 192.168.0.2), I am getting an error "destination > > > host is unreachable". When I ping the server from 192.168.0.2 I get a time > > > out error. The routing table is > > > > > > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > > > 10.50.81.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 > > > > subnet for 10.x.x.x. is 255.0.0.0 change it any try should work .. > > > > > 127.0.0.1 0.0.0.0 255.0.0.0 U 0 0 0 > > > lo > > > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 > > > eth0 > > > > > > The system was working fine till eth1 was introduced. Any idea what is > > going > > > on? I need to setup this machine urgently with two Ethernet cards and > > > nothing is moving. Please give me some pointer. > > > > > > With regards, > > > > > > Goutam > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > linux-india-help mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/linux-india-help > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > linux-india-help mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/linux-india-help ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
