cc/td/doc/product/software/ios11
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring Protocol Translation Sessions

Configuring Protocol Translation Sessions

This chapter describes how to configure protocol translation sessions. It assumes you understand how to use the Cisco IOS software. It provides procedures for specifying system-wide facilities, as well as application examples. Before continuing with this chapter, be sure that you are familiar with the information provided in the Local Area Transport (LAT), TN3270, Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP), AppleTalk Remote Access (ARA), and XRemote configuration chapters in this publication. For information about X.25 and Transmission Control Protocol/Internet Protocol (TCP/IP, which includes TCP, SLIP and PPP, and Telnet), refer to the Router Products Configuration Guide and the Router Products Command Reference publications.

For a complete description of the commands in this chapter, see the "Protocol Translation Session Commands" chapter later in this publication. For information about making connections and establishing translation sessions, see the Cisco Access Connection Guide.


Note Telnet is a remote terminal protocol that is part of the TCP/IP suite. The descriptions and examples in the following sections use the term TCP as a reference to Telnet functionality.

Cisco's Implementation of Protocol Translation

The protocol translation software attempts to provide transparent protocol translation between systems running disparate protocols. It enables terminal users on one network to access hosts on another network, despite differences in the native protocol stacks associated with the originating device and the target host.

A router supports virtual terminal connections in both directions between the protocols in the following list. You can configure the router to translate automatically between them. This is called the one-step translation method.

You can also use the one-step protocol translation facility to tunnel SLIP and PPP inside of X.25, LAT, or TCP/Telnet (on outgoing connections only).

The software supports limited connections in both directions between the following protocols. Connecting between these protocols requires that you first connect to a router running protocol translation, then to the host to which you want to connect. This is called the two-step translation method.

The following sections describe the process of tunneling SLIP and PPP using protocol translation, as well as the two-step and the one-step translation methods. See the end of this chapter for protocol translation application and session examples.

Understand Tunneling of SLIP, PPP, and ARA

Unlike other protocols, such as LAT, X.25, and TCP, which are actually translated when you use one-step protocol translation, SLIP, PPP, and ARA are not translated to the destination protocol. Instead, they are tunneled inside an LAT, X.25, or TCP tunnel specific to the device on the remote network. Nonetheless, you use the protocol translation facility to tunnel SLIP, PPP, or ARA to a destination running a different virtual terminal protocol (such as X.25).

You can also run IPX-PPP over X.25, TCP, or LAT when tunneling PPP on virtual terminal (VTY) lines.

One-Step Tunneling of SLIP, PPP, and ARA

To use one-step protocol translation to tunnel SLIP, PPP (or IPX-PPP), or ARA, you do not need to enter any preliminary commands. Simply use the translate command with the slip or ppp keywords for one-step SLIP or PPP connections or autocommand arap for one-step connections. Because ARA does not use addressing, you need to specify the autocommand keyword, then specify the string arap to tunnel ARA to an AppleTalk network.

Refer to the section "Understand One-Step Protocol Translation" in this chapter for more information about one-step protocol translation.

Two-Step Tunneling of SLIP and PPP

To tunnel SLIP or PPP over X.25 to an IP network using the two-step protocol translation method, use the vty-async command, which enables you to run SLIP and PPP on VTY lines. Normally, SLIP and PPP function only on physical asynchronous interfaces. The vty-async command enables you to run SLIP and PPP on VTY lines, which permits you to tunnel from an incoming protocol to SLIP or PPP (or IPX-PPP).

To issue SLIP or PPP EXEC commands on VTY lines, refer to the section "Enable SLIP and PPP on Virtual Asynchronous Interfaces" in the chapter "Configuring SLIP and PPP."

Two-Step Tunneling of ARA

To tunnel ARA using the two-step method, you configure ARA on one or more VTY lines, then configure automatic protocol startup. When a user connects to the VTY line and receives an EXEC prompt, ARA starts up automatically on the outgoing VTY line.

For more information about enabling two-step tunneling of ARA on VTY lines, refer to the section "Connect to an AppleTalk Network from a Client Running a Different Virtual Terminal Protocol" in the chapter "Configuring a Router as an AppleTalk Remote Access Server."

Understand Two-Step Protocol Translation

In general, you use the two-step process when you want to use protocol translation for one-time connections or when you want to use a router running protocol translation as a general-purpose gateway between two types of networks (for example, X.25 PDN and TCP/IP). You must first configure the router for the transmission protocols that you will be using.


Note You must use the two-step method for translations of TN3270 and XRemote.

With the two-step connection process, you can modify the parameters of either network connection, even while a session is in process. This process is similar to connecting a group of terminal lines from a PAD to a group of terminal lines from a TCP server. The difference is that you do not encounter the wiring complexity, unreliability, management problems, and performance bottlenecks that occur when two devices are connected via asynchronous serial lines.

Also, the two-step process allows another level of security over the one-step translation method when TACACS and password protection are enabled. These security features are described in the "Managing the System" chapter in this publication.

Understand One-Step Protocol Translation

In general, you use the one-step method when network users repeatedly log on to the same remote network hosts through a router. This connection is more efficient and enables the router to have more knowledge of the protocols in use because the router acts as a network connection rather than as a terminal.

The one-step method provides transparent protocol conversion. When connecting to the remote network host, the user enters the connection command to the remote network host, but does not need to specify protocol translation. The network administrator has already created a configuration that defines a connection and the protocols to be translated. The user performs one step to connect with the host.

When you make a one-step connection to the router, the router determines which host the connection is for and which protocol that host is using. It then establishes a new network connection using the protocol required by that host.

A disadvantage of the one-step method is that the initiating computer or user does not know that two networking protocols are being used. This means that parameters of the foreign network protocols cannot be changed after connections are established. The exception to this limitation is any set of parameters common to both networking protocols. Any parameter common to both can be changed from the first host to the final destination.

To configure the one-step method of protocol translation, set up the following protocols and connection options in the configuration file:

You can specify additional features for the connection that allows, for example, incoming call addresses to match access-list conditions or that limit the number of users that can make the connection.

Configure Protocol Translation

Specifically, this section describes how to perform the following tasks:

Configure Two-Step Protocol Translation

To translate using the two-step method, perform the following tasks beginning in global configuration mode. The first step is required only if you are tunneling SLIP or PPP using the two-step protocol translation facility:

Task Command
Step 1 Establish an incoming connection to the router running protocol translation. {connect | lat | pad | telnet | tunnel}1
Step 2 Establish the outgoing connection from the router running protocol translation to another network host. {connect | lat | pad | telnet | tunnel}1

1 Each of these commands is described in the Cisco Access Connection Guide.

Protocol translation software supports the two-step method in both directions for protocols other than SLIP and PPP (for example, from Telnet to PAD, and vice versa). SLIP and PPP are only supported on outgoing connections.

Configure One-Step Protocol Translation

To create one-step protocol translation connection specifications, perform the following task in global configuration mode:

Task Command
Create the connection specifications for one-step protocol translation. translate protocol incoming-address [in-options] protocol
outgoing-address [out-options] [global-options]

Configure Tunneling of SLIP, PPP, or ARA

This section describes how to perform the following tasks:

You can also enable IPX over tunneled PPP sessions.

Configure Two-Step Tunneling of SLIP or PPP

To tunnel SLIP or PPP using the two-step protocol translation facility, perform the following tasks, beginning in global configuration mode:

Task Command
Step 1 Enable tunneling of SLIP and PPP using two-step protocol translation. vty-async
Step 2 Exit from global configuration mode into EXEC mode. exit
Step 3 Establish an incoming connection to the router running protocol translation. {connect | lat | pad | telnet | tunnel}
Step 4 Establish the outgoing connection from the router running protocol translation to another network host. {connect | slip | ppp | tunnel}

If you want to configure IPX over your PPP sessions on VTY lines, refer to the section "Enable IPX over PPP on Virtual Asynchronous Interfaces" in the chapter "Configuring SLIP or PPP."

To configure one-step tunneling of ARA on VTY lines, refer to the section "Connect to an AppleTalk Network from a Client Running a Different Virtual Terminal Protocol" in the chapter "Configuring a Router as an AppleTalk Remote Access Server."

Configure One-Step Tunneling of SLIP or PPP

To tunnel SLIP or PPP using the one-step protocol translation facility, perform the following task in global configuration mode:

Task Command
Create the connection specifications for one-step protocol translation. translate protocol incoming-address [in-options] protocol
outgoing-address [out-options] [global-options]

You can configure an outgoing session for IPX-PPP. To do so, issue the ipx loopback number option for the outgoing session. For information about this option, refer to the chapter "Protocol Translation Configuration Commands" later in this publication.

To tunnel SLIP or PPP inside X.25, LAT, or Telnet using the one-step method, you do not need to enter any additional commands, as you do when you tunnel SLIP or PPP using the two-step method. The translate command enables asynchronous protocol features on one virtual terminal line at a time.

SLIP and PPP, including IPX-PPP, can be translated on outgoing connections only.

Enable Dynamic Address Assignment for Outgoing SLIP and PPP on VTY Lines

You can specify IP addresses dynamically from a Dynamic Host Configuration Protocol (DHCP) proxy client or a local IP address pool on outgoing SLIP and PPP sessions on VTY lines.

Assign IP Addresses Using DHCP

The DHCP client-proxy feature manages a pool of IP addresses available to PPP or SLIP dial-in clients without a known IP address. This allows a finite number of IP addresses to be reused quickly and efficiently by many clients. Additional benefits include the ability to maintain sessions, such as Telnet, even when a modem line fails. When the client is auto-dialed back into the server, the session can be resumed because the same IP address is reissued to the client by the server.

A DHCP proxy client is a Cisco router configured to arbitrate DHCP calls between a DHCP server and a DHCP client. For more information about DHCP proxy clients, refer to the section "Configure DHCP" in the "Configuring Interfaces" chapter.

Task Command
Step 1 Specify that the router use the DHCP client-proxy. ip address-pool dhcp-proxy-client
Step 2 Specify DHCP pooling for the SLIP or PPP client on the outgoing session. translate protocol incoming-address [in-options] {slip | ppp} ip-pool name

The name argument is the name of the DHCP proxy client specified with the ip address-pool dhcp-proxy-client command.

Assign IP Addresses Using Local IP Address Pooling

You can make temporary IP addresses available for outgoing SLIP and PPP clients on outgoing sessions. To do so, you must first have specified that the router use a local IP address pool on all asynchronous interfaces and create one or more local IP address pools. You then assign local pooling as part of the translate command. To assign IP addresses dynamically on a virtual asynchronous connection, perform the following task, beginning in global configuration mode:

Task Command
Step 1 Specify that the router use a local IP address pool on all asynchronous interfaces. ip address-pool local
Step 2 Create one or more local IP address pools. ip local-pool name begin-ip-address-range [end-ip-address-range]
Step 3 Specify local pooling for the SLIP or PPP client on the outgoing session. translate protocol incoming-address [in-options] slip | ppp ip-pool [scope-name name]

The scope-name option takes the name of any local IP address pool that has been defined using the ip local-pool command.

Configure One-Step Tunneling of ARA

To tunnel ARA using the one-step protocol translation facility, perform the following tasks, beginning in global configuration mode. The first four steps are required. The next seven steps (5 through 11) are optional:

Task Command
Step 1 Turn on AppleTalk routing. appletalk routing
Step 2 Use the protocol translation facility to enable an ARA tunnel across a remote network. translate protocol incoming-address [in-options] protocol
outgoing-address [out-options] [global-options]
Step 3 Enter line configuration mode. line vty line-number [ending-line-number]
Step 4 Enable ARA on one or more lines. arap enable
Step 5 Set one or more dedicated ARA lines. arap dedicated
Step 6 Set the session time limit. arap timelimit [minutes]
Step 7 Set the disconnect warning time. arap warningtime [minutes]
Step 8 Disallow guests. arap noguest
Step 9 Require manual password entry. arap require-manual-password
Step 10 Limit the zones the Macintosh user sees. arap zonelist zone-access-list-number
Step 11 Control access to networks. arap net-access-list net-access-list number

Define X.25 Host Names

To define symbolic host names, perform the following task in global configuration mode:

Task Command
Define a symbolic host name. x25 host name x.121-address [cud call-user-data]

Change the Number of Supported Translation Sessions

The number of protocol translation sessions supported by the IOS Release 10.3 software depends on the router model. On a Cisco 4000 or Cisco 4500, the maximum number of protocol translation sessions is 180 whether or not routing is enabled. On a Cisco 2500 or Cisco 3000, the maximum number of protocol translation sessions is 100 sessions, or 32 sessions if routing is enabled.

The number of protocol translation sessions is tied to the number of virtual terminal lines set up on the router running protocol translation software. That is, if such a router has ten virtual terminal lines, you can have up to ten protocol translation sessions. The default number of virtual terminal lines is five (lines 0 through 4). To increase the number of lines, and thus the maximum number of protocol translation sessions, perform the following task in line configuration mode:

Task Command
Increase the number of virtual terminal lines, and thus, the maximum number of protocol translation sessions. line vty number1
Decrease the number of virtual terminal lines, and thus, the maximum number of protocol translation sessions. no line vty number

1 This command is documented in the "Terminal Lines and Modem Support Commands" chapter in the Router Products Command Reference publication.

Note Increasing the number of protocol translation sessions while routing or bridging is enabled can impact available memory. The amount of memory available depends on the platform type, the amount of DRAM available, the activity of each session, and the speed of the link. If you increase to the maximum number of sessions and have problems with memory, you might need to decrease the number of protocol translation sessions.

Create X.29 Access Lists

The protocol translation software provides access lists, which make it possible to limit access to a router running protocol translation software from certain X.25 hosts. Access lists take advantage of the message field defined by Recommendation X.29, which describes procedures for exchanging data between two PADs or between a PAD and a DTE device.

To define X.29 access lists, perform the following tasks:

Step 1 Create an access list.

Step 2 Apply an access list to a virtual line or include it in a translate command.

These tasks are described in the following sections.

When configuring protocol translation, you can specify an access-list number with each translate command. In the case of translation sessions that result from incoming PAD connections, the corresponding X.29 access list is used.

Create an Access List

To specify the access conditions, perform the following global configuration task:

Task Command
Restrict incoming and outgoing connections between a particular virtual terminal line (into a Cisco device) and the addresses in an access list. x29 access-list access-list-number {permit | deny} regular-expression

An access list can contain any number of lines. The lists are processed in the order in which you type the entries. The first match causes the permit or deny condition. If an X.121 address does not match any of the entries in the access list, access will be denied.

Apply an Access List to a Virtual Line

To apply an access list to a virtual line, perform the following tasks in line configuration mode:

Task Command
Restrict incoming and outgoing connections between a particular virtual terminal line (into a Cisco device) and the addresses in an access list. access-class number in1

1 This command is documented in the "LAT Configuration Commands" chapter.

The access-list number is used both for incoming TCP access and for incoming PAD access. For TCP access, the router running protocol translation software uses the defined IP access lists. For incoming PAD connections, the same X.29 access list is used. If you want to have access restrictions on only one of the protocols, you can create an access list that permits all addresses for the other protocol.


Note For an example of including an access list in a translate command, see the section "X.29 Access List Example" at the end of this chapter.

Create an X.29 Profile Script

You can create an X.29 profile script for use by the translate command. When an X.25 connection is established, the router running protocol translation software then acts as if an X.29 SET PARAMETER packet had been sent that contained the parameters and values set by this command.

To create an X.29 profile script, perform the following global configuration task:

Task Command
Create an X.29 profile script. x29 profile name parameter:value [parameter:value]

Define X.25 Host Names

To define symbolic host names, perform the following task in global configuration mode:

Task Command
Define a symbolic host name. x25 host name x.121-address [cud call-user-data]

Protocol Translation Session Configuration Examples

The following sections present examples of configuring protocol translation sessions. The environment used in these examples is illustrated in Figure 7-1.

In these examples, a LAT device can be either a LAT terminal server or LAT host, and a TCP device can be either a TCP terminal server or TCP host.


Note In the application illustrations that follow throughout this chapter, source and destination device icons used to illustrate the flow of translated information are shown with black type in outlined shapes. Other elements in the environment are shown with reverse type on solid black shapes (as shown for all elements in Figure 7-1).

Basic Configuration Example

The following examples illustrate the basic global configuration commands and interface configuration commands for setting up Router-A (connected to Network A) and Router-B (connected to Network B), as illustrated in Figure 7-1. Refer to the chapter "Configuring LAT," earlier in this publication, for more information about LAT. For information on configuring X.25, refer to the Router Products Configuration Guide.


Figure 7-1: Summary Diagram Showing Routers with Protocol Translation Software




Note The examples that follow focus on creating configurations that support one-step protocol translation. These connections can also be made using the two-step protocol translation method.
Configuration for Device Router-A

The following partial configuration for device Router-A outlines a baseline configuration for the device's Ethernet and serial interfaces and configures support for IP, LAT, and X.25:

interface ethernet 0
 ip address 10.0.0.2 255.255.0.0
 !
 ! Enable LAT on interface
 lat enabled
 !
interface serial 0
 encapsulation X.25
 x25 address 11111
 !
 ! The following parameters may depend on your network
 x25 facility packetsize 512 512
 x25 facility windowsize 7 7
 !
 ! IP address and MAP command needed only if routing IP
 ip address 10.3.0.1 255.255.0.0
 x25 map ip 10.4.0.2 22222 broadcast
 !
! Set up IP routing
router igrp 100
 network 10.0.0.0
 network 10.3.0.0
 !
 ! Advertise as available for connections via LAT
 ! Use this name (Router-A) if connecting via 2-step method
 ! (for connecting directly to a specific router)
 lat service Router-A enable
 !
 ! Set up some IP host names/addresses
 ip host Router-A 10.0.0.2 3.0.0.1
 ip host TCP-A 10.0.0.1
 ip host TCP-B 10.2.0.1
 ip host Router-B 10.3.0.2 2.0.0.2
Configuration for Device Router-B

The following partial configuration for device Router-B outlines a baseline configuration for the device's Ethernet and serial interfaces and configures support for IP, LAT, and X.25:

interface ethernet 0
 ip address 10.2.0.2 255.255.0.0
 !
 ! enable LAT on interface
 lat enabled
 !
interface serial 0
 encapsulation X.25
 x25 address 22222
 ! The following parameters may depend on your network
 x25 facility packetsize 512 512
 x25 facility windowsize 7 7
 !
 ! IP address and MAP command needed only if routing IP
 ip address 10.3.0.2 255.255.0.0
 x25 map ip 10.3.0.2 11111 broadcast
 !
 ! Set up IP routing
router igrp 100
 network 10.2.0.0
 network 10.3.0.0
 !
 ! advertise as available for connections via LAT
 ! Use this name (Router-B) if connecting via 2-step method
 ! (for connecting directly to a specific Router)
 lat service Router-B enable
 !
 ! Set up some IP host names/addresses
 ip host Router-A 10.3.0.1 10.0.0.2
 ip host TCP-A 10.0.0.1
 ip host TCP-B 10.2.0.1
 ip host Router-B 10.2.0.2 10.3.0.2

Note You can specify IP host names used to identify specific hosts by explicitly using the ip host global configuration command or by using Domain Name System (DNS) facilities.

Increasing the Number of Translation Sessions Example

The following example sets the number of protocol translation sessions to 120, whether routing is turned on or off:

line vty 119 

Decreasing the Number of Translation Sessions Example

The following example sets the number of protocol translation sessions to 10, whether routing is turned on or off:

no line vty 10 

Local LAT-to-TCP Example

A router running protocol translation software can translate between LAT and Telnet traffic to allow communication among resources in these protocol environments. In Figure 7-2, the LAT device on Network A (LAT-A) is shown connecting to a device running Telnet (TCP-A).

This is only a partial example. The commands in this example are only part of the complete configuration file for an individual device.


Figure 7-2: Local LAT-to-TCP Translation



The following example configures device Router-A to translate from LAT to TCP:

! Translate LAT connections to TCP for connectivity to TCP-A
translate lat TCP-A tcp TCP-A
! Optional additional commands
lat service TCP-A ident Protocol Translation to TCP-A

In the last command, the text string "Protocol Translation to TCP-A" is an identification string for the LAT service named TCP-A. This string is sent to other servers on the local network.

Tunneling SLIP or PPP inside X.25 Example

A router running protocol translation software can translate between X.25 and PPP traffic to allow communication among resources in these protocol environments. In Figure 7-3, the PC establishes a SLIP or PPP session with the router through an X.25 network using CHAP authentication. The router then establishes a connection to IP host and passes traffic from the PC running SLIP or PPP to IP host.


Figure 7-3: Tunneling SLIP or PPP inside X.25



The following configuration tunnels PPP inside X.25 packets from the PPP client to the virtual asynchronous interface with IP address 1.0.0.4. Routing and CHAP authentication are enabled for the PPP session. With the router connected to IP host, the PC running SLIP or PPP can now communicate with the IP host.

translate x25 31370054065 ppp 10.0.0.4 routing authentication chap

This is only a partial example. The commands in this example would be only part of the complete configuration file for an individual device.

Tunneling SLIP inside TCP Example

A router running protocol translation software can translate between TCP and SLIP traffic to allow communication among resources in these protocol environments. In Figure 7-3, the PC running SLIP is connecting to a TCP/IP network and making a connection with the device IP host. This example enables routing and turns on header compression.


Figure 7-4: Tunneling SLIP in TCP Example



The following configuration tunnels SLIP inside of TCP packets from the SLIP client with IP address 2.0.0.5 to the router. The router then establishes a protocol translation session to IP host. Routing and header compression are enabled for the SLIP session.

translate tcp 10.0.0.1 slip 10.2.0.5 routing header-compression passive

The device IP host on a different network attached to the router can be accessed by the SLIP client because routing has been enabled on the interface in the router where the SLIP session is established.

This is only a partial example. The commands in this example would be only part of the complete configuration file for an individual device.

Assign Addresses Dynamically for PPP Example

The following example shows how to configure the Cisco IOS software to assign an IP address dynamically to a PPP client using the one-step protocol translation facility.

! enable DHCP proxy-client status on the access server
ip address-pool dhcp-proxy-client
! specify rockjaw as the DHCP server on the network.
ip dhcp-server rockjaw
translate x25 5467835 ppp ip-pool rockjaw keepalive 0

Local IP Address Pool Example

The following example shows how to select the IP pooling mechanism and how to create a pool of local IP addresses that are used when a client dials in on an asynchronous line. The address poos is named group1 and is comprised of interfaces 0 through 5.

! tell the server to use a local pool
ip address-pool local
! define the ip address pool
ip local-pool group1 0-5
translate x25 5467835 ppp ip-pool scope-name group1

LAT-to-X.25 Host Example

Protocol translation permits LAT devices to communicate with X.25 hosts through an X.25 PDN. In the application illustrated in Figure 7-5, LAT-A is a LAT device that is communicating with X25-C, an X.25 host. The LAT traffic from LAT-A is translated to X.25.


Figure 7-5: LAT-to-X.25 Host Translation



The following example illustrates how to use the translate global configuration command to translate from LAT to X.25. It is applied to Router-A. This example sets up reverse charging for connections, which causes the router running protocol translation software to instruct the PDN to charge the destination for the connection. It is essentially a collect call. The reversal of charges must be pre-arranged with the PDN and destination location (on an administrative basis), or the call will not be accepted.

! Translate LAT to X.25 host, with reverse charging
translate lat X25-C x25 33333 reverse
!
! Specify optional X.25 hostname
x25 host X25-C 33333

X.25 PAD-to-LAT Example

Protocol translation permits terminals connected to X.25 PADs to communicate with LAT devices on a remote LAN (Figure 7-6). X.25 PAD terminals make a call using an X.121 address, which is translated to a LAT node. To the PAD terminal user, the connection appears to be a direct connection to a host on the X.25 PDN. The router also supports X.29 access lists, which allow you to restrict LAN resources (LAT or TCP) available to the PAD user.


Figure 7-6: X.25 PAD-to-LAT Translation



The following example illustrates how to use the translate global configuration command to translate from an X.25 PAD to a LAT device on Network A. It is applied to Router-A. The configuration example includes an access list that limits remote LAT access through Router-A to connections from PAD-C.

! Define X25 access list to only allow pad-c
x29 access-list 1 permit ^44444
x29 access-list 1 deny .*
!
! Set up translation
translate x25 1111101 lat LAT-A access-class 1

This configuration example typifies the use of access lists in the IOS software. The first two lines define the scope of access-list 1. The first line specifies that access list 1 will permit all calls from X.121 address 44444. The caret symbol (^) specifies that the first number 4 is the beginning of the address number. Refer to the appendix "Regular Expressions" later in this publication for details concerning the use of special characters in defining X.121 addresses. The second line of the definition explicitly denies calls from any other number.

This access list is then applied to all incoming traffic on the serial port for Router-A (X.121 address 1111101) with the third configuration line in the example. However, it applies only to the translate command at the end of this example. This translate command specifies that incoming X.25 packets on the serial line (with address 1111101) are translated to LAT and sent to LAT-A if they pass the restrictions of the access list.

If you define multiple X.25 translate commands, each must contain a unique X.121 address. It is also important that the ITU-T protocol used in transferring packets match among X.121 addresses. This is specified in the protocol identification field of call-user data. This field specifies whether a packet is routed, translated, or handled as a virtual terminal connection.


Note The X.121 address 1111101 used in this example can be a subaddress of the address 11111 originally assigned to this serial port on Router-A at the beginning of the configuration example section. However, that is not a requirement. The number to use in the translate command is negotiated (administratively) between your network management personnel and the PDN service provider. The X.121 address in the translate command represents the X.121 address of the calling device. That number might or might not be the number (or a subaddress of the number) administratively assigned to the router running protocol translation software. It is up to you and the PDN to agree on a number to be used, because it is possible that the PDN can be configured to place calls on a given line that are intended for a destination that does not match the number assigned by you in the configuration file. Refer to the 1984 CCITT Red Book specifications for more information concerning X.121 addresses.

X.25 PAD-to-TCP Example

Making a translated connection from an X.25 PAD to a TCP device (Figure 7-7) is analogous to the preceding X.25 PAD-to-LAT example. Instead of translating to LAT, the Router-A configuration includes a statement to translate to TCP (Telnet). Note that a router running protocol translation software can include statements supporting both translations (X.25 PAD-to-LAT and X.25 PAD-to-TCP). Different users on the same PAD can talk to X.25, LAT, or TCP devices.


Figure 7-7: X.25 PAD-to-TCP Translation



The following example illustrates how to use the translate global configuration command to translate from an X.25 PAD to a TCP device on Network A. It is applied to Router-A.

! Set up translation
translate x25 2222 tcp TCP-A

LAT-to-LAT via X.25 Translation Example

The protocol translation software provides transparent connectivity between LAT devices on different networks via an X.25 PDN. In Figure 7-8, which illustrates this application, the LAT device on Network A (LAT-A) first makes a virtual connection to Router-A on Network A using the LAT protocol. Router-A then translates the LAT packets into X.25 packets and sends them through the X.25 network to Router-B on Network B. Router-B translates the X.25 packets back to LAT packets and establishes a virtual connection to the LAT device on Network B (LAT-B). These handoffs are handled transparently when the protocol translation software is configured for a one-step translation.


Figure 7-8: LAT-to-LAT via an X.25 PDN



The following two examples illustrate how to use the translate global configuration command to translate from LAT to X.25 and from X.25 back to LAT to allow connection service to a LAT device on Network B from a LAT device on Network A. This requires two separate configurations, one for each LAT device.

! Translate LAT to X.25 on Router-A, which is on Network A
translate lat DISTANT-LAT x25 2222201
! Translate X.25 to LAT on Router-B, which is on Network B
translate x25 2222201 lat LAT-B

In the first translate command, DISTANT-LAT defines a LAT service name for Router-A. When a user on device LAT-A attempts to connect to TCP-B, the target specified in the connect command is DISTANT-LAT. (The connect command is described in the Cisco Access Connection Guide.)

In the translate command for Router-B, the name of the LAT service on the target host (LAT-B) is LAT-B. Router-B translates the incoming X.25 packets from 2222201 to LAT and then transparently relays these packets to LAT-B.

The following is an example of a connection request. In this configuration example, when the user enters this command, a connection attempt from LAT-A on Network A to TCP-B on Network B is attempted.

local> connect DISTANT-LAT

To configure Router-B to send information back from LAT-B to LAT-A, use commands symmetrical to the prior configuration (this path is not shown in Figure 7-8):

! Translate LAT to X.25 on Router-B, which is on Network B
translate lat FAR-LAT x25 1111103
! Translate X.25 to LAT on Router-A, which is on Network A
translate x25 1111103 lat LAT-A

Note You can use the same name (for example, "LAT-B") in the translate command for both Router-A and Router-B because each router running protocol translation software operates independently. However, this symmetry is not required. The key is the common X.121 address used in both translate commands. If you prefer to have unique service names, set the names in each router to be the same.

LAT-to-TCP via X.25 Example

You can use protocol translation software to provide transparent connectivity between LAT and TCP devices on different networks via an X.25 PDN. In the application illustrated in Figure 7-9, the LAT device on Network A is communicating with the TCP device on Network B. There are two ways to provide this connectivity: the LAT traffic from Network A can be translated into either X.25 packets or TCP/IP packets to be sent out on the X.25 PDN.

If the traffic is translated from LAT directly into X.25 frames by Router-A, then Router-B on Network B translates incoming packets intended for device TCP-B into TCP. If Router-A converts LAT to TCP, then the TCP traffic is being encapsulated in X.25 and sent on the X.25 network; Router-B on Network B strips off the encapsulation and routes the TCP packet. In this case, protocol translation is not needed on Router-B.

If the traffic is translated to TCP by Router-A, the packets are encapsulated within X.25 frames. In general, translating the traffic directly to X.25 is more efficient in this application because no encapsulation is necessary. X.25 packets have only 5 bytes of header information, while TCP over X.25 has 45 bytes of header information.


Figure 7-9: LAT-to-TCP via X.25



The following examples illustrate how to use the translate global configuration command to translate from LAT to X.25 (on Router-A) and from X.25 to TCP (on Router-B), thus allowing connection service to a TCP device on Network B (TCP-B) from a LAT device on Network A (LAT-A). You must configure Router-A and Router-B separately.

! Translate LAT to X.25 on Router-A, which is on Network A
translate lat DISTANT-TCP x25 2222202
! Translate X.25 to TCP on Router-B, which is on Network B
translate x25 2222202 tcp TCP-B

In the translate command for Router-A, DISTANT-TCP defines a LAT service name for Router-A. When a user on device LAT-A attempts to connect to LAT-B, the target specified in the connect command is DISTANT-TCP.

In the translate command for Router-B, the TCP service on the target host (TCP-B) is TCP-B. Router-B translates the incoming X.25 packets from 2222202 to TCP packets and transparently relays these packets to TCP-B.

The following is an example of a connection request. In this configuration example, when the user enters this command, a connection attempt from LAT-A on Network A to LAT-B on Network B is attempted.

local> connect DISTANT-TCP

Note You can use the same name (for example, "TCP-B") in the translate command for both Router-A and Router-B, because each device operates independently. However, this symmetry is not required. The key is the common X.121 address used in both translate commands. If you prefer to have unique service names, set the names in each device to be the same.

LAT-to-LAT over Frame Relay or SMDS Example

To transport LAT traffic over a Frame Relay or an SMDS network, LAT must first be translated to TCP. The TCP traffic is routed over the Frame Relay network and then translated back to LAT on Router-B on Network B. See Figure 7-10.


Note The interface configurations for a Frame Relay or an SMDS implementation differ from the specifications at the beginning of this chapter. For more information about configuring Frame Relay and SMDS, see the Router Products Configuration Guide.

Figure 7-10: LAT-to-LAT over Frame Relay or SMDS



The following example illustrates how to use translate global configuration command to translate from LAT to LAT when the WAN uses Frame Relay or SMDS. In this configuration, the router routes encapsulated packets translated from LAT to TCP over the Frame Relay or SMDS network. Packets are then translated back to LAT on the other side of the Frame Relay or SMDS network.

! Translate LAT to TCP/Telnet on Router-A, which is on Network A
translate lat DISTANT-LAT tcp Router-A
! Translate TCP to LAT on Router-B, which is on Network B
translate tcp Router-B lat LAT-B

Note You can use the same name (for example, "LAT-B") in the translate command for both Router-A and Router-B because each device operates independently. However, this symmetry is not required. The key is the common IP name used in both translate commands.

LAT-to-LAT over an IP WAN Example

The protocol translation software can be used to connect LAT devices over a WAN backbone that only allows routable protocols (see Figure 7-11). This configuration exists when LAT networks are either isolated or on their own internetwork.

With the protocol translation software, LAT traffic can be translated to TCP and then routed on the WAN as TCP traffic. The LAT connections stay local between the LAT device and the router running protocol translation software. Thus, connections are not susceptible to delays on the WAN. This reduces the amount of traffic on the WAN because only the data from specific LAT sessions is forwarded on the WAN rather than all the LAT protocol status information packets.


Figure 7-11: LAT-to-LAT over an IP WAN



The following example illustrates how to use the translate global configuration command to translate from LAT to LAT when an IP WAN is used. In this configuration, the router running protocol translation software routes encapsulated packets translated from LAT to TCP over the WAN. Packets are then translated back to LAT on the other side of the WAN. Example translation configurations for both Router-A and Router-B are shown, but these examples do not include specifics of configuration for devices in the WAN. These examples are essentially the same configurations for protocol translation as those in the earlier Frame Relay example.

! Translate LAT to TCP/Telnet for Router-A, which is on Network A
translate lat DISTANT-LAT tcp Router-A
! Translate TCP to LAT for Router-B, which is on Network B
translate tcp Router-B lat LAT-B

Note You can use the same name (for example, "LAT-B") in the translate command for both Router-A and Router-B, because each device operates independently. However, this symmetry is not required. The key is the common IP name in both translate commands.

Central Site Protocol Translation Example

The protocol translation software in this configuration allows more than 64 concurrent translation sessions.

To support this application, a router running protocol translation software is directly connected back-to-back (Figure 7-12) to another Cisco device. This second device acts as an X.25 switch, by sending X.25 packets to Router-B while concurrently routing and bridging other protocols.


Figure 7-12: Central Site Protocol Translation Example



The following example illustrates how to configure a device to support translating protocols over an X.25 network among multiple sites.

Router-C is configured to act as an X.25 switch to send X.25 packets to Router-A while concurrently routing and bridging other protocols.

The following example also illustrates how to use the translate global configuration command to translate LAT and TCP over X.25 WAN media. In this configuration, Router-A can translate LAT or TCP traffic into X.25 packets for transmission over an X.25 PDN network. Packets are then translated back to LAT or TCP on the other side of the WAN.

interface ethernet 0
 ip address 10.0.0.2 255.255.0.0
 !
 ! enable LAT on interface if concurrently routing (8.3 feature)
 lat enable
 !
interface serial 0
 encapsulation X.25
 ! note that this is subaddress 3 of 11111
 x25 address 111113
 ! The following parameters may depend on your network
 x25 facility packetsize 512 512
 x25 facility windowsize 7 7
 no ip address
 
 ! "Other" Central Site Cisco Router Configuration
 !
 ! Interface to WAN
interface serial 0
 x25 address 11111
 x25 route ^111113 interface serial 1
 ip address ....
 ! Interface to Router-A
interface serial 1
 x25 route .* interface serial 0
 no ip address
 
 ! Translate Configuration for Router-A
 !
 no ip routing
 ! Note subaddress of subaddress 11111(3(3))
translate x25 1111133 tcp tcpdevice
translate lat TCP-B x25 3333301
translate lat tcp-device tcp tcp-device
! etc...any translate commands needed by application

Standalone LAT-to-TCP Translation Example

If you need a large number of local LAT-to-TCP translation sessions, you can set up Router-A to use only an Ethernet port. This application allows 100 concurrent translation sessions. In the applications illustrated in Figure 7-13, any other router that supports protocol translation can be used to interconnect network segments performing bridging or routing.


Figure 7-13: Router Functioning as a Standalone Protocol Translator



! Translation Configuration for Router-A only
!
interface ethernet 0
 ip address 10.0.0.2 255.255.0.0
 !
 ! enable LAT on this interface
 lat enabled
 !
interface serial 0
 shutdown
 no ip routing
 default-gateway 10.0.0.100
!
translate lat TCP-A tcp TCP-A
translate lat TCP-B tcp TCP-B
translate tcp LAT-A lat lat-z
! etc...translate commands as required

X.29 Access List Example

The following example illustrates an X.29 access list. Incoming permit conditions are set for all IP hosts and LAT nodes that have specific characters in their names. All X.25 connections to a printer are denied. Outgoing connections are restricted.

!Permit all IP hosts and LAT nodes beginning with "VMS".
!Deny X.25 connections to the printer on line 5.
!
access-list 1 permit 0.0.0.0 255.255.255.255
lat access-list 1 permit ^VMS.*
x29 access-list 1 deny .*
!
line vty 5
 access-class 1 in
 !
 !Permit outgoing connections for other lines.
 !
 !Permit IP access with the network 172.16
 access-list 2 permit 172.16.0.0 0.0.255.255
 !
 !Permit LAT access to the prasad/gopala complexes.
 lat access-list 2 permit ^prasad$
 lat access-list 2 permit ^gopala$
 !
 !Permit X.25 connections to Infonet hosts only.
 x29 access-list 2 permit ^31370
 !
line vty 0 16
 access-class 2 out
 !
translate tcp 172.16.1.26 x25 5551234 access-class 2

X.3 Profile Example

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 command to effect use of this script.

x29 profile linemode 2:1 3:2 15:1
translate tcp 172.16.1.26 x25 55551234 profile linemode

The X.3 PAD parameters are described in the appendix "X.3 PAD Parameters" later in this publication, and in the Cisco Access Connection Guide.


hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.