From owner-freebsd-questions Tue Aug 22 18:29:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id 51CD437B43E for ; Tue, 22 Aug 2000 18:29:00 -0700 (PDT) Received: from granite.sentex.net (granite.sentex.ca [199.212.134.1]) by smtp1.sentex.ca (8.11.0/8.11.0) with ESMTP id e7N1SxH09171; Tue, 22 Aug 2000 21:28:59 -0400 (EDT) Received: from chimp.simianscience.com (cage.simianscience.com [64.7.134.1]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id VAA01360; Tue, 22 Aug 2000 21:28:58 -0400 (EDT) From: mike@sentex.net (Mike Tancsa) To: Birkir.Bjornsson@titan.is Cc: questions@freebsd.org Subject: Re: ADSL Date: Wed, 23 Aug 2000 01:22:49 GMT Message-ID: <39a3267c.3016417@mail.sentex.net> References: In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 22 Aug 2000 20:38:31 -0400, in sentex.lists.freebsd.questions you wrote: >

How do i connect my FReeBSD server to ADSL?


Beztu kveðjur= >
Birkir Björnsson
titan

= Please no html to the list.... As to your question, it all depends how your ISP serves out DSL... If its via DHCP, see the man pages for DHCP. If its for PPPoE, see the docs for ppp.conf as there is a sample pppoe config in there. Also, search the mailing list archives. A quick search would have found the following.... Configuring FreeBSD Kernel for PPPoE In order to support PPPoE, three lines must be added at the end of the FreeBSD kernel file. Beginners with no idea how to compile a kernel, please read the following carefully. For more experienced users who know how to compile a kernel, just see step 3 below and add the three lines to your kernel. First you must change to the kernel configuration directory: cd /usr/src/sys/i386/conf In the kernel configuration directory, use your favorite text editor and edit the kernel file. For example, if you use emacs, you would type: vi KERNEL Go to the end of the kernel file and add the following three lines: options NETGRAPH options NETGRAPH_PPPOE options NETGRAPH_SOCKET After adding these three lines, save the modified kernel file. Type this command to set the kernel configuration: config KERNEL Now you must change to the kernel setup directory: cd ../../compile/KERNEL In the kernel setup directory, type the following three commands: make depend make make install Your kernel is now ready for PPPoE! Configuring FreeBSD /etc/ppp/ppp.conf File To edit the /etc/ppp/ppp.conf file, just use your favorite text editor. Replace any existing file content with the lines below. Be sure the "set device PPPoE:---" line is correct for your network interface card. (We used ed1 for the NIC in this example.) Change the authname and authkey to your sympatico user id (b1xxxxxx) and your password. # /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command nat enable yes nat same_ports yes nat use_sockets yes set redial 15 28800 set reconnect 15 28800 pppoe: set device PPPoE:ed1: set mru 1492 set mtu 1492 set speed sync enable lqr set lqrperiod 5 set cd 5 set dial set login set timeout 0 set authname b1xxxxxx@sympatico.ca set authkey yourpassword set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns # end of ppp configuration Configuring FreeBSD /etc/rc.conf File The /etc/rc.conf file should be set up as follows for the ethernet interface that goes to your DSL modem. (Again, this example uses ed1 for the NIC.) # /etc/rc.conf network_interfaces="auto" #Set network interfaces automatically ifconfig_ed1="inet 1.1.1.1 netmask 255.0.0.0 -arp up" ppp_enable="YES" #This enables PPP on startup (recommended) ppp_mode="background" ppp_profile="pppoe" #end of /etc/rc.conf Rebooting the System After you have compiled the kernel to support PPPoE and have edited the /etc/ppp/ppp.conf and /etc/rc.conf files with the right configuration, you can reboot your system. If you enabled ppp in the /etc/rc.conf as recommended, you should be connected and can now enjoy surfing the net on FreeBSD using PPPoE. Starting PPP Manually If you did not enable ppp to automatically connect on startup in the /etc/rc.conf file, you can use this command to connect to the Internet manually: ppp -background pppoe ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message