(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



network routing ppp wan


What is this stuff?

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 - Wed Aug  9 11:47:40 2000
Path: news.randori.com!hermes.visi.com!news-out.visi.com!xfer.netnews.com.MISMATCH!xfer10.netnews.com!xfe11.netnews.com!netnews.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!firehose.mindspring.com!not-for-mail
From: "David H. Funte" <none>
Newsgroups: comp.unix.sco.misc
Subject: Re: Routing table question
Date: Wed, 9 Aug 2000 09:04:24 -0500
Organization: MindSpring Enterprises
Lines: 163
Message-ID: <8mroul$7vs$1@slb7.atl.mindspring.net> 
References: <8mmnel$6oi$1@slb1.atl.mindspring.net> <39908002.28352D86@worldnet.att.net> 
NNTP-Posting-Host: d1.8a.ce.f7
X-Server-Date: 9 Aug 2000 14:13:41 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Xref: news.randori.com comp.unix.sco.misc:64277
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000


----- Original Message -----
From: Steve Fabac <smfabac@worldnet.att.net>
Newsgroups: comp.unix.sco.misc
Sent: Tuesday, August 08, 2000 4:47 PM
Subject: Re: Routing table question




> David H. Funte wrote:
> >
> > Once upon a time, there were two SCO 5.04 servers that were connected
via
> > PPP....
> >
> > The only way I can get both systems to have full access to the other
> > server's IP addresses is to
> >
> >             (1) delete the entire routing table
> >             (2) reenter the routing table from scratch.
> >
> > I have a shell script that takes the standard output of the
"netstat -rn"
> > command, and then deletes all routes.
> >
> > Then the routes are specified.
> >
> > For example:
> >
> > The two systems are 192.168.2.x and 192.168.3.x
> > Both servers have a subnet mask of 255.255.0.0
> >
> > The PPP connection is from 2.1 to 3.1
> > The NIC card in both systems are at 2.10 and 3.10
> >
> > After deleting the routes. I use the following commands to rebuild the
> > table:
> >
> > Run from the 192.168.3 system:
> >
> > route add 192.168.0.0 192.168.3.10
> > route add 192.168.3.0 127.0.0.1
> > route add 192.168.3.1 127.0.0.1
> > route add 192.168.3.10 127.0.0.1
> > route add -interface -netmask 255.255.0.0 192.168.2.1 192.168.3.1
> > route add -netmask 255.255.0.0 192.168.2.0 192.168.2.1
> >
> > The reason (I believe) that I have to make this change is that the
default
> > route table is too stupid to know that PPP is in the middle. SO...Even
> > though each server is part of the same subnet...I have to teach it to
use
> > the PPP interface  by using "route add -interface" as in line #5 above.
> > The route table then shows that the 2.1 to 3.1 connection is ppp0 rather
> > than net0
> >
> > Question #0?: I just noticed the redundant routes from the localhost to
the
> > 192.168.3 network.   The 3.1 connection is the PPP route, the 3.10
> > connection is the NIC card.  But isn't this all covered in the statement
> > "route add 192.168.3.0 127.0.0.1"?   (I would experiment, but the system
> > the system is only free on the weekends)
> >
> > Question #1:  Even though the above changes on both systems DO WORK, I'm
> > nervous about deleting the entire routing table and reconstructing it.
Is
> > this commonly done? (BTW: after approx. 5 hours of deleting and
recreating
> > routing tables, both systems did a DOUBLE PANIC at approximately the
same
> > time.  That only added to my nervous condition.)
> --------------------------------------------------------------------------
-----------------------------------------------
> No, usually no reason to delete a routing table.
>
> I suggest that you change your ppp link to the following:
>
> LAN1 192.168.2.x
> UNIX 192.168.2.10
> PPP1 192.168.10.1 <-> PPP2 192.168.10.2
>                       UNIX 192.168.3.10
>                       LAN2 192.168.3.x
>
>
> Note that the ppp link must be a separate network (can't be the same
> as either the 192.168.2 or 192.168.3 LANS). This configuration has
> always worked for me.
>
> Is this a dedicated link? if so then the netconfig script will properly
> update the routing information for you and create a ifconfig ppp section
> in /etc/tcp so that ppp will be brought up when the machine is booted.
>
> If the connection is dial-up then you may need to run
> rout add default 192.168.10  on both unix servers after the link is up.
>
> /etc/hosts on both machines should list:
>
> 192.168.10.1 PPP1
> 192.168.10.2 PPP2
>
> use 255.255.255.0 as the netmask for all of your interfaces, including
> the PPP link.
>
> Once you have the "default" rout listed, pinging any address will work.
>

Thanks, your response makes sence.  I have (slowly) come to the conclusion
that even though the network is one network, the PPP interface forces a
split.  By putting the two servers on the same subnet mask, I've confused
the network.

A valuable lesson for the future

I haven't tried the change yet, but I will post the result.

Thanks all for your input and patience.



> >
> > Question #2:  At what point in the boot process would this change be
made.
> > After the /etc/rc2.d/S85tcp script?  I don't think I can build this
using
> > the /usr/internet/etc/sco_IP/routes file because the
/etc/rc2.d/S90iproute
> > script isn't smart enough to force the -interface connection that I
need.
> > perhaps I should create a /etc/rc2.d/S99myroutes script that deletes and
> > rebuilds the table?
> >
> > Question #3:  How likely is this change going to cause future system
admin
> > problems?  Example: anyone changing the system will be a little
surprised
> > when the old routing tables come back each time the system boots.
> >             In the past, I document special system changes by modifying
the
> > root's .profile to display a message about the changes as a reminder.
If
> > the list is too long, I reference a text file that the user can read.
This
> > takes care of the manual changes, but automated scripts won't be aware
of
> > the changes.
> >
> > Question #4: How is the default route table build.  In other words, what
> > script or program is responsible for building the bogus route table, and
> > where does it get it's data?  Perhaps I can just correct the original
data?
> >
> > Other comments, suggestion, questions, are welcome...
> >
> > PS: Thanks A.P. Lawrence for the info on your site.    I added
> >  to my bookmarks.
> >
> > David H. Funte
> >
> > --
>
>
>                                    Steve Fabac
>                                     S.M. Fabac & Associates
>                                      816/765-1670





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



/Bofcusm/471.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.

Publishing your articles here

Jump to Comments



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.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress