稳定盈利的期货交易方法-量化趋势交易

alantop -专业量化投资者

爱好:量化投资,逆向工程,渗透
随笔 - 595, 文章 - 0, 评论 - 921, 引用 - 0
数据加载中……

ubuntu 修改 eth0为eth1 临时 永久 修改mac地址 配置ip地址

vim /etc/udev/rules.d/70-persistent-net.rules
修改对应ethX即可

配置IP地址
vim /etc/network/interfaces 
auto lo
iface lo inet loopback
auto eth1
iface  eth1 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.254
修改mac地址
ifconfig eth0 down
ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
ifconfig eth0 up


gedit /etc/network/interfaces
在此配置文件中找到“iface eth0 inet static”行,在其后面加上“hwaddress ether AA:BB:CC:DD:EE:FF”,
如何没有这一行,则自己手动完整添加

永久修改Ubuntu的mac地址

在/etc/init.d/networking中找到

case "$1" in

start)
这句话,再加入

ifconfig eth0 down (停用网卡)
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX(需要更改的MAC地址)
ifconfig eth0 up (启用网卡)


配置DNS

vi /etc/resolv.conf

nameserver 8.8.8.8

重启网络
/etc/init.d/networking restart

 

 





posted on 2013-04-29 19:57 AlanTop 阅读(3840) 评论(1)  编辑 收藏 引用 所属分类: Linux 使用技巧ubuntu

评论

# re: ubuntu 修改 eth0为eth1 临时 永久 修改mac地址 配置ip地址  回复  更多评论   

nice blog bx
2014-12-10 08:48 | victoria secret uk

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理