From owner-freebsd-questions@FreeBSD.ORG Thu Jun 9 11:13:49 2005 Return-Path: X-Original-To: freebsd-questions@www.freebsd.org Delivered-To: freebsd-questions@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDA0516A41C for ; Thu, 9 Jun 2005 11:13:49 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 553ED43D49 for ; Thu, 9 Jun 2005 11:13:48 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([69.172.31.81]) by mta13.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with SMTP id <20050609111347.YDUJ4191.mta13.adelphia.net@barbish>; Thu, 9 Jun 2005 07:13:47 -0400 From: "fbsd_user" To: "Allyn Cheney" , Date: Thu, 9 Jun 2005 07:13:47 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <000e01c56cbe$68458620$0301a8c0@viper> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal Cc: joe@gaming-tv.com Subject: RE: PPPoE Configuration problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 11:13:49 -0000 Try this #################### start of DSL 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:XXX # replace xxx with your NIC device name set authname YOURLOGINNAME # Replace with your ISP account username set authkey YOURPASSWORD # Replace with your ISP account password 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. ############### End of DSL ppp.conf ################################# Replace the XXX in the [set device PPPoE:XXX] statement with the NIC's FBSD interface name. Sometimes it will be necessary to use a service tag to establish your connection depending on how your ISP and/or the phone company has its DSL network configured. Service tags are used to distinguish between different PPPoE servers attached to a given network. You should have been given any required service tag information in the documentation provided by your ISP. If you cannot locate it there, ask your ISP's tech support personnel. This is the format of the command with the service tag added: set device PPPoE:xxxx:service_tag The xxxx is the FBSD interface name used by PPPoE. The interface must be UP (IE: enabled). It is only used as a transport, and does not need to be assigned an IP address. This can be done automatically at boot time by updating the /etc/rc.conf file. The format of the statement to add is ifconfig_xxxx=up where xxxx is the NIC's FBSD interface name used by PPPoE that you specified in the /etc/ppp/ppp.conf file. ee /etc/rc.conf # add following statements ifconfig_xxxx=up ifconfig_tun0="DHCP" # get your ISP assigned IP address To setup user ppp to dial your ISP automatically at FBSD boot time, you have to add the following statements to the rc.conf file. The ddial option means to redial every time the connection to the ISP gets dropped. ee /etc/rc.conf # 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 #ppp_nat="YES" # only if you have LAN behind this PC. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Allyn Cheney Sent: Thursday, June 09, 2005 2:42 AM To: freebsd-questions@www.freebsd.org Cc: joe@gaming-tv.com Subject: PPPoE Configuration problems I'm trying to setup a Freebsd box to act as my router/firewall and as such I've been trying to configure it to connect to my ISP's PPPoE dsl service. It doesn't connect and the errors provided in the log prove don't show me much content as to what is causing the problem. One thing strange is ppp is saying its using tun1, while below you can see its saying its using tun0 and erroring. Error log, ppp.conf and rc.conf are listed below. Error log: ppp[198]: tun0: Phase: deflink: Connected! ppp[198]: tun0: Phase: deflink: opening -> dial ppp[198]: tun0: Phase: deflink: dial -> carrier ppp[198]: tun0: Phase: deflink: Disconnected! ppp[198]: tun0: Phase: deflink: Connect Time: 5 sec ppp[198]: tun0: Phase: deflink: hangup - > opening ppp.conf default: set log Phase chat lcp ipcp ccp tun command set if addr 10.10.0.1/0 10.10.0.2/0 set mtu 1492 set mru 1492 set device PPPoE:rl0 papchap: set authname name set authkey key set dial set login add default HISADDR rc.conf ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="papchap" gateway_enabled="YES" ifconfig_rl0="DHCP" ifconfig_dc0="inet 10.10.0.1 netmask 255.255.255.248" hostname="name" _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"