Last update at :2024-02-07,Edit by888u
When we open a website, we usually exchange data, not just read it. Usually we only query the outbound routes of some foreign VPS, but if the return route is poor, it will have a greater impact on the speed of browsing the Internet. So today I will tell you how to check the return route of Linux.
In fact, querying the return route is very simple. You need to query the route to the mainland China IP on the VPS. Generally, we only need to have an IP to check the outbound route. You can query it on routing websites such as IPIP. But if you want to query For return routing, you need to purchase a VPS, and you can check the routing status by using commands on the VPS.
Query using TraceRoute
TraceRoute is actually the basic routing software that comes with the Linux system, and the installation is very simple.
Centos system installation TraceRoute command
yum update && yum install traceroute -yDebian/Ubuntu system installation TraceRoute command
apt-get update && apt-get install traceroute -yThe query routing command is traceroute IP address, but usually the query will be a little confusing. You can add parameters in the subsequent command, for example: traceroute -q 1 IP address. This is a parameter that is only tested once. The effect is as follows:
traceroute to 61.129.42.6 (61.129.42.6), 30 hops max, 60 byte packets 1 23-94-74-2-host.colocrossing.com (23.94.74.2) 0.054 ms 2 216-244-87-17.reverse.wowrack.com (216.244.87.17) 0.587 ms 3 ae1-0.br2.igw.sea.wowrack.net (216.244.88.159) 0.542 ms 4 be5493.nr12.b003148-2.sea03.atlas.cogentco.com (38.122.91.185) 1.388 ms 5 sjo-b21-link.telia.net (62.115.118.169) 20.915 ms 6 be3321.ccr22.sea02.atlas.cogentco.com (154.54.42.205) 2.176 ms 7 202.97.62.9 (202.97.62.9) 25.223 ms 8 be3669.ccr41.sjc03.atlas.cogentco.com (154.54.43.10) 21.318 ms 9 38.104.139.54 (38.104.139.54) 39.537 ms 10 202.97.50.57 (202.97.50.57) 58.062 ms 11 202.101.63.201 (202.101.63.201) 214.280 ms 12 202.97.33.153 (202.97.33.153) 193.320 ms 13 202.97.23.121 (202.97.23.121) 214.569 ms 14 202.101.63.201 (202.101.63.201) 231.203 ms 15 101.95.89.38 (101.95.89.38) 205.259 ms 16 101.95.117.198 (101.95.117.198) 211.259 msThrough this table, we can see the routing situation from foreign VPS to mainland China, but how do we know where these nodes are located? It is very troublesome to check one by one, so we need to use the following method.
Use BestTrace to query routes
BestTrace is a Linux query routing software officially launched by ipip. This software is based on TraceRoute and does not require compilation and installation. It is just a program compiled in Go language. The installation is as follows:
First install TraceRoute according to your system, there are corresponding commands above, and then install BestTrace:
mkdir besttrace && cd besttrace wget -N --no-check-certificate https://cdn.ipip.net/17mon/besttrace4linux.zip unzip besttrace4linux.zip && chmod +x *The query command is: ./besttrace -q 1 IP address The effect is as follows:
traceroute to 61.129.42.6 (61.129.42.6), 30 hops max, 60 byte packets 1 23-94-74-2-host.colocrossing.com (23.94.74.2) 0.34 ms AS36352 Seattle, Washington, United States colocrossing.com 2 216-176-187-225.reverse.wowrack.com (216.176.187.225) 0.70 ms AS23033 Seattle, WA, United States wowrack.com 3 ae2-0.br3.igw.sea.wowrack.net (216.244.88.162) 2.11 ms AS23033 Seattle, Washington, United States wowrack.com 4 sea-b2-link.telia.net (62.115.161.2) 2.01 ms AS1299 Seattle, Washington, United States telia.com 5 sjo-b21-link.telia.net (62.115.118.169) 23.78 ms AS1299 San Jose, California, United States telia.com 6 218.30.54.181 22.64 ms AS4134 San Jose, California, United States ctamericas.com 7 202.97.62.9 26.98 ms AS4134 United States San Jose, California Telecommunications 8 202.97.6.1 181.09 ms AS4134 China Shanghai Telecom 9 202.97.34.45 170.94 ms AS4134 China Shanghai Telecom 10 202.97.57.26 211.74 ms AS4134 China Shanghai Telecom 11 202.101.63.201 213.30 ms AS4812 China Shanghai Telecom 12 101.95.89.62 221.27 ms AS4812 China Shanghai Telecom 13 61.152.81.146 238.15 ms AS4812 China Shanghai Telecom 14 101.95.117.198 203.57 ms AS4812 China Shanghai Telecom 15 ns.fudan.sh.cn (61.129.42.6) 199.65 ms AS4812 China Shanghai TelecomIs it more intuitive and convenient?
Recommended site searches: registered domain names, corporate virtual hosts, how to check IP, Hong Kong servers, IP online query, Korean server recommendations, server rental prices, IP query, independent IP virtual host, US free hosting,
发表评论