Date: Mon, 18 Jun 2012 10:31:55 -0400 From: Jason Hellenthal <jhellenthal@dataix.net> To: Eugene Grosbein <egrosbein@rdtc.ru> Cc: stable@freebsd.org Subject: Re: FreeBSD 8.3-STABLE #0 r237184 if_tun auto-up upon create. Message-ID: <20120618143155.GA74775@DataIX.net> In-Reply-To: <4FDEDAB7.7040802@rdtc.ru> References: <20120618024713.GB82047@DataIX.net> <4FDEDAB7.7040802@rdtc.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 18, 2012 at 02:37:27PM +0700, Eugene Grosbein wrote: > 18.06.2012 09:47, Jason Hellenthal пишет: > > > > Hoping someone here might be able to clue me in on what I am seeing. > > > > FreeBSD 8.3-STABLE #0 r237184 > > > > When creating a if_tun(4) device... > > ifconfig tun0 create > > > > With these line in rc.conf(5) > > cloned_interfaces="tun0" > > ifconfig_tun0="metric 100 down" > > > > And sysctl net.link.tun.devfs_cloning=0 > > > > The resulting tun0 device results in state... > > tun0: flags=8011<UP,POINTOPOINT,MULTICAST> metric 100 mtu 1500 > > > > > > After removing the ifconfig_tun0= and running ifconfig create... > > tun0: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500 > > > > > > Why would the device enter a UP/DOWN state if there is no addressing > > information being fed to it ? and especially with a directive of "down" > > ? > > That's because the word "up" is automatically added by system rc-scripts > for ifconfig_XXX lines, so real ifconfig statement in your case is: > > ifconfig tun0 metric 100 down up > Ugh! thanks. guess Ill just have to stick with start_if.tun0 I could swear I have other interfaces that don't do that but at least I know what I am looking for now. Thanks again -- - (2^(N-1))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120618143155.GA74775>