Ubuntu910虛擬機配置DHCP

 

vim /etc/network/interfaces

 

#auto lo

#iface lo inet loopback

 

auto eth0

iface eth0 inet dhcp

 

vim /etc/udev/rules.d/70-persistent-net.rules

 

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:10:03:07", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

 

Shutdown –h now

 

 

 

 

Notepad Ubuntu9.1.vmx

 

extendedConfigFile = "Ubuntu9.1.vmxf"

 

ethernet0.addressType = "generated"

uuid.location = "56 4d 92 a2 31 40 a7 58-60 61 bc e4 ab 02 2f 5b"

uuid.bios = "56 4d 92 a2 31 40 a7 58-60 61 bc e4 ab 10 03 07"

scsi0:0.redo = ""

vmotion.checkpointFBSize = "134217728"

pciBridge0.pciSlotNumber = "17"

pciBridge4.pciSlotNumber = "21"

pciBridge5.pciSlotNumber = "22"

pciBridge6.pciSlotNumber = "23"

pciBridge7.pciSlotNumber = "24"

scsi0.pciSlotNumber = "16"

usb.pciSlotNumber = "32"

ethernet0.pciSlotNumber = "33"

sound.pciSlotNumber = "34"

ehci.pciSlotNumber = "35"

vmci0.pciSlotNumber = "36"

ethernet0.generatedAddress = "00:0c:29:10:03:07"

ethernet0.generatedAddressOffset = "0"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章