分页: 1 / 1

关于路由器上网的配置问题,可以连接到路由器但不能上网

发表于 : 2005-12-02 4:06
ycxct
路由器ip 192.168.1.1
本机ip 192.168.1.10
采用windows中网关和dns的设置,都设置为192.168.1.1

可以ping通路由器,不能上网,尝试ping Yahoo的IP地址可以通,应该是DNS问题,但到底哪里出错了?路由器的网关地址和DNS是应该一样啊。。。。

2个配置文件如下:

[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

# 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
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0


[resolv.conf]

search private
nameserver 192.168.1.1

发表于 : 2005-12-02 7:57
firehare
应该是路由器的DNS转发的问题
楼主兄弟不妨将你的ISP商的DNS直接写到你的/etc/resolv.conf文件中,看看是否能正常上网! :)

发表于 : 2005-12-02 10:19
4321go
好像以前也有一个这样问题~

我也是用路由器上的。怎么好好的呢? 你在其他操作系统下可以正常用吗?

发表于 : 2005-12-02 10:44
meishiwanwan
个人觉得ubuntu的DNS方面好像是有些问题!经常会出现域名无法解释的问题!

发表于 : 2005-12-02 13:39
ycxct
:D 搞定了,谢谢大家,用了电信服务器的DNS地址就OK了,看来这个系统真有些名堂,路由器做dns地址在98,xp下面可是好好的哦