我的虚拟机下面debian的配置,用图形配置的,楼主参考下
1.网卡配置
QUOTE:debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.103
netmask 255.255.255.0
gateway 192.168.0.1
auto eth0
2.DNS配置
QUOTE:debian:~# cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 2513
#
### END INFO
nameserver 192.168.0.1
[ 本帖最后由 chenyx 于 2009-2-28 10:08 编辑 ]