Skip site navigation (1)Skip section navigation (2)
Date:      27 Nov 2005 16:09:28 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Mark Jayson Alvarez <jay2xra@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: proper way to create network devices at boot time.
Message-ID:  <441x11ol13.fsf@be-well.ilk.org>
In-Reply-To: <20051127104904.1771.qmail@web51611.mail.yahoo.com>
References:  <20051127104904.1771.qmail@web51611.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> wrote:  Mark Jayson Alvarez  writes:
> 
> >  How do you create a network device at boot time? I need to set up my  carp devices at boot time. in Openbsd, it can be set in  /etc/hostname.if like this.
> >   
> > /etc/hostname.carp1
> >     inet 172.16.0.100 255.255.255.0 172.16.0.255 vhid 1 carpdev em0 \
> >      pass lanpasswd  Thanks.

> On recent FreeBSD, the devices should be created automatically if the
> hardware they support is present.  What device exactly are you trying
> to create?

Mark Jayson Alvarez <jay2xra@yahoo.com> writes:

> Im  trying to create carp pseudo device. In rc.conf, I can simply configure  it using ifconfig, however only after the device have been created. So  manually I would say:
>   ifconfig carp create
>   ifconfig carp0 vhid 1 pass mypasswd ipaddress
>   
>   something like that...

If the problem is that the devices aren't ready yet, try devfs.rules(5).



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