Friday 18 October 2013

How to add a route of a destination ip when you have multiple network cards or gateway


route -p ADD <Destination> MASK 255.255.255.255 <Gateway> 

eg: route -p ADD 192.168.1.0 MASK 255.255.255.0 192.168.10.1
In this case the route looking for 192.168.1.0 network will pass through the gateway 192.168.10.1
route print - To display the entire contents of the IP routing table.
route delete 192.168.1.0 mask 255.255.255.0

No comments:

Post a Comment