Another case where we should use the routing table: There may be multiple routers on the same network. In that case, we have to search for the routing table for the router that forwards to the destination address. We do this when we determine the MAC address we want in the ARP logic
This commit is contained in:
parent
28915376e5
commit
95be6425a9
@ -242,6 +242,10 @@ o addroute <target> <netmask> <router>
|
||||
to an external network characterized by the <target> IP address and
|
||||
a network mask <netmask>
|
||||
|
||||
Example:
|
||||
|
||||
nsh> addroute 1.1.1.1 2.2.2.2 3.3.3.3
|
||||
|
||||
o base64dec [-w] [-f] <string or filepath>
|
||||
|
||||
o base64dec [-w] [-f] <string or filepath>
|
||||
@ -324,13 +328,17 @@ o dd if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] [skip=<sectors>]
|
||||
brw-rw-rw- 0 ram0
|
||||
nsh> dd if=/dev/ram0 of=/dev/null
|
||||
|
||||
o delroute <target> <netmask> <router>
|
||||
o delroute <target> <netmask>
|
||||
|
||||
This command removes an entry from the routing table. 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>
|
||||
|
||||
Example:
|
||||
|
||||
nsh> delroute 1.1.1.1 2.2.2.2
|
||||
|
||||
o df
|
||||
|
||||
Show the state of each mounted volume.
|
||||
|
Loading…
x
Reference in New Issue
Block a user