新安装了ubuntu linux8.10 ,但进入操作系统后无法上网,需要设置哪里?用的是校园网。

来源:百度知道 编辑:UC知道 时间:2024/06/26 03:35:45
以前安装的是Ubuntu linux8.04进去后能直接上网,这回按了8.10就不行了,如何解决?

我以前装8.04版就无法上网,后来我找到了解决方法,你试试!
第一次装ubuntu server8.04时,由于在安装的时候填入了IP所以没有在后来更改过IP,不过这次重装时没有填IP,所以系统默认为DHCP,只好自己改了,在网上百度了下,发现有关网卡的设置文件在/etc/network/interfaces文件中,把iface eth0 inet dhcp 改成以下内容就可以了
iface eth0 inet static
address 192.168.11.99
netmask 255.255.255.0
gateway 192.168.11.1
nameserver 202.101.224.68
因为我用的是单网卡最终我的interfaces的内容为:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.11.90
netmask 255.255.255.0
gateway 192.168.11.1
nameserver 202.101.224.69
最后想说的就是书写配置文件时一定要仔细,由于不小心把iface eth0 inet static 写成ifaces eth0 inet static而不能启动网卡并且找了好久才发现这个问题。

昨天搞了一晚,把Ubuntu升级到8.04,今天研究了一下双网卡配置,记录如下:
1、内网IP10.10.10.100,网关10.10.10.1,用的是一款