VM8下ubuntu10.04下修改mac地址和配置静态ip

来源:互联网 发布:查看淘宝产品价格变化 编辑:程序博客网 时间:2024/06/09 21:19

VM8下ubuntu10.04下修改mac地址和配置静态ip


编辑 /etc/network/interfaces文件,
vim /etc/network/interfaces


auto lo
iface lo inet loopback
auto eth2
iface           eth2 inet static
pre-up ifconfig eth2 hw ether 00:0c:29:df:12:b8
address         172.16.151.143
netmask         255.255.255.0
network         172.16.151.0
broadcast       172.16.151.255
gateway         172.16.151.254
dns-nameservers 172.16.205.10
原创粉丝点击