Subject: misc/33898: "NetBSD Documentation: Steps to connect via PPPoE (DSL)" needs correction
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: henry nelson <netb@yuba.ne.jp>
List: netbsd-bugs
Date: 07/03/2006 08:35:00
>Number:         33898
>Category:       misc
>Synopsis:       "NetBSD Documentation: Steps to connect via PPPoE (DSL)" has incorrect information
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 03 08:35:00 +0000 2006
>Originator:     henry nelson
>Release:        NetBSD 3.0.0_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD hows 3.0.0_STABLE NetBSD 3.0.0_STABLE (XXXXX) #1: Wed Jun 7 06:41:01 JST 2006 xxxxx@xxxxx:/usr/src/sys/arch/i386/compile/XXXXX i386
Architecture: i386
Machine: i386
>Description:
	The instuctions to create "/etc/ifconfig.pppoe0" show as the last
	line "0.0.0.0 0.0.0.1 up", but this does not work.  Changing the
	last line of "/etc/ifconfig.pppoe0" to:
	"! /sbin/ifconfig pppoe0 inet 0.0.0.0 0.0.0.1 netmask 0xffffffff up"
	got PPPoE working for me.
>How-To-Repeat:
	If "/etc/ifconfig.pppoe0" has "0.0.0.0 0.0.0.1 up" as its last line,
	pppoe0 is always "inet 0.0.0.0 -> 0.0.0.1 netmask 0xff000000"
	and never gets a real ip address.
>Fix:
	The following patch works for me, but someone who understands PPPoE
	and ifconfig should check it.
--- pppoe.html.orig	2006-07-03 15:58:41.000000000 +0900
+++ pppoe.html	2006-07-03 15:59:33.000000000 +0900
@@ -223,7 +223,7 @@
 # Configure the PPPoE interface itself. These addresses are magic
 # meaning we don't care about either address and let the remote
 # ppp choose them.
-0.0.0.0 0.0.0.1 up
+! /sbin/ifconfig pppoe0 inet 0.0.0.0 0.0.0.1 netmask 0xffffffff up
 </pre>
 Make sure this file is only readable by root.
 <p>

>Unformatted: