if_up

ensure a TCP/IP interface is available

Syntax:

if_up [-a] [-r retries] [-s seconds] interface...

Options:

-a
Wait until all specified interfaces are configured (default is to wait until a single interface is configured).
-r retries
The number of times to walk the interface list (default is 5).
-s seconds
Wait this number of seconds before rewalking the interface list (default is 1).
interface
Name of interface to wait on (e.g. en1,en2,...).

Description:

This convenience utility may be used while booting to ensure a TCP/IP interface is available to those utilities that require one. It's primarily intended for use with the dhcp.client. When if_up is run in the foreground in a startup script, the script won't continue until the specified interfaces are marked as ``UP'' and have been assigned an IP address, or the utility has timed out.

Examples:

See dhcp.client.