ubuntu server 9.10
能ping通网关,但不能ping通外网。但将此机子的IP用在一个XP的机子上,却能顺利连接外网!
/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
auto eth0
iface eth0 inet static
address 192.168.30.253
netmask 255.255.255.0
network 192.168.30.0
broadcast 192.168.30.222
gateway 192.168.30.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.30.1
————————————————————————————————
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8169/8110 Family Gigabit Ethernet NIC
Physical Address. . . . . . . . . : 00-11-12-45-32-8A
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.30.78
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.30.222
DNS Servers . . . . . . . . . . . : 202.103.44.150
上面的参数 ,大家不用关心,最新的参数请见我在 cmcc772下整理的 配置提示信息! 谢谢大家的帮助