標籤

ASP.NET MVC (29) Visual C# (15) JQuery (10) Plugins (8) JQuery Plugins (6) JavaScript (6) MySQL (5) CSS (4) LinQ (4) Mac OS (4) CentOS (3) Design Pattern (3) Entity Framework (3) IIS (3) Python (3) Windows (3) php (3) Docker (2) LAMP (2) SQL Server (2) WCF (2) .NET (1) .NET Core (1) AWS (1) Browser (1) GIS (1) IE (1) Internet Security (1) Linux (1) Platform (1) React (1) SEO (1) Testing (1) VMware (1) Windows 7 (1) cookie (1) curl (1) laravel (1) phpBB (1) session (1) 中古屋 (1) 透天 (1) 閒言閒語 (1) 面試 (1) 鳥松 (1)

2012年12月19日 星期三

[VMware] 使用Vmware安裝Centos複製虛擬機後eth0網卡發生問題

複製虛擬機後,由於CentOS會記住Mac Address,但是重新啟動後會配發一個新的Mac Address 並且新增一個eth1的網卡。

解決方式為將失效的eth0的Mac Address改為新的Mac Address,新的Mac Address在路徑:
[/etc/udev/rules.d/70-persistent-net.rules]中


# 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 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d4:99:d3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"




只要將eth0的Mac Address改為 00:0c:29:d4:99:d3

並且重新啟動網路    >service network restart