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)
With Network - (netstat|network statistics) command-line tool:
- at the you see a list of interface
- them several route tables by IP protocol (IPv4, IPv6)
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.
- 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.