Subject: Config Interface in rc.conf vs. ifconfig.if
To: None <netbsd-users@netbsd.org>
From: Roger Fischer <r8@socal.rr.com>
List: netbsd-users
Date: 06/16/2005 22:50:22
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
By box has two interfaces.
The internal interface is config'd with a static IP via ifconfig.tlp0
The external interface is config'd by dhclient in the rc.conf file.
dhclient=YES # act as a DHCP Client
dhclient_flags="ne2" # leave blank to config all interfaces
I read (man ifconfig.if) that I can use dhclient in an external
ifconfig.if file like so.
[/etc]$ cat ifconfig.ne2
# Configuration for ne2 external interface
# config IPv4
up
!dhclient $int
# config IPv6
!rtsol $int
My question is... If I configure the interface using the
/etc/ifconfig.ne2 file, do I still need a dhclient=YES line in rc.conf?
It seems counter-intuitive to say no, but if I say yes, then what's the
need for the ifconfig.ne2 file.
Thanks,
- Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iEYEARECAAYFAkKyZJ0ACgkQQbKY7YIGfH2W0gCfbKpRHnvOXciiHvrjMYtz28zT
jnMAoKq83WRtRMLBYdM/AvVbBPmuwYjn
=bbHT
-----END PGP SIGNATURE-----