The routing information necessary for this is stored in the routing table.
You can set the entries in the routing table as:
There are three ways of defining the target address as the routing entry:
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: