Мы в Telegram
Добавить новость

Фонд Оксаны Федоровой приглашает на квиз «Музыкальная Москва» на выставке-форуме «Россия»!

Молили Матронушку. Почему с Заворотнюк прощаются в Покровском монастыре

Ликсутов: Запустили специальный лендинг бренда «Московский транспорт. Детям»

Пашинян поблагодарил Путина за восстановление поврежденных ж/д участков



Новости сегодня

Новости от TheMoneytizer

What is Traceroute command?

Traceroute command explained Traceroute is a built-in command with a command-line interface that you can use through the Terminal application. It serves as a diagnostic tool most commonly used to trace a route from the computer, sending the traceroute request to a hostname or IP address. It will send the […]

The post What is Traceroute command? appeared first on Linux Master Desk.

Traceroute command explained

Traceroute is a built-in command with a command-line interface that you can use through the Terminal application. It serves as a diagnostic tool most commonly used to trace a route from the computer, sending the traceroute request to a hostname or IP address. It will send the query and get back a result, showing the query’s route and statistics about time and packets lost. 

You can find Traceroute on Linux (almost all distros), macOS, Windows (there it is called tracert), and even Android (though you will need extra installation). 

The software’s benefits are that it is free, easy to use, and serves well its purpose of tracing the route to a target.  

How does traceroute work?

When you are using the traceroute, your device will send packets of data starting from your IP address, going through various hops, and reaching its target – hostname or IP address. The software will use packets with a short TTL (time to live) value and listen for the ICMP replays. The probes continue until a message “port unreachable (ICMP) or rest (TCP), which will indicate host. 

As a result, you will see TTLs, addresses of the hops, and round time per probe, and extra data if you used some of the options.   

Traceroute syntax Linux

To get to the syntax on Linux, you will need to write the following in the Terminal: 

$traceroute –help

traceroute [options] host_Address [pathlength]

You will also see all the options for the traceroute command on Linux. They will help you perform better probes and get richer results. 

Traceroute Linux options

This is a complete list of Traceroute options on Linux. Use it on Debian, Ubuntu, CentOS, or whatever distro you have.

Option/flagDescription
-d –debugThis will allow socket level debugging in case that the kernel supports it.
-4Only use IPv4. Yhe default will give results for IPv4 and IPv6 both. 
-6Only use IPv6.
-TSpecify only TCP for the probes.
-ISpecify only ICMP ECHO for the probes.
-FForbid packet’s fragmentation. 
-f first_ttlSet, TTL value for starting (default is 1).
-g gatewaySay through which gateway you want the query to pass. 
-i interfaceDecide which interface to use for traceroute. 
-m max_ttlSet the maximum hop number (default is 30).
-N squeriesSet the number of queries send simultaneously (default is 16).
-nDon’t map the IP addresses to the hostnames.
-p portChoose the port for probing.
-t tosType of service and precedence value. 
-w waittimeThe waiting time for probes (default is 5 seconds).
-q nqueriesThe number of packets per hop (default is 3 seconds). 
-rSend directly to a host, bypassing the normal routing table. 
-s source_addrAlternative source address. 
-z sendwaitThe minimum interval, between sending of packets (default is 0). 
-eSee the ICMP extensions. 
-VSee the version and exit. 
-UUDP for the probes. 
-ULUDPLITE for the probes. 
-P protocolChoose the protocol for the probes. 

Traceroute syntax for macOS and Windows?

Here we are focused on Linux-only, but not to be bad with the rest of the readers, we will tell you how to use traceroute on macOS and Windows. 

  • macOS

Use the Terminal. Traceroute exists, and it is very similar. The syntax for macOS is:

traceroute [options] host [packetsize]

To see all the options, you can write:

Traceroute –help

  • Windows 10

On Windows, the Traceroute command has a slightly different name – tracert. The functionality is very similar. 

The tracert sytax is: 

 tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name

It shows all the available options like –R for roundtrip, -S srcaddr source address, -4 for IPv4, and -6 for IPv6.  

Conclusion

Traceroute is an easy to use, fast, and small command that you can easily use, no matter your Linux distro. Use it to monitor your servers or other network diagnostics.

The post What is Traceroute command? appeared first on Linux Master Desk.

Читайте на 123ru.net


Новости 24/7 DirectAdvert - доход для вашего сайта



Частные объявления в Вашем городе, в Вашем регионе и в России



Smi24.net — ежеминутные новости с ежедневным архивом. Только у нас — все главные новости дня без политической цензуры. "123 Новости" — абсолютно все точки зрения, трезвая аналитика, цивилизованные споры и обсуждения без взаимных обвинений и оскорблений. Помните, что не у всех точка зрения совпадает с Вашей. Уважайте мнение других, даже если Вы отстаиваете свой взгляд и свою позицию. Smi24.net — облегчённая версия старейшего обозревателя новостей 123ru.net. Мы не навязываем Вам своё видение, мы даём Вам срез событий дня без цензуры и без купюр. Новости, какие они есть —онлайн с поминутным архивом по всем городам и регионам России, Украины, Белоруссии и Абхазии. Smi24.net — живые новости в живом эфире! Быстрый поиск от Smi24.net — это не только возможность первым узнать, но и преимущество сообщить срочные новости мгновенно на любом языке мира и быть услышанным тут же. В любую минуту Вы можете добавить свою новость - здесь.




Новости от наших партнёров в Вашем городе

Ria.city

Гроб Заворотнюк вынесли из Покровского храма в Москве под аплодисменты

Ликсутов: Запустили специальный лендинг бренда «Московский транспорт. Детям»

Активные граждане смогут стать соавторами фестиваля «Лето в Москве»

Гран-при фестиваля «Российская студенческая весна» завоевала Саратовская область

Музыкальные новости

VK Fest 2024: Музыка и Развлечения на Открытых Площадках России

Путин назвал безобразием изъятие детей из-за неработающей печки под Красноярском

Распределяй и управляй: водители «Грузовичкоф Бизнес» – о преимуществах работы и трудовых буднях  

«СВЯТОЙ ЛЕНИН» легально изготавливает армии и спецслужбы. 6 серия. СЕРЬЁЗНЫЙ НОВОСТНОЙ СЕРИАЛ.

Новости России

«Один ребенок за маму, второй за папу, третий за страну»: новые меры поддержки многодетных анонсировали в Екатеринбурге

Психолог дала советы, чем занять ребёнка на каникулах

Заворотнюк похоронят рядом с Гафтом и Шатуновым на Троекуровском кладбище

Армия России продолжает наступление на купянско-сватовском участке фронта и в Часов Яре — аналитические ресурсы врага (КАРТА)

Экология в России и мире

Представители KAMA TYRES приняли участие в 57-й легкоатлетической эстафете

Раскрыт секрет, как и где отдохнуть в России летом за 11 тыс. рублей

Улыбка сделала слушателя «Юмор FM» миллионером

Стоматолог Владимир Лосев: сколько времени нужно носить брекеты

Спорт в России и мире

Арина Соболенко повторила уникальное достижение Азаренко на турнирах «Большого шлема»

Матч Котова и Вавринки перенесли на корт Сюзанн Ленглен

Надаль пропустит Уимблдон из-за желания сыграть на Олимпиаде

В России отреагировали на "скрытую баранку" и достижение Рыбакиной на Ролан Гаррос

Moscow.media

Выгодно ли покупать квартиру в новостройке?

Лето в урочище Кокоря

Лёд и пламень

Доступный, летний, твой – StarLine A60 BT GSM ECO











Топ новостей на этот час

Rss.plus






Анастасия Заворотнюк будет похоронена рядом с Юрием Шатуновым

1 июня в Москве ожидается переменная облачность, возможен дождь

В Москве открылся фестиваль театральных школ БРИКС

На церемонию прощания с Заворотнюк прибыли Песков, Тарасова, Авербух и Юшкевич