分页: 1 / 1

[问题] 还是关于如何改物理地址

发表于 : 2007-11-06 16:40
fgy2422
最近尝试了三个发行版本的linux:Hiweed,Xubuntu7.04,Debian.

装了Hiweed时
sudo vi /etc/network/interfaces
在iface eth0 inet static的下一行添加hwaddress ether XX:XX:XX:XX:XX:XX
重启后,完全正常上网。

装了Xubuntu时,同样的操作:
sudo vi /etc/network/interfaces
在iface eth0 inet static的下一行添加hwaddress ether XX:XX:XX:XX:XX:XX
但是用sudo ifconfig 查看时:发现MAC的确改过来了,但是IP显示不出来
重启或者用sudo /etc/init.d/networking restart 都不行
sudo ifconfig eth0 down
sudo ifconfig eth0 up
之后还是不行
把/etc/network/interfaces 里加的那句删掉或注释掉,再用ifconfig查看,就能正常显示旧的MAC和IP了。

装了Debian后,同样的操作:
sudo vi /etc/network/interfaces
在iface eth0 inet static的下一行添加hwaddress ether XX:XX:XX:XX:XX:XX
用sudo ifconfig 查看时:MAC改过来了,IP显示正常
但是只要插上网线,宿舍就断网,
重启或者用sudo /etc/init.d/networking restart 都不行
sudo ifconfig eth0 down
sudo ifconfig eth0 up
之后还是不行


论坛上的关于改物理地址的帖子都试过了,无非就是上面的方法,但是为什么hiweed就行,另外的两个就怎么都不行呢?