Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 00:27:20 -0800
From:      Rich Morin <rdm@cfcl.com>
To:        hackers@FreeBSD.ORG
Subject:   Re: auto-definition of a single network interface
Message-ID:  <p05200f2fb9ffa2e3f4a5@[192.168.254.205]>
In-Reply-To: <3DD9EA96.F4DEC169@FreeBSD.org>
References:  <p05200f20b9fd8c66ad17@[192.168.254.205]> <3DD9EA96.F4DEC169@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 11:39 PM -0800 11/18/02, Doug Barton wrote:
>Pardon me if I'm being dense, but I don't understand what your proposal
>does that the existing interface config tools do not.

Well, it's quite possible that I am replicating some existing feature;
feel free to clue me in if this is the case.

>Can you give a description (not code) of what you're trying to accomplish?

A user who has only a single network interface should not have to worry
about the specific FreeBSD name for the interface (it's not like vendors
print "de0" on the card :-).  Simply saying that there is only one network
interface should be enough to let the boot code find and set it up (as,
for example, my OSX box does).

Here, FYI, is the explanation I posted at the start of this thread:

>I had a recent experience in which my FreeBSD system would not configure
>my Ethernet card because the specification in rc.conf was for a different
>type of card.  It seems like FreeBSD could easily handle the general case
>(only one network interface) automagically, letting folks with fancier
>systems add more specific configuration information.  So, instead of:
>
>   ifconfig_dc0=3D"       inet 192.168.254.193 netmask 255.255.255.0"
>
>one could use:
>
>   ifconfig_SGL=3D"       inet 192.168.254.193 netmask 255.255.255.0"
>
>and the system would automagically configure a single networking interface.

Ren=E9 Scharfe's version is used in almost exactly this way; it differs main=
ly
in the fact that it uses the network_interfaces variable:

   network_interfaces=3DSINGLE
   ifconfig_single=3D"       inet 192.168.254.193 netmask 255.255.255.0"
   ifconfig_single_alias0=3D"inet 192.168.254.199 netmask 255.255.255.255"
   ...

-r
-- 
email: rdm@cfcl.com; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05200f2fb9ffa2e3f4a5>