Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: How do I setup PPP & gated on DU 4.0
  1997-04-22  4:00 How do I setup PPP & gated on DU 4.0 Jeremy Anderson
  1997-04-22  4:00 ` Christian Worley
@ 1997-04-22  4:00 ` Robert Lowe
  1 sibling, 0 replies; 6+ messages in thread
From: Robert Lowe @ 1997-04-22  4:00 UTC (permalink / raw)



This is a multi-part message in MIME format.

--------------4487620152BF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Jeremy Anderson wrote:
> 
> I'm trying to setup PPP & Gated on DU 4.0, but not having much luck.

<snip>

Attached is the HOWTO the CSC sent me when I went through this.  It
still wasn't really straightforward, but it takes a bit to understand
all the pieces in this puzzle, if you've never done it before.  It's a
bit long.  Also, look in the system admin manual; there a couple of
chapters dedicated to SLIP/PPP.  There are probably several other steps
you might have to go through.  Do you really need to use gated?  I got
by with just turning on IP forwarding (iprsetup).

-Robert

--------------4487620152BF
Content-Type: text/plain; charset=us-ascii; name="ppp-howto.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ppp-howto.txt"



--------------------------------------------------------------------------------

                  HOW TO CONFIGURE PPP ON DIGITAL_UNIX V4.0

--------------------------------------------------------------------------------



The following instructions are intended to supplement the online or hardcopy
documentation on PPP configuration, not to replace it.


Please read thru these instructions completely before beginning.


**NOTE: These instructions assume that you have already configured and tested
a modem connection on your system. If this has not been done, refer to the
the man pages on uucpsetup, the modem configuration procedure for Digital Unix.

(To test modem using tip)

1) make sure you have added a line to your /etc/remote file

such as :   modem:dv=/dev/ttyd0:br#9600:pa=none:

Then issue the command   #tip modem 
                          atdt 5925555 (number of remote modem)

DO NOT PROCEED until you have made a successful connection to the remote modem.

Step 1:  Verify that PPP support has been built into your kernel by issuing
         the command:

         #sysconfig -s | grep ppp

         If ppp has not been built into your kernel, issue the command:

         #sysconfig -c ppp

Step 2:  Gather the following necessary information:
                         local host ip address
                         remote system ip address 
                         network mask    
                         tty device name (same one you tipped to)
                         baud rate (as in the /etc/remote file)
                         level of authentification 

OUTGOING PPP CONNECTIONS (for incoming connections, skip to step 7 below)

Step 3:  Insure that PPP passive is an enabled port characteristic if 
         connecting to a terminal server. Please refer to your terminal server configuration
         documentation for the necessary setup instructions.

         If connecting to a remote host, insure that that system has been
         configured for dial in modem access, and has ppp support built into
         its kernel. DO NOT PROCEDE until modem connectability has been
         successfully tested on your remote terminal server port or host tty.

Now we can start up a ppp session!

Step 4:  Establish a modem dial in session into your target system via tip.
         Log into the remote machine and invoke the ppp daemon on
         the remote system by issuing the command   #pppd passive
         (if the remote sysetm is a terminal server, issue the command:
         local>connect ppp)


Step 5:  In another window on the local system, issue the following command:
         #pppd ttyd1 9600 16.66.80.205:16.66.80.205 netmask 255.255.255.0 
               (dev)(speed)  (local ip:local ip)             (mask)

               NOTE: local ip address is used for both source and destination
                     address only when remote host is a terminal server. If the
                     remote host is a system, the syntax is as follows:

         #pppd ttyd1 9600 16.66.80.205:16.66.80.42 netmask 255.255.255.0
               (dev)(speed)  (local ip:remote ip)            (mask)            
          

Step 6:  In the 'tip' window, do a ~. to kill the tip session. The ppp 
         session will remain active. 

Optionally, you can use a 'chat script' to initate the tip session, start up the
remote ppp daemon, and initiate the pppd connect from the local system.
Included below is an EXAMPLE of what a chat script might look like.  


#!/bin/sh

/usr/sbin/pppd connect '/usr/ucb/chat -v "" "atdt5925555" "CONNECT" "\r" "\#" 
"secret" "ocal>" "c\sppp"' /dev/ttyd1 9600 -detach defaultroute 16.66.80.205
:16.66.80.205 netmask 255.255.255.0 

exit 0


To verify that this ppp connection is working, netstat -i will show incoming
and outgoing ppp packets. You'll notice that there will be NO outgoing ppp
packets until you ping a remote node. You may have to add an entry into your
route table for the system you're pinging, to force it thru the modem line. 
Or, when you issue your pppd connection initally, you can use the 'defaultroute'
option. Syntax would be as follows:

#pppd ttyd1 9600 defaultroute 16.66.80.205:16.66.80.42 netmask 255.255.255.0


INCOMING PPP CONNECTIONS


Step 7: Start a getty on the tty by adding an entry to /etc/inittab such as:

ppp:23:respawn:/usr/sbin/getty /dev/ttyd1 M9600 vt100

After editing /etc/inittab, have the system read the new entry by doing:

# init q


You should see a getty process on the tty.


Step 8: Dial in from the remote system, log in as a normal user, then:

$ pppd passive


This will start ppp on the tty.  You can then start ppp on the remote
system to establish the connection.


Alternatively, if you are dialing into Digital UNIX from a system which
uses pap for ppp authentication (such as Windows 95) you will not want
to run a getty.  Instead, start pppd from /etc/inittab, and leave it running
all the time:

ppp:23:respawn:/usr/sbin/pppd +pap -detach /dev/ttyd1 38400 login passive

The +pap option on pppd tell it to use pap for authentication, and the
login option tells it to use the /etc/passwd file for password
information (instead of /etc/ppp/pap-secrets).  The -detach flag is
necessary to prevent init from respawning the process excessively.


Step 9: Now you can fill in the UNIX account information (username,
password) in the Dial-Up Networking/Connection dialog box in Windows 95, and
connect to the UNIX system.  When you disconnect, the UNIX system will
respawn pppd and wait for another connection.


If you are having trouble establishing the ppp connection, you can
enable debugging by adding an entry to /etc/syslog.conf:

local2.debug	/var/adm/syslog.dated/daemon.log


Then find the /usr/sbin/syslogd process and send it a hangup signal:

# ps ax | grep syslog
  153 ??       S        0:35.88 /usr/sbin/syslogd
16986 ttyqc    S  +     0:00.01 grep syslog
# kill -1 153


Now you can start pppd with a "-d" flag and look in daemon.log for
messages.


For additional pppd options please review the online or hardcopy documentation
on ppp configuration.            

If you have followed these instructions and still cannot establish a ppp link,
please refer to the ppp troubleshooting portion of the Network Administration 
Guide, chapter 13.

If you are still encountering difficulties, please call the Digital Customer 
Support Center at 1-800-354-9000 and ask for Unix Networking Assistance.

--------------------------------------------------------------------------------

Below is a sample ppp connection setup on a digital unix V4.0 system connecting
into a digital ds700 terminal server using a DECmodem V32 at 9600 baud.

============================================================================

!!!    on the terminal server port, we see the following..

============================================================================

Local> show internet

Internet Address:  16.66.80.50
Subnet Mask:       255.255.255.0

Local> show port 3

Port  3:MYNAME                         Server: OSDMP3

Character Size:            8           Input Speed:               9600
Flow Control:            CTS           Output Speed:              9600
Parity:                 None           Modem Control:          Enabled
Stop Bits:           Dynamic
Access:                Local           Local Switch:              None
Backwards Switch:       None           Name:                    PORT_3
Break:              Disabled           Session Limit:                4
Forwards Switch:        None           Type:                      Ansi
Default Protocol:        LAT           Default Menu:              None

Preferred Service: None

Authorized Groups:   0
(Current)  Groups:   0

Enabled Characteristics:

Autoconnect,  Broadcast,  Failover,  Input Flow Control,  Lock,
Loss Notification,  Message Codes,  Output Flow Control,  Password,  PPP,
SLIP,  Verification

Local>

Local> show port 3 ppp ipcp

Port  3: MYNAME                       Server: OSDMP3

IPCP Characteristics:

IPCP:                               Enabled
Passive Open:                      Disabled
Restart Timer:                            3 seconds
Max Configure:                           10 transmissions
Max Terminate:                            2 transmissions
Max Failure:                             10 transmissions

IPCP Options:                Local:

Negotiate Address:         Disabled
Remote IP Address:          0.0.0.0
Compress Header:           Disabled
Compress States:                 16

Local>
Local> show port 3 ppp lcp char

Port  3: MYNAME                       Server: OSDMP3

LCP Characteristics:

LCP:                                Enabled
Passive Open:                      Disabled
Restart Timer:                            3 seconds
Max Configure:                           10 transmissions
Max Terminate:                            2 transmissions
Max Failure:                             10 transmissions

LCP Options:               Local:

MRU:                         1500
Character Map:           FFFFFFFF
Authentication:          Disabled
Link Quality:            Disabled
Magic Number:            Disabled
PF  Compress:            Disabled
ACF Compress:            Disabled
FCS Size:                  16 Bit

Local>
Local> change port 3 ppp ipcp host address 16.66.80.205


============================================================================

in window #1 of the digital unix system, we do the following...

============================================================================


# !tip
tip modem
connected
atdt5925555
CONNECT 9600
#

Network Access SW V1.4 for DS700-08 (BL91-32)

(c) Copyright 1994, Digital Equipment Corporation - All Rights Reserved

Please type HELP if you need assistance

Local> c ppp
Local -561- Starting SLIP or PPP datalink session~}#@!}!} } }$}-o~~}#@!}!}!} }$Q
5~


============================================================================

in window #2 fo the digital unix system, we do the following...

============================================================================



(note: a few previous informational command are given to show changes...

       prior to starting up the pppd deamon)

# ifconfig ppp0
ppp0: flags=10<POINTOPOINT>
# netstat -in

Name  Mtu   Network     Address               Ipkts Ierrs    Opkts Oerrs  Coll

ln0   1500  <Link>      08:00:2b:3e:2e:3a    206319     0   215821     0    33
ln0   1500  DLI         none                 206319     0   215821     0    33
ln0   1500  16.66.96.96 16.66.96.105         206319     0   215821     0    33
sl0*  296   <Link>                                0     0        0     0     0
lo0   1536  <Link>                            19399     0    19399     0     0
lo0   1536  127         127.0.0.1             19399     0    19399     0     0
ppp0* 1500  <Link>                              250    12     1403     3     0

# netstat -rn

Routing tables
Destination      Gateway            Flags     Refs     Use  Interface
Netmasks:
Inet             255.255.255.0
Inet             255.255.225.224

Route Tree for Protocol Family 2:

default          16.66.96.100       UG         11   139251  ln0
16.66.96.96      16.66.96.105       U          53    83193  ln0
127.0.0.1        127.0.0.1          UH          1        0  lo0

# pppd ttyd1 9600 16.66.80.205:16.66.80.205 netmask 255.255.255.0
# ifconfig ppp0

ppp0: flags=51<UP,POINTOPOINT,RUNNING>

     inet 16.66.80.205 --> 16.66.80.205 netmask ffffff00  ipmtu 1500

# netstat -in

Name  Mtu   Network     Address               Ipkts Ierrs    Opkts Oerrs  Coll
ln0   1500  <Link>      08:00:2b:3e:2e:3a    206487     0   215939     0    33
ln0   1500  DLI         none                 206487     0   215939     0    33
ln0   1500  16.66.96.96 16.66.96.105         206487     0   215939     0    33
sl0*  296   <Link>                                0     0        0     0     0
lo0   1536  <Link>                            19406     0    19406     0     0
lo0   1536  127         127.0.0.1             19406     0    19406     0     0
ppp0  1500  <Link>                              257    12     1403     3     0
ppp0  1500  16.66.80    16.66.80.205            257    12     1403     3     0

# netstat -rn

Routing tables

Destination      Gateway            Flags     Refs     Use  Interface
Netmasks:
Inet             255.255.255.0
Inet             255.255.225.224

Route Tree for Protocol Family 2:
default          16.66.96.100       UG         11   139260  ln0
16.66.80.205     16.66.80.205       UH          1        0  ppp0
16.66.96.96      16.66.96.105       U          55    83306  ln0
127.0.0.1        127.0.0.1          UH          1        0  lo0

# route add -net 16.66.80 16.66.80.205 1

old usage of trailing digit, assuming route via gateway
add net 16.66.80: gateway 16.66.80.205

# ping 16.66.80.2
PING 16.66.80.2 (16.66.80.2): 56 data bytes
64 bytes from 16.66.80.2: icmp_seq=0 ttl=254 time=304 ms
64 bytes from 16.66.80.2: icmp_seq=1 ttl=254 time=303 ms
64 bytes from 16.66.80.2: icmp_seq=2 ttl=254 time=302 ms

----16.66.80.2 PING Statistics----

3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms)  min/avg/max = 302/303/304 ms

# traceroute 16.66.80.2

traceroute to 16.66.80.2 (16.66.80.2), 30 hops max, 40 byte packets
 1  osdmp3 (16.66.80.50)  203 ms  203 ms  202 ms
 2  tsc (16.66.80.2)  206 ms  206 ms  204 ms
#


--------------4487620152BF--




^ permalink raw reply	[flat|nested] 6+ messages in thread

* How do I setup PPP & gated on DU 4.0
@ 1997-04-22  4:00 Jeremy Anderson
  1997-04-22  4:00 ` Christian Worley
  1997-04-22  4:00 ` Robert Lowe
  0 siblings, 2 replies; 6+ messages in thread
From: Jeremy Anderson @ 1997-04-22  4:00 UTC (permalink / raw)



I'm trying to setup PPP & Gated on DU 4.0, but not having much luck.  I've
read through all the man pages, but they're a wee bit technical, especially
for someone who hasn't done ppp/gated setup before. 

Here's what I have managed to do:
* I've modified my /etc/inittab so I've got a modem entry, and I can dial
into that normally.
* I've setup PPP accounts in the /etc/passwd (form:  username.ppp)

Now, I try to dial in, and I can't successfully negotiate protocols. 
Essentially, I want to use the DU 4.0 box as a gateway into the rest of my
development network, so the programmers can dial in, NFS mount their
directories, and work from home.

Any help would be greatly appreciated!

Jeremy Anderson
Systems Engineer
Global MAINTECH, Inc.
janderson@globalmt.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I setup PPP & gated on DU 4.0
  1997-04-22  4:00 How do I setup PPP & gated on DU 4.0 Jeremy Anderson
@ 1997-04-22  4:00 ` Christian Worley
  1997-04-23  4:00   ` Stephen Stuart
  1997-04-22  4:00 ` Robert Lowe
  1 sibling, 1 reply; 6+ messages in thread
From: Christian Worley @ 1997-04-22  4:00 UTC (permalink / raw)
  To: Jeremy Anderson


Jeremy Anderson wrote:
> 
> I'm trying to setup PPP & Gated on DU 4.0, but not having much luck.  I've
> read through all the man pages, but they're a wee bit technical, especially
> for someone who hasn't done ppp/gated setup before.
> 

One note on gated or routed:

When you run netsetup, it just asks if you want to run "gated" or
"routed".  I've also found that you have to set "ROUTER=YES" in
/etc/rc.config (then reboot) for DUX to forward packets.

I don't know why, I just do that and routing starts working.

Chris
-- 
  When I die, please cast my ashes upon Bill Gates
   --for once, let him clean up after me!



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I setup PPP & gated on DU 4.0
  1997-04-22  4:00 ` Christian Worley
@ 1997-04-23  4:00   ` Stephen Stuart
  1997-04-23  4:00     ` Chris Worley
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Stuart @ 1997-04-23  4:00 UTC (permalink / raw)



Christian Worley (cworley@altatech.com) wrote:
: Jeremy Anderson wrote:
: > 
: > I'm trying to setup PPP & Gated on DU 4.0, but not having much luck.  I've
: > read through all the man pages, but they're a wee bit technical, especially
: > for someone who hasn't done ppp/gated setup before.
: > 

: One note on gated or routed:

: When you run netsetup, it just asks if you want to run "gated" or
: "routed".  I've also found that you have to set "ROUTER=YES" in
: /etc/rc.config (then reboot) for DUX to forward packets.

It should ask if you're going to be a router as well.

: I don't know why, I just do that and routing starts working.

Setting ROUTER="yes" in /etc/rc.config causes the command "iprsetup -s"
to be executed at startup (see /sbin/init.d/inet), which sets the
values of the kernel variables ipforwarding and ipgateway accordingly.

Check the man page for iprsetup for details. You don't need to reboot
if you run iprsetup by hand (although you might want to restart or
reconfig gated).

Stephen
- -----
Stephen Stuart				stuart@pa.dec.com
Network Systems Laboratory
Digital Equipment Corporation



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I setup PPP & gated on DU 4.0
  1997-04-23  4:00   ` Stephen Stuart
@ 1997-04-23  4:00     ` Chris Worley
  1997-04-23  4:00       ` Stephen Stuart
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Worley @ 1997-04-23  4:00 UTC (permalink / raw)
  To: Stephen Stuart


Stephen Stuart wrote:
> 
> Christian Worley (cworley@altatech.com) wrote:
> : When you run netsetup, it just asks if you want to run "gated" or
> : "routed".  I've also found that you have to set "ROUTER=YES" in
> : /etc/rc.config (then reboot) for DUX to forward packets.
> 
> It should ask if you're going to be a router as well.

Where in "netsetup" is this question?  I've looked and cannot find the
option.
> 
> : I don't know why, I just do that and routing starts working.
> 
> Setting ROUTER="yes" in /etc/rc.config causes the command "iprsetup -s"
> to be executed at startup (see /sbin/init.d/inet), which sets the
> values of the kernel variables ipforwarding and ipgateway accordingly.
> 

Thanks,

It at least provides me a method where I don't need to boot to add
change the configuration.

Chris



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I setup PPP & gated on DU 4.0
  1997-04-23  4:00     ` Chris Worley
@ 1997-04-23  4:00       ` Stephen Stuart
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Stuart @ 1997-04-23  4:00 UTC (permalink / raw)



Chris Worley (cworley@altatech.com) wrote:
: Stephen Stuart wrote:
: > 
: > Christian Worley (cworley@altatech.com) wrote:
: > : When you run netsetup, it just asks if you want to run "gated" or
: > : "routed".  I've also found that you have to set "ROUTER=YES" in
: > : /etc/rc.config (then reboot) for DUX to forward packets.
: > 
: > It should ask if you're going to be a router as well.

: Where in "netsetup" is this question?  I've looked and cannot find the
: option.

Pick option 2, "Enable/Disable Network Daemons and Add Static Routes,"
and it's the second question:

***** ENABLE/DISABLE NETWORK DAEMONS AND ADD STATIC ROUTES *****

You can choose whether you want to enable or disable rwhod (rwho
daemon), and either gated (gateway daemon) or routed (route daemon).
You can also configure static routes.  Daemons and static route commands
are executed when the network is started up.

        ********************************************************
        *  Note that the OLD version of gated will be set up.  *
        *  You must run netconfig to set up the NEW version    *
        *  of gated.                                           *
        ********************************************************


Do you want to run rwhod [no]? 

rwhod is disabled.

Are you setting up your system to be an IP router [no]? 

[...]

Stephen
- -----
Stephen Stuart				stuart@pa.dec.com
Network Systems Laboratory
Digital Equipment Corporation



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-04-23  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-22  4:00 How do I setup PPP & gated on DU 4.0 Jeremy Anderson
1997-04-22  4:00 ` Christian Worley
1997-04-23  4:00   ` Stephen Stuart
1997-04-23  4:00     ` Chris Worley
1997-04-23  4:00       ` Stephen Stuart
1997-04-22  4:00 ` Robert Lowe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox