From owner-freebsd-net Tue Oct 8 18:29:13 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1D3937B401 for ; Tue, 8 Oct 2002 18:29:08 -0700 (PDT) Received: from tomts22-srv.bellnexxia.net (tomts22.bellnexxia.net [209.226.175.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 901F043E3B for ; Tue, 8 Oct 2002 18:29:07 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.181.173]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021009012757.MNYJ21742.tomts22-srv.bellnexxia.net@xena.gsicomp.on.ca>; Tue, 8 Oct 2002 21:27:57 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id g9907vp33167; Tue, 8 Oct 2002 20:07:57 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <007a01c26f33$191a3b80$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Alexis Georges" , References: <128392217879.20021008083050@sentex.net> Subject: Re: Sympatico ADSL connection through a hub Date: Tue, 8 Oct 2002 21:27:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In your /etc/rc.conf, are you setting an IP address for the dc0 interface? If you are, then PPPoE won't work properly since the interface is already up and running. Check for a line that looks like this: ifconfig_dc0="inet 10.0.0.1 netmask 0xfffffffc" If a line like this exists, comment it out (put a # sign in front of it) and then reboot. -- Matt ----- Original Message ----- From: "Alexis Georges" To: "Damian Gerow" ; Sent: Tuesday, October 08, 2002 10:53 AM Subject: Re: Sympatico ADSL connection through a hub > thanks for helping damian..i did everything you gave me but it still doesn't > seem to work.. > here is what i have after doing everything, and typing ifconfig > > dc0: flags:88c3 mtu 1500 > inet6 fe80::2a0:ccff::fee1: 8be5%dc0 prefixlen 64 scopeid 0x1 > inet 10.0.1 netmask 0xfffffffc broadcast 10.0.0.3 > ether 00:a0:cc:e1:8be5 > media: Ethernet 10baseT/UTP > status: active > tun0: flags=8051 mtu 1500 > inet6 fe80:2a0:ccff:fee1: 8be5%tun0 prefixlen 64 scopeid 0x7 > opened by PID 54 > > thats all i get..shouldn't i have an IP address somewhere other than the > 10.0.0.1..on windows i used to have 192.168.0.110(it will change since its > dynamic) , but it only shows the 10.0.0.1 one..on another computer in the > same home network, i got this info: > > netmask = 255.255.255.0 > default gateway = 192.168.0.1 > DNS server = 198.235.216.114 and 207.236.176.12 > > to see if it had worked i tried pinging an address of another computer on > the network and it just froze at the first "ping
blahblah 56" > (something like taht).. > what wrong? > thanks again > > alexis > ----- Original Message ----- > From: "Damian Gerow" > To: "alexis georges" > Sent: Tuesday, October 08, 2002 5:30 AM > Subject: Re: Sympatico ADSL connection through a hub > > > > Spake alexis georges on 07/10/2002, 16:55:16 +0000: > > > This is my first message posted to the list..hehehe > > > anyways, i used to have a simple cable connection, which would be > > > automatically comfigured by FreeBSD upon installation..I just moved and > now > > > we have an ADSL connection (from Sympatico).. The connection is not > > > configured automatically..so i looked on the web for a solution. I found > a > > > few pages explaining that i had to recompile my kernel with a few lines > such > > > as 'options NETGRAPH'..and that i had to write some info into the > ppp.conf > > > file..i did those things but apparently it doesn't work..I am not sure > how > > > to work this out..cuz all the solutions i found were the same.. > > > So i will explain exactly how i am connected to the internet.. > > > > > 1. I have an ethernet card connected to a hub. > > > 2. This hub is itself connected to the actual modem that we received > from > > > Sympatico. > > > > > On Windowsl, the conection wont work unless the connection type is set > to > > > 10Mb Half-Duplex..so i am guessing it should be the same on FreeBSD.. > > > also, the address is supposed to be obtained dynamically..(on windows it > > > says the address has been obtrained by DHCP, however, during FreeBSD > > > installation, it fails to find the parameter for the connection)does > that > > > mean that instead of the 10.0.0.1 address teh solution form the web gave > me, > > > i should put the address that i am using on windows (even though it > shouild > > > be a dynamic address?) > > > Anyways, i would really like to be able to fix this..if anyone could > help, > > > that would be great..i wanna get rid of windows > > > > I work for a small ISP in Ontario, and while we don't offer service in > > Quebec, and are in competition with Sympatico , here's what I've > > done to get my machine up and running on an ADSL link: > > > > 1) Make sure these are in the kernel: > > > > pseudo-device tun > > options NETGRAPH > > options NETGRAPH_ASYNC > > options NETGRAPH_ETHER > > options NETGRAPH_IFACE > > options NETGRAPH_KSOCKET > > options NETGRAPH_PPPOE > > options NETGRAPH_SOCKET > > pseudo-device bpf # (I'm not sure this is needed, but > > # it's nice to have.) > > > > As well as your normal networking code -- LIBMCHAIN if you want it, > > RANDOM_IP_ID (really good idea to put in), and your devices. > > > > 2) Update your sources, build a new world and kernel. Install, > > reboot. > > 3) In /etc/ppp/ppp.conf, add a new section called 'pppoe' or 'adsl': > > > > pppoe: > > set device PPPoE:rl0: > > set speed sync > > enable lqr > > set lqrperiod 3 > > set cd 5 > > set dial > > set login > > set timeout 0 > > set authname @sympatico.ca > > set authkey > > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > > add default HISADDR > > disable dns > > disable vjcomp > > disable ipv6cp > > > > Note that with Sympatico, you *must* have 'disable vjcomp' in there. > > You may want to disable lqr, as it sometimes causes problems with me. > > Leave it on initially, see what happens. > > > > 4) Set the following in /etc/rc.conf: > > > > # (the -arp is not needed, and your media type may be different -- most > > # modems use 10baseT for talking, so I've set mine to that. Looks > > # like yours is the same way. > > ifconfig_="inet 10.0.0.1 netmask 255.255.255.252 -arp media > 10baseT/UTP up" > > > > ppp_enable="YES" > > ppp_mode="ddial" > > ppp_profile="pppoe" > > ppp_nat="NO" > > > > And you're good to go. Make sure you reboot, and the link should come > > up right away. > > > > The commandline to bring it up is: 'ppp -quiet -ddial pppoe'. This > > will bring up a tun0 interface, that is connected to the internet. > > Note that it's the *logical* *tun0* interface that is your gateway to > > Sympatico (and the world!), *not* your physical external interface. > > > > As for the DHCP stuff -- your IP address is dynamically assigned via > > PPP, not DHCP. You're talking PPPoE (PPP over Ethernet), not straight > > Ethernet, to Sympatico, so DHCP won't work at all. > > > > Hope this helps... > > > > - Damian > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message