Configuration procedure
Configuring the asynchronous serial interface
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter synchronous/asynchronous serial interface view or asynchronous interface view. |
| To use a synchronous/asynchronous serial interface, you must use a connector to connect the interface to the destination device. |
3. Set the operating mode to flow mode. | async-mode flow | By default, an asynchronous serial interface operates in protocol mode. |
4. (Optional.) Disable level detection. | undo detect dsr-dtr | By default, level detection is enabled. Whether this command is required depends on the destination device. |
5. Return to system view. | quit | N/A |
Configuring the AUX/TTY line
Step | Command | Remarks |
---|---|---|
1. Enter AUX or TTY line view. | line { first-number1 [ last-number1 ] | { aux | tty } first-number2 [ last-number2 ] } | N/A |
2. (Optional.) Enable the terminal service. | shell | By default, the terminal service is enabled on all user lines. |
3. Set the transmission rate. | speed speed-value | By default, the transmission rate is 9600 bps. The user line must use the same transmission rate as the destination device. |
4. Enable stop bit setting consistency detection. | stopbit-error intolerance | By default, stop bit setting consistency detection is disabled. |
5. Specify the number of stop bits. | stopbits { 1 | 1.5 | 2 } | By default, the number of stop bits is 1. As a best practice, configure the user line to use the same number of stop bits as the destination device. |
Configuring SSH redirect
Step | Command | Remarks |
---|---|---|
1. Enable SSH redirect. | ssh redirect enable | By default, SSH redirect is disabled. |
2. (Optional.) Specify an SSH redirect listening port. | ssh redirect listen-port port-number | By default, the listening port number of SSH redirect is the absolute user line number plus 4000. |
3. (Optional.) Set the idle-timeout timer for the redirected connection. | ssh redirect timeout time | The default idle-timeout timer is 360 seconds. |
4. (Optional.) Terminate the redirected SSH connection. | ssh redirect disconnect | N/A |
5. Return to system view. | quit | N/A |
6. (Optional.) Associate the SSH redirect listening port with an IP address. | ssh ip alias ip-address port-number | By default, an SSH redirect listening port is not associated with an IP address. |