Subject: Re: "A nick for a NIC" - question and/or feature suggestion...
To: Zbigniew Baniewski <zb@ispid.com.pl>
From: haad <haaaad@gmail.com>
List: netbsd-users
Date: 05/20/2007 00:08:49
-----BEGIN PGP SIGNED MESSAGE-----
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 net.link.tap.tap0=00:00:f8:06:f2:96
>> inet 85.8.3.143/24
>> # 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.
Regards
- ---------------------------------------------------------------
Adam Hamsik
ICQ 249727910
jabber haad@jabber.org
- ---------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGT3Vx9Wt2FT7y228RAoHXAJ0aWjHBTsfnPUmJqwpsryq3Abae4wCgghN9
4uBH9EosPLOHEGCNFGyiwUc=
=v0Co
-----END PGP SIGNATURE-----