Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2007 17:50:15 -0600
From:      Gary Aitken <garya@dreamchaser.org>
To:        freebsd-questions@freebsd.org
Subject:   user ppp and PPPoE bridging
Message-ID:  <471D3737.1080300@dreamchaser.org>

next in thread | raw e-mail | index | archive | help
I'm attempting to change a DSL link from using PPPoE in the DSL modem
to doing PPPoE on 6.1, with the modem in bridging mode.

I've put the DSL modem in bridging mode, and it brings up the link
properly -- or at least it reports it as up (DSL led steady; modem status
report shows it as up, rfc 1483.

Using user ppp, when I attempt to establish the PPPoE connection, I
never get very far -- ppp dies when it tries to acquire carrier.  I
don't understand this, as there isn't a carrier signal to acquire on
an ethernet.  I tried disabling cd in ppp.conf but as noted in the doc,
it's required for a PPPoE connection and is forced on.

Also, how do I know know which interface it is attempting to connect to?
The debug log shows it found five interfaces, but doesn't indicate which
one it is trying to connect to.

Thanks for any clues,

Gary

============  log file:  =============

Oct 22 16:34:15 nightmare ppp[84336]: Phase: Using interface: tun0 Oct 22 16:34:15 nightmare ppp[84336]: Phase: deflink: Created in closed state
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set log -timer
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set redial 15 0
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set reconnect 15 10000
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Phase: PPP Started (interactive mode).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: dial blackfoot
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r")
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking default (/etc/ppp/ppp.conf).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r")
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen("/etc/ppp/ppp.conf", "r")
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking blackfoot (/etc/ppp/ppp.conf).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set device PPPoE:ed1
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable acfcomp protocomp
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: deny acfcomp
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mtu max 1492
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mru max 1492
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable mssfixup
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set speed sync
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable lqr
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set lqrperiod 5
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set ctsrts off
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable ipv6cp
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set dial
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set login
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set timeout 0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authname xxxxxxxx
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authkey ********
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: add! default HISADDR
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 3 = socket(17, 3, 0)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: bundle: Establish
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: closed -> opening
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = NgMkSockNode("", &cs, &ds)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: List of netgraph node ``ed1:'' (id 2) hooks:
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:   Found orphans -> ethernet
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Connecting netgraph socket .:tun0 -> [8]::tun0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 4 = socket(2, 2, 0)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 3223349521, 0xbfbfda00)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 2149607696, 0xbfbfda00)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found the following interfaces:
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 1, name "ep0"
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 2, name "plip0"
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 3, name "ed1"
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 4, name "lo0"
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 5, name "tun0"
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: Connected!
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: opening -> dial
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: dial -> carrier
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Waiting for carrier
Oct 22 16:34:28 nightmare last message repeated 4 times
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: Disconnected!
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: carrier -> hangup
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: deflink: Close
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: 0 packets in, 0 packets out
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Mon Oct 22 16:34:24 2007
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: hangup -> closed
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: route_IfDelete (5)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff01:5::/32 <AF_UNSPEC>
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: route_IfDelete: Skip it (pass 0)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff02:5::/32 <AF_UNSPEC>
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: route_IfDelete: Skip it (pass 0)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff01:5::/32 <AF_UNSPEC>
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 2 = socket(17, 3, 0)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 148 = write(2, data, 148)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: wrote 148: cmd = Delete, dst = ff01:5::/32, gateway = <none>
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff02:5::/32 <AF_UNSPEC>
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 2 = socket(17, 3, 0)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 148 = write(2, data, 148)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: wrote 148: cmd = Delete, dst = ff02:5::/32, gateway = <none>
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 2 = socket(2, 2, 0)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(2, 3223349521, 0xbfbfe660)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(2, 2149607696, 0xbfbfe660)
Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: bundle: Dead
Oct 22 16:34:37 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: quit
Oct 22 16:34:37 nightmare ppp[84336]: tun0: Debug: DoLoop done.
Oct 22 16:34:37 nightmare ppp[84336]: tun0: Phase: PPP Terminated (normal).

============  ppp.conf:  ===========

default:
  set log all
  set log -timer
  ident user-ppp VERSION (built COMPILATIONDATE)
  set redial 15 0
  set reconnect 15 10000
isp:
  set device PPPoE:ed1
  disable acfcomp protocomp
  deny acfcomp
  set mtu max 1492
  set mru max 1492
  enable mssfixup
  set speed sync
  enable lqr
  set lqrperiod 5
  set ctsrts off
  disable ipv6cp
  set dial
  set login
  set timeout 0
  set authname xxxxxx
  set authkey yyyyyy
  add! default HISADDR



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