网络配置不通,请大家帮忙

由 X10er 在 01-26-2004 12:50 发表:

网络配置不通,请大家帮忙

一台安装windows 的pc 2网卡, 另外一台准备安装linux

现在用windows pc 连接adsl,已经配置好可以上网,并已经准备好了internet 连接共享,连接内网的ip 为192.168.0.1 adsl 猫的ip 为 192.168.1.1

准备装linux的pc 已经配置好了网卡,执行ifconfig 已经可以看到eth0,ip 设置为192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255 host 192.168.0.1

现在我从linux 的pc 上ping 192.168.0.1 和192.168.1.1 都没有问题了,ping isp的网关也没有问题了,但是在ping www.sina.com.cn 的时候却不通。

是不是因为没有配置好dns 的?

该怎么配置??

帮帮忙。


由 X10er 在 01-26-2004 13:08 发表:


说简单点就是准备装linux的 pc ping ip可以ping 通,但是ping hostname 就不行,例如,ping www.sina.com.cn ping 不通,但是ping sina的 ip 就可以,该怎么办啊??


由 X10er 在 01-26-2004 13:53 发表:


没人肯帮忙?


由 Snoopy 在 01-26-2004 15:53 发表:


vi /etc/resolv.conf

nameserver 加上你的dns的地址


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 X10er 在 01-26-2004 17:42 发表:


Published At
Categories with 服务器类
Tagged with
comments powered by Disqus