LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2002, 12:13 PM   #1
Cubiq
Member
 
Registered: Jan 2002
Location: Europe, Romania
Distribution: Slackware 9.1
Posts: 81

Rep: Reputation: 15
Angry 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!
 
Old 08-11-2002, 02:36 PM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
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
 
Old 08-12-2002, 02:07 PM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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
 
Old 08-12-2002, 02:53 PM   #4
Cubiq
Member
 
Registered: Jan 2002
Location: Europe, Romania
Distribution: Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
Thumbs up

... 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???
 
Old 08-12-2002, 05:48 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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).
 
Old 08-14-2002, 01:52 AM   #6
Cubiq
Member
 
Registered: Jan 2002
Location: Europe, Romania
Distribution: Slackware 9.1
Posts: 81

Original Poster
Rep: Reputation: 15
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...)
 
Old 10-24-2005, 02:21 PM   #7
pavelg
LQ Newbie
 
Registered: Oct 2005
Location: Eastern Europe
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
routing help please chopp Linux - Networking 18 12-20-2004 03:31 PM
how i supose to run file that ends with ".c" ? SlackwareMan Linux - Software 2 08-08-2004 11:14 PM
Redhat 9 disk space full when not supose to be? cyb0rg51 Linux - Newbie 6 04-25-2004 12:25 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
ALSA - thought it was supose to be better then this... bkeating Linux - Software 10 09-19-2003 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration