How the Ubuntu system looks at your current routing table

Source: Internet
Author: User
Keywords Ubuntu routing table
Tags added address connected default dhcp dhcp server direct displays

The NETSTAT-NR command displays the contents of the routing table. A gateway-0.0.0.0 network is usually connected directly to a network device. Because the gateway is not required on its own direct-attached device, the 0.0.0.0 gateway address is normal. The destination address is 0.0.0.0 routing is your default gateway.

In this example, there are two gateways, the default and the 255.255.255.255 are usually added by the DHCP server. In this case, the Bigbogy server is also a DHCP service

Service.

[Root@bigboy tmp]# netstat-nrkernel IP routing tabledestination Gateway genmask Flags MSS Window Irtt Iface255.255.255.255 0.0.0.0 255.255.255.255 0 0 wlan0192.168.1.0 0.0.0.0 255.255.255.0 u 0 0 wlan0127.0.0.0 0.0.0.0 255.0.0.0 u 40 0 0 lo0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 Wlan0[root@bigboy tmp]# In this example, there are multiple gateways responsible for transferring data from different network devices to different destinations. [Root@bigboy tmp]# netstat-nrkernel IP routing table destination Gateway genmask Flags MSS Window Irtt Iface172.16.68.64 172.16.69.193 255.255.255.224 ug 0 0 eth1172.16.11.96 172.16.69.193 255.255.255.224 UG 0 0 eth1172.16.68.32 172.16.69.193 255.255.255.224 ug 0 0 eth1172.16.67.0 172.16.67.135 255.255.255.224 UG 0 0 eth0172.16.69.192 0.0.0.0 255.255.255.192 U 0 0 eth1172.16.67.128 0.0.0.0 255.255.255.128 u 0 0 eth0172.160.0 172.16.67.135 255.255.0.0 UG 40 0 0 eth0172.16.0.0 172.16.67.131 255.240.0.0 ug 0 0 eth0127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 lo0.0.0.0 172.16.69.193 0.0.0.0 UG 0 0 Eth1[root@bigboy tmp]#
Related Article

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.