The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-14-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Check the man page for 'route' as the syntax varies between different versions of Unix. On Linux, for example, you would do something like:

route add -host <I>X.X.X.X</I> netmask <I>X.X.X.X</I> gw <I>X.X.X.X</I> dev <I>interface</I>


replace the X's as apparopriate with your target, netmask, and gateway values.