You have to put up 2 lan cards within linux machine and both lan card should have different ip of different network which you have. Once you put up card boot up your machine and assign the 2 different IP's to them with. you can change the ip in /etc/sysconfig/network-scripts/ifcfg-eth0 or ifcfg-eth1 after this type # echo 1> /proc/sys/net/ipv4/ip_forward it will enable ip forwarding and later you can set the default gateway.
cheers --- Simanta J Handique <[EMAIL PROTECTED]> wrote: > Hi, > > Lately, my office network setup has been > reconfigured into machines within the 10.20.0.0 > network > and machines within the 10.30.0.0 network (the > netmask for both networks being 255.255.0.0). > > My linux box is on the following IP - 10.30.254.102. > The gateway to the internet is on > 10.20.1.110. I can reach the 10.20.0.0 network > through an internal gateway 10.30.0.1, but > 10.30.0.1 is not connected to the internet. > > If I set up a route to 10.20.1.110 via 10.30.0.1 and > then set my default gateway to 10.20.1.110, I > get the following error: > > #route add -host 10.20.1.110 gw 10.30.0.1 > > #route add default gw 10.20.1.110 > SIOCADDRT: Network is unreachable > > How can I set 10.20.1.110 as my default gateway? I > do not have the mandate to modify the settings > of any other machine apart from my Linux box. I > cannot change the IP address of my Linux box. > > The man pages on "route" says: > NOTE: The specified gateway must be reachable first. > This usually means that you have to set up a > static route to the gateway beforehand. > > Any help in this regard will be appreciated > > Sam > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer > relations > Here's your chance to show off your extensive > product knowledge > We want to know what you know. Tell us and you have > a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > linux-india-help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/linux-india-help ===== Sanjay BhardwajNetwork Administrator __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
