LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   routing i supose (https://www.linuxquestions.org/questions/linux-networking-3/routing-i-supose-27697/)

Cubiq 08-11-2002 12:13 PM

routing i supose
 
I have a big problem... I have two subnets: 192.168.1.0 and 192.168.0.0. I
have a computer wich is conected to both of them... both of them works
perfectly. How can I make them to be able to ping each other?

To be more specificaly here is the scheme:
Code:


      A                          B
| 192.168.1.1 |----| 192.168.1.2 |              C
                            | 192.168.0.2 |----| 192.168.0.17 |

from computer B the ping works at both A and C
from A works ONLY at B
and of course from C works only on B... HEEEELP!
thanks!

mlp68 08-11-2002 02:36 PM

Just enable routing - make sure that you have kernel support, then write a "1" in /proc/sys/net/ipv4/ip_forward, e.g.
echo "1" > /proc/sys/net/ipv4/ip_forward

To make that permanent, change the line in /etc/sysctl.conf to read
Quote:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1
from 0

Hope it helps,
mlp

peter_robb 08-12-2002 02:07 PM

And add a default gateway reference to machine B in both A & C.

route add default gw B
& edit /etc/sysconfig/network to show this gateway device.
Regards
Peter

Cubiq 08-12-2002 02:53 PM

... thanks... it works... and I was a little bit undocumented. Now... the final step. I really want to make all computers, from both subnets, to see in the same workgroup... any ideea? it's so complicated???

Mara 08-12-2002 05:48 PM

No, it's not hard. Only type the same workgroup in Samba configuration/Windows configuration (that's what I think you mean by writing about workgroups).

Cubiq 08-14-2002 01:52 AM

that's what i was talking about. i'tt try it out and then i'll post the results...(i think there is setted the same workgroup on boths subnets... i'm not sure...)

pavelg 10-24-2005 02:21 PM

slackware 10
 
very helpful guys
I just wanted to add that if you use Slackware 10 you have to go to /etc/rc.d/ and make the file rc.ip_forward executable

chmod 755 /etc/rc.d/rc.ip_forward

cheers


All times are GMT -5. The time now is 07:14 AM.