Date: Fri, 7 Dec 2001 21:27:41 -0800 (PST) From: Annelise Anderson <andrsn@andrsn.stanford.edu> To: Joe & Fhe Barbish <barbish@a1poweruser.com> Cc: FBSD Questions <questions@FreeBSD.ORG> Subject: Re: IP addressing problem maybe? Message-ID: <Pine.BSF.4.10.10112072119450.81279-100000@andrsn.stanford.edu> In-Reply-To: <LPBBIGIAAKKEOEJOLEGOGEOACIAA.barbish@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 Dec 2001, Joe & Fhe Barbish wrote: > Can not ping from Win98 box through FBSD to internet. You definitely need to use ppp -nat when you start it. Looks to me like you're pinging the Win98 box as 10.10.10.24, but setting it up as 10.10.10.2. And tun1 (which is your ppp connection to the FreeBSD box) does not show 10.10.10.2 or 10.10.10.24. If you can't "mutually ping" you're not going to be able to get to the Internet through the FreeBSD box. So that's the problem connection. Annelise P.S. Original message below. (Sender will not participate in flame-war on top-posting.) > Nic card is not attached to LAN. > Tun0 is user ppp dial out to Isp. > Tun1 is user ppp dial in from win98 box. > Ifconfig shows status of connection after > user ppp modem dial out to ISP and Win98 box > Modem Dial in to FBSD box. > Who command shows barbish logged in from win98 box. > PING 63.162.62.2 from FBSD to internet is working. > PING 10.0.0.24 from FBSD to win98 box is not working. > FBSD ps ax command shows what is running at time of test. > netstat -I command shows routing at time of test. > Win98 can Ping 10.0.0.1 FBSD box, but can not > Ping 63.162.62.1 internet through FBSD box. > Have tried -nat on ppp direct command that starts dialin, > And enable proxy and enable proxyall, with no change in > Test results. > > > Does anybody have any ideas on what is wrong or what other > Commands I can issue to get more info? Need help big time. > > Thanks Joe > > > # ifconfig -a > lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1514 > inet6 fe80::d41d:8cd9:8f00:b204%tun0 prefixlen 64 scopeid 0x3 > inet 63.70.155.36 --> 208.206.15.4 netmask 0xffffff00 > Opened by PID 198 > tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 > inet6 fe80::d41d:8cd9:8f00:b204%tun1 prefixlen 64 scopeid 0x4 > inet 10.0.0.1 --> 10.0.0.24 netmask 0xffffffff > Opened by PID 178 > > > # who > root ttyv0 Dec 7 18:11 > barbish ttyd1 Dec 7 18:18 > > # ping -c 2 63,162.62.2 > PING 63.162.62.2 (63.162.62.2): 56 data bytes > 64 bytes from 63.162.62.2: icmp_seq=0 ttl=115 time=400.472 ms > 64 bytes from 63.162.62.2: icmp_seq=1 ttl=115 time=410.043 ms > --- 63.162.62.2 ping statistics --- > 2 packets transmitted, 2 packets received, 0% packet loss > round-trip min/avg/max/stddev = 400.472/405.257/410.043/4.785 ms > > # ping -c 5 10.0.0.24 > PING 10.0.0.24 (10.0.0.24): 56 data bytes > --- 10.0.0.24 ping statistics --- > 5 packets transmitted, 0 packets received, 100% packet loss > > > # ps ax > PID TT STAT TIME COMMAND > 0 ?? DLs 0:00.00 (swapper) > 1 ?? ILs 0:00.02 /sbin/init -- > 2 ?? DL 0:00.00 (pagedaemon) > 3 ?? DL 0:00.00 (vmdaemon) > 4 ?? DL 0:00.01 (bufdaemon) > 5 ?? DL 0:00.05 (syncer) > 28 ?? Is 0:00.00 adjkerntz -i > 112 ?? Ss 0:00.11 /usr/sbin/syslogd -s > 133 ?? Is 0:00.00 /usr/sbin/inetd -wW > 135 ?? Is 0:00.02 /usr/sbin/cron > 138 ?? Is 0:00.72 /usr/sbin/sshd > 141 ?? Ss 0:00.07 sendmail: accepting connections (sendmail) > 161 ?? Is 0:00.00 moused -p /dev/psm0 -t auto > 198 ?? Ss 0:00.22 ppp -background dialisp > 207 p0 Ss 0:00.05 /bin/csh -i > 217 p0 R+ 0:00.00 ps ax > 170 v0 Is 0:00.04 login -p root > 194 v0 I 0:00.06 -csh (csh) > 206 v0 S+ 0:00.02 script -k /custom/rootlog > 171 v1 Is+ 0:00.01 /usr/libexec/getty Pc ttyv1 > 172 v2 Is+ 0:00.01 /usr/libexec/getty Pc ttyv2 > 173 v3 Is+ 0:00.01 /usr/libexec/getty Pc ttyv3 > 174 v4 Is+ 0:00.01 /usr/libexec/getty Pc ttyv4 > 175 v5 Is+ 0:00.01 /usr/libexec/getty Pc ttyv5 > 176 v6 Is+ 0:00.01 /usr/libexec/getty Pc ttyv6 > 177 v7 Is+ 0:00.02 /usr/libexec/getty Pc ttyv7 > 178 d1 Ss+ 0:00.13 /usr/sbin/ppp -direct incoming > > > > > > # netstat -i > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs > Coll > lp0* 1500 <Link#1> 0 0 0 0 > 0 > lo0 16384 <Link#2> 0 0 0 0 > 0 > lo0 16384 localhost ::1 0 - > 0 - - > lo0 16384 fe80:2::1 fe80:2::1 0 - > 0 - - > lo0 16384 127 localhost 0 - > 0 - - > tun0 1514 <Link#3> 67 0 68 0 > 0 > tun0 1514 fe80:3::d41 fe80:3::d41d:8cd9 0 - > 0 - - > tun0 1514 63.70.155/24 cle-dialup-26.m 67 - > 67 - - > tun1 1500 <Link#4> 4 0 6 0 > 0 > tun1 1500 fe80:4::d41 fe80:4::d41d:8cd9 0 - > 0 - - > tun1 1500 10.0.0.1/32 10.0.0.1 0 - > 5 - - > # > > ppp.conf > ################################################################# > # PPP Configuration File for dial out extermial modem to ISP > # and Dial in external modem for connection to this FBSD system > # Written by Joe Barbish 11/15/2001 > # > ################################################################# > > default: > set log Phase Chat LCP IPCP CCP tun command > ident user-ppp VERSION (built COMPILATIONDATE) > > # Ensure that "device" references the correct serial port > # for your modem. (cuaa0 = COM1, cuaa1 = COM2) > # This is for dial out to some other system > > set device /dev/cuaa0 > > set speed 19200 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > set timeout 0 # no idle time out > enable dns # request DNS info (for resolv.conf) > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > > > dialisp: > # This label is used in the ppp -background dialisp startup command > # for papchap auto logon to standard ISP provider > # > set phone 14434340045 > set authname barbish > set authkey 222222 > > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 #get dymanic IP > ADDR > add default HISADDR # Add a (sticky) default route > > > incoming: > # Configuration for dial in modem access to this FBSD system. > # This label is used in ppp -direct incoming command > # which is buried in script /usr/local/bin/ppplogin that starts > # the whole process of accepting the incomming call. > # CHAP uses /etc/ppp/ppp.secret file for logging in id & pw. > # A unique IP address is assigned to the ttyd activated in the > # /etc/ttys/ file. 10.0.0.24 > # This FBSD box 10.0.0.1 > > set ifaddr 10.0.0.1 10.0.0.24 255.255.255.255 > allow users barbish > enable chap > accept dns > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ 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.BSF.4.10.10112072119450.81279-100000>
