Configuring an Async Serial Interface


You want to configure a sync/async interface in asynchronous mode.


Cisco has a class of serial modules that can support either synchronous or asynchronous communications, as required. You can use the physical-layer async command to change the interface from the default synchronous to asynchronous mode:

Router3#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router3(config)#interface Serial1/7
Router3(config-if)#physical-layer async
Router3(config-if)#encapsulation ppp
Router3(config)#line 40
Router3(config-line)#speed 115200


As soon as you configure the physical-layer async command, the router will wipe out any configuration that you previously might have had on this interface for synchronous communications.

The only real trick in this configuration is that you need to apply many of the important configuration commands to a terminal line rather than the interface itself. In this example, the only command we have included in the line section is the speed command, but there could be others. We discuss the line configuration commands for connecting to asynchronous modems in Chapter 13.

The line number in this configuration is not arbitrary. In fact, after you enable the physical-layer async command on the serial interface, you should break out of configuration mode and use the show line command to see which line the ...

Get Cisco IOS Cookbook, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.