Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2000 11:59:14 -0800
From:      Drew Tomlinson <drewt@writeme.com>
To:        "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org>
Subject:   How to Setup DSL
Message-ID:  <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF742@ldcmsx01.lc.ca.gov>

next in thread | raw e-mail | index | archive | help
I've read the info in the handbook, Greg's book, mostgraveconcern, the ppp
man page, and searched the email archives but have not found anything to get
my setup working.  I have a 3Com Dual Link External ADSL modem attached to a
NIC (ed1) in my FreeBSD box.  If I understand correctly, I need to make a
PPPoE connection from ed1 to the DSL modem and I have attempted to do that.
At the bottom of this email is my /etc/ppp/ppp.conf and a snip from my log
when running ppp -background from the command line.

The software that came with the modem is for Windows environment.  To verify
that the modem and line is working, I connected the modem to my laptop
runnning Win2K and installed the software.  From this exercise, I learned
that the modem is connected to my ISP via PPP over ATM.  I also had to set
something called the "Virtual Path Identifier" (VPI) and "Virtual Channel
Identifier" (VCI) to 0 and 35.  Is this something that needs to be set
somewhere in my ppp.conf file?

Then there is a "dialer" program from 3Com that works much like Dial-Up
networking in Windows where I have to set my login and password to establish
a connection.  (I don't understand why this step is necessary since the
connection is hardwired to my home but that's another subject).  What seems
to happen is that the NIC connected to the modem receives a private IP
address from the modem (192.168.157.x) and the dial-up software shows the
real IP address assigned from my ISP.  Anyway, everything works fine from
the windows environment and now I would like to attach the modem to my FBSD
box and get things working there.

My goal is to be setup as follows:

		3Com Dual Link
	   External ADSL Modem
			|
			|
			|
	   ed1 NIC in FBSD Box
			|
			| FBSD box is gateway/router/proxy/etc.
			|
	   ed0 NIC in FSBD Box
			|
			| My home network
			|
|------------------------------------|
       |				|
	 |				|
     Win2K			    Win2K

I would appreciate any help you could give me in reaching my ultimate goal.
I am willing to continue reading if there are any other resources you think
might be of help.  I am new to both Unix and FBSD so I may have overlooked
something really simple.

Thanks for your help!

Drew

Here's my ppp.conf:
default:

  set device PPPoE:ed1
  set log Phase Chat LCP IPCP CCP tun command
  set mru 1492
  set mtu 1492
  set authname ******	#My real info has been replaced by *s
  set authkey ******
  set dial
  set login
  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
  nat enable yes # if you want to enable nat for your local net

papchap:
  set authname ******
  set authkey ******

And here's a snip of my log:

Nov 29 11:16:00 blacksheep ppp[2920]: tun0: Command: default: enable dns
Nov 29 11:16:00 blacksheep ppp[2920]: tun0: Command: default: nat enable yes
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Phase: PPP Started (background
mode)
.
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Phase: bundle: Establish
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Phase: deflink: closed ->
opening
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Phase: deflink: Connected!
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Phase: deflink: opening -> dial
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Chat: deflink: Dial attempt 1 of
1
Nov 29 11:16:00 blacksheep ppp[2921]: tun0: Phase: deflink: dial -> carrier
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: deflink: Disconnected!
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: deflink: carrier ->
hangup
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: deflink: Connect time: 5
secs
: 0 octets in, 0 octets out
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: deflink: : 0 packets in,
0 pa
ckets out
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase:  total 0 bytes/sec, peak
0 by
tes/sec on Wed Nov 29 11:16:05 2000
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: deflink: hangup -> closed
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: bundle: Dead
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Phase: PPP Terminated (normal).
Nov 29 11:16:05 blacksheep ppp[2921]: tun0: Chat: Parent notified of failure
Nov 29 11:16:05 blacksheep ppp[2920]: tun0: Phase: Parent: Child failed
(errdead
)



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




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