Solved

Linux Routing

Posted on 1997-05-06
4
422 Views
Last Modified: 2010-03-18
I have just set up Linux with what seems to be all the necessary items ie(route, hosts.conf, etc.) My problem though is that although I can ping myself using loopback, I cannot see anyone on the network.   I get an error  "Unable to connect to remote host: No route  to host.  I would like to know how to cure this problem.
0
Comment
Question by:ejs
4 Comments
 
LVL 2

Expert Comment

by:mlev
ID: 1584539
Check 'route' - does it show everything you need?

If you have a PPP connection, you need a default route:
route add -net default <peer address>
0
 
LVL 19

Expert Comment

by:xterm
ID: 1584540
Do you have support compiled for your ethernet card?  does it
detect it at boot time?
Do you have a gateway configured?  route add default gw <IP addy>
paste the results of "netstat -nr" after adding your gateway if
you're still having problems, and let us take a look

0
 
LVL 3

Expert Comment

by:pc012197
ID: 1584541
Pinging yourself using loopback is net very helpful. Try to ping yourself with your IP-address. If it works, you have a routing problem, if it doesn't you have an ifconfig problem.

0
 
LVL 2

Accepted Solution

by:
dux earned 50 total points
ID: 1584542
If you network card works correctly, add a route to your network like this:

route add - net your_net

where your net is your network address. (ex. for a C class: 193.226.6.0)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now