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


  Search this Thread
Old 07-26-2004, 05:53 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 2

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

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 : and eth1 : and I have two computer that one of them that its IP is is in a network with my eth0 and another computer that its IP is is in a seperate network with my eth1.
I want to ping (or telnet or ftp or ... ) from (ping from one of those comuter to another).I would be grateful to know how it could be done?
Farhang Farzan
Tehran Univeristy
Old 07-26-2004, 06:12 AM   #2
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
LQ Newbie
Registered: Dec 2002
Location: Pune
Posts: 21

Rep: Reputation: 15
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 netmask X.X.X.X gw
route add -net netmask X.X.X.X gw

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


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 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 > Forums > Linux Forums > Linux - Networking

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

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