- 论坛徽章:
- 0
|
本帖最后由 chenyx 于 2012-02-05 16:05 编辑
虚拟机ping通主机但ping不通网关,host已经把防火墙关闭。
情况如下
虚拟机ifconfig
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:C2:51:48
inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2001:da8:4000:24:20c:29ff:fec2:5148/64 Scope:Global
inet6 addr: fe80::20c:29ff:fec2:5148/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:754 errors:0 dropped:0 overruns:0 frame:0
TX packets:858 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:138572 (135.3 KiB) TX bytes:56862 (55.5 KiB)
Interrupt:67 Base address:0x2024
配置文件
/etc/resolv.conf
nameserver 202.96.209.5
nameserver 202.96.209.13
search localdomain
/etc/sysconfig/netword/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1
|
|