Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to display your routing table in linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to display your routing table in linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Show your routing table [dneary@host] $ip route listdefault via 10.16.197.254 dev wlp4s0 proto static metric 60010.16.196.0 metric 23 dev wlp4s0 proto kernel scope link src 10.16.196.113 metric 601192.168.122.0 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown

The routing table is the way in which local hosts help network traffic determine where to go. It contains a set of road signs that send traffic to a specific interface and to a specific next location on its journey.

If you run any virtual machine or container, they will get their own IP address and subnet, which may complicate these routing tables, but there are usually two instructions in a single host. For local traffic, it is sent to the local Ethernet, and the network switch will find out (using a protocol called ARP) which host has the destination IP address and where to send the traffic. For traffic to the Internet, send it to the local gateway node, which will better understand how to reach the destination.

In the above case, the first line represents the external gateway of external traffic, the second line represents local traffic, and the third line represents the virtual bridge of the virtual machine running on the host, but the link is not currently active.

Thank you for reading! This is the end of the article on "how to display your routing table in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report