i can't get ppp running

Nikos Vassiliadis nvass at teledomenet.gr
Tue Aug 28 04:48:04 PDT 2007


On Tuesday 28 August 2007 13:48, deeptech71 at gmail.com wrote:
> What does configuring the modem in bridging mode means?
>
> ======================================================================
> =========================    ppp.conf    =============================
> ======================================================================
>
> default:
>   set device PPPoE:rl0
>   set MTU 1492
>   set MRU 1492
>   set crtscts off
>   set speed sync
>   #set timeout 0
>   #set redial 0 0
>   enable lqr
>   #disable deflate
>   #disable pred1
>   #disable vjcomp
>   #disable acfcomp
>   #disable protocomp
>   set log Phase tun LCP IPCP CCP Warning Error Alert
>   set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
>   add default HISADDR
>   #enable proxy
>   #nat enable yes
>   #nat log yes
>   #nat same_ports yes
>   #nat unregistered_only yes
>   #nat deny_incoming yes
> dsl:
>   set login
>   set authname q123 at qwerty.comg
>   set authkey asd12345
>

This configuration file has several irrelevant settings.
Try the one below, it's from here:
/usr/share/examples/ppp/ppp.conf.sample
I just added "set authname" & "set authkey",
changed the NIC's name and removed the service name.

pppoe:
 set authname "your_username"
 set authkey "your_password"
 set device PPPoE:rl0
 enable lqr echo
 set cd 5
 set dial
 set login
 set redial 0 0

[snip]
> ======================================================================
> =======================    sysctl.conf    ============================
> ======================================================================
>
> net.link.ether.bridge.config=rl0:0,ed0:0
> net.link.ether.bridge.ipfw=1
> net.link.ether.bridge.enable=1
> net.inet.ip.forwarding=1
>

This has nothing to do with modem bridging mode.
This bridges your two ethernet segments. Disable it if
that's not what you want.

> ======================================================================
> =========================    ppp.log    ==============================
> ======================================================================
>
> Aug 28 03:58:21 cp ppp[786]: Phase: Using interface: tun0
> Aug 28 03:58:21 cp ppp[786]: Phase: deflink: Created in closed state
> Aug 28 03:58:21 cp ppp[786]: tun0: Phase: PPP Started (interactive
> mode). Aug 28 03:58:22 cp ppp[801]: Phase: Using interface: tun1
> Aug 28 03:58:22 cp ppp[801]: Phase: deflink: Created in closed state
> Aug 28 03:58:22 cp ppp[802]: tun1: Phase: PPP Started (auto mode).
> Aug 28 03:59:40 cp ppp[786]: tun0: Phase: bundle: Establish
> Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: closed -> opening
> Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: Connected!
> Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: opening -> dial
> Aug 28 03:59:40 cp ppp[786]: tun0: Phase: deflink: dial -> carrier
> Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Disconnected!
> Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: carrier -> hangup
> Aug 28 03:59:45 cp ppp[786]: tun0: Phase: deflink: Connect time: 5 secs:
> 0 octets in, 0 octets out
^^^^^^^^^^^^^^^^^^
Zero octets in and zero octets out. Is your modem in bridging mode?
It may be called rfc1483. Enable it.

check what goes on with tcpdump:
root:0:/# tcpdump -nli rl0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on rl0, link-type EN10MB (Ethernet), capture size 96 bytes
14:34:54.863275 PPPoE PADI [Host-Uniq 0xC0656EC3] [Service-Name]
14:34:56.862997 PPPoE PADI [Host-Uniq 0xC0656EC3] [Service-Name]
14:34:59.969272 PPPoE PADI [Host-Uniq 0xC00CFAC3] [Service-Name]

This is not what you should see, you should see PADO and the rest.
If that's what you see, your modem is probably not in bridging mode.

[snip]

Hope this helps

Nikos


More information about the freebsd-questions mailing list