- 论坛徽章:
- 0
|
最近装好了ubuntu,感觉非常好,但是网络设置出了问题,无法安装更多软件,请大家帮忙看下,谢谢!
我是在学校里面的,在win下设置好ip以及网卡mac之后就可以上内网,上外网需要通过亿邮客户端用账号来登录
现在ubuntu下面ip,dns,网关,子网掩码都设置的和win完全一样了,就差mac的设置
在论坛以及google中搜索,发现mac和以下两个文件有关:
/etc/iftab
/sys/class/net/eth0/address
首先,我改了iftab,关闭网络链接,重启后文件确定修改,但是在-首选项-硬件信息-中看到网卡的mac依然没有变化
而后开始更改address文件,更改权限后用gedit打开是空的,加入mac地址后保存不成功
接着用vi,打开后提示:
E325: ATTENTION
Found a swap file by the name "/var/tmp/address.swp"
owned by: magicgogo dated: Wed Jul 11 00:04:54 2007
file name: /sys/class/net/eth1/address
modified: YES
user name: magicgogo host name: ubuntu
process ID: 5866
While opening file "/sys/class/net/eth1/address"
dated: Wed Jul 11 18:07:52 2007
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /sys/class/net/eth1/address"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/var/tmp/address.swp"
to avoid this message.
"/sys/class/net/eth1/address" 1 line, 18 characters
Press ENTER or type command to continue
回车后继续,更改后提示:
"/sys/class/net/eth1/address"
"/sys/class/net/eth1/address" E667: Fsync failed
WARNING: Original file may be lost or damaged
don't quit the editor until the file is successfully written!
Press ENTER or type command to continue
请朋友们解答下,感激! |
|