devices are automatically created at boot(how about pseudo devices e.g; carp)?

2005-12-01 Thread Mark Jayson Alvarez
Hi,
   Do I have to  write a script that contains let's say:
 #!/bin/sh
 ifconfig carp0 create
 
 
 then add a line in my rc.conf that looks like this:
 ifconfig_carp0=vhid 1 pass mypasswd 192.168.0.1/24
 
 or is there a place where I can do them both at the same time?
 
 thanks
 


-
 Yahoo! Personals
 Single? There's someone we'd like you to meet.
 Lots of someones, actually. Try Yahoo! Personals
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: devices are automatically created at boot(how about pseudo devices e.g; carp)?

2005-12-01 Thread Glenn Dawson

At 07:32 PM 12/1/2005, Mark Jayson Alvarez wrote:

Hi,
   Do I have to  write a script that contains let's say:
 #!/bin/sh
 ifconfig carp0 create


 then add a line in my rc.conf that looks like this:
 ifconfig_carp0=vhid 1 pass mypasswd 192.168.0.1/24

 or is there a place where I can do them both at the same time?


from the carp man page:

A carp interface can be created at runtime using the ifconfig carpN
create command or by configuring it via cloned_interfaces in the
/etc/rc.conf file.


so, using something like:

cloned_interfaces=carp0

in your rc.conf would create the device at boot time.  From there, 
you would just configure it like any other network interface.


-Glenn



 thanks



-
 Yahoo! Personals
 Single? There's someone we'd like you to meet.
 Lots of someones, actually. Try Yahoo! Personals
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]