Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 May 2000 15:32:43 -0400 (EDT)
From:      Thomas Good <tomg@mailhost.nrnet.org>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: PPP succeeds...DNS fails
Message-ID:  <Pine.LNX.3.96.1000508153134.1160D-100000@mailhost.nrnet.org>
In-Reply-To: <20000507211317.A69306@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 May 2000, Giorgos Keramidas wrote:

> First check to make sure that your /etc/host.conf file contains 'bind'
> 	% cat /etc/host.conf
> 	hosts
> 	bind

Yes, it looks good.

> Then, check the routing table.  You should have your default route pointing to
> the ppp link.  View the routing table with:

I use the following to connect via User PPP.

:::::::::::::
/etc/ppp/ppp.conf
:::::::::::::

default:
 set device /dev/cuaa0
 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

ISP:
 set timeout 120
# 888 str is my IP (static), 777 is the ISP's gw box
 set ifaddr 888.88.888.88 777.7.7.777 255.255.255.0 0.0.0.0
# Here is the primary NS / gw
 add default 777.7.0.7 777.7.0.777
# Here is the 2nd NS / gw
 add 777.7.0.77 777.7.0.777
 enable dns
 set phone 5551212  
# Here is an accurate description of the usr
 set authname doofus
 set authkey silly_bugger

------------------------------------------------------------------------------
I get errors from route that the network is unreachable, however, this
seems reasonable as we are not connected yet.  Is this correct???

If I run netstat at this point, it does not list my ISP's nameservers
despite the fact that they are indeed listed in /var/log/ppp.log
So I run the following script:
------------------------------------------------------------------------------

:::::::::::::
/home/doofus/route.sh
:::::::::::::
#!/bin/sh
# ident: route.sh
route add 777.7.0.7 -netmask 255.255.255.0 777.7.7.777
route add 777.7.0.77 -netmask 255.255.255.0 777.7.7.777
# forcing the issue...just to prove I can telnet to something!!!
route add 666.66.0.666 -netmask 255.255.255.0 777.7.0.777

------------------------------------------------------------------------------
Now route complains that it already knows about the nameservers...
Then I run ifconfig and all looks OK...
------------------------------------------------------------------------------

:::::::::::::
ifconfig -a
:::::::::::::
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 999.999.999.19 netmask 0xffff0000 broadcast 999.999.255.255
	ether 00:60:08:a8:54:75 
	media: 10baseT/UTP <half-duplex>
	supported media: autoselect 100baseTX <full-duplex> 100baseTX <half-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 10baseT/UTP <half-duplex>

[ snip ]

tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
	inet 166.84.207.41 --> 777.7.0.124 netmask 0xffffff00 

------------------------------------------------------------------------------
I run netstat and it sees the gw and ns1 and ns2.
------------------------------------------------------------------------------

:::::::::::::
netstat -rn
:::::::::::::
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
localhost          localhost          UH          0     2180      lo0
999.999.999/99     link#1             UC          0        0      xl0
box1               0:a0:24:9a:1a:53   UHLW        1    10668      xl0    703
box2               0:c0:d:1:c:1b      UHLW        1    82304      xl0    954
ns1.public.net     gw.public.net      UGHS        0       47     tun0
ns2.public.net     gw.public.net      UGHS        0       10     tun0
gw.public.net      doofus.dialup.acce UH          2        0     tun0

------------------------------------------------------------------------------
But telnet dies --- "No route to host" even tho it finds the IP of the
box in question.   ???

Thanks!
Tom

------- North Richmond Community Mental Health Center -------

Thomas Good                                   MIS Coordinator
Vital Signs:                  tomg@ { admin | q8 } .nrnet.org
                                          Phone: 718-354-5528  
                                          Fax:   718-354-5056  
                              
/* Member: Computer Professionals For Social Responsibility */ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.1000508153134.1160D-100000>