Subject: Re: "A nick for a NIC" - question and/or feature suggestion...
To: Zbigniew Baniewski <>
From: haad <>
List: netbsd-users
Date: 05/20/2007 00:08:49
Hash: SHA1

Zbigniew Baniewski wrote:
> On Sat, May 19, 2007 at 08:32:39PM +0200, Tobias Nygren wrote:
>> I don't think it's _that_ much work involved in s/ep0/ex0/.
>> How often do you change your interfaces? :-)
> Yes, but I must remember: ...this file has to be changed... this one...
> ...and this one too. Oops! I forgot two others, recently added.  :-O
>> But if you really need this, a trick is to use a bridge and attach
>> a dummy tap interface. Then you can use tap0 in your configuration
>> files and only change ifconfig.bridge0 when installing a new NIC:
>> # cat ifconfig.tap0
>> !sysctl -w
>> inet
>> # cat ifconfig.bridge0 
>> !brconfig $int add tap0 add hme0 up
>> # cat ifconfig.hme0    
>> media 10baset
>> tcp4csum udp4csum
>> up
>> -Tobias
> Thanks, I wasn't aware, that such kind of workaround is possible for today.
> But pay attention: wouldn't it be simpler in the way, I proposed? Even all
> the config files would look a bit clearer, having entries like:
> "external_nic", "internal_interface" instead of just "rtk0" and so on. Yes,
> one can live without this - just like without several other things.
> Not being kernel developer, I'm unable to estimate amount of work, which
> implementing such feature could take. But, if not that much... I can't see
> any real "contras" at the moment.
this is not kernel related work. Our rc scripts are written in sh. You have to
modify netbsd rc.d/rc startup scripts. and that's all. If you are skilled shell
programer this is task for you :D.

- ---------------------------------------------------------------
Adam Hamsik
ICQ 249727910
- ---------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
Version: GnuPG v1.4.7 (NetBSD)
Comment: Using GnuPG with Mozilla -