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

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
ycxct
帖子: 11
注册时间: 2005-12-01 16:38

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

#1

帖子 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
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#2

帖子 firehare »

应该是路由器的DNS转发的问题
楼主兄弟不妨将你的ISP商的DNS直接写到你的/etc/resolv.conf文件中,看看是否能正常上网! :)
我心无畏,源自于我心无知。
图片
4321go
帖子: 180
注册时间: 2005-09-13 21:18

#3

帖子 4321go »

好像以前也有一个这样问题~

我也是用路由器上的。怎么好好的呢? 你在其他操作系统下可以正常用吗?
我有一个Blog, 最近在上面发表了很多Linux基础知识, 上面的内容会随着我的提高而丰富的。 URL:http://4321go.blogchina.com
本站的Blog:http://forum.ubuntu.org.cn/weblog.php?w=38
meishiwanwan
帖子: 27
注册时间: 2005-11-03 13:04

#4

帖子 meishiwanwan »

个人觉得ubuntu的DNS方面好像是有些问题!经常会出现域名无法解释的问题!
ycxct
帖子: 11
注册时间: 2005-12-01 16:38

#5

帖子 ycxct »

:D 搞定了,谢谢大家,用了电信服务器的DNS地址就OK了,看来这个系统真有些名堂,路由器做dns地址在98,xp下面可是好好的哦
回复