Configuring a synchronous serial interface

This section only describes the interface properties configuration. Depending on the network requirements, you might also need to configure the data link layer protocol, IP address, firewall, and interface backup.

To configure a synchronous serial interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter synchronous serial interface view.

interface serial interface-number

N/A

3. (Optional.) Configure the interface description.

description text

By default, the description of a synchronous serial interface is interface name Interface, for example, Serial2/1/0 Interface.

4. Set the link layer protocol.

link-protocol { fr | hdlc | ppp | mfr }

The default is PPP.

5. Set the clock selection mode for the synchronous serial interface.

clock { dteclk1 | dteclk2 | dteclk3 | dteclk4 | dteclk5 | dteclkauto }

By default, the DTE-side clock is dteclk1.

The dteclk5 keyword is not supported in the current software version.

6. Set the MTU.

mtu size

The default is 1500 bytes.

7. Set the CRC mode.

crc { 16 | 32 | none }

The default is 16-bit CRC.

8. Set the number of interframe filling tags.

itf number number

The default is four.

9. (Optional.) Enable local loopback.

loopback

By default, local loopback is disabled.

10. Set the keepalive interval.

timer-hold seconds

The default setting is 10 seconds.

11. Set the maximum number of keepalive attempts.

timer-hold retry retries

The default setting is 5.

The interface determines that the remote end is down if it does not receive a keepalive response after the maximum number of keepalive attempts have been made.

12. Set the line idle-code.

idle-code { 7e | ff }

The default is 0x7E.

13. (Optional.) Set the intended bandwidth for the synchronous serial interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

14. (Optional.) Restore the default settings for the synchronous serial interface.

default

N/A

15. Bring up the synchronous serial interface.

undo shutdown

By default, a synchronous serial interface is up.