![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Protocol translation software provides transparent translation between systems running different protocols. The software supports two-way virtual terminal protocol translation between nodes running X.25, LAT, and Telnet.
This chapter describes the commands supported in the protocol translation software.
In the context of this chapter, an access server set up to run protocol translation software is referred to as a protocol translator.
For protocol translation configuration information and examples, see the Access and Communication Servers Configuration Guide.
To view translation sessions that have been configured on an access server, use the show translate global configuration command:
show translateThis command has no arguments or keywords.
Privileged EXEC
The display from this command shows each translation session set up on the access server. It shows the incoming device and virtual terminal protocol as well as the outgoing device and protocol.
The show translate output in this sample display is based on the following translation command configured on the access server:
translate x25 3131415912345 ppp ip-pool scope-name cardinal keepalive 0
Router# show translate
Translate From: x25 3131415912345
To: PPP ip-pool scope-name cardinal keepalive 0
1/1 users active, 1 peak, 1 total, 0 failures
Table 21-1 describes fields shown in the display.
Field | Description |
---|---|
Translate From: x25 3131415912345 | Protocol (X.25) and address (3131415912345) of the incoming device. |
To: PPP | The virtual terminal protocol (PPP). |
ip-pool | Obtain an IP address from a DHCP proxy client or a local pool. |
scope-name cardinal | Specific local scope name (cardinal) from which to obtain an IP address. |
keepalive 0 | Indicates that keepalive updates have been disabled for the current translation session. |
1/1 users active | Number of users active over the total number of users. |
1 peak | Maximum number of translate sessions up at any given time. |
1 total | Total number of translation sessions. |
0 failures | Number of failed translation attempts resulting from this configuration. |
The show translate output in this sample display is based on the following translation command configured on the access server:
translate x25 31301234 PPP 192.168.14.23 ipx-client Loopback0
Router# show translate
Translate From: x25 31301234
To: PPP 192.168.14.23 ipx-client Loopback0
1/1 users active, 1 peak, 1 total, 0 failures
Table 21-2 describes fields shown in the display.
Field | Description |
---|---|
Translate From: x25 31301234 | Protocol (X.25) and address (31301234) of the incoming device. |
To: PPP 192.168.14.23 | The virtual terminal protocol (PPP) and IP address of the outgoing device. |
ipx-client loopback0 | Indicates that loopback interface 0 has been configured in client mode. |
1/1 users active | Number of users active over the total number of users. |
1 peak | Maximum number of translate sessions up at any given time. |
1 total | Total number of translation sessions. |
0 failures | Number of failed translation attempts resulting from this configuration. |
To automatically convert incoming LAT, TCP, or X.25 requests for connections to a specified destination address or host name to the specified outgoing connection type, use the translate global configuration command.
translate protocol incoming-address [in-options] protocol outgoing-address [out-options]No default translation parameters
Global configuration
Table 21-3 provides a visual aid for understanding how to use the translate command. As the table illustrates, you define the protocol translation connections--both incoming and outgoing--by choosing a protocol keyword and supplying the appropriate address or service name. The protocol connection information is followed by optional features for that connection, as appropriate. For example, the binary option is only appropriate with TCP/IP connections. The global options, in general, apply to all the connection types, but there are exceptions. The swap keyword, for example, is for X.25 to TCP translations only. See the examples for more explanations on how to enter this command.
Incoming Protocol | Options | Outgoing Protocol | Options | Global Options | |
---|---|---|---|---|---|
translate | protocol incoming-address | [in-options] | protocol outgoing-address | [out-options] | [global-options] |
lat service-name | unadvertised | lat service-name | node node-name | access-class number | |
port port-name | max-users number | ||||
local | |||||
login | |||||
x25 x.121-address | cud c-u-data | x25 x.121-address | cud c-u-data | quiet | |
profile profile | profile profile | swap | |||
accept-reverse | reverse | ||||
printer | |||||
pvc number | |||||
tcp ip-address | port number | tcp ip-address | port number | ||
binary | |||||
stream | |||||
printer | |||||
slip ip-address | ip-pool [scope-name name] | ||||
headercompressed [passive] | |||||
routing | |||||
keepalive number-of-seconds | |||||
mtu bytes | |||||
ppp ip-address | ip-pool | ||||
headercompressed [passive] | |||||
routing | |||||
keepalive number-of-seconds | |||||
mtu bytes | |||||
ppp authentication {pap | chap} | |||||
ppp use-tacacs | |||||
ipx loopback number | |||||
autocommand [arap | exec-string] |
|
The following example illustrates a simple X.25 to TCP translation command. Packets coming in X.25 address 652365123 arrive via PVC 1 and are translated to TCP packets and transmitted out IP address 172.16.1.1.
translate
x25 652365123
pvc 1
tcp 172.16.1.1
incoming
option outgoing
The following example illustrates incoming LAT to outgoing TCP translations. The unadvertised keyword prevents broadcast of service advertisements to other servers. Outgoing translated packets are transmitted out IP address rubble via TCP port 4005.
translate
lat pt-printer1
unadvertised
tcp rubble port 4005
incoming option outgoing option
The following example illustrates a more complex configuration that calls an X.29 profile and swaps the default PAD operation of the access server to that of an X.25 host.
x29 profile fullpackets 2:0 3:0 4:100 7:21
translate
x25 217536124
profile fullpackets
tcp rubble
port 4006
swap
incoming option outgoing option global
The following example illustrates the use of the TCP incoming protocol option printer for an incoming TCP connection.
translate
tcp 172.19.32.250printer
x25 5678
incoming
option outgoing
The following example illustrates the use of the X.25 incoming protocol option printer for an incoming X.25 connection.
translate
x25 55555printer
tcp 172.16.1.1
incoming
option outgoing
The following example translates LAT on an incoming line to SLIP on an outgoing line. It uses header compression only if incoming TCP packets on the same interface are compressed.
translate lat rudolph slip 10.0.0.4 header-compression incoming outgoing option
The following example translates x25 packets to PPP. It enables routing updates between the two connections.
translate x25 12345678 ppp 10.0.0.2 routing incoming outgoing option
The following example permits clients running IPX/PPP to connect through the access server's VTY lines to a server running PPP.
interface loopback0 no ip address ipx network 544 ipx sap-interval 2000 ! translate tcp 172.21.14.67 port 1234 ppp 10.0.0.2 ipx loopback0 ! incoming outgoing option
The following example permits clients running ARA to connect through the access server's VTY lines to an AppleTalk network.
appletalk routing translate x25 12345678 autocommand arap ! incoming outgoing arap enable arap dedicated arap timelimit 45 arap warningtime 5 arap noguest arap require-manual-password arap net-access-list 614
The following example first shows the command to disable keepalives on a PPP line, then shows sample output from the show translate command when keepalives have been turned off on the line.
translate lat ramble ppp 172.21.2.2 keepalive 0
.
.
.
Router# show translate
Translate From: LAT ramble
To: PPP 172.21.2.2 no-keepalive
0/0 users active, 0 peak, 0 total, 0 failures
The following example specifies IP pooling from a DHCP server named ludicrous. It then specifies that incoming TCP traffic be translated to SLIP. The DHCP server will dynamically assign IP addresses on the outgoing sessions.
ip address-pool dhcp-proxy-client ip dhcp-server ludicrous translate x25 5467835 ppp ip-pool scope-name ludicrous
The following example specifies a local IP pool named scandal with IP addresses ranging from 172.18.10.10 through 172.18.10.110. It then specifies that incoming X.25 traffic be translated to PPP. The local IP pool scandal will be used to dynamically assign IP addresses on the outgoing sessions.
ip-pool scandal 172.18.10.10 172.18.10.110 translate x25 1234567 ppp ip-pool scope-name scandal
show translate
x29 access-list
x29 profile
Use the x25 host global configuration command to define a static host name-to-address mapping. Use the no form of this command to remove the host name.
x25 host name x.121-address [cud call-user-data]name | Host name. |
x.121-address | X.121 address. |
cud call-user-data | (Optional) Specifies the Call User Data (CUD) field in the X.25 Call Request packet. |
No static address mapping is defined.
Global configuration
This command permits you to map an X.121 address to an easily recognizable name. You can later use this host name instead of the X.121 address when you issue the translate command for X.25.
The following example specifies a static address mapping:
x25 host Willard 4085551212
The following example removes a static address mapping:
no x25 host Willard
The following example specifies static address mapping from the X.121 address 12345678 to the host name masala. It then uses the name masala in the translate command in place of the X.121 address when translating from the X.25 host to the PPP host with address 1.0.0.2.
x25 host masala 12345678 translate x25 masala ppp 10.0.0.2 routing
translate
To limit access to the protocol translator from certain X.25 hosts, use the x29 access-list global configuration command. To delete an entire access list, use the no form of this command.
x29 access-list access-list-number {permit | deny} regular-expressionaccess-list-number | Number of the access list. It can be a value between 1 and 199. |
deny | Denies access and clears call requests immediately. |
permit | Permits access to the protocol translator. |
regular-expression | Usually the X.121 address, with or without regular expression pattern-matching characters, with which to compare for access. |
No default access list is defined.
Global configuration
An access list can contain any number of access list items. The list are processed in the order in which you entered them, with the first match causing the permit or deny condition. If an X.121 address does not match any of the regular expression in the access list, access will be denied.
Access lists take advantage of the message field defined by Recommendation X.29, which describes procedures for exchanging data between two PADs or a PAD and a DTE device.
The UNIX-style regular expression characters allow for pattern matching of characters and character strings in the address. Various pattern-matching constructions are available that will allow many addresses to be matched by a single regular expressions. Refer to the appendix "X.3 PAD Parameters" later in this publication for more information.
The following example permits connections to hosts with addresses beginning with the string 31370:
x29 access-list 2 permit ^31370
To create a PAD profile script for use by the translate command, use the x29 profile global configuration command.
x29 profile name parameter:value [parameter:value]name | Name of the PAD profile script. |
parameter:value | X.3 PAD parameter number and value separated by a colon. You can specify multiple parameter-value pairs. |
No default PAD profile script defined.
Global configuration
When an X.25 connection is established, the protocol translator acts as if an X.29 SET PARAMETER packet had been sent containing the parameters and values set by the x29 profile command and sets the protocol translator accordingly.
The following profile script turns local edit mode on when the connection is made and establishes local echo and line termination upon receipt of a Return. The name "linemode" is used with the translate global configuration command to effect use of this script.
x29 profile linemode 2:1 3:2 15:1
translate
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |