From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 08:54:32 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C96ED16A4CE for ; Thu, 26 Feb 2004 08:54:32 -0800 (PST) Received: from smtpo01.icare.priv (unknown [203.78.64.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDECF43D1F for ; Thu, 26 Feb 2004 08:54:29 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi01.icare.priv ([10.11.12.46]) by smtpo01.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Fri, 27 Feb 2004 00:54:28 +0800 Received: from icare.com.hk ([203.88.164.90]) by smtpi01.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Fri, 27 Feb 2004 00:54:27 +0800 Message-ID: <403E24B8.8020009@icare.com.hk> Date: Fri, 27 Feb 2004 00:54:16 +0800 From: Stephen Liu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 X-Accept-Language: en MIME-Version: 1.0 To: Barbish3@adelphia.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Feb 2004 16:54:27.0641 (UTC) FILETIME=[3204F290:01C3FC89] cc: freebsd-questions@freebsd.org Subject: Re: Connecting ISP problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 16:54:32 -0000 Hi JJB, Tks for your advice. >This is wrong. >++++++++++++++++ is not comment or command remove it. >You have all statements starting in position 1 this is >wrong, section header names start in position 1 and end with : > >default: and dialisp: > > >make ppp.conf look like this >default: & dialisp: start in position 1 and >everything else starts in position 2 >delete all the other stuff you have in your ppp.conf. > >default: > set log Phase tun #use to avoid excessive log sizes > set timeout 0 # no idle time out, will not disconnect > >dialisp: > set device PPPoE:rl0 # replace xxx with your Nic device >name > set authname YOURLOGINNAME # Replace with your ISP account IP > set authkey YOURPASSWORD # Replace with your ISP account PW > add default HISADDR # Add a (sticky) default route Mandatory > enable dns # Gets the ISP's DNS IP address & places them > # in resolv.conf for reference by FBSD box > > >In rc.conf you have >ifconfig-rl0=up > >and it should be > >ifconfig_rl0=up > >hostname="localhost" is wrong it needs to be FQDN >as in hostname="fbsdstephenliu.com.hk" > >check /etc/syslog.conf and make sure ppp.log is enabled. >Empty ppp.log before test and >post ppp.log if this does not work. > Now ISP connected but failure to connect Internet. Tried twice # ifconfig rl0: flags=8843 mtu 1500 options=8 inet6 fe80::250:fcff:fe61:f394%rl0 prefixlen 64 scopeid 0x1 inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 ether 00:50:fc:61:f3:94 media: Ethernet autoselect (10baseT/UTP) status: active rl1: flags=8802 mtu 1500 options=8 ether 00:50:fc:6c:70:f7 media: Ethernet autoselect (10baseT/UTP) status: no carrier plip0: flags=8810 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 tun0: flags=8051 mtu 1492 inet 203.88.164.90 --> 203.88.164.1 netmask 0xffffffff Opened by PID 236 # ping -c 3 [url]www.google.com[/url] ping: cannot resolve [url]www.google.com:[/url] Host name lookup failure. Tried follows without success; # /sbin/route add default gw 203.88.164.1 dev tun0 # /sbin/route add default gw 203.88.164.1 dev ppp0 # /sbin/route add default gw 203.88.164.1 dev pppoe all hanged on screen # cat /var/log/ppp.log Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "TSW3-2-RX") Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SESSIONID Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SUCCESS Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: carrier -> login Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: login -> lcp Feb 27 07:56:39 localhost ppp[236]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492 Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: bundle: Authenticate Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: his = PAP, mine = none Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Pap Output: [email]satimis@icare.com.hk[/email] ******** Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Pap Input: SUCCESS () Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: lcp -> open Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: bundle: Network Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "TSW3-2-RX") Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SESSIONID Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SUCCESS Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: deflink: carrier -> login Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: deflink: login -> lcp Feb 27 08:05:30 localhost ppp[236]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492 Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: bundle: Authenticate Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: deflink: his = PAP, mine = none Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: Pap Output: [email]satimis@icare.com.hk[/email] ******** Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: Pap Input: SUCCESS () Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: deflink: lcp -> open Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: bundle: Network Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! # cat /etc/rc.conf inetd_enable="YES" keymap="us.pc-ctrl" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" ifconfig_rl0="up" ifconfig_rl0="DHCP" # ppp_enable="YES" # Activate user ppp auto-start at boot time ppp_enable="YES" # Start User ppp task ppp_mode="ddial" # ddial, auto, background ppp_profile="dialisp": # Section in ppp.conf to exec # cat /etc/ppp/ppp.conf [code] default: set log phase tun set timeout 0 dialisp:: set device pppoe:rl0 set authname [email]satimis@icare.com.hk[/email] set authkey msliu20h add default HISADDR # (mandatory) enable dns 'dialisp::' is correct 'dialisp:' complained as follow; dialisp:: Configuration lable not found B.R. Stephen