Interface Naming Conventions

This section discusses the following topics:

Physical Part of an Interface Name

The M Series and T Series routers use one convention, whereas the J Series router uses another, as described in the following sections:

M Series and T Series Router Interface Names

On M Series and T Series router, when you display information about an interface, you specify the interface type, the slot in which the Flexible PIC Concentrator (FPC) is installed, the slot on the FPC in which the Physical Interface Card (PIC) is located, and the configured port number.

In the physical part of the interface name, a hyphen (-) separates the media type from the FPC number, and a slash (/) separates the FPC, PIC, and port numbers:

type-fpc/pic/port

Note: Exceptions to the type-fpc/pic/port physical description include the aggregated Ethernet and aggregated SONET/SDH interfaces, which use the syntax aenumber  and asnumber, respectively.

MX Series Router Interface Names

On MX Series routers when you display information about an interface, you specify the interface type, the slot in which the Dense Port Concentrator (DPC) is installed, the slot on the DPC in which the Physical Interface Card (PIC) is located, and the configured port number.

In the physical part of the interface name, a hyphen (-) separates the media type from the FPC number, and a slash (/) separates the DPC, PIC, and port numbers:

type-dpc/pic/port

Note: Although the MX Series routers use DPCs, command syntax in this book is shown as fpc/pic/port for simplicity.

J Series Interface Names

On J Series routers, when you display information about an interface, you specify the interface type, the slot in which the Physical Interface Module (PIM) is installed, 0, and the configured port number.

In the physical part of the interface name, a hyphen (-) separates the media type from the PIM number, and a slash (/) separates the PIM, 0, and port numbers:

type-pim/0/port

Note: An exception to the type-pim/0/port physical description is the Integrated Services Digital Network (ISDN) dialer interface, which uses the syntax dlnumber.

Logical Part of an Interface Name

The logical unit part of the interface name corresponds to the logical unit number, which can be a number from 0 through 16384. In the virtual part of the name, a period (.) separates the port and logical unit numbers:

Channel Identifier Part of an Interface Name

The channel identifier part of the interface name is required only on channelized interfaces. For channelized interfaces, channel 0 identifies the first channelized interface. For channelized intelligent queuing (IQ) interfaces, channel 1 identifies the first channelized interface.

Note: Depending on the type of channelized interface, up to three levels of channelization can be specified. For more information, see the JUNOS Network Interfaces Configuration Guide.

A colon (:) separates the physical and virtual parts of the interface name:

Wildcard Characters in Interface Names

In the show interfaces and clear interfaces commands, you can use wildcard characters in the interface-name option to specify groups of interface names without having to type each name individually. Table 3 lists the available wildcard characters. You must enclose all wildcard characters except the asterisk (*) in quotation marks (“ ”).

Table 3: Wildcard Characters for Specifying Interface Names

Wildcard Character

Description

* (asterisk)

Match any string of characters in that position in the interface name. For example, so* matches all SONET/SDH interfaces.

“[character<character...>]”

Match one or more individual characters in that position in the interface name. For example, so-“[03]”* matches all SONET/SDH interfaces in slots 0 and 3.

“[!character<character...>]”

Match all characters except the ones included in the brackets. For example, so-“[!03]”* matches all SONET/SDH interfaces except those in slots 0 and 3.

“[character1-character1character2]”

Match a range of characters. For example, so-“[0-3]”* matches all SONET/SDH interfaces in slots 0, 1, 2, and 3.

“[!character1-character2]”

Match all characters that are not in the specified range of characters. For example, so-“[!0-3]”* matches all SONET/SDH interfaces in slots 4, 5, 6, and 7.

The following examples illustrate the use of wildcards with operational mode commands:

show interfaces terse (SONET/SDH Interfaces)


user@host> show interfaces terse so*
Interface       Admin Link Proto Local                 Remote
so-1/0/0        up    up
so-1/0/0.0      up    up   inet  192.168.8.192     --> 192.168.2.250
                           iso
so-1/1/0        up    down
so-1/1/0.0      up    down inet  192.168.8.109/30
                           iso
so-1/1/1        up    up
so-1/1/1.0      up    down inet  192.168.8.113/30
                           iso
                           mpls
...
so-1/3/3        up    down
so-5/0/0        up    up
so-5/0/0.0      up    down inet  192.168.8.208     --> 192.168.8.209
                           iso
                           mpls
so-5/0/1        down  down
so-5/0/2        up    down
...

show interfaces terse (SONET/SDH Interfaces in Slot 1)


user@host> show interfaces terse so-“[1]”*
Interface       Admin Link Proto Local                 Remote
so-1/0/0        up    up
so-1/0/0.0      up    up   inet  192.168.2.125     --> 192.168.2.250
                           iso
so-1/1/0        up    down
so-1/1/0.0      up    down inet  192.168.2.150/30
                           iso
so-1/1/1        up    up
so-1/1/1.0      up    down inet  192.168.2.175/30
                           iso
                           mpls
so-1/1/2        up    up
so-1/1/2.0      up    down inet  192.168.2.110/30
                           iso
so-1/2/0        up    down

show interfaces terse (All Interface Types Starting with “S” or “G”)


user@host> show interfaces terse “[sg]”*
Interface       Admin Link Proto Local                 Remote
so-1/0/0        up    up
so-1/0/0.0      up    up   inet  192.168.2.125     --> 192.168.2.250
                           iso
so-1/1/0        up    down
so-1/1/0.0      up    down inet  192.168.2.150/30
                           iso
so-1/1/1        up    up
so-1/1/1.0      up    down inet  192.168.2.175/30
                           iso
                           mpls
so-1/1/2        up    up
...
so-5/1/3        up    down
gre             up    up