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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a static route

Status
Not open for further replies.

chomca

Technical User
Jun 26, 2007
15
IN
Hi,

this is the command to add Adding a static route .but i don know the meaning for " -net " in this command will you able to explain.i tryed in google but i did in get answer. thanks in advance.

#route add -net 192.168.98.42 netmask 255.255.255.255 gw 192.168.99.1
 
Consult the man pages!

man route

Code:
-net Indicates that the Destination parameter should be interpreted as a
network.

regards,
Khalid
 
It's a strange usage. As Khalid says the command is adding a network but the netmask of 255.255.255.255 means that it's a network with only one address.

If you're adding a route to a device, as opposed to a network, then the command is slightly different - man route gives the following example
man route said:
1. To establish a route so that a computer on one network can send a message
to a computer on a different network, enter:

route add 192.100.201.7 192.100.13.7

The 192.100.201.7 address is that of the receiving computer (the
Destination parameter). The 192.100.13.7 address is that of the routing
computer (the Gateway parameter).

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top