Update NSH documentation to show new usage for addroute and delroute.
This commit is contained in:
parent
f506a49295
commit
5a352cacc1
@ -8,7 +8,7 @@
|
||||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
|
||||
<p>Last Updated: July 2, 2017</p>
|
||||
<p>Last Updated: August 10, 2017</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1166,18 +1166,28 @@ test <expression>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
addroute <target> <netmask> <router>
|
||||
addroute <target> [<netmask>] <router>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
This command adds an entry in the routing table.
|
||||
The new entry will map the IP address of a router on a local network (<router>) to an external network characterized by the <target> IP address and a network mask <netmask>
|
||||
</p>
|
||||
<p>
|
||||
The netmask may also be expressed using IPv4 CIDR or IPv6 slash notation.
|
||||
In that case, the netmask need not be provided.
|
||||
</p>
|
||||
<p>
|
||||
<b>Example:</b>
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> addroute 1.1.1.1 2.2.2.2 3.3.3.3
|
||||
nsh> addroute addroute 11.0.0.0 255.255.255.0 10.0.0.2
|
||||
</pre></ul>
|
||||
<p>
|
||||
which is equivalent to
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> addroute 11.0.0.0/24 10.0.0.2
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
@ -1481,17 +1491,28 @@ nsh> dd if=/dev/ram0 of=/dev/null
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
delroute <target> <netmask>
|
||||
delroute <target> [<netmask>]
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
The entry removed will be the first entry in the routing table that matches
|
||||
the external network characterized by the <target> IP address and the network mask <netmask>
|
||||
</p>
|
||||
<p>
|
||||
The netmask may also be expressed using IPv4 CIDR or IPv6 slash
|
||||
notation. In that case, the netmask need not be provided.
|
||||
</p>
|
||||
<p>
|
||||
<b>Example:</b>
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> delroute 1.1.1.1 2.2.2.2
|
||||
nsh> delroute 11.0.0.0 255.255.255.0
|
||||
</pre></ul>
|
||||
<p>
|
||||
which is equivalent to
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> delroute 11.0.0.0/24
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
|
Loading…
Reference in New Issue
Block a user