Oracle 11gR1 RAC安裝過程中遇到的問題:網路卡的裝置名

cow977發表於2012-04-06

1)第二個虛擬機器第一次啟動後網路裝置名改變的問題:

第二個虛擬機器第一次啟動後,檢查網路裝置,發現名稱不是RAC1機的eth0eth1,而變為了eth2eth3。檢查發現在/etc/udev/rules.d/70-persistent-net.rules檔案中,名稱為eth0eth1的對應了原RAC1機的MAC地址,多出了名稱為eth2eth3的幾行,對應的MAC地址正是RAC2機的現在的網路卡的MAC,修改eth0eth1的地址為新MAC地址,並刪除eth2eth3的行,重啟系統後,名稱恢復正常。

# 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, and change only the value of the NAME= key.

 

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:86", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:85", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

 

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:98", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

 

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:97", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

修改為:

# 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, and change only the value of the NAME= key.

 

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:98", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:97", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/81227/viewspace-721514/,如需轉載,請註明出處,否則將追究法律責任。

相關文章