静态ip 郁闷 各位帮帮忙

上网、浏览、聊天、下载等
回复
kissfire
帖子: 33
注册时间: 2006-03-22 8:35

静态ip 郁闷 各位帮帮忙

#1

帖子 kissfire » 2006-04-19 9:26

我的机器是通过路有联结上网的 c段网络
在windows下安以下配置可以上网的
ip:192.168.1.101 mask:255.255.255.0 网关:192.168.1.1
在ubuntu下用dhcp可以上网 但是通过系统--联网--eth0 的属性设置静态ip 安以上属性怎么老是不成功呢?总是提示找不到网站!!
在dhcp下可以正常上网时 运行ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0B:2F:04:B0:E7
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20b:2fff:fe04:b0e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8009 errors:0 dropped:0 overruns:0 frame:0
TX packets:2940 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2516797 (2.4 MiB) TX bytes:577919 (564.3 KiB)
Interrupt:23 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:33399 errors:0 dropped:0 overruns:0 frame:0
TX packets:33399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3082234 (2.9 MiB) TX bytes:3082234 (2.9 MiB)
是不是ip6搞的鬼? 谢谢大家了
laxi
帖子: 50
注册时间: 2005-10-26 15:43

#2

帖子 laxi » 2006-04-19 10:54

cat /etc/resolv.conf
route
这两个什么结果?
kissfire
帖子: 33
注册时间: 2006-03-22 8:35

#3

帖子 kissfire » 2006-04-19 18:45

route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


search domain
nameserver 210.44.176.1
nameserver 202.102.152.3
是这样的 gateway居然是* 我晕晕~
lqw0205
帖子: 118
注册时间: 2005-10-21 11:36

#4

帖子 lqw0205 » 2006-04-23 0:43

想问下你,你的路由器什么型号?
我用的是笔记本,在家时,上网方式和你一样。连IP配置都一样。。。
我的是TP-LINK TL-402M,不知道你的是不是这个。

我上网也有和你类似的问题,就是在WIN下很稳定,在Ubuntu下,有时不稳定,常常ping的通网站,却访问不了网站,不知道设置哪里不对?

代码: 全选

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20a:e4ff:fef4:af4d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28819 (28.1 KiB)  TX bytes:31897 (31.1 KiB)
          Interrupt:20 Base address:0x3000


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
Life would be much easier if I had the source code.
回复