Network - Routing Table

Map Of Internet 1973

About

The routing information necessary for this is stored in the routing table.

You can set the entries in the routing table as:

  • being static (manually)
  • or dynamic (using the routing daemon process).

There are three ways of defining the target address as the routing entry:

  • Complete IP address of the target host (host route)
  • Only the network portion of the IP address (network route)
  • Default route (only one entry)

Management

Display

With Network - (netstat|network statistics) command-line tool:

netstat -r

output example:

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.135.1  192.168.135.148     55
        10.0.75.0    255.255.255.0         On-link         10.0.75.1    271
        10.0.75.1  255.255.255.255         On-link         10.0.75.1    271
      10.0.75.255  255.255.255.255         On-link         10.0.75.1    271
...........
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
  4    271 fe80::/64                On-link
  9   5256 fe80::/64                On-link
  6    311 fe80::/64                On-link
 19    271 fe80::/64                On-link
 29    281 fe80::/64                On-link
 29    281 fe80::3930:2a78:af12:6857/128   On-link

where In windows / linux, you may see this field:

  • Destination - Destination (Mask) specifies the host that is the destination endpoint of the route. Note that the IPv6 routing table shows the prefix for a 6to4 tunnel endpoint (fe80::/64) as the route destination endpoint.
  • Gateway specifies the gateway to use for forwarding packets.
  • Flags indicates the current status of the route.
    • The U flag indicates that the route is up.
    • The G flag indicates that the route is to a gateway.
  • Use: Shows the number of packets sent.
  • Interface - Indicates the particular interface on the local host that is the source endpoint of the transmission.





Discover More
Network Simple Route
Network - Route

If you want to use TCP/IP to send a data packet, the network layer (in the OSI layer model or the IP layer) must determine if and how the target IP address can be accessed. The routing information...



Share this page:
Follow us:
Task Runner