|
事情是这样地:
我的域网是通过Adsl猫(带路由)上的网,IP是10.0.0.138
我现在是在VM虚拟机里装的Arch。
我设置好网络后,局域网用虚拟机里的Arch能连Win,但是连不了外网,不知道是哪里设置错了,请高手指教。
这是/etc/resolv.conf的内容
- # /etc/resolv.conf
- #
- #search <yourdomain.tld>
- #nameserver <ip>
- nameserver 10.0.0.138
- # End of file
复制代码
把/etc/rc.conf内容发上来,高手帮我看看哪里错了。。谢谢
- #
- # /etc/rc.conf - Main Configuration for Arch Linux
- #
- #
- # Localization
- #
- # HARDWARECLOCK: set to "UTC" or "localtime"
- # TIMEZONE: timezones are found in /usr/share/zoneinfo
- # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
- # CONSOLEFONT: fount in /usr/share/kbd/consolefonts (only needed for non-us)
- # USECOLOR: use ANSI color sequences in startup messages
- #
- HARDWARECLOCK="localtime"
- TIMEZONE=Canada/Pacific
- KEYMAP=us
- CONSOLEFONT=
- USEcolor="yes"
- # Scan for LVM volume groups at startup, required if you use LVM
- USELVM="no"
- #
- # Networking
- #
- HOSTNAME="foaoo"
- #
- # 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
- # Interfaces to start at boot-up (in this order)
- # Declare each interface then list in INTERFACES
- # (prefix an interface 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 10.0.0.118 netmask 255.255.255.0 broadcast 10.0.0.138"
- INTERFACES=(lo eth0)
- #
- # Routes to start at boot-up (in this order)
- # Declare each route then list in ROUTES
- # (prefix a route in ROUTES with a ! to disable it)
- #
- gateway="10.0.0.138"
- ROUTES=(!gateway)
- #
- # Daemons to start at boot-up (in this order)
- # (prefix a daemon with a ! to disable it)
- #
- DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
- DAEMONS=(syslog-ng hotplug !pcmcia network netfs sshd)
- # End of file
- #
复制代码 |
|