Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Dec 2012 16:13:40 +0100
From:      Ralf Mardorf <ralf.mardorf@rocketmail.com>
To:        FreeBSD questions Mail List <freebsd-questions@freebsd.org>
Subject:   PPPoE
Message-ID:  <1354806820.2597.7.camel@q>

next in thread | raw e-mail | index | archive | help
Hi,

how do I have to set up PPPoE?
This doesn't work: [1]

Regards,
Ralf

[1]
[rocketmouse@freebsd] /usr/home/rocketmouse# ppp -ddial alice
Working in ddial mode
Using interface: tun0
[rocketmouse@freebsd] /usr/home/rocketmouse# cat /etc/ppp/ppp.conf
#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD$
#################################################################

default:
 set log Phase Chat LCP IPCP CCP tun command
 ##ident user-ppp VERSION

 # Ensure that "device" references the correct serial port
 # for your modem. (cuau0 = COM1, cuau1 = COM2)
 #
 ##set device /dev/cuau1
 set device PPPoE:re0

 ##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:
alice:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 ##set phone PHONE_NUM
 ##set authname USERNAME
 ##set authkey PASSWORD
 set authname [*!SNIP!*]
 set authkey  [*!SNIP!*]
 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                    # Add a (sticky) default route
[rocketmouse@freebsd] /usr/home/rocketmouse# ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether 00:1e:8c:80:2a:eb
        inet6 fe80::21e:8cff:fe80:2aeb%re0 prefixlen 64 scopeid 0x1 
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:11:d8:84:b5:f7
        ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        lladdr 0.11.d8.0.1.84.b5.f7.a.2.ff.fe.0.0.0.0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
pflog0: flags=0<> metric 0 mtu 33152
pfsync0: flags=0<> metric 0 mtu 1460
        syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet 127.0.0.1 netmask 0xff000000 
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet 10.1.1.1 netmask 0xffffff00 
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
        options=80000<LINKSTATE>
        inet 92.224.211.44 --> 213.191.89.25 netmask 0xffffff00 
        Opened by PID 21614
[rocketmouse@freebsd] /usr/home/rocketmouse# uname -a
FreeBSD freebsd 8.2-RELEASE FreeBSD 8.2-RELEASE #7: Wed Feb 16 13:33:10 PST 2011     root@build8x64.pcbsd.org:/usr/obj/usr/pcbsd-build82/fbsd-source/8.2/sys/PCBSD  amd64 
[rocketmouse@freebsd] /usr/home/rocketmouse# cat /var/log/ppp.log 
Dec  3 23:57:17 freebsd newsyslog[1569]: logfile first created
Dec  6 15:09:12 freebsd ppp[21604]: Phase: Using interface: tun0
Dec  6 15:09:12 freebsd ppp[21604]: Phase: deflink: Created in closed state
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: default: set device PPPoE:re0
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set authname [*!SNIP!*]
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set authkey ********
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set dial
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set login
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Dec  6 15:09:12 freebsd ppp[21604]: tun0: Command: alice: add default HISADDR
Dec  6 15:09:12 freebsd ppp[21614]: tun0: Phase: PPP Started (ddial mode).
Dec  6 15:09:12 freebsd ppp[21614]: tun0: Phase: bundle: Establish
Dec  6 15:09:12 freebsd ppp[21614]: tun0: Phase: deflink: closed -> opening
Dec  6 15:09:13 freebsd ppp[21614]: tun0: Phase: deflink: Connected!
Dec  6 15:09:13 freebsd ppp[21614]: tun0: Phase: deflink: opening -> dial
Dec  6 15:09:13 freebsd ppp[21614]: tun0: Phase: deflink: dial -> carrier
Dec  6 15:09:14 freebsd ppp[21614]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "HN-XDSL")
Dec  6 15:09:14 freebsd ppp[21614]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Dec  6 15:09:14 freebsd ppp[21614]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Dec  6 15:09:14 freebsd ppp[21614]: tun0: Phase: deflink: carrier -> login
Dec  6 15:09:14 freebsd ppp[21614]: tun0: Phase: deflink: login -> lcp
Dec  6 15:09:14 freebsd ppp[21614]: tun0: LCP: FSM: Using "deflink" as a transport
Dec  6 15:09:14 freebsd ppp[21614]: tun0: LCP: deflink: State change Initial --> Closed
Dec  6 15:09:14 freebsd ppp[21614]: tun0: LCP: deflink: State change Closed --> Stopped
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: LayerStart
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  ACFCOMP[2]
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  PROTOCOMP[2]
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  ACCMAP[6] 0x00000000
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MRU[4] 1492
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MAGICNUM[6] 0xab89c240
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: RecvConfigReq(222) state = Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MRU[4] 1492
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MAGICNUM[6] 0x29be247b
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: SendConfigAck(222) state = Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MRU[4] 1492
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MAGICNUM[6] 0x29be247b
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  ACFCOMP[2]
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  PROTOCOMP[2]
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  ACCMAP[6] 0x00000000
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MRU[4] 1492
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP:  MAGICNUM[6] 0xab89c240
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: LayerUp
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: bundle: Authenticate
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: deflink: his = PAP, mine = none
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: Pap Output: [*!SNIP!*] ********
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: Pap Input: SUCCESS ()
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: Using trigger address 0.0.0.0
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: FSM: Using "deflink" as a transport
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: deflink: State change Initial --> Closed
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: deflink: LayerStart.
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: MPPE: Not usable without CHAP81
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP:  DEFLATE[4] win 15
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP:  PRED1[2] 
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: deflink: State change Closed --> Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: deflink: lcp -> open
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: bundle: Network
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: FSM: Using "deflink" as a transport
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: State change Initial --> Closed
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: LayerStart.
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(223) state = Opened
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
Dec  6 15:09:15 freebsd ppp[21614]: tun0: CCP: deflink: State change Req-Sent --> Stopped
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: RecvConfigRej(1) state = Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: SendConfigReq(2) state = Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(224) state = Opened
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: RecvConfigReq(146) state = Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 213.191.89.25
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: SendConfigAck(146) state = Req-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 213.191.89.25
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 92.224.211.44
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] changing address: 0.0.0.0  --> 92.224.211.44
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 92.224.211.44
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(225) state = Opened
Dec  6 15:09:15 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP:  IPADDR[6] 92.224.211.44
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: deflink: LayerUp.
Dec  6 15:09:15 freebsd ppp[21614]: tun0: IPCP: myaddr 92.224.211.44 hisaddr = 213.191.89.25
Dec  6 15:09:15 freebsd ppp[21614]: tun0: Warning: 0.0.0.0: Change route failed: errno: No such process
Dec  6 15:09:18 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(226) state = Opened
Dec  6 15:09:18 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Dec  6 15:09:18 freebsd ppp[21614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  6 15:09:21 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(227) state = Opened
Dec  6 15:09:21 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Dec  6 15:09:21 freebsd ppp[21614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  6 15:09:24 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(228) state = Opened
Dec  6 15:09:24 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Dec  6 15:09:24 freebsd ppp[21614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  6 15:09:27 freebsd ppp[21614]: tun0: LCP: deflink: RecvProtocolRej(229) state = Opened
Dec  6 15:09:27 freebsd ppp[21614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Dec  6 15:09:27 freebsd ppp[21614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  6 15:09:45 freebsd ppp[21614]: tun0: LCP: deflink: RecvEchoRequest(230) state = Opened
Dec  6 15:09:45 freebsd ppp[21614]: tun0: LCP: deflink: SendEchoReply(230) state = Opened
[*!SNIP!*]
Dec  6 15:32:50 freebsd ppp[21614]: tun0: LCP: deflink: RecvEchoRequest(249) state = Opened
Dec  6 15:32:50 freebsd ppp[21614]: tun0: LCP: deflink: SendEchoReply(249) state = Opened




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