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"

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值