Perm
Perm
Perm
Permanent Assignments
Introduction
This chapter describes the permanent assignment service provided by the
router, and how to set up and use permanent assignments on the router.
To set up a permanent assignment, the port numbers of the ports and the IP
addresses of the routers at each end of the link must be specified. Each
permanent assignment is also given a name. The name is used for management
convenience and for identification purposes when the permanent assignment’s
TCP connection is made at router boot or when the permanent assignment is
created or reset. A short dialogue takes place between the two routers involved
in the permanent assignment when the assignment is set up, to verify that the
correct ports are being connected. This dialogue uses the permanent
assignment name for verification. The name is case sensitive and must be
identical for both ends of the permanent assignment.
A given permanent assignment has a different view looking from each end of
the assignment. The terms local and remote are used to denote the ends of the
assignment from one point of view. Thus there is a local and remote port and a
local and remote router for each permanent assignment. Note that the local
router is the router that the command is being entered on.
Each end of the permanent assignment must be set up for the assignment to
work correctly. A common cause of problems for permanent assignments is
one end of the assignment being set up incorrectly.
The name of the permanent assignment, the local and remote ports and the IP
address of the remote router must all be specified in this command.
If the two ports of the permanent assignment are on different routers, the add
perm command must be entered on each router. If both ports are on the same
router, the command only needs to be entered once. The IP address specified
may be any one of the IP addresses configured on the router.
Port
Name Local Remote IP address
-----------------------------------------------
laser-print 01 04 172.16.8.37
-----------------------------------------------
This command removes the permanent assignment from the local router. If the
other port of the permanent assignment is on a remote router, the permanent
assignment should also be removed from the remote router.
This command breaks the current TCP connection being used for the
permanent assignment and attempts a new connection. The asynchronous port
being used for the permanent assignment is also reset.
Example This example illustrates the process of setting up a permanent assignment. The
assignment is to be established between asynchronous port 0 on a router with
IP address 172.26.4.1 and asynchronous port 0 on a router with IP address
172.20.34.9, and is to be named “main office”. Since the name of the permanent
assignment in this example contains embedded spaces, the whole name must
be enclosed in double quotes when entered in a command. The commands to
be executed on the router with address 172.26.4.1 are:
add perm=”main office” lport=0 rport=0 ip=172.20.34.9
show perm
which produces the output shown in Figure 63-2.
Figure 63-2: Example output from the show perm command for router 172.26.4.1
Port
Name Local Remote IP address
-----------------------------------------------
main office 00 00 172.20.34.9
-----------------------------------------------
Figure 63-3: Example output from the show perm command for router 172.20.34.9
Port
Name Local Remote IP address
-----------------------------------------------
main office 00 00 172.26.4.1
-----------------------------------------------
Command Reference
This section describes commands available on the router to configure and
manage permanent assignments. The permanent assignment service is only
available on AR725 and AR745 routers.
See “Conventions” on page lxiv of About this Software Reference in the front
of this manual for details of the conventions used to describe command syntax.
Note that the = sign is required in the command syntax. See Appendix A,
Messages for a complete list of messages and their meanings.
add perm
Description This command adds a permanent assignment on the local router. If the remote
end of the permanent assignment is on another router you must also configure
the permanent assignment on the remote router.
Parameter Description
PERM Name for the permanent assignment you want to add. You must
configure both ends of the permanent assignment with the same name,
but each permanent assignment on a given router must have a unique
name. The perm-name is case sensitive and consists of:
• a string 1 to 15 characters long
• any printable characters
If perm-name contains spaces it must be enclosed in double quotes.
Default: no default
Lport Asynchronous port for the local end of the permanent assignment. The
lport is the asynchronous port number. Ports are numbered sequentially
starting with 0.
Default: no default
Rport Asynchronous port for the remote end of the permanent assignment.
The rport is the asynchronous port number. Ports are numbered
sequentially starting with 0.
Default: no default
IP IP address of the remote router, in dotted decimal notation.
Default: no default
delete perm
Description This command removes a permanent assignment from the local router. If the
remote end of the permanent assignment is on another router you must also
delete the permanent assignment from the remote router.
The perm parameter specifies the name of the existing permanent assignment
you want to delete.
Examples To delete the permanent assignment called DataLogger, use the command:
del perm=DataLogger
reset perm
Description This command resets a permanent assignment. The TCP connection used by
the permanent assignment is closed and new TCP connection is established,
and the asynchronous port is reset.
The perm parameter specifies the name of the existing permanent assignment
you want to reset.
Examples To reset the permanent assignment called DataLogger, use the command:
reset perm=DataLogger
set perm
Parameter Description
PERM Name for the permanent assignment you want to modify. You must
configure both ends of the permanent assignment with the same name,
but each permanent assignment on a given router must have a unique
name. The perm-name is case sensitive and consists of:
• a string 1 to 15 characters long
• any printable characters
If perm-name contains spaces it must be enclosed in double quotes.
Default: no default
Lport Asynchronous port for the local end of the permanent assignment. The
lport is the asynchronous port number. Ports are numbered sequentially
starting with 0.
Default: no default
Rport Asynchronous port for the remote end of the permanent assignment.
The rport is the asynchronous port number. Ports are numbered
sequentially starting with 0.
Default: no default
IP IP address of the remote router, in dotted decimal notation.
Default: no default
Examples To change the local and remote asynchronous ports used by the permanent
assignment called DataLogger to asynchronous port 0, use the command:
set perm=DataLogger lport=0 rport=0
show perm
If you specify a value for the perm parameter, only information about the
specified permanent assignment is displayed.
If you do not specify a value for the perm parameter, information about all
permanent assignments is displayed.
Port
Name Local Remote IP address
-----------------------------------------------
laser-print 00 04 172.16.8.37
-----------------------------------------------
Parameter Meaning
Name Name of the permanent assignment.
Local Local port for the permanent assignment.
Remote Remote port for the permanent assignment.
IP address IP address of the remote router.
Examples To display all the permanent assignments configured on the local router, use
the command:
show perm