Opensourceinfo

Main Menu
Login

Register new account

Request new password


Fast Easy Web Hosting
Your Say About Movies
Cigars Review

Man Pages

Maintenence Commands
Browse in : All > Documents > Man Pages > Maintenence Commands (907)

NAME

ifrename - rename network interfaces based on various static criteria  

SYNOPSIS

ifrename [-c configfile] [-p] [-d]
ifrename [-c configfile] [-i interface] [-n newname]  

DESCRIPTION

Ifrename is a tool allowing you to assign a consistent name to each of your network interface.

By default, interface names are dynamic, and each network interface is assigned the first available name (eth0, eth1...). 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.

Ifrename allow the user to decide what name a network interface will have. Ifrename can use a variety of selectors to specify how interface names match the network interfaces on the system, the most common selector is the interface MAC address.

Ifrename 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, ifrename renames all present system interfaces using mappings defined in /etc/iftab.  

PARAMETERS

-c configfile
Set the configuration file to be used (by default /etc/iftab). The configuration file define the mapping between selectors and interface names, and is described in iftab(5).
If configfile is "-", the configuration is read from stdin.
-p
Probe (load) kernel modules before renaming interfaces. By default ifrename 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 ifrename.
-d
Enable various Debian specific hacks. Combined with -p, only modules for interfaces specified in /etc/network/interface are loaded.
-i interface
Only rename the specified interface as opposed to all interfaces on the system. The new interface name is printed.
-n newname
When used with -i, 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 `*`.
-t
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 fully processed.
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 interfaces...
 

AUTHOR

Jean Tourrilhes - jt@hpl.hp.com  

FILES

/etc/iftab  

SEE ALSO

ifconfig(8), ip(8), iftab(5).
Polls
What I like best about Firefox 3
OpenSource Headlines
  • Kubuntu and ita s Repositories

    If you're new here, you may want to subscribe to my RSS feed and if you have questions related to your ubuntu system post question to our forums .

  • the blocking sites thing is

    If you're in the market for a new laptop, here's some advice to consider before you spend the money.

  • Linux Job Scheduling

    How I learned to stop worrying and love the Cron. Today, in our ongoing series on learning to live with Linux's "inner daemons", we are going to look at two daemons that schedule job execution on Linux.

  • Shirts for the Linux Geek Inside of You

    Tuesday, March 9th, 2010 << Previous Finally, we can grab some hard-core Linux shirts to wear at the same time we're donating to the cause! The Linux Foundation supports the development of the Linux Kernel financially, and they've come up with a new line of awesome shirts and other merchandise to help out.

  • Can Novell thrive by being a jack of all trades?

    Any business likes to claim to be number one at something; the biggest pet-shop in town, the largest office productivity application provider globally, the only telco that provides both mobile and broadband in your area.

  • Tilera wins VC from Broadcom, Quanta, NTT

    Last November, El Reg told you about how multicore chip maker Tilera was lining up its third round of venture capital funding, a $25m pile of cash that would include $10m from Taiwanese PC maker and server wannabe Quanta Computer.

  • Kernel Log: Stable kernels analysed, Linux without firmware, new graphics drivers

    "The development of Linux 2.6.34 has started and is causing heated discussions on the LKML.

  • Opinion: Linux on the Desktop: Still Not Happening

    I'd love to see viable alternatives to the current mainstream operating systems.

  • Yellow Dog Linux licks CUDA

    Remember Terra Soft and its Yellow Dog Linux for Power processors? Well, Yellow Dog is no longer the darling Linux for Apple machines since the latter company switched to Intel Core and Xeon processors for its PCs and servers a few years back.