search | index | tags | login/register

linux: rename network interface (by damian)

In order to edit / remove Network Interfaces in  linux

 
The file looks like:
---
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x8086:0x1079 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:30:48:d0:9c:6f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x1079 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:30:48:d0:9c:6e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

---

(For every interface, there is a comment and a config line)

To clean up (for example to take image to deploy on other hardware platform) you can also just delete this file, since it will be recreated on next system reboot.

Tags:
#config #configuration #doc #docs #howto #interface #linux #network #rename #setup #system

Info:
Attribute(s): Public
Created: 02.02.2012 10:09   Total Views: 312
Last Changed: 28.04.2017 11:44   Total Changes: 2
Δt = 0.072528123855591s