From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 06:22:39 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 8559016A4CE for ; Mon, 23 Feb 2004 06:22:39 -0800 (PST) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40D3643D2D for ; Mon, 23 Feb 2004 06:22:39 -0800 (PST) (envelope-from Barbish3@adelphia.net) Received: from barbish ([67.20.101.119]) by mta9.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040223142233.QJVA25917.mta9.adelphia.net@barbish>; Mon, 23 Feb 2004 09:22:33 -0500 From: "JJB" To: "Stephen Liu" , Date: Mon, 23 Feb 2004 09:22:32 -0500 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: <403A0823.1020103@icare.com.hk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: Connecting ISP problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 14:22:39 -0000 cat /etc/rc.conf inetd_enable="YES" keymap="us.pc-ctrl" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" hostname="icare.com.hk" ifconfig_rl0=up # 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 #################### 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: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 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 card 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 it's 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:XXX:service_tag The xxxx is the FBSD interface name used by PPPoE, the interface must be UP, (IE: enabled). It is only used as 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 Nic card FBSD interface name used by PPPoE that you specified in the /etc/ppp/ppp.conf file. ee /etc/rc.conf # add following statement ifconfig_xxxx=up Let my know if this works for you -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Stephen Liu Sent: Monday, February 23, 2004 9:03 AM To: freebsd-questions@freebsd.org Subject: Connecting ISP problem Hi folks FreeBSD 5.2 new installation 2 NICs Broadband Connection - to ISP via ADSL modem, running pppoe # start pptp command not found # 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 cat /etc/rc.conf inetd_enable="YES" keymap="us.pc-ctrl" linux_enable="YES" sshd_enable="YES" usbd_enable="YES" ifconfig_rl0="DHCP" ppp_enable="YES ifconfig_rl0="DHCP" ipv6_enable="YES" hostname="icare.com.hk" cat /etc/resolv.conf search domain.com nameserver 192.168.2.1 cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) papchap: set phone PHONE_NUM set authname USERNAME set authkey PASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR # Add a (sticky) default route Kindly advise how to make # start pptp to work TIA B.R. Stephen Liu _______________________________________________ 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"