If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Mon Oct 1 07:15:23 2001 Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!portc03.blue.aol.com!newsfeed.mathworks.com!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2 From: Jeff Liebermann <jeffl@comix.santa-cruz.ca.us> Newsgroups: comp.unix.sco.misc Subject: Re: Network Routing Problem Date: Sun, 30 Sep 2001 09:12:41 -0700 Organization: Committee to Maintain and Independent Xenix Lines: 59 Message-ID: <6agertkh6ecupbsec471o600i92cap9tq9@4ax.com> References: <mDdg7.12988$Z2.159902@nnrp1.uunet.ca> <vu65ot4um08kmeegur6jllg2sohcc3q1iv@4ax.com> <3BA115E0.6C6CF1B@bellsouth.net> <20010913164213.C14119@jpradley.jpr.com> <3BB611A1.55FADF3@bellsouth.net> Reply-To: jeffl@comix.santa-cruz.ca.us NNTP-Posting-Host: p-447.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.8/32.548 Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103945 I think you missed the point and the purpose of /etc/hosts. The contents of /etc/hosts has nothing to do with establishing a route to a remote computer. You could put anything you want into /etc/hosts and you still will not accomplish anything useful for routeing. What /etc/hosts does is a crude form of DNS (Don't kNow Service). If you have a computer name that constantly needs to be converted into an IP address, put it in /etc/hosts and you won't need to go to the nameserver every time that name needs to be resolved. It's also required for local network machine names that are NOT known to a DNS server.
On the other foot, routeing is a bit more complex. Run: netstat -rn to see your router table. The way it works (assuming static routes) is that you start with a list of pre-defined routes to specific machines and specific networks. For example, if the local network is a class C (256 IP's) at 192.168.111.XXX, everything destined for that block of IP's will stay local and not go out via some router or gateway. If there's a remote block of machines at 192.168.222.xxx, there will be a gateway shown in the router table, that says: "everything for 192.168.222.XXX shall go via that gateway" If there are additional blocks of IP's, each will have a gateway which designates which freeway offramp to take to get to the 192.168.222.xxx block of IP's. Near the bottom is the default route, which points to a gateway to take if the destination IP is NOT local, and NOT one of the static routes. Usually, it points to an ISP and the internet. On Sat, 29 Sep 2001 14:23:29 -0400, "Frank J. Hajek" <fjhajek@bellsouth.net> wrote: >True. I missed the routing issue. > >Then, add route logic edited into /etc/tcp may do it, unless there are >hundreds of combinations and subject to frequent changes. In that case, a >separately maintained file sourced in /etc/tcp?? > > >Jean-Pierre Radley wrote: > >> Frank J. Hajek propounded (on Thu, Sep 13, 2001 at 04:24:00PM -0400): >> >> | Why not just add those hosts to /etc/hosts? Works for me. >> >> Adding a host to etc/hosts just helps to quickly get its IP number. It >> has zilch to do with routing packets to that host or to any other host. >> >> -- >> JP
-- Jeff Liebermann 150 Felker St #D Santa Cruz CA 95060 (831)421-6491 pgr (831)426-1240 fax (831)336-2558 home http://www.LearnByDestroying.com WB6SSY jeffl@comix.santa-cruz.ca.us jeffl@cruzio.com

/Bofcusm/840.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar