|
我下载了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
-----------------------------------------------------------------------------------------
- eth0 Link encap:Ethernet HWaddr 00:E7:00:34:03:AE
- inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
- inet6 addr: fe80::2e7:ff:fe34:3ae/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:10 errors:0 dropped:0 overruns:0 frame:0
- TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:790 (790.0 b) TX bytes:1344 (1.3 Kb)
- Interrupt:11 Base address:0xec00
- 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:30 errors:0 dropped:0 overruns:0 frame:0
- TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:2344 (2.2 Kb) TX bytes:2344 (2.2 Kb)
复制代码
-----------------------------------------------------------------------------------------
#netstat -nr
-----------------------------------------------------------------------------------------
- Kernel IP routing table
- Destination Gateway Genmask Flags MSS Window irtt Iface
- 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
复制代码
-----------------------------------------------------------------------------------------
#cat /etc/rc.conf
-----------------------------------------------------------------------------------------
- #
- # /etc/rc.conf - Main Configuration for Arch Linux
- #
- #
- # Localization
- #
- # LOCALE: available languages can be listed with the 'locale -a' command
- # HARDWARECLOCK: set to "UTC" or "localtime"
- # TIMEZONE: timezones are found in /usr/share/zoneinfo
- # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
- # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
- # CONSOLEMAP: found in /usr/share/kbd/unimaps
- # USECOLOR: use ANSI color sequences in startup messages
- #
- LOCALE=
- HARDWARECLOCK="localtime"
- TIMEZONE=Asia/Beijing
- KEYMAP=us
- CONSOLEFONT=
- CONSOLEMAP=
- USEcolor="yes"
- # Scan for LVM volume groups at startup, required if you use LVM
- USELVM="no"
- #
- # Networking
- #
- HOSTNAME="philix"
- #
- # Module to load at boot-up (in this order)
- # (prefix a module with a ! to disable it)
- #
- MODULES=(!usbserial !ide-scsi)
- #
- # Interfaces to start at boot-up (in this order)
- # Declare each interface then list in INTERFACES
- # - prefix an entry in INTERFACES with a ! to disable it
- #
- # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
- #
- lo="lo 127.0.0.1"
- eth0="eth0 192.168.0.9 netmask 255.255.255.0 broadcast 192.168.0.255"
- INTERFACES=(lo eth0)
- #
- # Routes to start at boot-up (in this order)
- # Declare each route then list in ROUTES
- # - prefix an entry in ROUTES with a ! to disable it
- #
- gateway="default gw 192.168.0.1"
- ROUTES=(gateway)
- #
- # Enable these network profiles at boot-up. These are only useful
- # if you happen to need multiple network configurations (ie, laptop users)
- # - set to 'menu' to present a menu during boot-up
- # - prefix an entry with a ! to disable it
- #
- # Network profiles are found in /etc/network-profiles
- #
- #NET_PROFILES=(main)
- #
- # Daemons to start at boot-up (in this order)
- # - prefix a daemon with a ! to disable it
- # - prefix a daemon with a @ to start it up in the background
- #
- DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
- # End of file
复制代码
----------------------------------------------------------------------------------------- |
|