Background
Today, an outgoing mail server encountered a failure, resulting in all outgoing mail can not be sent, and then thought to use the intranet mail server directly out, but one of the servers can not ping out of the network, such as: Ping smpt.163.com different.
After troubleshooting, the gateway is not configured
By command: Route add default gateway xx.xx.xx.xx, after adding the gateway, ping smpt.163.com again:
Bytes from m12-12.163.com (220.181.12.12): icmp_seq=1 ttl=57 time=1.89 ms
Bytes from m12-12.163.com (220.181.12.12): icmp_seq=2 ttl=57 time=1.62 ms
Bytes from m12-12.163.com (220.181.12.12): icmp_seq=3 ttl=57 time=2.04 ms
Bytes from m12-12.163.com (220.181.12.12): icmp_seq=4 ttl=57 time=1.73 ms
Bytes from m12-12.163.com (220.181.12.12): icmp_seq=5 ttl=57 time=1.70 ms
You can successfully ping the pass.
Commands for Linux configuration gateways