ubuntu8.10:如何设置来上网

来源:百度知道 编辑:UC知道 时间:2024/06/17 16:51:03
如何修改mac地址:
绑定IP?
设置DNS?
网关?
如何设置才可以上网?ubuntu8.10
补充:我在大学校园里使用,需要修改mac地址,绑定IP和子网掩码,DNS,网关等。
请高人把具体过程写出来,也就是每一步骤(如何修改mac地址,如何绑定DNS,IP等) .
请把命令写出来,最好解释一下!。

三楼的方法,我试过了,没有用啊。

请大家帮帮我。

ifconfig eth0 192.168.0.100 netmask 255.255.255.0 //ip和netmask
route add default gw 192.168.0.1 //网关

ifconfig eth0 down
ifconfig eht0 hw ether xxxxxxxxxxxx <- 你的能上网的MAC地址
ifconfig eth0 up
一般不用改mac地址吧。。

vim /etc/resolv.conf
添加:
nameserver 192.168.1.1 //设置你的DNS

ifconfig eth0 看一下设置

最后重启网络:sudo /etc/init.d/networking restart
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

上面是一些命令,你也可以通过菜单里的网络设置更改网络设置,用static ip设置静态ip地址。
设置完毕后重启网络:sudo /etc/init.d/networking restart

这个通过网络管理器即可方便设置啊,和Windows没有多大的区别,在右上角的图标中找找

在桌面上,右击表示网络的小电脑图标,点编辑连接,在里面直接修改,即可!要是你运行的是字符界面,楼上已经说的很详细了。