Subject: userppp and loopback on tun0
To: None <tech-net@netbsd.org>
From: Hanspeter Roth <hampi@rootshell.be>
List: tech-net
Date: 04/02/2004 21:14:46
Hello,

I had tried the userppp from pkgsrc but didn't succeed. So I
installed one from http://www.awfulhak.org/ppp.html (ppp-030706).
With this one I'm able to establish a single connection via isdnd.

ifconfig of tun0 is:

tun0: flags=80f5<UP,DEBUG,POINTOPOINT,NOTRAILERS,RUNNING,NOARP,MULTICAST> mtu 1500
	inet 10.0.0.1 -> 10.0.0.2 netmask 0xfffffffc


If I'm trying to establish a setup with bundled channels tun0 gets
the loopback flag:

tun0: flags=a079<UP,LOOPBACK,POINTOPOINT,NOTRAILERS,RUNNING,LINK1,MULTICAST> mtu 1500
	inet 127.0.0.1 -> 10.0.0.2 netmask 0xffffff00

The entry in ppp.conf is:

 set cd 20
 set phone 100000
 set device /dev/isdnbchan0 /dev/isdnbchan1
 set login
 set authname name
 set authkey key
 set timeout 178
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 disable loopback

 set mrru 1524				# Multilink mode please
 set mru 1504				# Room for the MP header

 clone 1,2				# Two new links
 link deflink rm			# And get rid of the original one

 link * set mode auto			# Automatically manage the second link
 set autoload 2 50 130			# Down @5% usage, up at 50%, 30s sample


How can I remove the loopback flag from tun0 in the bundled setup?

-Hanspeter