[网络管理] 【新手求助】Linux能ping通自己,Ping不通网关

weixin_38060040 2017-02-22 01:55:23

新手小白,刚在vmware中安装linux后,能ping通自己,Ping不通网关,请各位大侠帮忙!

[root@dxrac01 Desktop]# service iptables status
iptables: Firewall is not running.
[root@dxrac01 Desktop]# service network status
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
[root@dxrac01 Desktop]# less /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO="static"
IPADDR=10.67.123.121
PREFIX=24
GATEWAY=10.67.123.125
NETMASK=255.255.255.0
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
DNS1=10.67.12.130
HWADDR=00:0C:29:04:4C:8A


[root@dxrac01 Desktop]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:04:4C:8A  
          inet addr:10.67.123.121  Bcast:10.67.123.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth1      Link encap:Ethernet  HWaddr 00:0C:29:04:4C:94  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7802 (7.6 KiB)  TX bytes:7802 (7.6 KiB)

[root@dxrac01 Desktop]# ping 10.67.123.121
PING 10.67.123.121 (10.67.123.121) 56(84) bytes of data.
64 bytes from 10.67.123.121: icmp_seq=1 ttl=64 time=0.086 ms
64 bytes from 10.67.123.121: icmp_seq=2 ttl=64 time=0.024 ms
64 bytes from 10.67.123.121: icmp_seq=3 ttl=64 time=0.028 ms
^C
--- 10.67.123.121 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2101ms
rtt min/avg/max/mdev = 0.024/0.046/0.086/0.028 ms
[root@dxrac01 Desktop]# ping 10.67.123.125
PING 10.67.123.125 (10.67.123.125) 56(84) bytes of data.
From 10.67.123.121 icmp_seq=2 Destination Host Unreachable
From 10.67.123.121 icmp_seq=3 Destination Host Unreachable
From 10.67.123.121 icmp_seq=4 Destination Host Unreachable
From 10.67.123.121 icmp_seq=6 Destination Host Unreachable
From 10.67.123.121 icmp_seq=7 Destination Host Unreachable
From 10.67.123.121 icmp_seq=8 Destination Host Unreachable
^C
--- 10.67.123.125 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7679ms
pipe 3





...全文
58 7 打赏 收藏 举报
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
发帖
其他技术讨论专区

272

社区成员

其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
帖子事件
创建了帖子
2017-02-22 01:55
社区公告
暂无公告