is a tool allowing you to assign a consistent name to each of your
By default, interface names are dynamic, and each network interface is
assigned the first available name
The order network interfaces are created may vary. For built-in
interfaces, the kernel boot time enumeration may vary. For removable
interface, the user may plug them in any order.
allow the user to decide what name a network interface will have.
can use a variety of
to specify how interface names match the network interfaces on the
system, the most common selector is the interface
must be run before interfaces are brought up, which is why it's mostly
useful in various scripts (init, hotplug) but is seldom used directly
by the user. By default,
renames all present system interfaces using mappings defined in
Set the configuration file to be used (by default
The configuration file define the mapping between selectors and
interface names, and is described in
is "-", the configuration is read from stdin.
Probe (load) kernel modules before renaming interfaces. By default
only check interfaces already loaded, and doesn't auto-load the
required kernel modules. This option enables smooth integration with
system not loading modules before calling
specific hacks. Combined with
only modules for interfaces specified in
Only rename the specified
as opposed to all interfaces on the system. The new interface name is
When used with
specify the new name of the interface. The list of mappings from the
configuration file is bypassed. The new name may be a wildcard
containing a single '*'.
Enable name takeover support. This allow interface name swapping
between two or more interfaces.
Takeover enable an interface to 'steal' the name of another
interface. This works only with kernel 2.6.X and if the other
interface is down. Consequently, this is not compatible with
Hotplug. The other interface is assigned a random name, but may be
renamed later with 'ifrename'.
The number of takeovers is limited to avoid circular loops, and
therefore some complex multi-way name swapping situations may not be
In any case, name swapping and the use of this feature is discouraged,
and you are invited to choose unique and unambiguous names for your
Dry-run mode. Ifrename won't change any interface, it will only print
new interface name, if applicable, and return.
In dry-run mode, interface name wildcards are not resolved. New
interface name is printed, even if it is the same as the old name.
Verbose mode. Ifrename will display internal results of parsing its
configuration file and querying the interfaces selectors. Combined
option, this is a good way to debug complex configurations or trivial