2014年2月26日 星期三

CentOS 更改主機名稱

步驟及目錄路徑如下
(1) /etc/hosts 內的 Hostname
(2) /etc/sysconfig/network 內的 Hostname
(3) 使用hostname 命令確認

2014年2月25日 星期二

CentOS 網路卡更換,網路卡識別編號增加問題

解決CentOS網路卡更換重新開機後,識別碼編號持續遞增的問題
CentOS 5.x:
(1)檢查此三個目錄:
/etc/sysconfig/networking/devices
/etc/sysconfig/networking/profiles/default
/etc/sysconfig/network-scripts/
刪除 ifcfg-eth*.bak 與多出來的 ifcfg-eth1等。

(2)若有舊的 ifcfg-eth0 ,則修改其網卡之Mac Address改為新的 Mac Address。
修改 /etc/modprobe.conf,刪除不必要的資訊如 alias eth1 XXXX

CentOS 6.x:
檢查下列目錄:
/etc/udev/rules.d/
70-persistent-net.rules 檔案裡的  eth0 的 Mac Address,刪除不必要的 eth1 等設定資訊即可。

References:
http://blog.tenyi.com/2013/09/centos.html