N
Gossip Blast Daily

How do I rename network interface?

Author

William Harris

Updated on April 03, 2026

How do I rename network interface?

The best way to rename a network interface is through udev . Edit the file /etc/udev/rules. d/70-persistent-net. rules to change the interface name of a network device.

How do I change the interface name in Ifconfig?

Configuration

  1. Find the MAC address of the ports you wish to change their names (e.g., enp2s0f0 and enp2s0f1): # ifconfig.
  2. Create the configuration file (70-persistent-net.rules)
  3. Create/edit the ifcfg file for the port configuration:
  4. Reboot the server and then verify the name changes by running ifconfig.

How do I change the network interface name Ifcfg eth0 to Ifcfg nic0?

Modifying network scripts

  1. You will have to rename and edit the network script for the interface you will to rename.
  2. Open renamed device’s config file (ifcfg-eth1) and Change Device=oldname (eth0) to newname (eth1).
  3. Down the interface eth0 and start the new interface.
  4. Verify the new settings with ifconfig or ip command.

How do I rename my wireless interface in Linux?

Choose a solution:

  1. ip link set wlp5s0 name wlan0 – not permanent.
  2. create yourself an udev rule file in /etc/udev/rules. d – permanent.
  3. add net. ifnames=0 kernel parameter into grub. cfg – permanent, if your distro won’t overwrite it.

What is network interface name?

Network interface names are based on whether the interface is a physical or virtual network interface. Physical interfaces are assigned names based on the slot number of the adapter. VLANs are named by combining the interface name and VLAN ID.

How do you rename a network in Windows 10?

Select “Network List Manager Policies” in the left pane. You’ll see a list of all the network profiles on your system. To rename a profile, double-click it. Select the “Name” box, type a new name for the network, and then click “OK.”

How do I change the interface name in RHEL 7?

CentOS / RHEL 7 : How to modify Network Interface names

  1. Edit kernel boot parameter. Edit file /etc/default/grub and add net.ifnames=0 biosdevname=0 to line GRUB_CMDLINE_LINUX, for instance:
  2. Correct ifcfg file configuration.
  3. Disable NetworkManager.
  4. Reboot system.

What is the difference between eth0 and eth1?

eth0 is the first Ethernet interface. (Additional Ethernet interfaces would be named eth1, eth2, etc.) This is a special network interface that the system uses to communicate with itself. wlan0 is the name of the first wireless network interface on the system.

How do I rename network interface in CentOS RHEL 7?

How do I change the network interface in Linux?

Changing Network Configuration Open your /etc/network/interfaces file, locate the: “iface eth0…” line and change dynamic to static. address line and change the address to the static IP address. netmask line and change the address to the correct subnet mask.

How do I find my network interface name in Linux?

Identify Network Interfaces on Linux

  1. IPv4. You can get a list of the network interfaces and IPv4 addresses on your server by running the following command: /sbin/ip -4 -o a | cut -d ‘ ‘ -f 2,7 | cut -d ‘/’ -f 1.
  2. IPv6.
  3. Full output.

Where can I find the network interface name?

Physical interfaces are automatically assigned names based on the slot where the network adapter is installed….Host names.

Interface typeHost name
Single-port Ethernet interface in slot 0toaster-e0
Quad-port Ethernet interface in slot 1toaster-e1a toaster-e1b toaster-e1c toaster-e1d