Commands for Linux configuration gateways

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.