nameif — NAME network InterFaces based on MAC addresses.
nameif is used to rename the network interfaces based on MAC addresses. It is useful, when you have more then one network interfaces/cards & you want to specify the name (eth0, .. ) for each interfaces.
# nameif — Read the config info from /etc/mactab file.
# nameif -s — Same as above. But error messages goto the syslog.
# nameif -s eth0 00:0D:87:77:74:5C — Name the card with specified MAC as eth0 and error goto syslog.
- Nameif should be run before the interface is up, otherwise it’ll fail.
- Format of the /etc/mactab file:
Read: man nameif