Socialabel

Friday, April 1, 2016

Mengganti Nama Interface Centos

/sbin/ip link set eth0 down
/sbin/ip link set eth0 name publik
/sbin/ip link set publik up
 
 
Edit the file /etc/udev/rules.d/70-persistent-net.rules to change the interface name of a network device. 

# PCI device 0x11ab:0x4363 (sky2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:00:00:00:00:00",ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"

No comments:

Post a Comment