DELETENETROUTE is used to remove message routing paths for the network.
The QUIET option, if specified, will suppress error or progress reports. Also, if the program
encounters an error it will flag this as failure code 5 which can be looked at using the 'if warn' shell script command.
If this option is not in effect, failure codes will be more severe and all sorts of progress information will be displayed.
The DST or DESTINATION <destination> option, if specified,
supplies the destination address of a route (or in other words, where the route to be deleted leads to). This must be an IP
address or a symbolic name. Some routes may require you to specify a gateway address through which the route has to pass.
Depending upon the address you specify, the protocol stack will attempt to figure out whether the destination is supposed
to be a host or a network.
The DEFAULT or DEFAULTGATEWAY <default gateway> option, if
specified, selects the default gateway address (which must be specified as an IP address or a symbolic host name) all
messages are sent to which don't have any particular other routes associated with them. Another, perhaps less misleading
name for 'default gateway address' is 'default route'.
3.OS4:> DELETENETROUTE DST=192.168.0.1
deletes the routing for the network to the specified IP address.
3.OS4:> DELETENETROUTE DEFAULTGATEWAY=192.168.0.1 QUIET
deletes the default gateway to the specified IP address, with all error messages suppressed.
Return to Commands Selection