From owner-freebsd-questions Wed Sep 13 18:48:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from maildrop.velocet.net (maildrop.velocet.net [216.126.74.5]) by hub.freebsd.org (Postfix) with ESMTP id 51BA637B43E for ; Wed, 13 Sep 2000 18:48:12 -0700 (PDT) Received: from magus (anime.ca [204.138.55.45]) by maildrop.velocet.net (Postfix) with SMTP id 3032F7B376; Wed, 13 Sep 2000 21:48:07 -0400 (EDT) Message-ID: <003101c01ded$d4a03e20$0300a8c0@anime.ca> From: "William Wong" To: "Altair Demetrio Jr." Cc: References: <39C02491.1ABD3CDA@mindspring.com> Subject: Re: Error after enabling NETGRAPH Date: Wed, 13 Sep 2000 21:48:06 -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.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I read the PPPoE article about setting up ppp to use PPPoE. > I tried to use ppp before compiling the kernel to see if it would work, > but it complained about netgraph. > So I added those "options NETGRAPH*" to the kernel, and recompiled it. > I can connect to the Internet now, it's working... but at boot time, > I always get these errors: > > Sep 13 15:45:00 /kernel: module_register: module netgraph already > exists! > Sep 13 15:45:00 /kernel: linker_file_sysinit "netgraph.ko" failed to > register! My workaround was to not statically compile netgraph into the kernel. I noticed that this only shows up if it's statically compiled. I'm using 4.1R BTW. So because it wasn't statically compiled, I edited rc.network so that it loaded the main netgraph module before running ppp which auto auto load the other netgraph sub components. On a different note... I noticed a quirk with the pppoe though. After letting ppp run for an extended period of time, say 8 days, ppp would NOT be able to reconnect. I tried reseting the modem by turning it off and on...nadda. I tried killing ppp and trying again, nope. Log messages would only show a timeout of some sort. (unfortunately I don't have the log entry handy). I used to reboot and then it'd work again, but I noticed that if I unloaded the ng_pppoe kld it would work. That's my workaround since... My suggestion: Whenever a kld is dynamically loaded by program X, the program should unload the kld after it's finished running... - Will > > And this one repeates itself in a couple of minutes until I enter ^c: > > Sep 13 15:45:01 /kernel: arp: 00:20:ea:10:dc:1d is using my IP address > 10.0.0.1 > > The connection works, but I would like to eliminate these errors. Anyone > got a clue? > > Thanks. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message