Access and Communication Servers Configuration Guide
Configuring Interfaces

Table Of Contents

Configuring Interfaces

Interface Configuration Task List

Understand Supported Interfaces and Encapsulations

Synchronous Serial

Synchronous Serial Compression

Synchronous Serial Encapsulation Methods

Asynchronous Serial

Asynchronous Serial Encapsulation Methods

Ethernet

Ethernet Encapsulation Methods

Token Ring

Token Ring Encapsulation Methods

Configure the Interface Type

Configure an Asynchronous Serial Interface

Configure a Dialer Interface

Configure an Ethernet Interface

Configure a Loopback Interface

Configure a Null Interface

Configure a Synchronous Serial Interface

Configure a Token Ring Interface

Configure Low-Speed Serial Interfaces on Cisco 2500 Routers

Overview of Half-Duplex DTE and DCE State Machines

Half-Duplex DTE State Machines

Half-Duplex DCE State Machines

Change between Controlled-Carrier and Constant-Carrier Modes

Place a Low-Speed Serial Interface in Controlled-Carrier Mode

Place a Low-Speed Serial Interface in Constant-Carrier Mode

Change between Controlled-Carrier and Constant-Carrier Modes Example

Tune Half-Duplex Timers

Tune Half-Duplex Timers Example

Change between Synchronous and Asynchronous Modes

Return a Low-Speed Serial Interface to Synchronous Mode

Specify the Mode of a Low-Speed Serial Interface Example

Configure Compression of PPP Data

Add a Description for an Interface

Configure Group and Member Asynchronous Interfaces

Define Slave Asynchronous Interface Characteristics

Understand Subinterfaces

Understand Tunneling

Advantages of Tunneling

Special Considerations

Configure IP Tunneling

Configure the Tunnel Interface

Configure the Tunnel Source

Configure the Tunnel Destination

Configure the Tunnel Mode

Configure End-to-End Checksumming

Configure a Tunnel Identification Key

Configure a Tunnel Interface to Drop Out-of-Order Datagrams

Monitor IP Tunnels

Understand Asynchronous Host Mobility

Configure Synchronous Serial Features

Reenable HDLC Serial Encapsulation

Configure Compression of HDLC Data

Configure Compression of LAPB Data

Set Transmit Delay

Configure DTR Signal Pulsing

Configure the Clock Rate on DCE Appliques

Configure Snapshot Routing

Configure the Client Router

Configure the Server Router

Monitor and Maintain Snapshot Routing

Assigning IP Addresses to an Incoming Connection

Configure DHCP Address Pooling

Turn off DHCP Address Pooling on an Interface

Configure Local IP Address Pooling

Turn off Local IP Address Pooling on an Interface

Configure Specific IP Addresses for an Interface

Configure IP Address Pooling on Point-to-Point Links

Peer Address Allocation

Precedence Rules

Interfaces Affected

Choose the IP Address Assignment Method

Define the Global Default Mechanism

Define DHCP as the Global Default Mechanism

Define Local Address Pooling as the Global Default Mechanism

Configure Per-Interface IP Address Assignment

Select the Ethernet Encapsulation

Configure MOP

Enable MOP

Enable MOP Message Support

Configure Token Ring Features

Select the Token Ring Speed

Enable Early Token Release

Configure the Point-to-Point Protocol

Enable PPP Encapsulation

Enable CHAP or PAP Authentication

Enable Link Quality Monitoring

PPP Magic Number Support

Configure Dial Backup Service

Ignore DCD and Monitor DSR as Line Up/Down Indicator

Configure Loopback Detection

Control Interface Hold-Queue Limits

Set Bandwidth

Set Interface Delay

Adjust Timers

Limit Size of the Transmit Queue

Adjust Maximum Packet Size or MTU Size

Monitor and Maintain the Interface

Monitor Interface Status

Clear and Reset the Interface

Shut Down and Restart an Interface

Run Interface Loopback Diagnostics

Enable Loopback on MCI and SCI Serial Cards

Enable Loopback on MCI and MEC Ethernet Cards

Configure the Ethernet Loopback Server

Enable Loopback on Token Ring Cards

Interface Configuration Examples

Enabling Interface Configuration Example

Restricted Access on the Asynchronous Interface Example

PPP Connection Example

SLIP and PPP Connection Examples

Interface Description Examples

Interface Shutdown Examples

Group and Member Asynchronous Interfaces Examples

IP Tunneling Examples

CHAP with an Encrypted Password Example

Dial Backup Service Examples

When the Primary Line Goes Down

When the Primary Line Reaches Threshold

When the Primary Line Exceeds Threshold

Configure DHCP Pooling Examples

Configure Local Pooling Example

Configure Specific IP Addresses for an Interface Example

Snapshot Routing Examples


Configuring Interfaces


Use the information in this chapter to understand the types of interfaces supported on Cisco Systems access servers. Our access servers support two types of interfaces: physical and virtual interfaces.The virtual interfaces our access servers support include subinterfaces and IP tunnels.

For hardware technical descriptions and information about installing the access server interfaces, refer to the hardware installation and maintenance publication for your particular product. For command descriptions and usage information, refer to the Access and Communication Servers Command Reference publication.


Note   One or more of the commands that previously appeared in this chapter have been replaced by new commands. See the Access and Communication Servers Command Reference publication for command information. The old commands continue to perform their normal function in the current release, but support for them will cease in a future release.


Interface Configuration Task List

You can perform the tasks in the following sections to configure and maintain the interfaces supported on your access servers. The first section introduces material that you might need to know in advance of the other tasks.

Understand Supported Interfaces and Encapsulations

Configure the Interface Type

Configure Low-Speed Serial Interfaces on Cisco 2500 Routers

Add a Description for an Interface

Configure Group and Member Asynchronous Interfaces

Understand Subinterfaces

Understand Tunneling

Configure IP Tunneling

Configure Synchronous Serial Features

Assigning IP Addresses to an Incoming Connection

Configure IP Address Pooling on Point-to-Point Links

Select the Ethernet Encapsulation

Configure MOP

Configure Token Ring Features

Configure the Point-to-Point Protocol

Configure Dial Backup Service

Configure Loopback Detection

Control Interface Hold-Queue Limits

Set Bandwidth

Set Interface Delay

Adjust Timers

Limit Size of the Transmit Queue

Adjust Maximum Packet Size or MTU Size

Monitor and Maintain the Interface

See "Interface Configuration Examples" at the end of this chapter for interface configuration examples.

Understand Supported Interfaces and Encapsulations

The following sections describe the interfaces and encapsulations supported by our access servers.

Synchronous Serial

Asynchronous Serial

Ethernet

Token Ring

Synchronous Serial

Support for the synchronous serial interface is supplied on the following serial network interface cards or systems:

The Multiport Communications Interface (CSC-MCI), a single card that provides up to two high-speed synchronous serial port connectors that support RS-232, V.35, RS-449, and X.21 connections

The Serial Port Communications Interface (CSC-SCI), a single card that provides up to four high-speed serial ports that support RS-232, V.35, RS-449, and X.21 connections

The high-speed synchronous serial interface on the Cisco 2500 series access servers

The MCI and SCI cards can query the appliques to determine their types for use in reports displayed by the EXEC show commands. However, they do so only at system startup, so the appliques must be attached when the system is started. Use the show interfaces and show controllers mci EXEC commands to display the serial port numbers. These commands provide a report for each interface supported by the access server.

Synchronous Serial Compression

The synchronous serial interface supports point-to-point compression. Our software implements a predictor compressor (the RAND algorithm). Compression of LAPB data is supported for LAPB.

Synchronous Serial Encapsulation Methods

By default, synchronous serial lines use the High-level Data Link Control (HDLC) serial encapsulation method, which provides the synchronous framing and error detection functions of HDLC without windowing or retransmission. The synchronous serial interfaces support the following serial encapsulation methods:

High-level Data Link Control (HDLC)

Frame Relay

Point-to-Point Protocol (PPP)

Switched Multimegabit Data Services (SMDS)

X.25-based encapsulations

Encapsulation methods are set according to the type of protocol or application you configure on your access server. HDLC is described later in this chapter in the section "Reenable HDLC Serial Encapsulation." PPP is described later in this chapter in the section "Configure the Point-to-Point Protocol." The remaining methods are described in their respective chapters describing the protocols or applications. Serial encapsulation methods are also discussed in the Access and Communication Servers Command Reference publication, under the encapsulation command.

Asynchronous Serial

Access and communication server platforms provide a number of methods to connect serial devices, including RJ-11, RJ-45, and 50-pin Telco connectors. The ASM-CS supports Telco and RJ-11 connectors. The Cisco 2500 series access servers support RJ-45 connectors on "octopus" cable adapters that attach to high-density D-type connectors on the rear panel of the servers.

Asynchronous Serial Encapsulation Methods

There are two asynchronous serial encapsulation methods:

SLIP

Asynchronous PPP

Refer to the chapter "Configuring SLIP and PPP" later in this publication, for more information about these encapsulation methods.

Ethernet

Support for the Ethernet interface is supplied on one of the following Ethernet network interface cards or systems:

The Ethernet network interface (CSC-1E) in the ASM-CS, which provides one Ethernet connector compatible with Ethernet Versions 1 and 2 and the IEEE 802.3 protocol

An integrated Ethernet controller on the Cisco 2500 series models.

Use the show interfaces and show controllers mci EXEC commands to display the Ethernet port numbers. These commands provide a report for each interface supported by the access server.

Ethernet Encapsulation Methods

Currently, there are three common Ethernet encapsulation methods:

The standard Ethernet Version 2.0 encapsulation, which uses a 16-bit protocol type code

The IEEE 802.3 encapsulation, in which the type code becomes the frame length for the IEEE 802.2 LLC encapsulation (destination and source Service Access Points, and a control byte)

The SNAP method, as specified in RFC 1042, which allows Ethernet protocols to run on IEEE 802.2 media

The encapsulation method you use depends upon the type of Ethernet media connected to the access server and the routing application you configure. Further detail is provided in the sections "Select the Ethernet Encapsulation" later in this chapter. See also the chapters describing the protocols or applications.

Token Ring

Support for the Token Ring interface is supplied on The 4/16-Mbps Token Ring cards, which interconnect network servers to IEEE 802.5 and IBM-compatible Token Ring media at speeds of 4 or 16 Mbps. These include the 4/16-Mbps cards or CSC-R16M, CSC-1R, and CSC-2R (dual Token Ring card).

Support for the Token Ring MIB variables is provided as described in RFC 1231, "IEEE 802.5 Token Ring MIB," by K. McCloghrie, R. Fox, and E. Decker, May 1991. The mandatory Interface Table and Statistics Table are implemented, but the optional Timer Table of the Token Ring MIB is not. The Token Ring MIB has been implemented for the TRIP.

Use the show interfaces and show controllers token EXEC commands to display the Token Ring numbers. These commands provide a report for each ring supported by the access server.


Note   If the system receives an indication of a cabling problem from a Token Ring interface, it puts that interface into a reset state and does not attempt to restart it. It functions this way because periodic attempts to restart the Token Ring interface have a drastic impact on the stability of protocol routing tables. Once you have replugged the cable into the MAU, restart the interface by typing the command clear interface tokenring number, where number is the interface number.


Token Ring Encapsulation Methods

The Token Ring interface by default uses the SNAP encapsulation format defined in RFC 1042. It is not necessary to define an encapsulation method for this interface.

Configure the Interface Type

Begin interface configuration in global configuration mode. To configure an interface, follow these steps:


Step 1 Enter the configure EXEC command at the privileged EXEC prompt to enter global configuration mode.

Step 2 Once in the global configuration mode, start configuring the interface by entering the interface command. Identify the interface type followed by the number of the connector or interface card. These numbers are assigned at the factory at the time of installation or when added to a system and can be displayed with the show interfaces EXEC command. A report is provided for each interface the access server supports, as seen in the following partial sample display:

Serial 0 is administratively down, line protocol is down
Hardware is MCI Serial
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec) 

Use the show hardware EXEC command to see a list of the system software and hardware.

For example, to begin configuring interface Serial 0, you would add the following line to the configuration file:

interface serial 0

Note   It is not necessary to add a space between the interface type and interface number. For example, in the preceding line you can specify either serial 0 or serial0.


Step 3 Follow each interface command with the interface configuration commands your particular interface requires. These command define the protocols and applications that will run on this interface. The commands are collected and applied to the interface command until you enter another interface command, a command that is not an interface configuration command, or you type the Ctrl-Z sequence to get out of configuration mode and return to privileged EXEC mode.

Step 4 Once an interface is configured, you can check its status by entering the EXEC show commands described after the task tables that follow.

The following sections show how to begin to configure each interface type as a separate task. Follow this command with the routing or bridging interface configuration commands for your particular protocol or application, as described in subsequent chapters.

See the section "Interface Configuration Examples" at the end of this chapter.

Configure an Asynchronous Serial Interface

To specify an asynchronous interface, perform the following task in global configuration mode.

Task
Command

Specify an asynchronous interface.

interface async unit


For more information on asynchronous interfaces, refer to the chapter "Configuring SLIP and PPP" later in this publication. To use SLIP or PPP to make a connection, see the Cisco Access Connection Guide.

Configure a Dialer Interface

To specify a dialer rotary group leader, perform the following task in global configuration mode:

Task
Command

Begin dialer rotary group interface configuration.

interface dialer interface-number


Configure an Ethernet Interface

To configure an Ethernet interface, perform the following task in global configuration mode:

Task
Command

Begin Ethernet interface configuration.

interface ethernet interface-number


Configure a Loopback Interface

You can specify a software-only interface called a loopback interface that emulates an interface that is always up. A loopback interface is a virtual interface that allows BGP and RSRB sessions to stay up even if the outbound interface is down, and is supported on all platforms.

You can use the loopback interface as the termination address for BGP sessions, for RSRB connections, or for establishing a Telnet session from the access server's console to its auxiliary port when all other interfaces are down. In applications where other access servers will attempt to reach this loopback interface, you need to configure a routing protocol to distribute the subnet assigned to the loopback address.

Packets routed to the loopback interface are rerouted back to the box and processed locally. IP packets routed out the loopback interface but not destined to the loopback interface are dropped. This means the loopback interface also serves as the Null 0 interface.

To configure a loopback interface, perform the following task in global configuration mode:

Task
Command

Begin loopback interface configuration.

interface loopback interface-number


See also the section "Run Interface Loopback Diagnostics" later in this chapter.

Configure a Null Interface

The access server supports a "null" interface. This pseudo-interface functions similarly to the null devices available on most operating systems. This interface is always up and can never forward or receive traffic; encapsulation always fails. The only interface configuration command that you can specify for the null interface is no ip redirects.

The null interface provides an alternative method of filtering traffic. The overhead involved with using access lists can be avoided by directing undesired network traffic to the null interface.

To specify the null interface, perform the following task in global configuration mode:

Task
Command

Begin null interface configuration.

interface null 0


Specify null 0 (or null0) as the interface name and unit. The null interface can be used in any command that has an interface type as an argument. The following example configures a null interface for IP route 172.16.0.0:

ip route 172.16.0.0 255.0.0.0 null 0

Configure a Synchronous Serial Interface

To configure a synchronous serial interface, perform the following task in global configuration mode:

Task
Command

Begin synchronous serial interface configuration.

interface serial interface-number


For synchronous serial features, see the section "Configure Synchronous Serial Features" later in this chapter.

Configure a Token Ring Interface

To configure a Token Ring interface, perform the following task in global configuration mode:

Task
Command

Begin Token Ring interface configuration.

interface tokenring interface-number


Configure Low-Speed Serial Interfaces on Cisco 2500 Routers

This section describes how to configure low-speed serial interfaces on Cisco 2520 through Cisco 2523 routers. It describes these tasks in the following sections:

Overview of Half-Duplex DTE and DCE State Machines

Change between Controlled-Carrier and Constant-Carrier Modes

Tune Half-Duplex Timers

Change between Synchronous and Asynchronous Modes

Overview of Half-Duplex DTE and DCE State Machines

The following section describes the communication process between half-duplex DTE transmit and receive state machines and half-duplex DCE transmit and receive state machines.

Half-Duplex DTE State Machines

As shown in , the half-duplex DTE transmit state machine for low-speed interfaces remains in the ready state when it is quiescent. When a frame is available for transmission, the state machine transitions to the transmit delay state and waits for a time period, which is defined by the half-duplex timer transmit-delay value command. You can choose a value between the range of 0 to 4400 ms (4.4 seconds) to configure this command. The default is 0 ms. Transmission delays are used for debugging half-duplex links and assisting lower speed receivers that cannot process back-to-back frames.

Figure 1 Half-Duplex DTE Transmit State Machine

After idling for a defined number of ms, the state machine asserts request to send (RTS) and transitions to the wait clear to send (CTS) state for the data communications equipment (DCE) to assert CTS. A timeout timer with a value set by the half-duplex timer rts-timeout value command starts. The range you configure is dependent on the serial interface hardware that is installed. This default is 3 ms. If the timeout timer expires before CTS is asserted, the state machine returns to the ready state and de-asserts RTS. If CTS is asserted prior to the timer's expiration, the state machine transitions to the transmit state and sends the frames.

Once there are no more frames to transmit, the state machine transitions to the wait transmit finish state. The machine waits for the transmit first in first out (FIFO) in the serial controller to empty, starts a delay timer with a value defined by the half-duplex timer rts-drop-delay value interface command, and transitions to the wait RTS drop delay state. You can choose a value between the range of 0 and 1140000 ms (1140 seconds). The default is 3 ms.

When the timer in the wait RTS drop delay state expires, the state machine de-asserts RTS and transitions to the wait CTS drop state. A timeout timer with a value set by the half-duplex timer cts-drop-timeout value interface command starts, and the state machine waits for the CTS to de-assert. You can choose a value between the range of 0 to 1140000 ms (1140 seconds). The default is 250 ms. Once the CTS signal is de-asserted or the timeout timer expires, the state machine transitions back to the ready state. If the timer expires before CTS is de-asserted, an error counter is incremented, which can be displayed by issuing the show controllers command for the serial interface in question.

As shown in , a half-duplex DTE receive state machine for low-speed interfaces idles and receives frames in the ready state. A giant frame is any frame whose size exceeds the maximum transmission unit (MTU). If the beginning of a giant frame is received, the state machine transitions to the in giant state and discards frame fragments until it receives the end of the giant frame. At this point, the state machine transitions back to the ready state and waits for the next frame to arrive.

Figure 2 Half-Duplex DTE Receive State Machine

An error counter is incremented upon receipt of the giant frames. To view the error counter, enter the show interface command for the serial interface in question.

Half-Duplex DCE State Machines

As shown in , for a low-speed serial interface in DCE mode, the half-duplex DCE transmit state machine idles in the ready state when it is quiescent. When a frame is available for transmission on the serial interface, such as when the output queues are no longer empty, the state machine starts a timer (based on the value the transmit-delay keyword, in milliseconds) and transitions to the transmit delay state. Similar to the DTE transmit state machine, the transmit delay state gives you the option of setting a delay between the transmission of frames; for example, this feature lets you compensate for a slow receiver that loses data when multiple frames are received in quick succession. Use the half-duplex timer transmit-delay value interface configuration command to specify a delay value not equal to 0. You can choose a value between the range of 0 to 4400 ms (4.4 seconds). The default is 0 ms.

Figure 3 Half-duplex DCE Transmit State Machine

After the transmit delay state, the next state depends on whether the interface is in constant-carrier mode (the default) or controlled-carrier mode.

If the interface is in constant-carrier mode, it transitions through the following states:

1 The state machine transitions to the transmit state when the transmit-delay timer expires. The state machine stays in the transmit state until there are no more frames to transmit.

2 When there are no more frames to transmit, the state machine transitions to the wait transmit finish state, where it waits for the transmit FIFO to empty.

3 Once the FIFO empties, the DCE transitions back to the ready state and waits for the next frame to appear in the output queue.

If the interface is in controlled-carrier mode, the interface performs a handshake using the data carrier detect (DCD) signal. In this mode, DCD is de-asserted when the interface is idle and has nothing to transmit. The transmit state machine transitions through the states as follows:

1 After the transmit-delay timer expires, the DCE asserts DCD and transitions to the DCD-txstart delay state to ensure a time delay between the assertion of DCD and the start of transmission. A timer configured by the dcd-txstart-delay keyword starts. Use the half-duplex timer dcd-txstart-delay value interface configuration command to specify a delay value. You can choose a value between the range of 0 to 1140000 ms (1140 seconds). The default value is 100 ms.

2 When this delay timer expires, the state machine transitions to the transmit state and transmits frames until there are no more frames to transmit.

3 After the DCE transmits the last frame, it transitions to the wait transmit finish state, where it waits for transmit FIFO to empty and the last frame to transmit to the wire. Then DCE starts a delay timer with a value specified by the dcd-drop-delay keyword. Use the half-duplex timer dcd-drop-delay value interface configuration command to specify a delay value. You can choose a value between the range of 0 to 4400 ms (4.4 seconds).

4 The DCE transitions to the wait DCD drop delay state. This state causes a time delay between the transmission of the last frame and the de-assertion of DCD in the controlled-carrier mode for DCE transmits.

5 When the timer expires, the DCE de-asserts DCD and transitions back to the ready state and stays there until there is a frame to transmit on that interface.

As shown in , the half-duplex DCE receive state machine idles in the ready state when it is quiescent. It transitions out of this state when the DTE asserts RTS. In response, the DCE starts a timer configured by the cts-delay keyword. This timer delays the assertion of CTS because some DTE interfaces expect this delay. Use the half-duplex timer cts-delay value interface configuration command to specify a delay value. The value you configure is dependent to the serial interface hardware installed.

Figure 4 Half-duplex DCE Receive State Machine

When the timer expires, the DCE state machine asserts CTS and transitions to the receive state. It stays in the receive state until there is a frame to receive. If the beginning of a giant frame is received, it transitions to the in giant state and keeps discarding all the fragments of the giant frame and transitions back to the receive state.

Transitions back to the ready state occur when RTS is de-asserted by the DTE. The response of the DCE to the de-assertion of RTS is to de-assert CTS and go back to the ready state.

Change between Controlled-Carrier and Constant-Carrier Modes

The half-duplex controlled-carrier command enables you to change between controlled-carrier and constant-carrier modes for low-speed serial DCE interfaces in half-duplex mode. Configure a serial interface for half-duplex mode by using the media-type half-duplex command. Full-duplex mode is the default for serial interfaces. This interface configuration is available on Cisco 2520 through Cisco 2523 routers.

Controlled-carrier operation means that the DCE interface will have DCD de-asserted in the quiescent state. When the interface has something to transmit, it will assert DCD, wait a user-configured amount of time, then start the transmission. When it has finished transmitting, it will again wait a user-configured amount of time, then de-assert DCD.

Place a Low-Speed Serial Interface in Controlled-Carrier Mode

To place a low-speed serial interface in controlled-carrier mode, perform the following task in interface configuration mode:

Task
Command

Place a low-speed serial interface in controlled-carrier mode.

half-duplex controlled-carrier


Place a Low-Speed Serial Interface in Constant-Carrier Mode

To return a low-speed serial interface to constant-carrier mode from controlled-carrier mode, perform the following task in interface configuration mode:

Task
Command

Place a low-speed serial interface in constant-carrier mode.

no half-duplex controlled-carrier


Change between Controlled-Carrier and Constant-Carrier Modes Example

The following example shows how to change to controlled-carrier mode from the default of constant-carrier operation:

Router(config)# interface serial 2
Router(config-if)# half-duplex controlled-carrier

The following example shows how to change to constant-carrier mode from controlled-carrier mode:

Router(config)# interface serial 2
Router(config-if)# no half-duplex controlled-carrier

Tune Half-Duplex Timers

To tune half-duplex timers, perform the following task in interface configuration mode:

Task
Command

Tune half-duplex timers.

half-duplex timer {cts-delay value | cts-drop-timeout value| dcd-drop-delay value | dcd-txstart-delay value | rts-drop-delay value | rts-timeout value | transmit-delay value}


The timer tuning commands permit you to adjust the timing of the half-duplex state machines to suit the particular needs of their half-duplex installation.

Note that the half-duplex timer command and its options deprecates the following two timer tuning commands that are available only on high-speed serial interfaces:

sdlc cts-delay

sdlc rts-timeout

Tune Half-Duplex Timers Example

The following examples show how to set the cts-delay timer to 1234 ms and the transmit-delay timer to 50 ms.

Router(config)# interface serial 2
Router(config-if)# half-duplex timer cts-delay 1234
Router(config-if)# half-duplex timer transmit-delay 50

Change between Synchronous and Asynchronous Modes

To specify the mode of a low-speed serial interface as either synchronous or asynchronous, perform the following task in interface configuration mode:

Task
Command

Specify the mode of a low-speed interface as either synchronous or asynchronous.

physical-layer {sync | async}


This command applies only to low-speed serial interfaces available on Cisco 2520 through Cisco 2523 routers.

In synchronous mode, low-speed serial interfaces support all interface configuration commands available for high-speed serial interfaces, except the following two commands:

sdlc cts-delay

sdlc rts-timeout

When placed in asynchronous mode, low-speed serial interfaces support all commands available for standard asynchronous interfaces. The default is synchronous mode.

Note that when you enter this command, it does not appear in the output of show running config and show startup config command, because the command is a physical-layer command.

Return a Low-Speed Serial Interface to Synchronous Mode

To return to the default mode (synchronous) of a low-speed serial interface on a Cisco 2520 through Cisco 2523 router, perform the following task in interface configuration mode:

Task
Command

Return the interface to its default mode, which is synchronous.

no physical-layer


Specify the Mode of a Low-Speed Serial Interface Example

The following example shows how to change a low-speed serial interface from synchronous to asynchronous mode:

Router(config)# interface serial 2
Router(config-if)# physical-layer async

The following examples show how to change a low-speed serial interface from asynchronous mode back to its default synchronous mode:

Router(config)# interface serial 2
Router(config-if)# physical-layer sync

or

Router(config)# interface serial 2
Router(config-if)# no physical-layer

The following example shows some typical asynchronous interface configuration commands:

Router(config)# interface serial 2
Router(config-if)# physical-layer async
Router(config-if)# ip address 1.0.0.2 255.0.0.0 
Router(config-if)# async default ip address 1.0.0.1
Router(config-if)# async mode dedicated
Router(config-if)# async default routing

The following example shows some typical synchronous serial interface configuration commands available when the interface is in synchronous mode:

Router(config)# interface serial 2
Router(config-if)# physical-layer sync
Router(config-if)# ip address 1.0.0.2 255.0.0.0 
Router(config-if)# no keepalive
Router(config-if)# ignore-dcd
Router(config-if)# nrzi-encoding
Router(config-if)# no shutdown

Configure Compression of PPP Data

You can configure point-to-point software compression on serial interfaces that use PPP encapsulation. Compression reduces the size of a PPP frame via lossless data compression. The compression algorithm used is a predictor algorithm (the RAND algorithm), which uses a compression dictionary to predict what the next character in the frame will be.

For HDLC encapsulations, you can specify a Stacker compression algorithm by using the stac keyword. PPP encapsulations support both predictor and Stacker compression algorithms.

Compression is performed in software and might significantly affect system performance. We recommend that you disable compression if CPU load exceeds 65 percent. To display the CPU load, use the show process cpu EXEC command.

If the majority of your traffic is already compressed files, it is recommended that you not use compression.

To configure compression over PPP, perform the following tasks in interface configuration mode:

Task
Command

Step 1 Enable encapsulation of a single protocol on the serial line.

encapsulation ppp

Step 2 Enable compression.

compress [predictor | stac]


Add a Description for an Interface

You can add a description about an interface to help you remember what is attached to it. This entry is meant solely as a comment to help identify what the interface is being used for. The description will appear in the output of the following commands: show startup-config, copy running-config, and show interfaces.

To add the description, complete the following task in interface configuration mode:

Task
Command

Add a description for an interface.

description string


For examples of adding a description, see the section "Interface Configuration Examples" at the end of this chapter.

Configure Group and Member Asynchronous Interfaces

Using the interface group-async command, you can create an asynchronous interface to be used as a group interface. In turn, other asynchronous interfaces, known as "members," can be associated with this asynchronous group interface.

This association allows you to quickly configure the group interface and all of its member interfaces with a single command entered at the asynchronous group interface command line. You can have more than one group interface on a device; however, a member interface can only be associated with one group.

illustrates the group-member interface concept.

Figure 6-1 Group-Member Association on Asynchronous Interfaces

To create an asynchronous group interface and associate member interfaces to this group interface, perform the following commands starting in global configuration mode:

Task
Command

Create an asynchronous group interface.

interface group-async unit-number

Associate one or more asynchronous interfaces (members) to the group interface. All associated interfaces can then be configured through the group interface.

group-range low-end-of-range high-end-of-range


Refer to "Group and Member Asynchronous Interfaces Examples" for an example configuration.

Define Slave Asynchronous Interface Characteristics

Member interfaces can have certain interface configurations that differ from their group. The following are valid interface configuration commands:

async default ip address

description

To define a member to have one or more interface configurations different from its group, enter the following command in interface configuration mode, where interface-command is one of the commands listed in the preceding list:

Task
Command

Configure a member to have specific differences from its group.

member interface-number interface-command


Understand Subinterfaces

A subinterface is a mechanism that allows a single physical interface to support multiple logical interfaces or networks. That is, several logical interfaces or networks can be associated with a single hardware interface. Subinterfaces are implemented in various WAN and LAN protocols, including ATM, Frame Relay, SMDS, X.25, and Novell IPX. For more information about using subinterfaces, refer to the appropriate protocol chapter in this publication.

Understand Tunneling

Tunneling provides a way to encapsulate arbitrary packets inside of a transport protocol. This feature is implemented as a virtual interface to provide a simple interface for configuration. The tunnel interface is not tied to specific "passenger" or "transport" protocols, but rather, it is an architecture that is designed to provide the services necessary to implement any standard point-to-point encapsulation scheme.

Tunneling has three primary components:

Passenger protocol, which is the protocol you are encapsulating (IP, IPX, or AppleTalk)

Carrier protocol, which is one of the following encapsulation protocols:

Generic route encapsulation (GRE), Cisco's multiprotocol carrier protocol

Cayman, a proprietary protocol for AppleTalk over IP

NOS, IP over IP compatible with the popular KA9Q program

Transport protocol, which is the protocol used to carry the encapsulated protocol (IP only)

To understand the process of tunneling, consider connecting two AppleTalk networks with a non-AppleTalk backbone, such as IP. The relatively high bandwidth consumed by the broadcasting of Routing Table Maintenance Protocol (RTMP) data packets can severely hamper the backbone's network performance. This problem can be solved by tunneling AppleTalk through a foreign protocol, such as IP. Tunneling encapsulates an AppleTalk packet inside the foreign protocol packet, which is then sent across the backbone to a destination access server. The destination access server then de-encapsulates the AppleTalk packet and, if necessary, routes the packet to a normal AppleTalk network. Because the encapsulated AppleTalk packet is sent in a directed manner to a remote IP address, bandwidth usage is greatly reduced. Furthermore, the encapsulated packet benefits from any features normally enjoyed by IP packets, including default routes and load balancing.

illustrates IP tunneling terminology and concepts.

Figure 6-2 IP Tunneling Terminology and Concepts

Advantages of Tunneling

There are several situations where encapsulating traffic in another protocol is useful:

To provide multiprotocol local networks over a single-protocol backbone

To provide workarounds for networks containing protocols that have limited hop counts; for example, AppleTalk (see )

To connect discontinuous subnetworks

To allow virtual private networks across wide-area networks (WANs)

Figure 6-3 Providing Workarounds for Networks with Limited Hop Counts

Special Considerations

The following are considerations and precautions to observe when configuring tunneling:

Encapsulation and decapsulation at the tunnel endpoints are slow operations; currently only processor switching is supported.

Be cautious in your configuration and take into account security and topology issues. Be careful not to violate access control lists. You can configure a tunnel with a source and destination that is not restricted by firewall access servers.

Tunneling may create problems with transport protocols with limited timers (such as DECnet on the Cisco 2500) due to increased latency.

Be aware of the environments across which you create tunnels. You might be tunneling across fast FDDI rings or through slow 9600-bps phone lines; some passenger protocols behave poorly in mixed media networks.

Multiple point-to-point tunnels can saturate the physical link with routing information.

Routing protocols that make their decisions based solely on hop count will often prefer a tunnel over a multipoint real link. A tunnel might appear to be a one-hop, point-to-point link and have the lowest-cost path, but may actually cost more. For example, in the topology shown in , packets from Host 1 will travel across networks w, q, and z to get to Host 2 instead of taking the path w, x, y, z because the first path appears shorter.

Figure 6-4 Tunnel Precautions: Hop Counts

When routing information from the tunneled network mixes with the transport networks' information, the best path to the "tunnel destination" is via the tunnel itself. This is called a recursive route and causes the tunnel interface to shut down temporarily. To avoid recursive routing problems, keep passenger and transport network routing information disjointed:

Use a different AS number or tag

Use a different routing protocol

Use static routes to override the first hop (but watch for routing loops)

If you see line protocol down, as in the following example, it might be because of a recursive route:

%TUN-RECURDOWN Interface Tunnel 0
temporarily disabled due to recursive routing

Configure IP Tunneling

If you want to configure IP tunneling, you must perform the tasks in the following sections:

Configure the Tunnel Interface

Configure the Tunnel Source

Configure the Tunnel Destination

The tasks in the following tunnel configuration sections are optional:

Configure the Tunnel Mode

Configure End-to-End Checksumming

Configure a Tunnel Identification Key

Configure a Tunnel Interface to Drop Out-of-Order Datagrams

Monitor IP Tunnels

Understand Asynchronous Host Mobility

For examples using these commands, see the section "IP Tunneling Examples" at the end of this chapter.

Configure the Tunnel Interface

To configure tunneling, you must configure the tunnel interface by performing the following task in global configuration mode:

Task
Command

Configure the tunnel interface.

interface tunnel interface-number


Configure the Tunnel Source

You must specify the tunnel interface's source address by performing the following task in interface configuration mode:

Task
Command

Configure the tunnel source.

tunnel source {ip-address | interface-type interface-number}



Note   You cannot have two tunnels using the same encapsulation mode with exactly the same source and destination address. The workaround is to create a loopback interface and source packets off of the loopback interface.


Configure the Tunnel Destination

You must specify the tunnel interface's destination by performing the following task in interface configuration mode:

Task
Command

Configure the tunnel destination.

tunnel destination {hostname | ip-address}


Configure the Tunnel Mode

The encapsulation mode for the tunnel interface defaults to generic route encapsulation (GRE), so this task is considered optional. However, if you want a mode other than GRE, you must configure it by performing the following task in interface configuration mode:

Task
Command

Configure the tunnel mode.

tunnel mode {aurp | cayman | dvmrp | eon | gre ip | nos}


If you are tunneling AppleTalk, you must use either AppleTalk Update Routing Protocol (AURP), Cayman or GRE tunneling mode. Cayman tunneling is designed by Cayman Systems, and enables access servers to interoperate with Cayman GatorBoxes. You can have a Cisco access server at either end of the tunnel, or you can have a GatorBox at one end and a Cisco access server at the other end. Use Distance Vector Multicast Routing Protocol (DVMRP) mode when an access server connects to a mrouted access server to run DVMRP over a tunnel. You must configure Protocol-Independent Multicast (PIM) and an IP address on a DVMRP tunnel.


Caution   
Do not configure a Cayman tunnel with an AppleTalk network address.

If you use GRE, you must have only our access servers at both ends of the tunnel connection. When using GRE to tunnel AppleTalk, you must configure an AppleTalk network address and a zone. Perform the following tasks to tunnel AppleTalk using GRE:

Task
Command

Step 1 Enable tunneling on the interface.

interface tunneln

Step 2 Assign a cable range to an interface.

appletalk cable-range start-end [network.node]1

Step 3 Set a zone name for the connected AppleTalk network.

appletalk zone zone-name2

Step 4 Specify the interface out of which the encapsulated packets will be sent, or specify the access server's IP address.

tunnel source [interface | ip-address]

Step 5 Specify the IP address of the access server at the far end of the tunnel.

tunnel destination ip-address

Step 6 Enable GRE tunneling.

tunnel mode gre ip

1 This command is documented in the "AppleTalk Commands" chapter of the Access and Communication Servers Command Reference publication.

2 This command is documented in the "AppleTalk Commands" chapter of the Access and Communication Servers Command Reference publication.


Configure End-to-End Checksumming

Some passenger protocols rely on media checksums to provide data integrity. By default, the tunnel does not guarantee packet integrity. By enabling end-to-end checksums, the access servers will drop corrupted packets. To enable such checksums on a tunnel interface, perform the following task in interface configuration mode:

Task
Command

Configure end-to-end checksumming.

tunnel checksum


Configure a Tunnel Identification Key

You can optionally enable an ID key for a tunnel interface. This key must be set to the same value on the tunnel endpoints. Tunnel ID keys can be used as a form of weak security to prevent misconfiguration or injection of packets from a foreign source.

The tunnel ID key is available with GRE only.


Note   When using GRE, the ID key is carried in each packet. We do not recommend relying on this key for security purposes.


To configure a tunnel ID key, perform the following task in interface configuration mode:

Task
Command

Configure a tunnel identification key.

tunnel key key-number


Configure a Tunnel Interface to Drop Out-of-Order Datagrams

You can optionally configure a tunnel interface to drop datagrams that arrive out of order. This is useful when carrying passenger protocols that behave poorly when they receive packets out of order (for example, LLC2-based protocols). This option is available with GRE only.

To use this option, perform the following task in interface configuration mode:

Task
Command

Configure a tunnel interface to drop out-of-order datagrams.

tunnel sequence-datagrams


Monitor IP Tunnels

Complete any of the following tasks in EXEC mode to monitor the IP tunnels you have configured:

Task
Command

List tunnel interface information.

show interfaces tunnel unit [accounting]

List the routes that go through the tunnel.

show protocol route1

List the route to the tunnel destination.

show ip route2

1 This command is documented in the "System Management Commands" chapter in the Access and Communication Servers Command Reference publication.

2 This command is documented in the "IP Routing Protocols Commands" chapter in the Access and Communication Servers Command Reference publication.


Understand Asynchronous Host Mobility

Increasingly, mobile users are accessing networks through dial-up telephone connections. In contrast to local employees who can dial directly into an access server providing multiprotocol access to network resources, mobile users must often dial into an access server elsewhere on the organization's internetwork.

The access server supports a packet tunneling strategy that provides the host with mobility across the extended internetwork—in effect creating a virtual private network for the mobile user. When a user activates asynchronous host mobility, the access server on which the remote user dials into becomes a remote point-of-presence (POP) for the user's home network. Once logged in, the user experiences a server environment identical to the one that appears when he or she connects directly to the "home" access server.

Once the network layer connection is made, data packets are tunneled at the physical and/or data link layer instead of at the protocol layer. In this way, raw data bytes from dial-in users are transported directly to the "home" access server, which processes the protocols.

illustrates the implementation of asynchronous host mobility on an extended internetwork. A mobile user connects to an access server on the internetwork and, by activating asynchronous host mobility, is connected to a "home" access server configured with the appropriate username. The user sees an authentication dialog or prompt from the "home" system and can proceed as if he or she were connected directly to that device.

Figure 6-5 Asynchronous Host Mobility

The remote user implements asynchronous host mobility by executing a User EXEC tunnel command. When executed, the command sets up a network layer connection to the destination specified in the command. The access server accepts the connection, attaches it to a virtual terminal (VTY), and runs a command parser capable of running the normal dial-in services. After the connection is established, data is transferred between the modem and network connection with a minimum of interpretations. When communications are complete, the network connection can be closed and terminated from either end.

Refer to the Cisco Access Connection Guide for information about setting up the network layer connection with the tunnel command.

Configure Synchronous Serial Features

The optional tasks in the following sections configure features on a synchronous serial interface:

Reenable HDLC Serial Encapsulation

Configure Compression of HDLC Data

Configure Compression of LAPB Data

Set Transmit Delay

Configure DTR Signal Pulsing

Configure the Clock Rate on DCE Appliques

Configure Snapshot Routing

Reenable HDLC Serial Encapsulation

The access server provides HDLC encapsulation for serial lines by default. This encapsulation method provides the synchronous framing and error detection functions of HDLC without windowing or retransmission. Although it is the default, it can be reenabled as the encapsulation method, if necessary, by performing the following task in interface configuration mode:

Task
Command

Reenable HDLC encapsulation.

encapsulation hdlc


Configure Compression of HDLC Data

You can configure point-to-point software compression on serial interfaces that use HDLC encapsulation. Compression reduces the size of a HDLC frame via lossless data compression. The compression algorithm used is a Stacker (LZS) algorithm.

Compression is performed in software and might significantly affect system performance. We recommend that you disable compression if CPU load exceeds 65%. To display the CPU load, use the show process cpu EXEC command.

If the majority of your traffic is already compressed files, you should not use compression.

To configure compression over HDLC, perform the following tasks in interface configuration mode:

Task
Command

Step 1 Enable encapsulation of a single protocol on the serial line.

encapsulation hdlc

Step 2 Enable compression.

compress stac


Configure Compression of LAPB Data

You can configure point-to-point software compression on serial interfaces that use LAPB or multi-LAPB encapsulation. Compression reduces the size of a LAPB or multi-LAPB frame via lossless data compression. The compression algorithm used is a predictor algorithm (the RAND algorithm), which uses a compression dictionary to predict what the next character in the frame will be.

Compression is performed in software and might significantly affect system performance. We recommend that you disable compression if CPU load exceeds 65%. To display the CPU load, use the show process cpu EXEC command.

Predictor compression is recommended when the bottleneck is the load on the router; Stacker compression is recommended when the bottleneck is line bandwidth. Compression is not recommended if the majority of your traffic is already compressed files. Compression is also not recommended for linespeeds greater than T1; the added processing time will slow performance on such lines.

To configure compression over LAPB, perform the following tasks in interface configuration mode:

Task
Command

Step 1 Enable encapsulation of a single protocol on the serial line.

encapsulation lapb

Step 2 Enable compression.

compress [predictor | stac]


To configure compression over multi-LAPB, perform the following tasks in interface configuration mode:

Task
Command

Step 1 Enable encapsulation of multiple protocols on the serial line.

encapsulation lapb multi

Step 2 Enable compression.

compress [predictor | stac]


When using compression, the MTU for the serial interface and the LAPB N1 parameter should be adjusted as in the following example, in order to avoid informational diagnostics regarding excessive MTU or N1 sizes:

interface serial 0
 encapsulation lapb
 compress predictor
 mtu 1509
 lapb n1 12072