路由器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
- 来自: 温州大学
- 联系:
-
- 帖子: 180
- 注册时间: 2005-09-13 21:18
好像以前也有一个这样问题~
我也是用路由器上的。怎么好好的呢? 你在其他操作系统下可以正常用吗?
我也是用路由器上的。怎么好好的呢? 你在其他操作系统下可以正常用吗?
我有一个Blog, 最近在上面发表了很多Linux基础知识, 上面的内容会随着我的提高而丰富的。 URL:http://4321go.blogchina.com
本站的Blog:http://forum.ubuntu.org.cn/weblog.php?w=38
本站的Blog:http://forum.ubuntu.org.cn/weblog.php?w=38