cvs commit: src/etc/rc.d dhclient netif

Mike Makonnen mtm at identd.net
Sat Jun 28 22:47:06 PDT 2003


On Sat, 28 Jun 2003 22:34:41 -0700 (PDT)
Mike Makonnen <mtm at FreeBSD.org> wrote:

> mtm         2003/06/28 22:34:41 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     etc/rc.d             dhclient netif 
>   Log:
>   Implement individual operations on static and dhcp interfaces. Previously
>   network interfaces could only be turned on and off as a group (all
>   static interfaces or all dhcp interfaces).
>   

This will undoubtedly need more work as people try this out and find things they
would like done differently, etc. However, to begin with you should be able to
do this now:
# /etc/rc.d/netif stop rl0
# /etc/rc.d/dhclient stop dc0
... do something...
# /etc/rc.d/netif start rl0
# /etc/rc.d/routing static
# /etc/rc.d/dhclient start dc0

Running the static routing (rc.d/routing) is necessary after you bring a
staticly configured interface back up.

At the moment, you can only specify one interface to start/stop but it's easy
enough the make it accept more. I'll do that in the next few days.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm at identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
mtm at FreeBSD.Org| FreeBSD - The Power To Serve


More information about the cvs-all mailing list