LinuxSir.cn,穿越时空的Linuxsir!

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

我也出现了上不了网的问题

[复制链接]
发表于 2005-12-28 11:18:30 | 显示全部楼层 |阅读模式
我下载了0.7.1,重新安装了一次.

基本照着以前的设置做的,怎么就上不了网了啊?

eth0工作正常,本机ip为192.168.0.9,mask为255.255.255.0,

宿舍里192.168.0.1是主机,我可以ping通192.168.0.1,

用netstat -nr显示default gw 为192.168.0.1

但就是上不了internet,(在windows 2000 professional下可以正常上网.)
-----------------------------------------------------------------------------------------
#ifconfig
-----------------------------------------------------------------------------------------

  1. eth0      Link encap:Ethernet  HWaddr 00:E7:00:34:03:AE  
  2.           inet addr:192.168.0.9  Bcast:192.168.0.255  Mask:255.255.255.0
  3.           inet6 addr: fe80::2e7:ff:fe34:3ae/64 Scope:Link
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:10 errors:0 dropped:0 overruns:0 frame:0
  6.           TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:1000
  8.           RX bytes:790 (790.0 b)  TX bytes:1344 (1.3 Kb)
  9.           Interrupt:11 Base address:0xec00

  10. lo        Link encap:Local Loopback  
  11.           inet addr:127.0.0.1  Mask:255.0.0.0
  12.           inet6 addr: ::1/128 Scope:Host
  13.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  14.           RX packets:30 errors:0 dropped:0 overruns:0 frame:0
  15.           TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:0
  17.           RX bytes:2344 (2.2 Kb)  TX bytes:2344 (2.2 Kb)
复制代码

-----------------------------------------------------------------------------------------
#netstat -nr
-----------------------------------------------------------------------------------------

  1. Kernel IP routing table
  2. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  3. 192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
  4. 0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
复制代码

-----------------------------------------------------------------------------------------
#cat /etc/rc.conf
-----------------------------------------------------------------------------------------

  1. #
  2. # /etc/rc.conf - Main Configuration for Arch Linux
  3. #

  4. #
  5. # Localization
  6. #
  7. # LOCALE: available languages can be listed with the 'locale -a' command
  8. # HARDWARECLOCK: set to "UTC" or "localtime"
  9. # TIMEZONE: timezones are found in /usr/share/zoneinfo
  10. # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
  11. # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
  12. # CONSOLEMAP: found in /usr/share/kbd/unimaps
  13. # USECOLOR: use ANSI color sequences in startup messages
  14. #
  15. LOCALE=
  16. HARDWARECLOCK="localtime"
  17. TIMEZONE=Asia/Beijing
  18. KEYMAP=us
  19. CONSOLEFONT=
  20. CONSOLEMAP=
  21. USEcolor="yes"

  22. # Scan for LVM volume groups at startup, required if you use LVM
  23. USELVM="no"

  24. #
  25. # Networking
  26. #
  27. HOSTNAME="philix"

  28. #
  29. # Module to load at boot-up (in this order)
  30. #   (prefix a module with a ! to disable it)
  31. #
  32. MODULES=(!usbserial !ide-scsi)

  33. #
  34. # Interfaces to start at boot-up (in this order)
  35. # Declare each interface then list in INTERFACES
  36. #   - prefix an entry in INTERFACES with a ! to disable it
  37. #
  38. # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
  39. #
  40. lo="lo 127.0.0.1"
  41. eth0="eth0 192.168.0.9 netmask 255.255.255.0 broadcast 192.168.0.255"
  42. INTERFACES=(lo eth0)

  43. #
  44. # Routes to start at boot-up (in this order)
  45. # Declare each route then list in ROUTES
  46. #   - prefix an entry in ROUTES with a ! to disable it
  47. #
  48. gateway="default gw 192.168.0.1"
  49. ROUTES=(gateway)

  50. #
  51. # Enable these network profiles at boot-up.  These are only useful
  52. # if you happen to need multiple network configurations (ie, laptop users)
  53. #   - set to 'menu' to present a menu during boot-up
  54. #   - prefix an entry with a ! to disable it
  55. #
  56. # Network profiles are found in /etc/network-profiles
  57. #
  58. #NET_PROFILES=(main)

  59. #
  60. # Daemons to start at boot-up (in this order)
  61. #   - prefix a daemon with a ! to disable it
  62. #   - prefix a daemon with a @ to start it up in the background
  63. #
  64. DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)

  65. # End of file
复制代码

-----------------------------------------------------------------------------------------
发表于 2005-12-28 11:30:08 | 显示全部楼层
是不是DNS问题?
回复 支持 反对

使用道具 举报

发表于 2005-12-28 14:07:38 | 显示全部楼层
基本上可以肯定是DNS的问题。
上面的配置文件应该都没有问题,那问题一定就在DNS上,把你的/etc/resolv.conf贴出来看看~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-28 20:37:33 | 显示全部楼层
Post by lnan
基本上可以肯定是DNS的问题。
上面的配置文件应该都没有问题,那问题一定就在DNS上,把你的/etc/resolv.conf贴出来看看~~


果然!
thanks
回复 支持 反对

使用道具 举报

发表于 2005-12-29 06:40:53 | 显示全部楼层
Post by philix
果然!
thanks

-_-|||

你竟然也会出这样的错误……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-29 07:31:21 | 显示全部楼层
Post by diony
-_-|||

你竟然也会出这样的错误……


哎,这几天没日没夜的玩,睡眠严重不足,才不在状态
回复 支持 反对

使用道具 举报

发表于 2005-12-29 09:12:15 | 显示全部楼层
哈哈,要注意身体啊~~
回复 支持 反对

使用道具 举报

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

本版积分规则

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