![]() Netstat combined with the -r option will display the kernel routing tables. Nevertheless as it is still widely used, we have included it here. While this is a popular way of printing out routing information in Linux, netstat is actually deprecated and replaced instead with ip route – it even says so in the manual page. While this is the current recommended method of printing out the routing table in Linux, you will see that the output doesn’t look as nice as older options.Ĭheck out our IP command examples for further information on how you can use this to display networking information. If you’re in a hurry you can also shorten this to ‘ip r’ which will print the same output. The current recommended way of printing the routing table in Linux is with the ip command followed by route, as demonstrated ~]# ip routeĭefault via 192.168.1.254 dev eno16777736 proto static metric 100ġ92.168.1.0/24 dev eno16777736 proto kernel scope link src 192.168.1.14 metric 100ġ92.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 ![]() ![]() If you’re instead trying to create a new static route in Linux check out our guide here. ![]() Here are three different commands that you can use to print out the routing table in Linux. The routing table is used to show you where various different network subnets will be routed to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |