您的位置:首页 > 其它

ubuntu修改IP MAC DNS

2011-12-17 00:36 211 查看
1、ubuntu系统修改IP地址:sudo gedit /etc/network/interfaces
auto eth0
iface eth0 inet static
address 219.218.122.168
netmask  255.255.255.0
gateway  219.218.122.254

注意:将原来的其他链接方式给注释了,像LO本地换回

2、ubuntu系统修改DNS: sudo gedit /etc/resolv.conf
nameserver 202.194.15.12

3、使网络生效:sudo /etc/init.d/networking restart


4.修改MAC

首先必须关闭网卡设备,否则会报告系统忙,无法更改。
sudo /sbin/ifconfig eth0 down
修改 MAC 地址,这一步较 Windows 中的修改要简单。
sudo /sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE (你的MAC地址)
重新启用网卡sudo /sbin/ifconfig eht0 up网卡的 MAC 地址更改就完成了 如果计算机每次启动都要修改mac地址 修改你的源,并升级到最新的系统:
sudo gedit /etc/init.d/rc.local
增加
sudo /sbin/ifconfig eth0 down
sudo /sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE (你的MAC地址)
sudo /sbin/ifconfig eth0 up
到最后以后他就会每次启动计算机的时候自动修改网卡地址

5.代理的设置
通过图形界面
或者:sudo gedit /etc/apt/apt.conf
添加Acquire::http::proxy "http://proxy.jlu.edu.cn:8080/";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: