Subject: ppp works. can't ping out. routing problem
To: None <robert_maul@hotmail.com>
From: robert maul <robert_maul@hotmail.com>
List: netbsd-help
Date: 09/01/2001 18:34:57
hi all,

i am new to NetBSD.

i have a fresh install of Net-BSD 1.5.1 on my pc.

i installed ppp and verified i am connected with my
ISP with the files at the end of this message:

i am not a systems administrator and i am not sure
what to do next.

the very helpful sys-admin at my ISP told me i needed
to add more stuff to my routing table but i don't
know how to do that.

i tried:

Dell# route add -host 63.137.34.129  63.137.37.141
writing to routing socket: File exists
add host 63.137.34.129: gateway 63.137.37.141: File exists

but that didn't work.

here are some commands i executed while connected
to my ISP:

Dell# ping -n 63.137.37.141
PING 63.137.37.141 (63.137.37.141): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
----63.137.37.141 PING Statistics----
3 packets transmitted, 0 packets received, 100.0% packet loss

Dell# ping -n 63.137.34.129
PING 63.137.34.129 (63.137.34.129): 56 data bytes
64 bytes from 63.137.34.129: icmp_seq=0 ttl=255 time=223.829 ms
64 bytes from 63.137.34.129: icmp_seq=1 ttl=255 time=244.091 ms
64 bytes from 63.137.34.129: icmp_seq=2 ttl=255 time=144.462 ms
64 bytes from 63.137.34.129: icmp_seq=3 ttl=255 time=150.694 ms
^C
----63.137.34.129 PING Statistics----
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 144.462/190.769/244.091/50.618 ms

(something working here)

Dell# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  
Interface
10                 link#1             UC          1        0   1500  ne2
10.0.0.1           00:20:78:03:76:5b  UHLc        1       74   1500  ne2
63.137.34.129      63.137.37.141      UH          0        0   1500  ppp0
127                127.0.0.1          UGRS        0        0  33228  lo0
127.0.0.1          127.0.0.1          UH          1        0  33228  lo0

...

Dell# ifconfig -a
ne2: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:4f:49:08:62:c1
        media: Ethernet autoselect (10baseT)
        inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255
        inet6 fe80::24f:49ff:fe08:62c1%ne2 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
        inet 127.0.0.1 netmask 0xff000000
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 63.137.37.141 -> 63.137.34.129 netmask 0xff000000
        inet6 fe80::24f:49ff:fe08:62c1%ppp0 -> :: prefixlen 64 scopeid 0x3
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
strip0: flags=0<> mtu 1100
strip1: flags=0<> mtu 1100
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
gre0: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
gre1: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
ipip0: flags=8010<POINTOPOINT,MULTICAST>
ipip1: flags=8010<POINTOPOINT,MULTICAST>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280

Here are some notes given to me by a friend of mine
for setting up my ppp:

>Okay, here's what you need to get your ppp conection working.
>
>Create the file /etc/ppp/pap-secrets, and set it's permissions to 0600.
>This file should contain a single line that looks something like the
>following:
>
>	<user-name>	*	<password>	*
>
>The second and forth field would be used to specify the hostname allowed
>to dial in and the IP address it would be given.  Since we're not
>accepting incoming calls, just leave these as asterisks.
>
>Now setup an /etc/ppp/options file.  My options file looks like this:
>
>	/dev/modem      #/dev/tty01
>	57600
>	persist
>	crtscts
>	lock
>	modem
>	connect '/usr/sbin/chat -e -v -f /etc/ppp/PPP-login'
>	name <user-name>
>
>I use /dev/modem because I have it symlinked to /dev/tty01, where the
>modem actually is.
>
>You now need to setup the chat script.  In the options file we defined
>the chat script as being /etc/ppp/PPP-login, so you should create this
>file with the following content:
>
>	ABORT BUSY
>	ABORT 'NO CARRIER'
>	REPORT CARRIER
>	REPORT CONNECT
>	'' 'ATZ'
>	'OK' 'ATD<isp-phone-number>'
>	'CONNECT' \d\d\c
>
>You should be all set to start pppd.  Just execute /usr/sbin/pppd and it
>should dial out correctly.
>
>Now that you're connected, you'll find that you can't do DNS lookups.
>This is an easy fix.  Edit the file /etc/resolv.conf (creating it if
>necessary) and place the following lines in it:
>
>	domain <domain-name.com>
>	nameserver 63.137.32.23		# NS1.getnet.com
>	nameserver 63.137.32.21		# NS2.GETNET.NET
>	lookup file bind
>
>This should resolve your ftp/ping issues.
>
>Also, FWIW, when you're trying to ping an IP address, use the '-n' flag
>with ping so it doesn't attempt to resolve the IP address through DNS:
>
>	/sbin/ping -n 204.177.81.242
>
>And you should be good to go!


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp