Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Another routing problem

Avatar of palanisaravanan
palanisaravanan asked on
Linux Networking
14 Comments1 Solution309 ViewsLast Modified:
I have 3 Linux machines(Debian woody) A,B,C.
A and B are in same network.
C is in diffrent network.
I want to use B as the gateway for A for connecting to the C network.
 -------------------------------------------------
A and B are in 192.168.1.0 network
A    IPaddress -   192.168.1.2
       Netmask 255.255.255.0

B     IP address 192.168.1.1
       Netmask 255.255.255.0


C is in 192.168.0.0 network
     IP address -192.168.0.1
     Netmask      255.255.255.0

Now I want  to connect from   192.168.1.0 network to 192.168.0.0 network and vice versa.

For this In machine B I did a routing.
      route add -net 192.168.0.0 netmask 255.255.255.0  dev eth0
and in Machine C
   route add -net 192.168.1.0 netmask 255.255.255.0  dev eth0
 
  done.Now i am able to ping from machine B to C.

 No  I want to use my Machine B as Gateway for A to access the other network.
 For this In Machine A in the routing entry I added

     route add -net 192.168.0.0 netmask 255.255.255.0 gateway 192.168.1.1 dev eth0.
                     But I cud not ping or ssh to C from A .From C also I cud not ping to A .But I can access Machine B  .
Why?.Am i did anything wrong?.            
ASKER CERTIFIED SOLUTION
Avatar of Jivko
Jivko

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answers