From owner-freebsd-questions@FreeBSD.ORG Tue Aug 28 11:48:04 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B598216A469 for ; Tue, 28 Aug 2007 11:48:04 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3728513C458 for ; Tue, 28 Aug 2007 11:48:04 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from iris (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id C4FFE1438AD; Tue, 28 Aug 2007 14:48:02 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Tue, 28 Aug 2007 14:47:02 +0300 User-Agent: KMail/1.9.1 References: <46D3DF1F.4070804@gmail.com> <46D3E031.60908@math.arizona.edu> <46D3FD96.7060308@gmail.com> In-Reply-To: <46D3FD96.7060308@gmail.com> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708281447.03389.nvass@teledomenet.gr> Cc: Subject: Re: i can't get ppp running X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2007 11:48:04 -0000 On Tuesday 28 August 2007 13:48, deeptech71@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@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