Version
Chapter 6
Routing Table Configuration Utility: txroute
6.1 Running txroute
6.1 Running txroute
Name
txroute
Purpose
Configures the routing table for a TX3210 board.
Usage
txroute
[
command
[
destination
] [MASK
netmask
] [
gateway
]
[-i
Interface
]] [-c
boardnumber
]
Valid
options
include:
Option
Use this option to specify...
command
One of the following commands:
PRINT
- Prints the routing table.
ADD
- Adds a route.
DELETE
- Deletes a route.
RESET
- Resets the IP information in non-volatile RAM.
destination
The IP address for this route entry.
MASK
That the next parameter is
netmask
value.
netmask
The subnet mask value for this route entry. The default is
255.255.255.255
.
gateway
A gateway address for this route.
interface
The interface value (1/2) for the specified route.
boardnumber
The number of the board. The default is
1
.
Description
You can add or delete routes from the routing table and print current routing table contents using
txroute
.
You must load task
txroute
.
lot
(found in
tektx\soft\cp
) on the TX3210 to run this utility. You can load the task using the
cplot
utility from the command prompt, as follows:
cplot -f txroute
.
lot -n txroute -p 6 -a
You can program
txroute
into your application using the Loader API. Refer to the example code in the following directory:
tektx\samples\fus3demo\tx32xx.c
Example 1
The following example sets the board's IP address to
198.62.139.12
, and specifies that all packets using the destination IP address of the same subnet are sent from Ethernet adapter 1:
txroute add 198.62.139.12 mask 255.255.255.0 -i 1
Example 2
The following example specifies that all packets with the same subnet ID are sent to gateway
198.62.139.1
:
txroute add 198.62.139.12 mask 255.255.255.0 198.62.139.1
Example 3
Since the TX3210 board can be reset without resetting the host CPU, the TX3210 board saves the IP configuration from DHCP snooping into non-volatile RAM. This allows the TX3210 board to recover the IP configuration after a reset. If the NDIS driver is removed from the system, this IP configuration remains in non-volatile RAM. Use the following command to remove this IP configuration from non-volatile RAM:
txroute RESET
Version
Want to send us feedback on our documentation? Email:
Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.