GNU/Linux Command – NAMEIF

nameif — NAME the network InterFaces based on MAC addresses.
Summary :
nameif is used to name the network interfaces based on MAC addresses. It is useful, when you have more then one network interfaces/ cards and 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 specifiedMAC as eth0 and error goto syslog.

1. Nameif should be run before the interface is up, otherwise it’ll fail.
2. Format of the /etc/mactab file:-
  # Comments
  eth0 00:0D:87:77:74:5B
  eth1 00:0D:87:78:7D:6B
Read: man nameif

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: