The Serial Line configuration lets you set a WAN device to asynchronous or synchronous if the device supports both line disciplines. It also lets you set HDLC or asynchronous parameters for WAN devices. This document describes the Serial Line configuration commands. It includes the following topics:
Displaying the Serial Line Configuration Prompt
Serial Line Commands
Displaying the Serial Line Configuration Prompt
The Serial Line configuration applies to a physical device. If you have multiple interfaces on one device, it does not matter which Circuit Config <NET-#> prompt for the device you use to get to the Serial Configuration prompt.
Routers that have multiple serial devices display the slot number of the device that you are configuring as part of the prompt. Serial devices that have multiple ports also show the port number of the device as part of the prompt. For example, the following prompt means you are configuring a serial device in slot 2 port 3.
To display theSerial Config <WAN2-3>
Serial Config <WAN> prompt,Config> prompt. To see a list of interfaces, enter list interfaces at the Config> prompt.
Config>network
What is the network number [0]? 1
Circuit Configuration
Circuit Config <NET-1>
Circuit Config <NET-#> prompt.
Circuit Config <NET-1> sl
Serial Line Configuration
Serial Config <WAN>
Not all parameters apply to all router platforms. Press Space twice after you type a command to display the available parameters for each command. Enter help for information about using the command line interface.
[C] means the command is available at the Serial Config <WAN> prompt.
There are no monitoring commands for serial devices.
| Command | Function |
|---|---|
| E1 [C] [M] | Displays the E1 configuration or monitoring prompt. |
| Exit [C] | Returns to the previous prompt. |
| List [C] | Lists the configuration of the serial line. |
| Set [C] | Configures the serial device. |
| T1 [C] [M] | Displays the T1 configuration or monitoring prompt. |
E1 [C] [M]
Displays the E1 configuration or monistoring prompt.
See Configuring Fractional T1/E1 Devices for information
on the commands available at this prompt.
e1
E1 user configuration
E1 Config <NET-1>
exit
Circuit Config <NET-1>
list
Line Discipline: Sync
Maximum network layer frame size: 2048
Speed: 64000
HDLC Data encoding: NRZ
HDLC Idle State: Flag
Transmit delay counter: 0 units
No cable installed
Data bits [8]?
Frame size [2048]?
Example: set async parity none
async speed 1200 or 2400 or 4800 or 9600 or 19200 or 38400 or 57600 or 115200
Sets the speed of the transmit and receive clocking lines in bits per second. The default is 57600.
For 14.4k modems, set the speed to 57600.
For 28.8k modems, set the speed to 115200.
Note: For GT 250 routers, the maximum asynchronous speed is 57600.
Example:set async speed
Line speed [57600]?
Stop bits [1]?
set hdlc cable rs-232 dte
hdlc clocking external or internal or mixed
If the device you are configuring detects the cable type to which it is connected, the device also sets the appropriate clocking, and this parameter does not appear.
To connect to a modem or DSU, configure clocking as external. To connect directly to another DTE device, use a DCE cable and set the clocking to internal. If the modem provides the receive clock lines and expects the transmit clock line, use mixed.
For internal and mixed clocking, use the set hdlc speed command to configure a clock speed.
For external clocking, if you want line speed reporting, set the external clock speed using the set hdlc speed command. You can display the line speed using the interface command at the + prompt or using SNMP.
Note: You cannot boot over a GTAM Quad serial device when you configure clocking as mixed.
Example:set hdlc clocking internal
hdlc encoding NRZ or NRZI
Sets the HDLC transmission encoding scheme for this device to either NRZ (Non-Return to Zero) or NRZI (Non-Return to Zero Inverted). The default is NRZ.
Example: set hdlc encoding nrz
hdlc frame-size value
Sets the size of the network layer portion of frames transmitted and received on the data link. Data link and MAC layer headers are not included. The range is 576 to 4088, and the default is 2048.
Frame Size [2048]?
hdlc speed bits per second
If you set hdlc clocking to
internal, hdlc speed specifies the speed of the transmit and receive clock lines.
mixed, hdlc speed applies to the transmit clock line only.
external, hdlc speed provides line speed reporting via SNMP and the list interface command at the + prompt. For external clocking, setting hdlc speed to 0 (zero) causes the router to dynamically calculate an approximate speed, which it can report via SNMP and the list interface command.
Clock Speed [64000]?
For GTAM devices, sets the period of time, in microseconds, between the transmission of each frame. The range is 0 to 65535.
For all other devices, sets the number of extra flags between each frame. The range is 0 to 15.
For all platforms, the default is 0, which means the router does not insert a delay between frames.
Example: set hdlc transmit-delay
Transmit Delay Counter [0]?
Example: set line-discipline async
T1 [C] [M]
Displays the T1 configuration or monistoring prompt.
See Configuring Fractional T1/E1 Devices for information
on the commands available at this prompt.
t1
T1 user configuration
T1 Config <NET-1>