| 1 |
.TH NAMEIF 8 "2008\-10\-03" "net\-tools" "Linux System Administrator's Manual" |
| 2 |
.SH NAME |
| 3 |
nameif \- name network interfaces based on MAC addresses |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "nameif [\-c configfile] [\-s]" |
| 6 |
.br |
| 7 |
.B "nameif [\-c configfile] [\-s] {interface macaddress}" |
| 8 |
.SH DESCRIPTION |
| 9 |
.B nameif |
| 10 |
renames network interfaces based on mac addresses. When no arguments are |
| 11 |
given |
| 12 |
.I /etc/mactab |
| 13 |
is read. Each line of it contains an interface name and a Ethernet MAC |
| 14 |
address. Comments are allowed starting with #. |
| 15 |
Otherwise the interfaces specified on the command line are processed. |
| 16 |
.I nameif |
| 17 |
looks for the interface with the given MAC address and renames it to the |
| 18 |
name given. |
| 19 |
|
| 20 |
When the |
| 21 |
.I \-s |
| 22 |
argument is given all error messages go to the syslog. |
| 23 |
|
| 24 |
When the |
| 25 |
.I \-c |
| 26 |
argument is given with a file name that file is read instead of /etc/mactab. |
| 27 |
|
| 28 |
.SH NOTES |
| 29 |
.I nameif |
| 30 |
should be run before the interface is up, otherwise it'll fail. |
| 31 |
|
| 32 |
.SH FILES |
| 33 |
/etc/mactab |
| 34 |
.SH BUGS |
| 35 |
Only works for Ethernet currently. |