Configuring an Asynchronous Serial Interface
Configuring an asynchronous serial interface includes setting the working mode and parameters for the asynchronous serial interface.
Applicable Environment
To transmit upper-layer data services on an asynchronous serial interface, set the working mode and parameters for the interface to ensure that its physical layer status and link layer status are Up.
Parameters of an asynchronous serial interface have default values. To modify these parameters, perform the following steps.
Pre-configuration Tasks
Before configuring an asynchronous serial interface, complete the following task:
Install a 1SA, 2SA, or 8SA interface card on the device and ensure that it is registered successfully.
Procedure
- Run system-view
The system view is displayed.
- Run interface serial interface-number
The serial interface view is displayed.
- Run physical-mode async
The serial interface is configured to work in asynchronous mode.
By default, a serial interface works in synchronous mode.
- Run async mode { flow | protocol }
The working mode is set for the asynchronous serial interface.
By default, an asynchronous serial interface works in protocol mode.
- Run detect dsr-dtr
Detection of Data Set Ready (DSR) and Data Terminal Ready (DTR) signals is enabled on the asynchronous serial interface.
By default, detection of DSR and DTR signals is enabled on an asynchronous serial interface.
- Run phy-mru mrusize
The MRU is set for the asynchronous serial interface.
The default MRU of an asynchronous serial interface is 1700 bytes.
- Run mtu mtu
The MTU is set for the asynchronous serial interface.
The default MTU of an asynchronous serial interface is 1500 bytes.
Verifying the Configuration
Run the display interface serial command to check basic configurations and packet statistics about the serial interface.
Run the display interface brief command to check brief information about the serial interface, including the physical status, link protocol status, bandwidth utilization, and number of error packets.
Run the display ip interface brief command to check the physical status and IP address of the serial interface.