Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route Add

Status
Not open for further replies.

forgynonly

Technical User
Feb 26, 2003
9
TH
Hi,

Let's say one of my subnet IP is 10.10.10.0 and the netmask is 255.255.255.252
Gateway 10.10.100.2
NE IP : 10.10.10.1

Is there any different when I add this route by using there 2 command:

route add net 10.10.10.0 10.10.100.2 -netmask 255.255.255.252

route add -net 10.10.10.1 10.10.100.2 -netmask 255.255.255.252

Thanks,
Chin
 
they are the same.
command a:route add net 10.10.10.0 10.10.100.2 -netmask 255.255.255.252

command b:route add -net 10.10.10.1 10.10.100.2 -netmask 255.255.255.252

if you issue a then b,your os will complain the route already exists and refuse to add b.

if you issue b first,you will see the destination net 10.10.10.1 is converted to 10.10.10.0 cause 10.10.10.1 is calculated to is net addr. by the netmask 255.255.255.252

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top