From nobody@FreeBSD.org  Tue Jan 24 16:14:42 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CBEAD16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Jan 2006 16:14:42 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 98E3343D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Jan 2006 16:14:42 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0OGEgWD042994
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Jan 2006 16:14:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k0OGEg27042993;
	Tue, 24 Jan 2006 16:14:42 GMT
	(envelope-from nobody)
Message-Id: <200601241614.k0OGEg27042993@www.freebsd.org>
Date: Tue, 24 Jan 2006 16:14:42 GMT
From: Florian Klemenz <fok@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ppp does not work on renamed network interfaces
X-Send-Pr-Version: www-2.3

>Number:         92270
>Category:       kern
>Synopsis:       [ppp]: ppp does not work on renamed network interfaces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net@FreeBSD.org
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 24 16:20:03 GMT 2006
>Closed-Date:    
>Last-Modified:  Mon Jul 29 14:31:36 UTC 2013
>Originator:     Florian Klemenz
>Release:        6.0
>Organization:
>Environment:
FreeBSD revenant.fok 6.0-RELEASE-p3-fok1 FreeBSD 6.0-RELEASE-p3-fok1 #1: Mon Jan 23 12:27:53 CET 2006     fok@revenant.fok:/usr/obj/usr/src/sys/REVENANT  i386

>Description:
ppp fails establishing a PPPoE connection when using a renamed network
interface. Could be a bug in ppp or netgraph.
>How-To-Repeat:
/etc.rc.conf:
[..]
ifconfig_sis1_name="dsl0"
ifconfig_dsl0="up"
[..]

/etc/ppp/ppp.conf:
default:
  set device PPPoE:dsl0
[..]

ppp command line: /usr/sbin/ppp -quiet -ddial -nat default

/var/log/ppp.log:
[..]
Jan 24 16:00:14 revenant ppp[223]: Warning: dsl0: Cannot send a netgraph message: No such file or directory
Jan 24 16:01:14 revenant ppp[223]: Warning: deflink: PPPoE: unknown host
Jan 24 16:02:14 revenant ppp[223]: Warning: deflink: PPPoE: unknown host
Jan 24 16:02:14 revenant ppp[223]: Warning: deflink: Device (PPPoE:dsl0) must begin with a '/', a '!' or contain at least one ':'
Jan 24 16:02:14 revenant ppp[223]: Chat: Failed to open device
[..]

However, changing /etc/ppp/ppp.conf to use the original interface name
("set device PPPoE:sis1")establishes a connection, but there are still
some issues since sis1 should really be addressed as dsl0:

/var/log/ppp.log:
Jan 24 16:13:11 revenant ppp[692]: Error: iface_ChangeFlags: ioctl(SIOCGIFFLAGS): Device not configured
Jan 24 16:13:11 revenant ppp[692]: Warning: deflink: Failed to set the IFF_UP flag on sis1


>Fix:
Workaround: Don't rename the interface which is used by ppp and everything
works just fine.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->glebius 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Wed Jan 25 12:10:47 UTC 2006 
Responsible-Changed-Why:  
This is known problem with ng_ether. I hope to fix it someday. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92270 

From: Niki Denev <nike_d@cytexbg.com>
To: bug-followup@FreeBSD.org,  fok@gmx.net
Cc:  
Subject: Re: kern/92270: ppp(8): ppp does not work on renamed network interfaces
Date: Wed, 22 Feb 2006 01:13:40 +0200

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Another fix for this problem that is
 to put something like this :
 
 /usr/sbin/ngctl name sis1: dsl0
 
 in /etc/start_if.dsl0
 
 This way the netgraph node gets renamed and at least mpd(8) works.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFD+56kHNAJ/fLbfrkRAvspAKCo9A7PDueDGRuqA//z8pzbQAnxkQCeJILf
 UpDDJjbYpI5Ba6Ma5zLnZeM=
 =M5Gt
 -----END PGP SIGNATURE-----

From: Aragon Gouveia <aragon@phat.za.net>
To: bug-followup@FreeBSD.org, fok@gmx.net
Cc:  
Subject: Re: kern/92270: [ppp]: ppp does not work on renamed network interfaces
Date: Mon, 11 Oct 2010 23:01:50 +0200

 Old bug.  I've been playing with PPPoE and interface renaming recently. 
   I can confirm that this bug appears to be resolved as PPPoE is working 
 fine for me over a renamed interface on 8.1-STABLE.
 
 I think it's safe to close this.

From: "Terrence Koeman" <terrence@mediamonks.net>
To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>, 
	"fok@gmx.net" <fok@gmx.net>
Cc:  
Subject: Re: kern/92270: [ppp]: ppp does not work on renamed network interfaces
Date: Mon, 09 Jan 2012 21:59:59 +0100

 I'm seeing the exact same bug on 8.2-STABLE, so it isn't completely gone.
 
 However, I have netgraph compiled into the kernel instead of loading module=
 s, so possibly it will work when the netgraph modules are loaded after the =
 interface is renamed.
 
 I will try using loaded modules and report back.
 
 -- 
 Regards,
 T. Koeman, MTh/BSc/BPsy; Technical Monk
 
 
 
 
Responsible-Changed-From-To: glebius->avg 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Mon Feb 11 11:07:56 UTC 2013 
Responsible-Changed-Why:  
avg has committed a fix for that 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92270 
Responsible-Changed-From-To: avg->freebsd-net@FreeBSD.org 
Responsible-Changed-By: avg 
Responsible-Changed-When: Mon Jul 29 14:30:44 UTC 2013 
Responsible-Changed-Why:  
Return to the pool.  I don't know why this PR was assigned to me and 
what to do with it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92270 
>Unformatted:
