Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2000 09:58:17 +0100 (MEZ)
From:      "Manfred Usselmann" <Usselmann.M@icg-online.de>
To:        "freebsd-newbies@freebsd.org" <freebsd-newbies@FreeBSD.ORG>
Subject:   Re: If someone is interested in configuring ADSL under FreeBSD.
Message-ID:  <200010250802.KAA41529@icg-pc202.hofheim.icg-online.de>
In-Reply-To: <005101c03e11$ca0efd40$837e03cb@dougy>

next in thread | previous in thread | raw e-mail | index | archive | help
I inserted some small comments which might be helpful too.

Manfred

>----- Original Message -----
>From: "Zaitsau, Andrei" <AZaitsau@panasonicfa.com>
>To: "'freebsd-newbies@freebsd.org'" <freebsd-newbies@FreeBSD.ORG>
>Sent: Wednesday, October 25, 2000 8:57 AM
>Subject: If someone is interested in configuring ADSL under FreeBSD.
>
>
>> >From the same source... If someone is interested...
>> Well Here is one more story how did I configure my ADSL under FreeBSD.
>> It took me about 2 months to figure out how to configure ADSL under
>FreeBSD.
>> I have very little knowledge of UNIX, so I was looking some support from
>my
>> ISP (Ameritech). But they told me to configure it myself, because they do
>> not have support for FreeBSD. Oh, well I started searching the web. But
>the
>> first thing I noticed there were a lot of people complaining about PPPoE,
>> and to say truth it scared me. I thought, oh my God how I would be able
>ever
>> configure it, I do not know anything about UNIX...:( But piece by piece, I
>> collected different information from different sources. But finally end up
>> by FreeBSD mailing list where I found all the answers for my questions.

It is really not that complicated as you might think.

There are also some good web pages covering this topic. e.g.:
 
http://renaud.waldura.com/doc/freebsd-pppoe/


>And
>> what do you think? It worked!!! You should see me jumping in the room :)
>> Finally ,if some one is interested how to configure ADSL (well all this
>> steps worked for me) read e-mail further.
>>  A few things I would like to add. I don't want to play flaming game about
>> Linux VS. FreeBSD all I want to say is:
>> 1) I was not able to configure ADSL under any of Distribution of
>Linux.(even
>> after I installed it on FreeBSD 3.4)
>> 2)I was not able to install it after FreeBSD 3.5 (it gives me NETGRAPH
>> errors but it could be my fault, I have no Idea what is NETGRAPH )

These occur when you recompile the kernel with the following options:

options NERGRAPH_PPPOE
options NETGRAPH_SOCKET

Only options NETGRAPH is necessary (except FBSD 3.4). The other two
modules are loaded automatically in the later versions of PPPoE.
Nevertheless the messages are only warning messages and cause no
problems. I get them also and have PPPoE running successfully with FBSD
4.1

>> 3)The configuration of PPPoE that provided in FreeBSD
>> Handbook(www.freebsd.org) did not work in my case.
>>
>> And once Again I would like to say Thanks to all FreeBSD mailing Lists.
>>
>>
>> ######### STEP 1 #############
>>
>> # Kernel Configuration:
>> # You need to add those 3 lines in your kernel  and compile it.
>> # In my case It was a copy of LINT  ' /usr/src/sys/i386/conf/ -kernel
>> directory
>> # Using vi editor I added those 3lines:
>>
>> options NETGRAPH
>> options NERGRAPH_PPPOE
>> options NETGRAPH_SOCKET
>>
>> # Afterwards you need to compile it
>> # /usr/sbin/config -g 'Kernel Name'
>> # cd ../../compile/MORPH
>> # make depend
>> # make
>> # make install
>> # shutdown -r now
>>
>>
>> ######## STEP 2 ################
>>
>> # Please Notice:
>> # Before default: & pppoe: do not put space !!!!
>> # Put ONE SPACE BEFORE ANY OTHER OPTION !!!
>>
>>
>>
>> # EDIT /etc/ppp/ppp.conf
>>
>> default:
>>  set log Phase Chat LCP IPCP CCP tun command
>>  nat enable yes
>>  nat same_ports yes
>>  nat same_sockets yes

# yes, NAT for client access. Not necessary if you want to connect only
the FBSD box.

>>  set redial 15 28800
>>  set reconnect 15 28800
>>
>> pppoe:
>>  set device PPPoE:pn0: # Device name in my case pn0
>>  set mru 1492
>>  set mtu 1492
>>  set speed sync
>>  set cd 5
>>  set dial
>>  set login
>>  set timeout 0
>>  set authname login-name # Put Your Log In here
>>  set authkey password # Put Your Password in here
>>  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
>>
>>
>> ###### STEP 3 (OPTION I) ##################
>>
>> # EDIT /etc/rc.conf
>>
>> network_interfaces="auto"
>> ifconfig_pn0=" inet 10.0.0.1 netmask 255.255.255.0 -arp up"

ifconfig_pn0="up" or "up mtu 1492"   
# is sufficient for the NIC connected to DSL
# assuming you have a second NIC for the LAN what is recommended

>> ppp_enable="YES"
>> ppp_mode="background"
>> ppp_profile="pppoe"

or ppp_mode="ddial" 

gateway_enable="YES"   # if you want access from other clients

# you should also configure named in this case

# Then set the FreeBSD box as  gateway and nameserver in the 
# TCP/IP configuration of the clients and you have Internet access from
every client

# Attention: if you have problem with access from MS Win clients make
sure
# their MTU size is set to 1492 instead of 1500!

>>
>> ###### STEP 3 (OPTION II) ##################
>>
>> # Or, you can start connection manualy
>> # Type PPP
>> # You Should get something like this
>> # ppp ON>
>> # Type dial pppoe
>> # You should get something like:
>> # Ppp ON>
>> # PPp ON>
>> # PPP ON>
>> # LAST LINE IN CAPITALS, IT MEANS YOU ARE CONNECTED TO ISP BY xDSL
>>

You may want to consider installing a firewall like IPFW as well. At
least if you have a flat rate and are connected permanently.

-- 
Manfred Usselmann
usselmann.m@icg-online.de
--------------------------------------------------
I C G  Informationstechnologie Consulting GmbH     
Bahnstr. 7,  D-65835 Liederbach / Ts.
Tel. +49 69 333 623,  Fax +49 69 306 845  
--------------------------------------------------
http://www.icg-online.de
--------------------------------------------------



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010250802.KAA41529>