关于路由器上网的配置问题,可以连接到路由器但不能上网
发表于 : 2005-12-02 4:06
路由器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
本机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