{
    "mode": "man",
    "parameter": "nameif",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/nameif/8/json",
    "generated": "2026-06-02T20:22:29Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "nameif - name network interfaces based on MAC addresses\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "nameif [-c configfile] [-s]",
                    "content": ""
                },
                {
                    "name": "nameif [-c configfile] [-s] {interface macaddress}",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "nameif  renames  network  interfaces  based  on  mac  addresses.  When no arguments are given\n/etc/mactab is read. Each line  of it contains an interface name and a Ethernet MAC  address.\nComments are allowed starting with #.  Otherwise the interfaces specified on the command line\nare processed.  nameif looks for the interface with the given MAC address and renames  it  to\nthe name given.\n\nWhen the -s argument is given all error messages go to the syslog.\n\nWhen the -c argument is given with a file name that file is read instead of /etc/mactab.\n\n",
            "subsections": []
        },
        "NOTES": {
            "content": "nameif should be run before the interface is up, otherwise it'll fail.\n\n",
            "subsections": []
        },
        "FILES": {
            "content": "/etc/mactab\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Only works for Ethernet currently.\n\n\n\nnet-tools                                    2008-10-03                                    NAMEIF(8)",
            "subsections": []
        }
    },
    "summary": "nameif - name network interfaces based on MAC addresses",
    "flags": [],
    "examples": [],
    "see_also": []
}