Tampilkan postingan dengan label centos. Tampilkan semua postingan
Tampilkan postingan dengan label centos. Tampilkan semua postingan

Jumat, 07 Juni 2013

Find files on CentOS using locate

OS: CentOS 6.3

If you want to search a file on CentOS you could use locate and updatedb command.
First install mlocate
# yum install mlocate
Now you can find files on your system.
# locate <file_name_you_want_to_find>
To update database for mlocate use
# updatedb


Jumat, 15 Februari 2013

Change Network Device Name on CentOS

OS: CentOS 6.3

Sometimes when you make clone of a virtual machine via KVM or VMWare, network device name are automatically change from eth0 to eth1.

To show your current device name use:
#ip link show

As you can see right now mac address 00:0C:29:5E:61:F2 are set to eth1.
To change it back to eth0 use:
#ip link set eth1 name eth0

To make sure the device name did not change back to eth1 after restart, edit:
/etc/udev/rules.d/70-persistent-net.rules
You could delete the old mac address and edit the device name from eth1 to eth0



Don't forget to modify mac address at the network configuration:
/etc/sysconfig/network-scripts/ifcfg-eth0
Make sure mac address already set to new one


Turn on eth0, and check it:
#ifconfig eth0 up
#ifconfig


Source: www.banym.de