Configure Serial Interfaces on SRX devices
In this example you learn how to complete the initial configuration on a serial interface, how to delete a serial interface and how to configure serial interface 8-Port Synchronous Serial GPIM.
For information on installation of a serial PIM in the SRX Series device, see SRX Series Services Gateways for the Branch Physical Interface Modules Hardware Guide.
In this example:
Create a new interface on a serial interface, se-1/0/0.
Set the encapsulation type to ppp and create the basic configuration for se-1/0/0.
Set the logical interface to 0 and logical unit number can range from 0 through 16,384.
Enter additional values for properties you need to configure on the logical interface, such as logical encapsulation or protocol family.
Set IPv4 address 10.10.10.10/24 on se-1/0/0.
When you delete the se-1/0/0 interface, the interface is disabled and removed from the software configuration. Network interfaces remain physically present, and their identifiers continue to appear on J-Web pages.
Basic Serial Interface Configuration
In this example, you create a serial interface called se-1/0/0 and set the encapsulation type to ppp. To quickly configure this example, use CLI quick configuration at the [edit] hierarchy level, and commit from configuration mode.
To configure the serial interface, se-1/0/0:
- Create the interface.[edit]user@host# edit interfaces se-1/0/0
- Set the encapsulation type for se-1/0/0.[edit interfaces se-1/0/0]user@host# set encapsulation ppp
- Add logical interfaces.[edit interfaces se-1/0/0]user@host# edit unit 0
- Specify an IPv4 address for the interface.[edit interfaces se-1/0/0 unit 0]user@host# set family inet address 10.10.10.10/24
After completing the configuration successfully, view the parameters by using the show interfaces se-1/0/0 command.
Delete the Serial Interface
In this example, you delete a serial interface se-1/0/0. No configuration beyond device initialization is required before configuring an interface.
To delete the serial interface, se-1/0/0:
- Specify the interface you want to delete.[edit]user@host# delete se-1/0/0
- After you are done configuring the device, commit the
configuration.[edit]user@host# commit
After completing the configuration successfully, to verify the configuration use the show interfaces command.
Example: Configure serial interface on 8-Port Synchronous Serial GPIM
In this example, you can perform a basic back-to-back device configuration with an 8-port synchronous serial GPIM. The devices are shown as both data communication equipment (DCE) and data terminal equipment (DTE). In certain deployment scenarios, the DTE can be a serial modem or an encryptor or decryptor.
In this scenario, you can configure serial interface using two interfaces. You can configure all ports with different encapsulations, such as Cisco High-Level Data Link Control (HDLC), Frame Relay, and Point-to-Point Protocol (PPP). When Frame Relay is set, then the data link connection identifier (in this example, 111) must also be set. All the eight ports on Device 1 (SRX650) are configured in DTE mode and their respective eight ports on Device 2 (SRX650) are configured in DCE mode.
In this example, for device 1:
Set the encapsulation type to ppp and the logical interface to 0. The logical unit number can range from 0 through 16,384.
Enter additional values for properties you need to configure on the logical interface, such as logical encapsulation or protocol family.
Set the IPv4 address to 10.10.10.1/24 on the serial port.
For Device 2, you follow a procedure similar to Device 1, but you set the clocking mode to dce.
Figure 1 shows the topology used in this example.

To quickly configure this example, CLI at the [edit] hierarchy level:
Device 1
Device 2
To configure the interfaces on Device 1:
- Specify the maximum transmission unit (MTU) value for
the interface.[edit interfaces]user@host# set se-7/0/0 mtu 9192
- Set the encapsulation type.[edit interfaces]user@host# set se-7/0/0 encapsulation ppp
- Set the serial options, such as the clocking mode.[edit interfaces]user@host# set se-7/0/0 serial-options clocking-mode internal
- Set the IPv4 address on the serial port.[edit interfaces]user@host# set se-7/0/0 unit 0 family inet address 10.10.10.1/24
- Specify the static route information.[edit routing-options]user@host# set static route 21.21.21.0/24 next-hop 10.10.10.2
Repeat the same configuration for the other seven ports on Device 1.
- After you are done configuring the device, commit the
configuration.[edit]user@host# commit
To configure the interfaces on Device 2:
- Specify the MTU value for the interface.[edit interfaces]user@host# set se-3/0/0 mtu 9192
- Set the encapsulation type.[edit interfaces]user@host# set se-3/0/0 encapsulation ppp
- Set the serial options, such as the clocking mode.[edit interfaces]user@host# set se-3/0/0 serial-options clocking-mode dce
- Set the IPv4 address on the serial port.[edit interfaces]user@host# set se-3/0/0 unit 0 family inet address 10.10.10.2/24
- Specify the static route information.[edit routing-options]user@host# set static route 20.20.20.0/24 next-hop 10.10.10.1
Repeat the same configuration for the other seven ports on Device 2.
- After you are done configuring the device, commit the
configuration.[edit]user@host# commit
Verification
Purpose
Display information about the parameters configured on the serial interfaces.
Action
You can use the ping tool on each peer address in the network to verify that all interfaces on the device are operational. To verify the link state of all interfaces:
For each interface on the device:
In the J-Web interface, select Troubleshoot > Ping Host.
In the Remote Host box, type the address of the interface for which you want to verify the link state.
Click Start. The output appears on a separate page.
PING 10.10.10.10 : 56 data bytes 64 bytes from 10.10.10.10: icmp_seq=0 ttl=255 time=0.382 ms 64 bytes from 10.10.10.10: icmp_seq=1 ttl=255 time=0.266 ms
If the interface is operational, it generates an ICMP response. If this response is received, the round-trip time, in milliseconds, is listed in the time field.
To verify that the interface properties are correct, use the show interfaces detail command to display a summary of interface information. Verify the following information:
The physical interface is Enabled. If the interface is shown as Disabled, do one of the following:
In the CLI configuration editor, delete the disable statement at the [edit interfaces se-1/0/0] level of the configuration hierarchy.
In the J-Web configuration editor, clear the Disable check box on the Interfaces > se-1/0/0 page.
The physical link is Up. A link state of Down indicates a problem with the interface module, interface port, or physical connection (link-layer errors).
The Last Flapped time is an expected value. It indicates the last time the physical interface became unavailable and then available again. Unexpected flapping indicates likely link-layer errors.
The traffic statistics reflect expected input and output rates. Verify that the number of inbound and outbound bytes and packets matches expected throughput for the physical interface. To clear the statistics and see only new changes, use the clear interfaces statistics se-1/0/0 command.
To verify and that the interface link status is up, use the enter the show interface terse se-7/0/* command:
user@srx650-1> show interface terse se-7/0/*Interface Admin Link Proto Local Remote se-7/0/0 up up se-7/0/0.0 up up inet 10.10.10.1/24 se-7/0/1 up up se-7/0/1.0 up up inet 11.11.11.1/24 se-7/0/2 up up se-7/0/2.0 up up inet 12.12.12.1/24 se-7/0/3 up up se-7/0/3.0 up up inet 13.13.13.1/24 se-7/0/4 up up se-7/0/4.0 up up inet 14.14.14.1/24 se-7/0/5 up up se-7/0/5.0 up up inet 15.15.15.1/24 se-7/0/6 up up se-7/0/6.0 up up inet 16.16.16.1/24 se-7/0/7 up up se-7/0/7.0 up up inet 17.17.17.1/24
The output displays a list of all interfaces configured. If the Link column displays up for all interfaces, the configuration is correct. This verifies that the GPIM is up and end-to-end ping is working.
To verify the interface statistics for DCE, use the show interface se-7/0/0 extensive | no-more command:
user@srx650-1>show interface se-7/0/0 extensive | no-morePhysical interface: se-7/0/0, Enabled, Physical link is Up Interface index: 161, SNMP ifIndex: 592, Generation: 164 Type: Serial, Link-level type: PPP, MTU: 1504, Maximum speed: 8mbps Device flags : Present Running Interface flags: Point-To-Point Internal: 0x0 Link flags : Keepalives Hold-times : Up 0 ms, Down 0 ms Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive statistics: Input : 123 (last seen 00:00:02 ago) Output: 123 (last sent 00:00:01 ago) LCP state: Opened NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls: Not-configured CHAP state: Closed PAP state: Closed CoS queues : 8 supported, 8 maximum usable queues Last flapped : 2011-06-27 22:57:24 PDT (00:20:59 ago) Statistics last cleared: Never Traffic statistics: Input bytes : 23792 160 bps Output bytes : 22992 536 bps Input packets: 404 0 pps Output packets: 409 0 pps Input errors: Errors: 3, Drops: 0, Framing errors: 3, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 0 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 409 409 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Serial media information: Line protocol: eia530 Resync history: Sync loss count: 0 Data signal: Rx Clock: OK Control signals: Local mode: DCE To DTE: CTS: up, DCD: up, DSR: up From DTE: DTR: up, RTS: up DCE loopback override: Off Clocking mode: internal Loopback: none Tx clock: non-invert Line encoding: nrz Packet Forwarding Engine configuration: Destination slot: 7 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 7600000 95 0 low none 3 network-control 5 400000 5 0 low none continue................................................................................ ..........................................................................................
The output displays a list of all DCE verification parameters and the mode configured. If the local mode displays DCE, the configuration is correct.
To verify the interface statistics for DTE, use the show interface se-3/0/0 extensive | no-more command:
user@srx650-2>show interfaces se-3/0/0 extensive | no-morePhysical interface: se-3/0/0, Enabled, Physical link is Up Interface index: 168, SNMP ifIndex: 594, Generation: 171 Type: Serial, Link-level type: PPP, MTU: 1504, Maximum speed: 8mbps Device flags : Present Running Interface flags: Point-To-Point Internal: 0x0 Link flags : Keepalives Hold-times : Up 0 ms, Down 0 ms Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive statistics: Input : 242 (last seen 00:00:09 ago) Output: 242 (last sent 00:00:10 ago) LCP state: Opened NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls: Not-configured CHAP state: Closed PAP state: Closed CoS queues : 8 supported, 8 maximum usable queues Last flapped : 2011-06-27 22:52:06 PDT (00:40:41 ago) Statistics last cleared: Never Traffic statistics: Input bytes : 44582 0 bps Output bytes : 42872 0 bps Input packets: 776 0 pps Output packets: 779 0 pps Input errors: Errors: 6, Drops: 0, Framing errors: 6, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 2 2 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 777 777 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Serial media information: Line protocol: eia530 Resync history: Sync loss count: 0 Data signal: Rx Clock: OK Control signals: Local mode: DTE To DCE: DTR: up, RTS: up From DCE: CTS: up, DCD: up, DSR: up Clocking mode: loop-timed Loopback: none Tx clock: non-invert Line encoding: nrz Packet Forwarding Engine configuration: Destination slot: 3 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 7600000 95 0 low none 3 network-control 5 400000 5 0 low none continue ........................................................................... .....................................................................................
The output displays a list of all DTE verification parameters and the mode configured. If the local mode displays DTE, the configuration is correct.