# 0，选择

以下是从备份里恢复的一些内容。如果你寻找ping不同网关但是可以访问主机的问题，可以参考。另下附一些感悟：

> “最近遭遇一些奇怪让人不顺心的事，虽然左眼皮老是跳啊跳，但是该来的财到现在都还没有来。可能是由于这些影响了心态吧。
>
> 有些事你恼不得，怪不得，只能含蓄的忍得。
>
> 嗯，发泄已毕。来看具体问题。一直说带着情绪干活，会影响效率。这两天确实有这种感觉。事情的因由是这样的：
>
> 一台新服务器到手，虽然只有2G内存，连个raid都做不了，但确实是如假包换机架式IBM Server。但是出乎意料的是，安装之后，居然无法ping通网关。这个现象很奇怪。因为我是远程连接的这台服务器。具体内容如：
>
> Client IP: 10.x.x.a\
> Server IP: 10.x.x.b\
> gateway IP: 10.x.x.c
>
> 就是说a可以ssh连接到b，但是b ping不通c，但是可以ping通a。。。。
>
> google了一下也没有什么好办法。*最后发现问题出在路由的mac和ip绑定上*。arp问题？在路由上重新绑定后解决问题。
>
> 研究时查阅了以下文档，其中包括：
>
> 1. 这是讲虚拟机对比的，因为好多这种问题来源于用虚机的用户：[vmware和virtualbox的对比](http://forum.ubuntu.org.cn/viewtopic.php?t=62195\&sid=495a871d9c34d42e2fe97e546b2c4c97/) &#x20;
> 2. [关于VMWARE中，PING不通网关，但可以PING通物理机（桥接模式）](http://forum.ubuntu.org.cn/viewtopic.php?t=96292/) &#x20;
> 3. 用chrome显示乱糟糟的：[解决linux ping不通网关打不开外网的问题 - Linux学习网](http://www.5dlinux.com/article/9/2008/linux_26604.html/) &#x20;
> 4. [安装了Ubuntu后，连接经常被重置的解决办法](http://imvoo.com/archives/205.html/) &#x20;
> 5. 又重温了网络配置：[Ubuntu通过修改配置文件进行网络配置](http://my.chinaunix.net/space.php?uid=22188554\&do=blog\&id=159192/) &#x20;
> 6. [Linux ping的通网关, ping不通DNS？](http://www.3ppt.com/os/linux/15751.html/) &#x20;
> 7. [设置连接的MTU值 解决 Ubuntu 连接重启后被重置的问题](http://wangjc.blog.163.com/blog/static/36034684200962393237335//) &#x20;
> 8. 这个貌似可以解决问题，但是真的不行：[UBUNTU网络配置问题，无法解析域名，但网络服务可用](http://m.oschina.net/bbs/thread/20736/) &#x20;
> 9. [\[问题\]....惨！！！......PING不通网关，上不了网啊](http://forum.ubuntu.com.cn/viewtopic.php?f=116\&t=129720/) &#x20;
> 10. [ping 网关不通怎么办？ 网线是通的](http://wenwen.soso.com/z/q13822384.htm/)
>
> 好久没有研究网络问题了，得空得看看arp的内容了。
>
> 1. [互动百科-arp](http://www.hudong.com/wiki/arp/) &#x20;
> 2. [ARP网络攻击、欺骗、病毒完全解析-软件频道-IT技术-天极网](http://soft.yesky.com/lesson/39/7580039.shtml/) &#x20;
> 3. [Ping不通网关故障续——揭露ARP病毒的真面目](http://fjx1972.blog.hexun.com/9620721_d.html/) &#x20;
> 4. [ARP命令详解](http://diybbs.zol.com.cn/2/286_11627.html/) &#x20;
> 5. [linux arp 命令常用参数详解](http://www.cnblogs.com/wllyy189/archive/2008/06/05/1214455.html/) &#x20;
> 6. [How to ：使用ARP命令来绑定IP和MAC地址](http://www.isacn.org/info/info.php?infoid=264/) &#x20;
> 7. ”

有些链接已经无法访问了，毕竟借鉴了，仍按原文引用了。

最近的[一些感悟](https://github.com/oulan/lifebook/tree/119409a8cbdd4443f3c3c028a2758f9daef66b93/topics/ubuntu-ping-gateway/gan-shi/nai-you-gan-nai-you-xing/README.md)

左手，还是右手。\
前行，还是少歇。\
无一是，满足，痛彻。\
做一个，江湖漂泊。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.oulan.com/topics/ubuntu-ping-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
