routing & ppp

routing & ppp

Post by Albert Cahal » Thu, 19 Oct 1995 04:00:00



I am still lost after reading many fine (and not so fine) manuals.
I need to be connected to Ethernet as 192.169.0.18 and also via ppp
once an hour to get mail.  The Ethernet works and I can get a ppp
connection, but I can not ping anything over ppp even with numeric
addresses.

Here is the routing table after a connect and some debugging output
left in /var/adm/messages.

frog:~# route -n
Kernel routing table
Destination     Gateway         Genmask         Flags MSS    Window Use Iface
192.233.85.139  *               255.255.255.255 UH    1436   0        0 ppp0
192.168.0.0     *               255.255.255.0   U     1436   0        4 eth0
127.0.0.0       *               255.0.0.0       U     1936   0       77 lo
default         192.233.85.139  *               UG    1436   0      349 ppp0

Oct 18 13:22:48 frog pppd[229]: pppd 2.1.2 started by root, uid 0
Oct 18 13:22:48 frog pppd[230]: Connecting with </usr/local/bin/pppchat>
Oct 18 13:22:49 frog chat[232]: send (ATDT5934557^M)
Oct 18 13:22:49 frog chat[232]: expect (CONNECT)
Oct 18 13:23:08 frog chat[232]: ATDT5934557^M^M
Oct 18 13:23:08 frog chat[232]: CONNECT -- got it
Oct 18 13:23:08 frog chat[232]: send (^M)
Oct 18 13:23:08 frog chat[232]: expect (ogin:)
Oct 18 13:23:08 frog chat[232]:  115200^M
Oct 18 13:23:10 frog chat[232]: Welcome to North Shore Access^M
Oct 18 13:23:10 frog chat[232]: ^M
Oct 18 13:23:10 frog chat[232]: Port of call: Lynn, berth c20^M
Oct 18 13:23:10 frog chat[232]: ^M
Oct 18 13:23:10 frog chat[232]: ^M
Oct 18 13:23:10 frog chat[232]: northshore login: -- got it
Oct 18 13:23:10 frog chat[232]: send (my-login-name^M)
Oct 18 13:23:10 frog chat[232]: expect (assword:)
Oct 18 13:23:10 frog chat[232]:  Pzoom^M
Oct 18 13:23:10 frog chat[232]: Password: -- got it
Oct 18 13:23:10 frog chat[232]: send (my-password^M)
Oct 18 13:23:10 frog pppd[230]: Connected...
Oct 18 13:23:11 frog kernel: ppp: channel ppp0 mtu = 1500, mru = 1500
Oct 18 13:23:11 frog kernel: ppp: channel ppp0 open
Oct 18 13:23:11 frog pppd[230]: set kernel debugging level to 0
Oct 18 13:23:11 frog pppd[230]: Using interface ppp0
Oct 18 13:23:11 frog pppd[230]: Connect: ppp0 <--> /dev/modem
Oct 18 13:23:11 frog pppd[230]: fsm_sdata(LCP): Sent code 1, id 1.
Oct 18 13:23:11 frog pppd[230]: LCP: sending Configure-Request, id 1
Oct 18 13:23:11 frog pppd[230]: fsm_rconfack(LCP): Rcvd id 1.
Oct 18 13:23:14 frog pppd[230]: fsm_rconfreq(LCP): Rcvd id 2.
Oct 18 13:23:14 frog pppd[230]: lcp_reqci: rcvd ASYNCMAP
Oct 18 13:23:14 frog pppd[230]: (0)
Oct 18 13:23:14 frog pppd[230]:  (ACK)
Oct 18 13:23:14 frog pppd[230]: lcp_reqci: rcvd MAGICNUMBER
Oct 18 13:23:14 frog pppd[230]: (78cb3cbc)
Oct 18 13:23:14 frog pppd[230]:  (ACK)
Oct 18 13:23:14 frog pppd[230]: lcp_reqci: rcvd PCOMPRESSION
Oct 18 13:23:14 frog pppd[230]:  (ACK)
Oct 18 13:23:14 frog pppd[230]: lcp_reqci: rcvd ACCOMPRESSION
Oct 18 13:23:14 frog pppd[230]:  (ACK)
Oct 18 13:23:14 frog pppd[230]: lcp_reqci: returning CONFACK.
Oct 18 13:23:14 frog pppd[230]: fsm_sdata(LCP): Sent code 2, id 2.
Oct 18 13:23:14 frog pppd[230]: fsm_sdata(IPCP): Sent code 1, id 1.
Oct 18 13:23:14 frog pppd[230]: IPCP: sending Configure-Request, id 1
Oct 18 13:23:14 frog pppd[230]: fsm_rconfreq(IPCP): Rcvd id 1.
Oct 18 13:23:14 frog pppd[230]: ipcp: received COMPRESSTYPE
Oct 18 13:23:14 frog pppd[230]: (45)
Oct 18 13:23:14 frog pppd[230]:  (ACK)
Oct 18 13:23:14 frog pppd[230]: ipcp: received ADDR
Oct 18 13:23:14 frog pppd[230]: (192.233.85.139)
Oct 18 13:23:14 frog pppd[230]:  (ACK)
Oct 18 13:23:14 frog pppd[230]: ipcp: returning Configure-ACK
Oct 18 13:23:14 frog pppd[230]: fsm_sdata(IPCP): Sent code 2, id 1.
Oct 18 13:23:14 frog pppd[230]: fsm_rconfnakrej(IPCP): Rcvd id 1.
Oct 18 13:23:14 frog pppd[230]: local IP address 198.115.180.39
Oct 18 13:23:14 frog pppd[230]: fsm_sdata(IPCP): Sent code 1, id 2.
Oct 18 13:23:14 frog pppd[230]: IPCP: sending Configure-Request, id 2
Oct 18 13:23:14 frog pppd[230]: fsm_rconfack(IPCP): Rcvd id 2.
Oct 18 13:23:14 frog pppd[230]: ipcp: up
Oct 18 13:23:14 frog pppd[230]: local  IP address 198.115.180.39
Oct 18 13:23:14 frog pppd[230]: remote IP address 192.233.85.139
--

Albert Cahalan

 
 
 

routing & ppp

Post by Craig Shrimpt » Sun, 22 Oct 1995 04:00:00


: I am still lost after reading many fine (and not so fine) manuals.
: I need to be connected to Ethernet as 192.169.0.18 and also via ppp
: once an hour to get mail.  The Ethernet works and I can get a ppp
: connection, but I can not ping anything over ppp even with numeric
: addresses.

First, your routing table says 192.168.0.0  not 192.169.0.0.  Is that
just a typo?  Second, which machine wont ping, the ppp host or a machine
on your ethernet?

-Craig

 
 
 

1. S.O.S - Route & PPP - S.O.S

I have been working in this one for a few days now and I am stumped.  Here
is all the info you should require.

   I am using a Redhat 6.1 box as my server. It is setup with two network
interfaces. One is assigned the ip 192.168.0.1 and the other plugs into an
adsl modem. I use a program called pppoe to establish my internet
connection, with that interface. As you may have guessed I am running ip
masquerading. I have a few computers setup on the network sharing this
internet connection just fine. I can ping other computers etc. A typical
setup for an NT box would be IP: 192.168.0.130 Netmask 255.255.255.0 and
gateway 192.168.0.1.
    The next thing I have setup is a dial-up ppp connection on the server. I
use mgetty to answer the phone then login manually and run a ppp script to
negotiate an IP address. I assign my dial up client the ip 192.168.0.55.
When I set this up it was my intention to be able to see other computers on
the network. i.e. be able to ping 192.168.0.130. This is not the case. I can
not reach any computers on the network (besides the host 192.168.0.1).
Although I can get to the internet. I believe this is beacuse I have my
ppp0(adsl) connection as the default gateway.
    Here is an observation. The client I dial in on gets assigned the subnet
255.255.255.255 where as all my internal networked computers use a mask of
255.255.255.0. Here are a few configuration files.

/etc/ppp/options:
noauth
asyncmap 0
netmask 255.255.255.0
proxyarp
lock
crtscts
modem

(notice the netmask setting ! This is not honored)

/etc/ppp/options.ttyS0
192.168.0.1:192.168.0.55

route -n
Kernel IP routing table
 Destination     Gateway        Genmask         Flags Metric Ref Use Iface
 192.168.0.1     *              255.255.255.255    UH      0   0   0 eth1
 199.166.XXX.X   *              255.255.255.255    UH      0   0   0 ppp0 -
Plugs into eth0 (adsl connection)
 192.168.0.55    *              255.255.255.255    UH      0   0   0 ppp1 -
dial up connection
 192.168.0.0     *              255.255.255.0      U       0   0   0 eth1
 127.0.0.0       *              255.0.0.0          U       0   0   0 lo
 default         199.166.XXX.X  0.0.0.0            UG      0   0   0 ppp0

I really appreciate any help you can offer.
Thanks
Rob Wheeldon

--
Rob Wheeldon
Systems Administrator
Ontario Die Company Limited
(519) 576-8950

2. How to set DDNS server under Redhat 8.0?

3. ppp && PPPoE && ADSL && net && buffer(s)

4. The adaptec 2940U2W

5. Hard Drive Access will using PPP & PPP routing questions

6. ppp etc

7. PPP Dialin & Routing & '95

8. Video card restrictions?

9. Linux & PPP & routing - HELP please!

10. Routing between ppp & Ethernet Interfaces

11. PPP & Routing problem

12. Help need with LAN & PPP (routing prob)

13. HELP: RedHat 5.0 & PPP 'Dial-in' (routes problem)