Network is unreachable Gateway Ping solution

Source: Internet
Author: User

There are several machines in there that do not ping the gateway, but the other machines in the ping switch can ping, and other machines ping the gateway can ping. Then the hardware is discharged, and the main problem is on the routing table of the machine.

Look at the routing table.

Route-n
Destination     Gateway         genmask         Flags Metric Ref use    iface
12.12.12.0      0.0.0.0         255.255.255.0   u     0      0        0 eth1
10.10.108.0     0.0.0.0         255.255.255.0   u     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth1     192.168.0.0 0.0.0.0         255.255.0.0     U     0      0        0 eth1

Found that there is no gateway I want, so I will add a

Route add default GW 10.10.88.203 eth0

Default is generally 0.0.0.0 to represent any address

But found the following error

Siocaddrt:no such process
This is because I want to add the 10.10.88.203 and my host 10.10.108.23 not the same network segment, need to add a

Route add 10.10.88.203 Dev eth0
And then execute the above command.

Route-n can see the results, the bottom of the list is what we want. And the machine will be able to ping the gateway perfectly.

Destination     Gateway         genmask         Flags Metric Ref use    iface
12.12.12.0      0.0.0.0         255.255.255.0   u     0      0        0 eth1
10.10.108.0     0.0.0.0         255.255.255.0   u     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth1
0.0.0.0         10.10.88.203    0.0.0.0         UG    0      0        0 eth0

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.