LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2119|回复: 13

ping 得通IP但不能上网~!

[复制链接]
发表于 2006-3-18 13:20:05 | 显示全部楼层 |阅读模式
首先,声明一下,我是一个LINUX的初学者~!

#ifconfig
eth0      Link encap:Ethernet HWadder 00:E0:4C3:62:63
             inet addr:192.168.1.12     Bcast :192.168.1.255    Mask:255.255.255.0
             UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1
             RX packets:18  errors:0  dropped:0 overruns:0  frame:0
             TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:2171 (2.1 Kb)  TX bytes:4740 (4.6 Kb)
             Interrupt:11 Base address:0x2000

lo          Link encapocal Loopback
             inet addr:127.0.0.1  Mask:255.0.0.0
             UP LOOPBACK RUNNING MTU:16436  Metric:1
             RX packets:1600 errors:0 dropped:0 overruns:0 frame:0
             TX packets:1600 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:0
             RX bytes:164156 (160.3 Kb)  TX bytes:164156 (160.3 Kb)

#pon
--bash:pon:command not found

为什么会这样的呀~!有谁可以帮帮我解决这个问题呀??
发表于 2006-3-18 13:21:32 | 显示全部楼层
route -n
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-18 13:30:46 | 显示全部楼层

ping 得通IP但不能上网~!

首先,声明一下,我是一个LINUX的初学者~!

#ifconfig
eth0      Link encap:Ethernet HWadder 00:E0:4C3:62:63
             inet addr:192.168.1.12     Bcast :192.168.1.255    Mask:255.255.255.0
             UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1
             RX packets:18  errors:0  dropped:0 overruns:0  frame:0
             TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:2171 (2.1 Kb)  TX bytes:4740 (4.6 Kb)
             Interrupt:11 Base address:0x2000

lo          Link encapocal Loopback
             inet addr:127.0.0.1  Mask:255.0.0.0
             UP LOOPBACK RUNNING MTU:16436  Metric:1
             RX packets:1600 errors:0 dropped:0 overruns:0 frame:0
             TX packets:1600 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:0
             RX bytes:164156 (160.3 Kb)  TX bytes:164156 (160.3 Kb)

#pon
--bash:pon:command not found

为什么会这样的呀~!有谁可以帮帮我解决这个问题呀??
回复 支持 反对

使用道具 举报

发表于 2006-3-18 13:49:18 | 显示全部楼层
dns没设置
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-18 15:23:27 | 显示全部楼层
那在哪里,怎样设置DNS呀??
回复 支持 反对

使用道具 举报

发表于 2006-3-18 15:23:51 | 显示全部楼层
在/etc/resolv.conf中是否写好dns解析地址?
dehao@7dehao ~ $ cat /etc/resolv.conf
nameserver 202.96.209.6
nameserver 202.96.209.133
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-18 15:41:28 | 显示全部楼层
如果没有咧??
我装的是LINUX的企业版,
我之前装了个人版的,安装完就可以直接上网啦~!
但这个企业版就不可以~!
是不是网卡需要手动激活呀??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-18 16:39:47 | 显示全部楼层
Post by 终极幻想
route -n


#route -n
Kernel IP routing table
Destination     Gateway            Genmack           Flags  Metric Ref   Use Iface
192.168.1.0    0.0.0.0               255.255.255.0    U          0       0    0 eth0
169.254.0.0    0.0.0.0               255.255.0.0        U          0       0    0 eth0
127.0.0.0        0.0.0.0               255.0.0.0            U          0       0    0 lo
0.0.0.0            192.168.1.254   0.0.0.0               UG         0       0    0 eth0


#cat /etc/resolv.conf
nameserver 202.103.96.68
nameserver 202.103.96.112

这样说来,我应该是已经设置好DNS啦~!
但为什么还是不能上网呀??
回复 支持 反对

使用道具 举报

发表于 2006-3-19 01:46:40 | 显示全部楼层
你 ping www.sina.com.cn 是什么结果??
回复 支持 反对

使用道具 举报

发表于 2006-3-19 09:38:36 | 显示全部楼层
是集成网卡还是单独有一块网卡?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表