Results 1 to 5 of 5
Hi friends,
I need to setup a linux router. The computer that is to be the router has 2 ethernet cards with ips 192.168.0.1 and 192.168.1.1.
Its like this:
COMP1: ...
- 03-05-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
Linux Routing
Hi friends,
I need to setup a linux router. The computer that is to be the router has 2 ethernet cards with ips 192.168.0.1 and 192.168.1.1.
Its like this:
COMP1: 192.168.0.2
COMP2: (ROUTER) :2 cards
card1: 192.168.0.1
card2: 192.168.1.1
COMP3: 192.168.1.2
Now whenever I send a packet from COMP1 to COMP3, it comes to COMP2 card1 but does not go to COMP3 nor card2 of COMP2.
What is the porblem???
Please give me a sample configuration if possible...
Thanx in advance...
- 03-05-2007 #2
in the computer which has 2 network cards
go to
/proc/sys/net/ipv4/
and as root
echo 1 > ip_forward !---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-05-2007 #3Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
Is that all???
Originally Posted by cyberinstru
- 03-05-2007 #4
That shud be enuf
COMP1 default Gw is 192.168.0.2echo 1 > /proc/sys/net/ipv4/ip_forward
and the default gateway of COMP3 is 192.168.1.1---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-05-2007 #5Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
Thank u so much...
Originally Posted by cyberinstru


Reply With Quote
