LinuxSir.cn,穿越时空的Linuxsir!

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

linux不能上网,但其上利用vmware虚拟的windows倒可以上

[复制链接]
发表于 2007-6-23 16:02:38 | 显示全部楼层 |阅读模式
debian sid,家中的电信网络,另一台linux以及windows都可以,但笔记本却出现这个问题:
在debian中无法连接到外面去,但在debian中利用vmware启动的windows却可以正常上网,将vmware的vmon等模块关闭等都不成,获取到的IP地址换了也不成。

请问是怎么回事?谢谢!

~-#ifconfig

  1. eth0      Link encap:Ethernet  HWaddr 00:16:41:AC:11:41  
  2.           inet addr:61.191.195.27  Bcast:61.255.255.255  Mask:255.0.0.0
  3.           inet6 addr: fe80::216:41ff:feac:1141/64 Scope:Link
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:14832 errors:0 dropped:0 overruns:0 frame:0
  6.           TX packets:16686 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:100
  8.           RX bytes:13322648 (12.7 MiB)  TX bytes:2432955 (2.3 MiB)
  9.           Base address:0x3000 Memory:ee000000-ee020000
复制代码

~-#ping 202.38.64.91

  1. connect: Network is unreachable
复制代码

~-#arp -a

  1. ? (61.191.192.1) at 00:E0:FC:04:B4:CB [ether] on eth0
复制代码

~-#route

  1. Kernel IP routing table
  2. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  3. 172.16.179.0    *               255.255.255.0   U     0      0        0 vmnet1
  4. 172.16.24.0     *               255.255.255.0   U     0      0        0 vmnet8
  5. 61.0.0.0        *               255.0.0.0       U     0      0        0 eth0
复制代码

~-#traceroute 202.38.64.1

  1. traceroute: Warning: findsaddr: netlink error: Network is unreachable
  2. traceroute: Warning: ip checksums disabled
  3. traceroute to 202.38.64.1 (202.38.64.1), 30 hops max, 40 byte packets
  4. traceroute: sendto: Network is unreachable
  5. 1 traceroute: wrote 202.38.64.1 40 chars, ret=-1
  6. *traceroute: sendto: Network is unreachable
  7. traceroute: wrote 202.38.64.1 40 chars, ret=-1
复制代码

~-#telnet 61.191.192.4

  1. Trying 61.191.192.4...
  2. Connected to 61.191.192.4.
  3. Escape character is '^]'.


  4. User Access Verification


  5. Password:
复制代码

~-#tcpdump

  1. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  2. listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
  3. 16:14:17.067677 IP 61.191.195.95.netbios-dgm > 61.191.195.255.netbios-dgm: NBT UDP PACKET(138)
  4. 16:14:23.734917 00:e0:fc:25:6c:d8 (oui Unknown) > Broadcast, ethertype Unknown (0x9001), length 64:
  5.         0x0000:  0601 0000 0000 0000 0000 0000 0000 0000  ................
  6.         0x0010:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  7.         0x0020:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  8.         0x0030:  0000                                     ..
  9. 16:14:34.645204 00:e0:fc:25:6c:d8 (oui Unknown) > Broadcast, ethertype Unknown (0x9001), length 64:
  10.         0x0000:  0601 0000 0000 0000 0000 0000 0000 0000  ................
  11.         0x0010:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  12.         0x0020:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  13.         0x0030:  0000                                     ..
  14. 16:14:41.836111 arp who-has 61.191.195.27 tell 61.191.192.1
  15. 16:14:41.836126 arp reply 61.191.195.27 is-at 00:16:41:ac:11:41 (oui Unknown)
  16. 16:14:45.656406 00:e0:fc:25:6c:d8 (oui Unknown) > Broadcast, ethertype Unknown (0x9001), length 64:
  17.         0x0000:  0601 0000 0000 0000 0000 0000 0000 0000  ................
  18.         0x0010:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  19.         0x0020:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  20.         0x0030:  0000                                     ..
  21. 16:14:53.593779 00:e0:fc:09:bc:f9 (oui Unknown) > 01:80:c2:00:00:0a (oui Unknown), ethertype Unknown (0x88a7), length 139:
  22.         0x0000:  0003 0000 01b4 5f8e 0001 000e 0000 0000  ......_.........
  23.         0x0010:  00e0 fc25 6cd8 0007 0012 5175 6964 7761  ...%l.....Quidwa
  24.         0x0020:  7920 5332 3430 3348 000e 000e 3234 3033  y.S2403H....2403
  25.         0x0030:  482d 3030 3138 0011 0017 5632 3030 5230  H-0018....V200R0
  26.         0x0040:  3035 4230 3344 3031 3853 5030 3100 1000  05B03D018SP01...
  27.         0x0050:  0731                                     .1
  28. 16:14:56.766510 00:e0:fc:25:6c:d8 (oui Unknown) > Broadcast, ethertype Unknown (0x9001), length 64:
  29.         0x0000:  0601 0000 0000 0000 0000 0000 0000 0000  ................
  30.         0x0010:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  31.         0x0020:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  32.         0x0030:  0000                                     ..
  33. 16:15:07.826703 00:e0:fc:25:6c:d8 (oui Unknown) > Broadcast, ethertype Unknown (0x9001), length 64:
  34.         0x0000:  0601 0000 0000 0000 0000 0000 0000 0000  ................
  35.         0x0010:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  36.         0x0020:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  37.         0x0030:  0000                                     ..
  38. 16:15:10.633714 IP 61.191.193.62.4363 > 61.191.195.27.microsoft-ds: S 121769467:121769467(0) win 58944 <mss 1452,nop,wscale 2,nop,nop,timestamp 0 0,nop,nop,sackOK>
  39. 16:15:10.633871 arp who-has 61.191.193.62 tell 61.191.195.27
  40. 16:15:10.649703 arp reply 61.191.193.62 is-at 00:e0:fc:04:b4:cb (oui Unknown)
  41. 16:15:10.649712 IP 61.191.195.27.microsoft-ds > 61.191.193.62.4363: R 0:0(0) ack 121769468 win 0
  42. 16:15:10.898512 arp who-has 61.191.195.27 tell 61.191.192.1
  43. 16:15:10.898533 arp reply 61.191.195.27 is-at 00:16:41:ac:11:41 (oui Unknown)
  44. 16:15:11.081383 IP 61.191.193.62.4363 > 61.191.195.27.microsoft-ds: S 121769467:121769467(0) win 58944 <mss 1452,nop,wscale 2,nop,nop,timestamp 0 0,nop,nop,sackOK>
  45. 16:15:11.081405 IP 61.191.195.27.microsoft-ds > 61.191.193.62.4363: R 0:0(0) ack 1 win 0
  46. 16:15:11.580045 IP 61.191.193.62.4363 > 61.191.195.27.microsoft-ds: S 121769467:121769467(0) win 58944 <mss 1452,nop,wscale 2,nop,nop,timestamp 0 0,nop,nop,sackOK>
  47. 16:15:11.580066 IP 61.191.195.27.microsoft-ds > 61.191.193.62.4363: R 0:0(0) ack 1 win 0
  48. 16:15:18.753943 00:e0:fc:25:6c:d8 (oui Unknown) > Broadcast, ethertype Unknown (0x9001), length 64:
  49.         0x0000:  0601 0000 0000 0000 0000 0000 0000 0000  ................
  50.         0x0010:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  51.         0x0020:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  52.         0x0030:  0000                                     ..


  53. 20 packets captured
  54. 20 packets received by filter
  55. 0 packets dropped by kernel
复制代码
 楼主| 发表于 2007-6-23 20:13:17 | 显示全部楼层
缺少gateway
route add default gw 61.191.192.1
后搞定
回复 支持 反对

使用道具 举报

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

本版积分规则

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