LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-26-2004, 05:53 AM   #1
Farhang
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
An Important Q about routing tables and iptables!!


Hi,
I have a problem that I think it's solution may be related to iptables and routing table!
my problem is this:
I have a computer with to network adaptor (eth0 : 192.168.0.27 and eth1 : 10.0.0.25) and I have two computer that one of them that its IP is 192.168.0.24 is in a network with my eth0 and another computer that its IP is 10.0.0.29 is in a seperate network with my eth1.
I want to ping (or telnet or ftp or ... ) 10.0.0.29 from 192.168.0.24 (ping from one of those comuter to another).I would be grateful to know how it could be done?
Regards,
Farhang Farzan
Tehran Univeristy
 
Old 07-26-2004, 06:12 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
the following makes your linux a router. (run it when u r root)

echo 1 > /proc/sys/net/ipv4/ip_forward

assing linux ip as gateway for both of computer. they must reach each other via ip.
if they cannot reach each other via ip, check linux firewall.
 
Old 07-26-2004, 06:43 AM   #3
dawood
LQ Newbie
 
Registered: Dec 2002
Location: Pune
Posts: 21

Rep: Reputation: 15
Hi,
You will also have to add some routes to the computer having 2 network cards so that the connectivity between these two dirrferent network can be established. U can try these commands,
route add -net 192.168.0.27 netmask X.X.X.X gw 10.0.0.25
route add -net 10.0.0.25 netmask X.X.X.X gw 192.168.0.27

Just try thsi commands it should give u the proper result.
Bye
 
  


Reply



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 tables TPB Linux - Networking 3 07-27-2005 09:01 PM
IP Routing Tables collern2 Linux - Security 1 05-23-2005 10:48 AM
routing tables or forwarding through IPTABLES razan Linux - Networking 7 03-24-2005 10:15 PM
iptables and routing tables configuration intranet_man Linux - Networking 6 12-17-2004 04:59 AM
routing tables help hadoque Linux - Networking 0 08-28-2004 09:10 AM

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

All times are GMT -5. The time now is 01:02 PM.

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