我在学校用的是校园网,自己也和同学也接有电信的网
校园网是dhcp配置的,不用配置IP,DNS就能上网了,可是就是不稳定
所以我有时候用电信的网络,我和我宿舍的用的是一个猫和交换机接的网络,在windows里面设置的时候,IP 是192.168.1.5,子网掩码是255.255.255.0,网关是192.168.1.1,dns是202.103.224.68
在windows下是可以上网的,可是我在ubuntu里面这样设置的话就不能上网,不知道为什么,所以我都是在虚拟机里面上,大家能告诉我怎么在ubuntu里面设置么,谢谢了
上网问题
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43
我的和你情况差不多,在我的机子上,adsl的 IP:192.168.1.1
设置好了adsl自动拨号在ubuntu不用设置,在adsl里是禁用DHCP
我是这样解决的:
使用命令: sudo nano /etc/network/interfaces
编辑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
address 127.0.0.1
netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
network 192.168.1.0
broadcast 192.168.1.255
auto eth0
==========================
系统->系统管理->联网
在联网里设置
1.默认网关设备为:eth0
2“以太网连接”为:DHCP
3 并激活“以太网连接”
不知道这个方法对你试不试用你可以试试!
设置好了adsl自动拨号在ubuntu不用设置,在adsl里是禁用DHCP
我是这样解决的:
使用命令: sudo nano /etc/network/interfaces
编辑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
address 127.0.0.1
netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
network 192.168.1.0
broadcast 192.168.1.255
auto eth0
==========================
系统->系统管理->联网
在联网里设置
1.默认网关设备为:eth0
2“以太网连接”为:DHCP
3 并激活“以太网连接”
不知道这个方法对你试不试用你可以试试!