Configuring an Async Serial Interface
Problem
You want to configure a sync/async interface in asynchronous mode.
Solution
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 terminalEnter configuration commands, one per line. End with CNTL/Z. Router3(config)#interfaceRouter3(config-if)#Serial1/7physical-layer asyncRouter3(config-if)#encapsulation pppRouter3(config-if)#exitRouter3(config)#lineRouter3(config-line)#40speedRouter3(config-line)#115200exitRouter3(config)#endRouter3#
Discussion
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access