Network Interfaces Fundamentals
Network Interfaces Fundamentals
Junos OS
Published
2020-06-26
ii
Juniper Networks, the Juniper Networks logo, Juniper, and Junos are registered trademarks of Juniper Networks, Inc. in
the United States and other countries. All other trademarks, service marks, registered marks, or registered service marks
are the property of their respective owners.
Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right
to change, modify, transfer, or otherwise revise this publication without notice.
®
Junos OS Interfaces Fundamentals for Routing Devices
Copyright © 2020 Juniper Networks, Inc. All rights reserved.
The information in this document is current as of the date on the title page.
Juniper Networks hardware and software products are Year 2000 compliant. Junos OS has no known time-related
limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036.
The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use with)
Juniper Networks software. Use of such software is subject to the terms and conditions of the End User License Agreement
(“EULA”) posted at https://support.juniper.net/support/eula/. By downloading, installing or using such software, you
agree to the terms and conditions of that EULA.
iii
Table of Contents
About the Documentation | xvi
1 Router Interfaces
Router Interfaces Overview | 24
Types of Interfaces | 25
TX Matrix Plus and T1600 Router (Routing Matrix) Management Ethernet Interfaces | 70
| 75
Operational Behavior of Interfaces When the Same IPv4 Address Is Assigned to Them | 171
vii
Displaying the Configuration for Unnumbered Ethernet Interface as the Next Hop for a
Static Route | 184
2 Other Interfaces
Discard Interfaces | 210
Example: Configuring Two Addresses on the Loopback Interface with Host Routes | 234
Example: Configuring an IPv4 and an IPv6 Address on the Loopback Interface with
Subnetwork Routes | 235
ix
4 Configuration Statements
accounting | 286
accounting-profile | 287
acfc | 288
activation-delay | 290
activation-priority | 291
backup-options | 294
callback | 295
callback-wait-period | 296
caller | 297
calling-number | 298
clock-rate | 299
clocking-mode | 300
control-polarity | 301
control-signal | 302
cts | 303
cts-polarity | 304
dcd | 307
dcd-polarity | 308
deactivation-delay | 309
dce-options | 310
xi
destination-class-usage | 320
destination-profile | 321
dial-string | 322
dialer | 323
dot1x | 324
dsr | 327
dsr-polarity | 328
dte-options | 329
dtr | 330
dtr-circuit | 331
dtr-polarity | 332
encoding | 333
f-max-period | 334
forward-and-send-to-re | 335
forward-only | 336
hierarchical-policer | 337
idle-timeout | 338
ignore-all | 340
incoming-map | 341
indication | 342
indication-polarity | 343
init-command-string | 344
initial-route-check | 345
input-list | 346
interface-range | 348
interface-transmit-statistics | 350
interface-shared-with | 352
isdn-options | 353
keep-address-and-control | 354
key | 355
lcp-max-conf-req | 356
lcp-restart-timer | 357
line-protocol | 358
line-rate | 359
load-interval | 360
load-threshold | 361
local-password | 362
loopback-clear-timer | 364
modem-options | 365
xiii
monitor-session | 366
multipoint | 367
ncp-max-conf-req | 368
ncp-restart-timer | 369
operating-mode | 370
pfc | 372
point-to-point | 373
pool | 375
preferred-source-address | 376
redial-delay | 378
rts | 379
rts-polarity | 380
serial-options | 381
shdsl-options | 383
snr-margin | 384
snext | 385
spid1 | 386
spid2 | 387
static-tei-val | 388
switch-type | 389
t310 | 390
tei-option | 391
xiv
then | 392
tm | 393
tm-polarity | 394
transmit-clock | 398
watch-list | 402
5 Operational Commands
Common Output Fields Description | 404
IN THIS SECTION
Use this guide to configure, monitor and troubleshoot various interfaces installed on a Juniper Networks
router with the Junos OS command-line interface (CLI).
®
To obtain the most current version of all Juniper Networks technical documentation, see the product
documentation page on the Juniper Networks website at https://www.juniper.net/documentation/.
If the information in the latest release notes differs from the information in the documentation, follow the
product Release Notes.
Juniper Networks Books publishes books by Juniper Networks engineers and subject matter experts.
These books go beyond the technical documentation to explore the nuances of network architecture,
deployment, and administration. The current list can be viewed at https://www.juniper.net/books.
If you want to use the examples in this manual, you can use the load merge or the load merge relative
command. These commands cause the software to merge the incoming configuration into the current
candidate configuration. The example does not become active until you commit the candidate configuration.
If the example configuration contains the top level of the hierarchy (or multiple hierarchies), the example
is a full example. In this case, use the load merge command.
xvii
If the example configuration does not start at the top level of the hierarchy, the example is a snippet. In
this case, use the load merge relative command. These procedures are described in the following sections.
1. From the HTML or PDF version of the manual, copy a configuration example into a text file, save the
file with a name, and copy the file to a directory on your routing platform.
For example, copy the following configuration to a file and name the file ex-script.conf. Copy the
ex-script.conf file to the /var/tmp directory on your routing platform.
system {
scripts {
commit {
file ex-script.xsl;
}
}
}
interfaces {
fxp0 {
disable;
unit 0 {
family inet {
address 10.0.0.1/24;
}
}
}
}
2. Merge the contents of the file into your routing platform configuration by issuing the load merge
configuration mode command:
[edit]
user@host# load merge /var/tmp/ex-script.conf
load complete
xviii
Merging a Snippet
1. From the HTML or PDF version of the manual, copy a configuration snippet into a text file, save the
file with a name, and copy the file to a directory on your routing platform.
For example, copy the following snippet to a file and name the file ex-script-snippet.conf. Copy the
ex-script-snippet.conf file to the /var/tmp directory on your routing platform.
commit {
file ex-script-snippet.xsl; }
2. Move to the hierarchy level that is relevant for this snippet by issuing the following configuration mode
command:
[edit]
user@host# edit system scripts
[edit system scripts]
3. Merge the contents of the file into your routing platform configuration by issuing the load merge
relative configuration mode command:
For more information about the load command, see CLI Explorer.
Documentation Conventions
Laser warning Alerts you to the risk of personal injury from a laser.
Table 2 on page xix defines the text and syntax conventions used in this guide.
Bold text like this Represents text that you type. To enter configuration mode, type
the configure command:
user@host> configure
Fixed-width text like this Represents output that appears on user@host> show chassis alarms
the terminal screen.
No alarms currently active
Italic text like this • Introduces or emphasizes important • A policy term is a named structure
new terms. that defines match conditions and
• Identifies guide names. actions.
Italic text like this Represents variables (options for Configure the machine’s domain
which you substitute a value) in name:
commands or configuration
[edit]
statements.
root@# set system domain-name
domain-name
Text like this Represents names of configuration • To configure a stub area, include
statements, commands, files, and the stub statement at the [edit
directories; configuration hierarchy protocols ospf area area-id]
levels; or labels on routing platform hierarchy level.
components. • The console port is labeled
CONSOLE.
< > (angle brackets) Encloses optional keywords or stub <default-metric metric>;
variables.
# (pound sign) Indicates a comment specified on the rsvp { # Required for dynamic MPLS
same line as the configuration only
statement to which it applies.
[ ] (square brackets) Encloses a variable for which you can community name members [
substitute one or more values. community-ids ]
GUI Conventions
xxi
Bold text like this Represents graphical user interface • In the Logical Interfaces box, select
(GUI) items you click or select. All Interfaces.
• To cancel the configuration, click
Cancel.
> (bold right angle bracket) Separates levels in a hierarchy of In the configuration editor hierarchy,
menu selections. select Protocols>Ospf.
Documentation Feedback
We encourage you to provide feedback so that we can improve our documentation. You can use either
of the following methods:
• Online feedback system—Click TechLibrary Feedback, on the lower right of any page on the Juniper
Networks TechLibrary site, and do one of the following:
• Click the thumbs-up icon if the information on the page was helpful to you.
• Click the thumbs-down icon if the information on the page was not helpful to you or if you have
suggestions for improvement, and use the pop-up form to provide feedback.
Technical product support is available through the Juniper Networks Technical Assistance Center (JTAC).
If you are a customer with an active Juniper Care or Partner Support Services support contract, or are
xxii
covered under warranty, and need post-sales technical support, you can access our tools and resources
online or open a case with JTAC.
• JTAC policies—For a complete understanding of our JTAC procedures and policies, review the JTAC User
Guide located at https://www.juniper.net/us/en/local/pdf/resource-guides/7100059-en.pdf.
• JTAC hours of operation—The JTAC centers have resources available 24 hours a day, 7 days a week,
365 days a year.
For quick and easy problem resolution, Juniper Networks has designed an online self-service portal called
the Customer Support Center (CSC) that provides you with the following features:
• Find solutions and answer questions using our Knowledge Base: https://kb.juniper.net/
To verify service entitlement by product serial number, use our Serial Number Entitlement (SNE) Tool:
https://entitlementsearch.juniper.net/entitlementsearch/
You can create a service request with JTAC on the Web or by telephone.
• Visit https://myjuniper.juniper.net.
Router Interfaces
IN THIS SECTION
Types of Interfaces | 25
TX Matrix Plus and T1600 Router (Routing Matrix) Management Ethernet Interfaces | 70
The interfaces on a router provide network connectivity to the router. This topic discusses about the
various router interfaces supported on Junos like, transient interfaces, services interfaces, container
interfaces, and internal ethernet interfaces. This topic also provides basic interface related information
like, interface naming conventions, overview of interface encapsulation, and overview of interface
descriptors.
25
Routers typically contain several different types of interfaces suited to various functions. For the interfaces
on a router to function, you must configure them. Specify the interface location (that is, the slot where
the Flexible PIC Concentrator [FPC], Dense Port Concentrator [DPC], or Modular Port Concentrator [MPC]
is installed. You must also specify the location of the Physical Interface Card [PIC] or Modular Interface
Card [MIC] , and the interface type, for example, SONET/SDH, Asynchronous Transfer Mode [ATM], or
Ethernet). Finally, you must specify the encapsulation type and any interface-specific properties that may
apply.
You can configure interfaces that are currently present in the router, as well as interfaces that are not
currently present but that are expected to be added in the future. Junos OS detects the interface once
the hardware has been installed and applies the pre-set configuration to it.
To see which interfaces are currently installed in the router, issue the show interfaces terse operational
mode command. If an interface is listed in the output, it is physically installed in the router. If an interface
is not listed in the output, it is not installed in the router.
For information about which interfaces are supported on your router, see your router’s Interface Module
Reference.
You can configure Junos OS class-of-service (CoS) properties to provide a variety of classes of service for
different applications, including multiple forwarding classes for managing packet transmission, congestion
management, and CoS-based forwarding. For more information about configuring CoS properties, see the
Class of Service User Guide (Routers and EX9200 Switches).
Types of Interfaces
Interfaces can be permanent or transient, and are used for networking or services:
Permanent interfaces in the router consist of management Ethernet interfaces and internal Ethernet
interfaces, which are described separately in the following topics:
• Transient interfaces—Interfaces that can be inserted into or removed from the router depending on your
network configuration needs.
• Services interfaces—Interfaces that provide specific capabilities for manipulating traffic before it is
delivered to its destination.
• Container interfaces—Interfaces that support automatic protection switching (APS) on physical SONET
links using a virtual container infrastructure.
Junos OS internally generates nonconfigurable interfaces which are described in Interfaces Command
Reference and Services Interfaces.
SEE ALSO
IN THIS SECTION
Each interface has an interface name, which specifies the media type, the slot in which the FPC or DPC is
located, the location on the FPC where the PIC is installed, and the PIC or DPC port. The interface name
uniquely identifies an individual network connector in the system. You use the interface name when
configuring interfaces and when enabling various functions and properties, such as routing protocols, on
individual interfaces. The system uses the interface name when displaying information about the interface,
for example, in the show interfaces command.
The interface name is represented by a physical part, a channel part, and a logical part in the following
format:
physical<:channel>.logical
The channel part of the name is optional for all interfaces except channelized DS3, E1, OC12, and STM1
interfaces.
The EX Series, QFX Series, NFX Series, OCX1100, QFabric System, and EX4600 devices use a naming
convention for defining the interfaces that are similar to that of other platforms running under Juniper
Networks Junos OS. For more information, see Understanding Interface Naming Conventions.
The physical part of an interface name identifies the physical device, which corresponds to a single physical
network connector.
28
NOTE:
The internal interface is dependent on the Routing Engine. To identify if the Routing Engine is
using this type of interface, use the following command:
For more information on the Routing Engines that each chassis supports, the first supported
release for the Routing Engine in the specified chassis, the management Ethernet interface, and
the internal Ethernet interfaces for each Routing Engine, please refer the link titled Supported
Routing Engines by Chassis under Related Documentation section.
type-fpc/pic/port
type is the media type, which identifies the network device that can be one of the following:
• ae—Aggregated Ethernet interface. This is a virtual aggregated link and has a different naming format
from most PICs; for more information, see Aggregated Ethernet Interfaces Overview.
• as—Aggregated SONET/SDH interface. This is a virtual aggregated link and has a different naming format
from most PICs; for more information, see Configuring Aggregated SONET/SDH Interfaces.
• at—ATM1 or ATM2 intelligent queuing (IQ) interface or a virtual ATM interface on a circuit emulation
(CE) interface.
29
• bcm—The bcm0 internal Ethernet process is supported on specific Routing engines for various M series
and T series routers. For more information please refer the link titled Supported Routing Engines by Chassis
under Related Documentation section.
• cau4—Channelized AU-4 IQ interface (configured on the Channelized STM1 IQ or IQE PIC or Channelized
OC12 IQ and IQE PICs).
• ci—Container interface.
• coc1—Channelized OC1 IQ interface (configured on the Channelized OC12 IQ and IQE or Channelized
OC3 IQ and IQE PICs).
• coc3—Channelized OC3 IQ interface (configured on the Channelized OC3 IQ and IQE PICs).
• coc12—Channelized OC12 IQ interface (configured on the Channelized OC12 IQ and IQE PICs).
• coc48—Channelized OC48 interface (configured on the Channelized OC48 and Channelized OC48 IQE
PICs).
• cstm4—Channelized STM4 IQ interface (configured on the Channelized OC12 IQ and IQE PICs).
• ct1—Channelized T1 IQ interface (configured on the Channelized DS3 IQ and IQE PICs, Channelized
OC3 IQ and IQE PICs, Channelized OC12 IQ and IQE PICs, or Channelized T1 IQ PIC).
• ct3—Channelized T3 IQ interface (configured on the Channelized DS3 IQ and IQE PICs, Channelized
OC3 IQ and IQE PICs, or Channelized OC12 IQ and IQE PICs).
• demux—Interface that supports logical IP interfaces that use the IP source or destination address to
demultiplex received packets. Only one demux interface (demux0) exists per chassis. All demux logical
interfaces must be associated with an underlying logical interface.
• dfc—Interface that supports dynamic flow capture processing on T Series or M320 routers containing
one or more Monitoring Services III PICs. Dynamic flow capture enables you to capture packet flows
on the basis of dynamic filtering criteria. Specifically, you can use this feature to forward passively
monitored packet flows that match a particular filter list to one or more destinations using an on-demand
control protocol.
• ds—DS0 interface (configured on the Multichannel DS3 PIC, Channelized E1 PIC, Channelized OC3 IQ
and IQE PICs, Channelized OC12 IQ and IQE PICs, Channelized DS3 IQ and IQE PICs, Channelized E1
IQ PIC, Channelized STM1 IQ or IQE PIC, or Channelized T1 IQ).
• dsc—Discard interface.
• em—Management and internal Ethernet interfaces. For M Series routers, MX Series routers, T Series
routers, and TX Series routers, you can use the show chassis hardware command to display hardware
information about the router, including its Routing Engine model. To determine which management
interface is supported on your router and Routing Engine combination, see Understanding Management
Ethernet Interfaces and Supported Routing Engines by Router.
• es—Encryption interface.
• et—100-Gigabit Ethernet interfaces (10, 40, and 100-Gigabit Ethernet interface for PTX Series Packet
Transport Routers only).
• fxp—Management and internal Ethernet interfaces. For M Series routers, MX Series routers, T Series
routers, and TX Series routers, you can use the show chassis hardware command to display hardware
information about the router, including its Routing Engine model. To determine which management
interface is supported on your router and Routing Engine combination, see Understanding Management
Ethernet Interfaces and Supported Routing Engines by Router.
NOTE:
• The XENPAK 10-Gigabit Ethernet interface PIC, which is supported only on M series routers,
is configured using the ge interface naming convention instead of the xe interface naming
convention. Refer the following show commands for more information:
..
FPC 4 REV 02 710-015839 CZ1853 M120 FPC Type
3
PIC 0 REV 09 750-009567 NH1857 1x
10GE(LAN),XENPAK
Xcvr 0 REV 01 740-012045 535TFZX6 XENPAK-SR
unit 0 {
family inet {
address 100.0.0.1/24;
}
}
• In MX and SRX series devices, the 1 and 10-Gigabit SFP or SFP+ optical interfaces are always
named as xe even if a 1-Gigabit SFP is inserted. However, in EX and QFX series devices, the
interface name is shown as ge or xe based on the speed of the optical device inserted.
• gre—Internally generated interface that is configurable only as the control channel for Generalized MPLS
(GMPLS). For more information about GMPLS, see the MPLS Applications User Guide.
NOTE: You can configure GRE interfaces (gre-x/y/z) only for GMPLS control channels. GRE
interfaces are not supported or configurable for other applications..
• ixgbe—The internal Ethernet process ixgbe0 and ixgbe1 are used by the RE-DUO-C2600-16G Routing
Engine, which is supported on TX Matrix Plus and PTX5000.
32
• iw—Logical interfaces associated with the endpoints of Layer 2 circuit and Layer 2 VPN connections
(pseudowire stitching Layer 2 VPNs). For more information about VPNs, see the Junos OS VPNs Library
for Routing Devices.
• lo—Loopback interface. The Junos OS automatically configures one loopback interface (lo0). The logical
interface lo0.16383 is a nonconfigurable interface for router control traffic.
• mo—Monitoring services interface (including monitoring services and monitoring services II). The logical
interface mo-fpc/pic/port.16383 is an internally generated, nonconfigurable interface for router control
traffic.
• ms—Multiservices interface.
• mt—Multicast tunnel interface (internal router interface for VPNs). If your router has a Tunnel PIC, the
Junos OS automatically configures one multicast tunnel interface (mt) for each virtual private network
(VPN) you configure. Although it is not necessary to configure multicast interfaces, you can use the
multicast-only statement to configure the unit and family so that the tunnel can transmit and receive
multicast traffic only. For more information, see multicast-only.
• oc3—OC3 IQ interface (configured on the Channelized OC12 IQ and IQE PICs or Channelized OC3 IQ
and IQE PICs).
• pe—Interface on the first-hop PIM router that encapsulates packets destined for the RP router.
• rlsq—Container interface, numbered from 0 through 127, used to tie the primary and secondary LSQ
PICs together in high availability configurations. Any failure of the primary PIC results in a switch to the
secondary PIC and vice versa.
• so—SONET/SDH interface.
33
• xe—10-Gigabit Ethernet interface. Some older 10-Gigabit Ethernet interfaces use the ge media type
(rather than xe) to identify the physical part of the network device.
• xt—Logical interface for Protected System Domains to establish a Layer 2 tunnel connection.
fpc identifies the number of the FPC or DPC card on which the physical interface is located. Specifically,
it is the number of the slot in which the card is installed.
M40, M40e, M160, M320, M120, T320, T640, and T1600 routers each have eight FPC slots that are
numbered 0 through 7, from left to right as you are facing the front of the chassis. For information about
compatible FPCs and PICs, see the hardware guide for your router.
The M20 router has four FPC slots that are numbered 0 through 3, from top to bottom as you are facing
the front of the chassis. The slot number is printed adjacent to each slot.
MX Series routers support DPCs, FPCs, and Modular Interface Cards (MICs). For information about
compatible DPCs, FPCs, PICs, and MICs, see the MX Series Interface Module Reference.
For M5, M7i, M10, and M10i routers, the FPCs are built into the chassis; you install the PICs into the
chassis.
The M5 and M7i routers have space for up to four PICs. The M7i router also comes with an integrated
Tunnel PIC, or an optional integrated AS PIC, or an optional integrated MS PIC.
The M10 and M10i routers have space for up to eight PICs.
For more information about interface naming for a routing matrix, see “Interface Naming for a Routing
Matrix Based on a TX Matrix Router” on page 35.
pic identifies the number of the PIC on which the physical interface is located. Specifically, it is the number
of the PIC location on the FPC. FPCs with four PIC slots are numbered 0 through 3. FPCs with three PIC
slots are numbered 0 through 2. The PIC location is printed on the FPC carrier board. For PICs that occupy
more than one PIC slot, the lower PIC slot number identifies the PIC location.
port identifies a specific port on a PIC or DPC. The number of ports varies depending on the PIC. The port
numbers are printed on the PIC.
The logical unit part of the interface name corresponds to the logical unit number. The range of number
available varies for different interface types. See unit for current range values.
In the virtual part of the name, a period (.) separates the port and logical unit numbers:
• Other platforms:
type-fpc/pic/port.logical
In the physical part of the name, a hyphen (-) separates the media type from the FPC number, and a slash
(/) separates the FPC, PIC, and port numbers.
In the virtual part of the name, a period (.) separates the channel and logical unit numbers.
A colon (:) separates the physical and virtual parts of the 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 IQ and channelized IQE
interfaces, channel 1 identifies the first channelized interface. A nonconcatenated (that is, channelized)
SONET/SDH OC48 interface has four OC12 channels, numbered 0 through 3.
To determine which types of channelized PICs are currently installed in the router, use the show chassis
hardware command from the top level of the command-line interface (CLI). Channelized IQ and IQE PICs
are listed in the output with “intelligent queuing IQ” or “enhanced intelligent queuing IQE” in the description.
For more information, see Channelized Interfaces Overview.
35
For ISDN interfaces, you specify the B-channel in the form bc-pim/0/port:n. n is the B-channel ID and can
be 1 or 2. You specify the D-channel in the form dc-pim/0/port:0.
NOTE: For ISDN, the B-channel and D-channel interfaces do not have any configurable
parameters. However, when interface statistics are displayed, B-channel and D-channel interfaces
have statistical values.
NOTE: In the Junos OS implementation, the term logical interfaces generally refers to interfaces
you configure by including the unit statement at the [edit interfaces interface-name] hierarchy
level. Logical interfaces have the .logical descriptor at the end of the interface name, as in
ge-0/0/0.1 or t1-0/0/0:0.1, where the logical unit number is 1.
Although channelized interfaces are generally thought of as logical or virtual, the Junos OS sees
T3, T1, and NxDS0 interfaces within a channelized IQ or IQE PIC as physical interfaces. For
example, both t3-0/0/0 and t3-0/0/0:1 are treated as physical interfaces by the Junos OS. In
contrast, t3-0/0/0.2 and t3-0/0/0:1.2 are considered logical interfaces because they have the
.2 at the end of the interface names.
A routing matrix based on a Juniper Networks TX Matrix router is a multichassis architecture composed
of one TX Matrix router and from one to four interconnected T640 routers. From the perspective of the
user interface, the routing matrix appears as a single router. The TX Matrix router controls all the T640
routers, as shown in Figure 1 on page 36.
36
TX Matrix
(SCC)
g003173
Data path
Control path
A TX Matrix router is also referred to as a switch-card chassis (SCC). The CLI uses scc to refer to the TX
Matrix router. A T640 router in a routing matrix is also referred to as a line-card chassis (LCC). The CLI uses
lcc as a prefix to refer to a specific T640 router.
LCCs are assigned numbers 0 through 3, depending on the hardware setup and connectivity to the TX
Matrix router. For more information, see the TX Matrix Router Hardware Guide. A routing matrix can have
up to four T640 routers, and each T640 router has up to eight FPCs. Therefore, the routing matrix as a
whole can have up to 32 FPCs (0 through 31).
type-fpc/pic/port
When you specify the fpc number for a T640 router in a routing matrix, the Junos OS determines which
T640 router contains the specified FPC based on the following assignment:
For example, the 1 in se-1/0/0 refers to FPC hardware slot 1 on the T640 router labeled lcc0. The 11 in
t1-11/2/0 refers to FPC hardware slot 3 on the T640 router labeled lcc1. The 20 in so-20/0/1 refers to
FPC hardware slot 4 on the T640 router labeled lcc2. The 31 in t3-31/1/0 refers to FPC hardware slot 7
on the T640 router labeled lcc3.
Table 3 on page 37 summarizes the FPC numbering for a T640 router in a routing matrix.
37
0 0 through 7
1 8 through 15
2 16 through 23
3 24 through 31
Table 4 on page 37 lists each FPC hardware slot and the corresponding configuration numbers for LCCs
0 through 3.
LCC 0
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 0 1 2 3 4 5 6 7
Numbers
LCC 1
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 8 9 10 11 12 13 14 15
Numbers
LCC 2
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 16 17 18 19 20 21 22 23
Numbers
LCC 3
Hardware Slots 0 1 2 3 4 5 6 7
38
Table 4: One-to-One FPC Numbering for T640 Routers in a Routing Matrix (continued)
Configuration 24 25 26 27 28 29 30 31
Numbers
A routing matrix based on a Juniper Networks TX Matrix Plus Router is a multichassis architecture composed
of one TX Matrix Plus router and from one to four interconnected T1600 routers. From the perspective
of the user interface, the routing matrix appears as a single router. The TX Matrix Plus router controls all
the T1600 routers, as shown in Figure 2 on page 38.
TX Matrix
Plus
Router
(SFC)
Data path
Control path
A TX Matrix Plus router is also referred to as a switch-fabric chassis (SFC). The CLI uses sfc to refer to the
TX Matrix Plus router. A T1600 router in a routing matrix is also referred to as a line-card chassis (LCC).
The CLI uses lcc as a prefix to refer to a specific T1600 router.
LCCs are assigned numbers, 0 through 3, depending on the hardware setup and connectivity to the TX
Matrix Plus router. For more information, see the TX Matrix Plus Router Hardware Guide. A routing matrix
based on a TX Matrix Plus router can have up to four T1600 routers, and each T1600 router has up to
eight FPCs. Therefore, the routing matrix as a whole can have up to 32 FPCs (0 through 31).
type-fpc/pic/port
When you specify the fpc number for a T1600 router in a routing matrix, the Junos OS determines which
T1600 router contains the specified FPC based on the following assignment:
For example, the 1 in se-1/0/0 refers to FPC hardware slot 1 on the T1600 router labeled lcc0. The 11 in
t1-11/2/0 refers to FPC hardware slot 3 on the T1600 router labeled lcc1. The 20 in so-20/0/1 refers to
FPC hardware slot 4 on the T1600 router labeled lcc2. The 31 in t3-31/1/0 refers to FPC hardware slot
7 on the T1600 router labeled lcc3.
Table 5 on page 39 summarizes the FPC numbering for a routing matrix based on a TX Matrix Plus router.
0 0 through 7
1 8 through 15
2 16 through 23
3 24 through 31
Table 6 on page 39 lists each FPC hardware slot and the corresponding configuration numbers for LCCs
0 through 3.
LCC 0
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 0 1 2 3 4 5 6 7
Numbers
40
Table 6: One-to-One FPC Numbering for T1600 Routers in a Routing Matrix (continued)
LCC 1
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 8 9 10 11 12 13 14 15
Numbers
LCC 2
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 16 17 18 19 20 21 22 23
Numbers
LCC 3
Hardware Slots 0 1 2 3 4 5 6 7
Configuration 24 25 26 27 28 29 30 31
Numbers
You configure some PIC properties, such as framing, at the [edit chassis] hierarchy level. Chassis interface
naming varies depending on the routing hardware.
• To configure PIC properties for a standalone router, you must specify the FPC and PIC numbers, as
follows:
[edit chassis]
fpc slot-number {
pic pic-number {
...
}
}
• To configure PIC properties for a T640 or T1600 router configured in a routing matrix, you must specify
the LCC, FPC, and PIC numbers, as follows:
[edit chassis]
41
lcc lcc-number {
fpc slot-number { # Use the hardware FPC slot number
pic pic-number {
...
}
}
}
For the FPC slot in a T640 router in a routing matrix, specify the actual hardware slot number, as labeled
on the T640 router chassis. Do not use the corresponding software FPC configuration numbers shown
in Table 4 on page 37.
For the FPC slot in a T1600 router in a routing matrix, specify the actual hardware slot number, as labeled
on the T1600 router chassis. Do not use the corresponding software FPC configuration numbers shown
in Table 5 on page 39.
For more information about the [edit chassis] hierarchy, see the Junos OS Administration Library.
This section provides examples of naming interfaces. For an illustration of where slots, PICs, and ports are
located, see Figure 3 on page 41.
For an FPC in slot 1 with two OC3 SONET/SDH PICs in PIC positions 0 and 1, each PIC with two ports
uses the following names:
so-1/0/0.0
so-1/0/1.0
so-1/1/0.0
so-1/1/1.0
An OC48 SONET/SDH PIC in slot 1 and in concatenated mode appears as a single FPC with a single PIC,
which has a single port. If this interface has a single logical unit, it has the following name:
so-1/0/0.0
An OC48 SONET/SDH PIC in slot 1 and in channelized mode has a number for each channel. For example:
so-1/0/0:0
so-1/0/0:1
For an FPC in slot 1 with a Channelized OC12 PIC in PIC position 2, the DS3 channels have the following
names:
t3-1/2/0:0
t3-1/2/0:1
t3-1/2/0:2
...
t3-1/2/0:11
For an FPC in slot 1 with four OC12 ATM PICs (the FPC is fully populated), the four PICs, each with a
single port and a single logical unit, have the following names:
at-1/0/0.0
at-1/1/0.0
at-1/2/0.0
at-1/3/0.0
In a routing matrix on the T640 router labeled lcc1, for an FPC in slot 5 with four SONET OC192 PICs,
the four PICs, each with a single port and a single logical unit, have the following names:
so-13/0/0.0
so-13/1/0.0
43
so-13/2/0.0
so-13/3/0.0
For an FPC in slot 1 with one 4-port ISDN BRI interface card, port 4 has the following name:
br-1/0/4
The first B-channel, the second B-channel, and the control channel have the following names:
bc-1/0/4:1
bc-1/0/4:2
dc-1/0/4:0
SEE ALSO
When you configure an interface, you are effectively specifying the properties for a physical interface
descriptor. In most cases, the physical interface descriptor corresponds to a single physical device and
consists of the following parts:
Each physical interface descriptor can contain one or more logical interface descriptors. These allow you
to map one or more logical (or virtual) interfaces to a single physical device. Creating multiple logical
interfaces is useful for ATM, Frame Relay, and Gigabit Ethernet networks, in which you can associate
multiple virtual circuits, data-link connections, or virtual LANs (VLANs) with a single interface device.
Each logical interface descriptor can have one or more family descriptors to define the protocol family
that is associated with and allowed to run over the logical interface.
44
• Multilink Frame Relay user-to-network interface network-to-network interface (MLFR UNI NNI)
• (M Series, T Series, and MX Series routers only) Virtual private LAN service (VPLS)
Finally, each family descriptor can have one or more address entries, which associate a network address
with a logical interface and hence with the physical interface.
• You configure the physical interface descriptor by including the interfaces interface-name statement.
• You configure the logical interface descriptor by including the unit statement within the interfaces
interface-name statement or by including the .logical descriptor at the end of the interface name, as in
t3-0/0/0.1, where the logical unit number is 1, as shown in the following examples:
[edit]
user@host# set interfaces t3-0/0/0 unit 1
[edit]
user@host# edit interfaces t3-0/0/0.1
[edit interfaces t3-0/0/0]
user@host# set unit 1
• You configure the family descriptor by including the family statement within the unit statement.
• You configure address entries by including the address statement within the family statement.
• You configure tunnels by including the tunnel statement within the unit statement.
NOTE: The address of a logical interface cannot be the same as a tunnel interface’s source or
destination address. If you try to configure a logical interface with a tunnel interface’s address
or vice versa, a commit failure will occur.
45
IN THIS SECTION
ACX Series routers do not have actual PIC devices. Instead they have built-in network ports on the front
panel of the router. These ports are named using the same naming convention used for routers with PIC
devices with the understanding that the FPC, PIC and port are pseudo devices. When you display information
about one of these ports, you specify the interface type, the slot for the Flexible PIC Concentrator (FPC),
the slot on the FPC for the Physical Interface Card (PIC), 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
SEE ALSO
On M Series and T Series routers, 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:
46
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 ae number and as number,
respectively.
On MX Series routers when you display information about an interface, you specify the interface type,
the Dense Port Concentrator (DPC), Flexible PIC Concentrator (FPC), or Modular Port Concentrator (MPC)
slot, the PIC or MIC slot, and the configured port number.
NOTE: Although the MX Series routers use DPCs, FPCs, MPCs, MICs, and PICs, command syntax
in this book is shown as fpc/pic/port for simplicity.
In the physical part of the interface name, a hyphen (-) separates the media type from the FPC number,
and a slash (/) separates the DPC, FPC or MPC, MIC or PIC, and port numbers:
type-fpc/pic/port
For DPCs, MICs, and the 16-port MPC, the PIC value is a logical grouping of ports and varies on different
platforms.
On PTX Series Packet Transport Routers, 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.
47
NOTE:
• The PTX router supports Ethernet type interfaces only. The media type portion of the physical
interface name,type supports the Ethernet interface type only: et.
• In the CLI, all PTX3000 PICs are represented as pic0. For more information, see PTX3000 PIC
Description
In the physical part of the interface name, a hyphen (-) separates the media type (et) from the FPC number,
and a slash (/) separates the FPC, PIC, and port numbers:
type-fpc/pic/port
To display a configuration, use either the show command in configuration mode or the show configuration
top-level command. Interfaces are listed in numerical order, from lowest to highest slot number, then from
lowest to highest PIC number, and finally from lowest to highest port number.
flexible-ethernet-services—Allows per-unit
Ethernet encapsulation configuration
at—ATM1 interface atm-ccc-cell-relay—ATM cell relay atm-ccc-cell-relay—ATM cell relay for CCC
encapsulation for a cross-connect
atm-ccc-vc-mux—ATM VC for CCC
atm-pvc—ATM permanent virtual circuits
atm-cisco-nlpid—Cisco-compatible ATM
ethernet-over-atm—Ethernet over ATM NLPID encapsulation
encapsulation
atm-nlpid—ATM NLPID encapsulation
atm-vc-mux—ATM VC multiplexing
at—ATM2 intelligent atm-ccc-cell-relay—ATM cell relay atm-ccc-cell-relay—ATM cell relay for CCC
queuing (IQ) interface encapsulation for a cross-connect
atm-ccc-vc-mux—ATM VC for CCC
atm-pvc—ATM permanent virtual circuits
atm-cisco-nlpid—Cisco-compatible ATM
ethernet-over-atm—Ethernet over ATM NLPID encapsulation
encapsulation
atm-mlppp-llc—ATM MLPPP over
AAL5/LLC
atm-vc-mux—ATM VC multiplexing
ether-vpls-over-atm-llc—Ethernet VPLS
over ATM (bridging) encapsulation
bcm—Gigabit Ethernet NA NA
internal interfaces
br—Integrated Services NA NA
Digital Network (ISDN)
interface
ci—Container interface cisco-hdlc—Cisco-compatible HDLC framing aps—SONET interface required for APS
configuration.
ppp—Serial PPP device
50
ds—DS0 interface cisco-hdlc—Cisco-compatible HDLC framing frame-relay-ccc—Frame Relay DLCI for CCC
extended-frame-relay-ccc—Any Frame
Relay DLCI for a cross-connect
extended-frame-relay-tcc—Any Frame
Relay DLCI for a translational cross-connect
multilink-frame-relay-uni-nni—Multilink
Frame Relay UNI NNI (FRF.16)
encapsulation
dsc—Discard interface NA NA
51
e1—E1 interface cisco-hdlc—Cisco-compatible HDLC framing frame-relay-ccc—Frame Relay DLCI for CCC
(including channelized
cisco-hdlc-ccc—Cisco-compatible HDLC frame-relay-ppp—PPP over Frame Relay
STM1-to-E1 interfaces)
framing for a cross-connect
frame-relay-tcc—Frame Relay DLCI for a
cisco-hdlc-tcc—Cisco-compatible HDLC translational cross-connect
framing for a translational cross-connect
extended-frame-relay-ccc—Any Frame
Relay DLCI for a cross-connect
extended-frame-relay-tcc—Any Frame
Relay DLCI for a translational cross-connect
multilink-frame-relay-uni-nni—Multilink
Frame Relay UNI NNI (FRF.16)
encapsulation
e3—E3 interface cisco-hdlc—Cisco-compatible HDLC framing frame-relay-ccc—Frame Relay DLCI for CCC
(including E3 IQ and IQE
cisco-hdlc-ccc—Cisco-compatible HDLC frame-relay-ppp—PPP over Frame Relay
interfaces)
framing for a cross-connect
frame-relay-tcc—Frame Relay DLCI for a
cisco-hdlc-tcc—Cisco-compatible HDLC translational cross-connect
framing for a translational cross-connect
extended-frame-relay-ccc—Any Frame
Relay DLCI for a cross-connect
extended-frame-relay-tcc—Any Frame
Relay DLCI for a translational cross-connect
em—Management and NA NA
internal Ethernet
interfaces
53
extended-vlan-ccc—Nonstandard TPID
tagging for a cross-connect
fxp—Management and NA NA
internal Ethernet
interfaces
54
flexible-ethernet-services—Allows per-unit
Ethernet encapsulation configuration
ixgbe—10-Gigabit NA NA
Ethernet internal
interfaces
lo—Loopback interface; NA NA
the Junos OS
automatically configures
one loopback interface
(lo0)
ethernet-ccc—Ethernet cross-connect
vlan—VLAN service
se—Serial interface cisco-hdlc—Cisco-compatible HDLC framing frame-relay-ccc—Frame Relay DLCI for CCC
(including EIA-530, V.35,
cisco-hdlc-ccc—Cisco-compatible HDLC frame-relay-ppp—PPP over Frame Relay
and X.21 interfaces)
framing for a cross-connect
frame-relay-tcc—Frame Relay DLCI for a
cisco-hdlc-tcc—Cisco-compatible HDLC translational cross-connect
framing for a translational cross-connect
t1—T1 interface cisco-hdlc—Cisco-compatible HDLC framing frame-relay-ccc—Frame Relay DLCI for CCC
(including channelized
cisco-hdlc-ccc—Cisco-compatible HDLC frame-relay-ppp—PPP over Frame Relay
DS3-to-DS1 interfaces)
framing for a cross-connect
frame-relay-tcc—Frame Relay DLCI for a
cisco-hdlc-tcc—Cisco-compatible HDLC translational cross-connect
framing for a translational cross-connect
extended-frame-relay-ccc—Any Frame
Relay DLCI for a cross-connect
extended-frame-relay-tcc—Any Frame
Relay DLCI for a translational cross-connect
multilink-frame-relay-uni-nni—Multilink
Frame Relay UNI NNI (FRF.16)
encapsulation
t3—T3 interface cisco-hdlc—Cisco-compatible HDLC framing frame-relay-ccc—Frame Relay DLCI for CCC
(including channelized
cisco-hdlc-ccc—Cisco-compatible HDLC frame-relay-ppp—PPP over Frame Relay
OC12-to-DS3 interfaces)
framing for a cross-connect
frame-relay-tcc—Frame Relay DLCI for a
cisco-hdlc-tcc—Cisco-compatible HDLC translational cross-connect
framing for a translational cross-connect
extended-frame-relay-ccc—Any Frame
Relay DLCI for a cross-connect
extended-frame-relay-tcc—Any Frame
Relay DLCI for a translational cross-connect
Controller-level NA NA
channelized IQ interfaces
(cau4, coc1, coc3, coc12,
cstm1, ct1, ct3, ce1)
Unconfigurable, NA NA
internally generated
interfaces (gre, ipip,
learning-chip (lc), lsi, tap,
mt, mtun, pd, pe, pimd,
pime)
NOTE: You can configure GRE interfaces (gre-x/y/z) only for GMPLS control channels. GRE
interfaces are not supported or configurable for other applications. For more information about
GMPLS, see the MPLS Applications User Guide.
The M Series, MX Series, and T Series routers contain slots for installing Flexible PIC Concentrator [FPC]
or Dense Port Concentrator [DPC] (for MX Series routers) or Modular Port Concentrator [MPC] (for MX
Series routers). Physical Interface Card [PIC] can be installed in FPCs. Modular Interface Card [MIC] can
be inserted into MPCs.
The number of PICs that can be installed varies by router and type of FPC. The PICs provide the actual
physical interfaces to the network. The MX Series routers contain slots for installing either DPC boards
that provide the physical interfaces to the network or for installing FPCs in which PICs can be installed.
You can insert any DPC or FPC into any slot that supports them in the appropriate router. Typically, you
can place any combination of PICs, compatible with your router, in any location on an FPC. (You are limited
by the total FPC bandwidth, and by the fact that some PICs physically require two or four of the PIC
locations on the FPC. In some cases, power limitations or microcode limitations may also apply.) To
determine DPC and PIC compatibility, see the see your router’s Interface Module Reference.
You can insert MPC into any slot that supports them in the appropriate router. You can install up to two
MICs of different media types in the same MPC as long as the MPC supports those MICs.
These physical interfaces are transient interfaces of the router. They are referred to as transient because
you can hot-swap a DPC or FPC or MPC and its PICs or MICs at any time.
61
You must configure each transient interface based on the slot in which the FPC or DPC or MPC is installed,
the location in which the PIC or MIC is installed, and for multiple port PICs or MICs , the port to which
you are connecting.
You can configure the interfaces on PICs or MICs that are already installed in the router as well as interfaces
on PICs or MICs that you plan to install later. The Junos OS detects which interfaces are actually present,
so when the software activates its configuration, it activates only the present interfaces and retains the
configuration information for the interfaces that are not present. When the Junos OS detects that an FPC
containing PICs or MPC containing MICs has been inserted into the router, the software activates the
configuration for those interfaces.
Services interfaces enable you to incrementally add services to your network. The Junos OS supports the
following services PICs:
• Adaptive Services (AS) PICs—Allow you to provide multiple services on a single PIC by configuring a set
of services and applications. The AS PICs offer a special range of services you configure in one or more
service sets.
• ES PIC—Provides a security suite for the IP version 4 (IPv4) and IP version 6 (IPv6) network layers. The
suite provides functionality such as authentication of origin, data integrity, confidentiality, replay
protection, and nonrepudiation of source. It also defines mechanisms for key generation and exchange,
management of security associations, and support for digital certificates.
• Monitoring Services PICs—Enable you to monitor traffic flow and export the monitored traffic. Monitoring
traffic allows you to gather and export detailed information about IPv4 traffic flows between source
and destination nodes in your network; sample all incoming IPv4 traffic on the monitoring interface and
present the data in cflowd record format; perform discard accounting on an incoming traffic flow; encrypt
or tunnel outgoing cflowd records, intercepted IPv4 traffic, or both; and direct filtered traffic to different
packet analyzers and present the data in its original format. On a Monitoring Services II PIC, you can
configure either monitoring interfaces or collector interfaces. A collector interface allows you to combine
multiple cflowd records into a compressed ASCII data file and export the file to an FTP server.
• Multilink Services, MultiServices, Link Services, and Voice Services PICs—Enable you to split, recombine,
and sequence datagrams across multiple logical data links. The goal of multilink operation is to coordinate
multiple independent links between a fixed pair of systems, providing a virtual link with greater bandwidth
than any of the members.
• Tunnel Services PIC—By encapsulating arbitrary packets inside a transport protocol, tunneling provides
a private, secure path through an otherwise public network. Tunnels connect discontinuous subnetworks
62
and enable encryption interfaces, virtual private networks (VPNs), and Multiprotocol Label Switching
(MPLS).
• On M Series and T Series routers, logical tunnel interfaces allow you to connect logical systems, virtual
routers, or VPN instances. For more information about VPNs, see the Junos OS VPNs Library for Routing
Devices. For more information about configuring tunnels, see the Junos OS Services Interfaces Library for
Routing Devices.
IN THIS SECTION
• Automatic protection switching (APS) on SONET/SDH and ATM links are supported using the container
infrastructure.
• APS parameters are auto-copied from the container interface to the member links.
NOTE: Paired groups and true unidirectional APS are not currently supported.
For more information on SONET/SDH configuration, see Configuring Container Interfaces for APS
on SONET Links.
Traditional APS is configured on two independent physical SONET/SDH interfaces: one configured as the
working circuit and the other as the protect circuit (see Figure 4 on page 63). The circuit, named Circuit
X in the figure, is the link between the two SONET interfaces.
Traditional APS uses routing protocols that run on each individual SONET/SDH interface (since circuit is
an abstract construct, instead of being an actual interface). When the working link goes down, the APS
infrastructure brings up the protect link and its underlying logical interfaces, and brings down the working
link and its underlying logical interfaces, causing the routing protocols to reconverge. This consumes time
and leads to traffic loss even though the APS infrastructure has performed the switch quickly.
To solve this problem, the Junos OS provides a soft interface construct called a container interface (see
Figure 5 on page 63).
The container interface allows routing protocols to run on the logical interfaces associated with a virtual
container interface instead of on the physical SONET/SDH and ATM interfaces. When APS switches the
underlying physical link based on a fault condition, the container interface remains up, and the logical
interface on the container interface does not flap. The routing protocols remain unaware of the APS
switching.
With the container interface, APS is configured on the container interface itself. Individual member
SONET/SDH and ATM links are either marked as primary (corresponding to the working circuit) or standby
(corresponding to the protect circuit) in the configuration. No circuit or group name is specified in the
container interface model; physical SONET/SDH and ATM links are put in an APS group by linking them
to a single container interface. APS parameters are specified at the container interface level, and are
propagated to the individual SONET/SDH and ATM links by the APS daemon.
Typical applications require copying APS parameters from the working circuit to the protect circuit, since
most of the parameters must be the same for both circuits. This is automatically done in the container
interface. APS parameters are specified only once under the container physical interface configuration,
and are internally copied over to the individual physical SONET/SDH and ATM links.
SEE ALSO
Within a router or packet transport router, internal Ethernet interfaces provide communication between
the Routing Engine and the Packet Forwarding Engines. The Junos OS automatically configures internal
Ethernet interfaces when the Junos OS boots. The Junos OS boots the packet-forwarding component
hardware. When these components are running, the Control Board uses the internal Ethernet interface
to transmit hardware status information to the Routing Engine. Information transmitted includes the
internal router temperature, the condition of the fans, whether an FPC has been removed or inserted, and
information from the LCD on thecraft interface.
To determine the supported internal Ethernet interfaces for your router, see Supported Routing Engines by
Router.
NOTE: Do not modify or remove the configuration for the internal Ethernet interface that the
Junos OS automatically configures. If you do, the router or packet transport routerwill stop
functioning.
• M Series, and MX Series routers and T Series routers—The Junos OS creates the internal Ethernet
interface. The internal Ethernet interface connects the Routing Engine re0 to the Packet Forwarding
Engines.
If the router has redundant Routing Engines, another internal Ethernet interface is created on each
Routing Engine (re0 and re1) in order to support fault tolerance, two physical links between re0 and re1
connect the independent control planes. If one of the links fails, both Routing Engines can use the other
link for IP communication.
• TX Matrix Plus routers—On a TX Matrix Plus router, the Routing Engine and Control Board function as
a unit, or host subsystem. For each host subsystem in the router, the Junos OS automatically creates
two internal Ethernet interfaces, ixgbe0 and ixgbe1.
The ixgbe0 and ixgbe1 interfaces connect the TX Matrix Plus Routing Engine to the Routing Engines of
every line-card chassis (LCC) configured in the routing matrix.
The TX Matrix Plus Routing Engine connects to a high-speed switch through a 10-Gbps link within the
host subsystem. The switch provides a 1-Gbps link to each T1600 Routing Engine. The 1-Gbps links are
provided through the UTP Category 5 Ethernet cable connections between the TXP-CBs and the LCC-CBs
in the LCCs.
• The TX Matrix Plus Routing Engine connects to a high-speed switch in the local Control Board through
a 10-Gbps link within the host subsystem.
• The Gigabit Ethernet switch connects the Control Board to the remote Routing Engines of every LCC
configured in the routing matrix.
66
If a TX Matrix Plus router contains redundant host subsystems, the independent control planes are
connected by two physical links between the two 10-Gigabit Ethernet ports on their respective Routing
Engines.
• The primary link to the remote Routing Engine is at the ixgbe0 interface; the 10-Gigabit Ethernet
switch on the local Control Board also connects the Routing Engine to the 10-Gigabit Ethernet port
accessed by the ixgbe1 interface on the remote Routing Engine.
• The alternate link to the remote Routing Engine is the 10-Gigabit Ethernet port at the ixgbe1 interface.
This second port connects the Routing Engine to the 10-Gigabit Ethernet switch on the remote Control
Board, which connects to the 10-Gigabit Ethernet port at the ixgbe0 interface on the remote Routing
Engine.
If one of the two links between the host subsystems fails, both Routing Engines can use the other link
for IP communication.
• LCC in a routing matrix—On an LCC configured in a routing matrix, the Routing Engine and Control Board
function as a unit, or host subsystem. For each host subsystem in the LCC, the Junos OS automatically
creates two internal Ethernet interfaces, bcm0 and em1, for the two Gigabit Ethernet ports on the
Routing Engine.
The bcm0 interface connects the Routing Engine in each LCCto the Routing Engines of every other LCC
configured in the routing matrix.
• The Routing Engine connects to a Gigabit Ethernet switch on the local Control Board through a.
• The switch connects the Control Board to the remote Routing Engines of every other LCC configured
in the routing matrix.
If an LCC in a routing matrix contains redundant host subsystems, the independent control planes are
connected by two physical links between the Gigabit Ethernet ports on their respective Routing Engines.
• The primary link to the remote Routing Engine is at the bcm0 interface; the Gigabit Ethernet switch
on the local Control Board also connects the Routing Engine to the Gigabit Ethernet port accessed by
the em1 interface on the remote Routing Engine.
• The alternate link to the remote Routing Engine is at the em1 interface. This second port connects
the Routing Engine to the Gigabit Ethernet switch on the remote Control Board, which connects to
the Gigabit Ethernet port at the bcm0 interface on the remote Routing Engine.
If one of the two links between the host subsystems fails, both Routing Engines can use the other link
for IP communication.
Each router also has two serial ports, labeled console and auxiliary, for connecting tty type terminals to the
router using standard PC-type tty cables. Although these ports are not network interfaces, they do provide
access to the router.
67
SEE ALSO
The ACX Series routers support time-division multiplexing (TDM) T1 and E1 interfaces and Ethernet (1
GbE copper, 1GbE, 10 GbE, and 40 GbE fiber) interfaces to support both the legacy and evolution needs
of the mobile network. Support for Power over Ethernet (PoE+) at 65 watts per port mitigates the need
for additional electrical cabling for microwaves or other access interfaces.
NOTE: ACX5048 and ACX5096 routers do not support T1 or E1 ports and Inverse Multiplexing
for ATM (IMA).
• The ACX1000 router contains eight Gigabit Ethernet ports. The ACX1000 router also supports either
four RJ45 (Cu) ports or installation of four Gigabit Ethernet small form-factor pluggable (SFP)
transceivers.
• The ACX2000 router contains 16 Gigabit Ethernet ports and two PoE ports. The ACX2000 router also
supports installation of two Gigabit Ethernet SFP transceivers and two 10-Gigabit Ethernet SFP+
transceivers.
• The ACX5448 router is a 10-Gigabit Ethernet enhanced small form-factor pluggable (SFP+) top-of-rack
router with 48 SFP+ ports, and four 100-Gigabit Ethernet QSFP28 ports. Each SFP+ port can operate
as a native 10-Gigabit Ethernet port, or as a 1-Gigabit Ethernet port when 1-Gigabit optics are inserted.
The 48 ports on ACX5448 router can be configured as 1GE or 10GE modes and these ports are
represented by xe interface type. The PIC 1 of FPC 0 has 4x100GE ports, where each port can be
channelized as 1x100GE, or 1x40GE, or 4x25GE modes and these ports are represented by et interface
type. By default, the port speed in PIC 1 is 100GE.
68
NOTE: 40GbE is supported only on ACX5048, ACX5096, and ACX5448 routers. ACX5448
router support 40GbE channeling to 10GbE.
On the ACX Series routers, existing Junos OS TDM features are supported without changes to statements
or functionality. The following key TDM features for T1 (ct1) interfaces and E1 (ce1) interfaces are
supported:
• T1 and E1 channelization
• T1 and E1 encapsulation
T1 and E1 mode selection is at the PIC level. To set the T1 or E1 mode at the PIC level, include the framing
statement with the t1 or e1 option at the [chassis fpc slot-number pic slot-number] hierarchy level. All ports
can be T1 or E1. Mixing T1s and E1s is not supported.
The ACX2000 router has a T1 or E1 building-integrated timing supply (BITS) interface that you can connect
to an external clock. After you connect the interface to the external clock, you can configure the BITS
interface so that the BITS interface becomes a candidate source for chassis synchronization to the external
clock. The frequency of the BITS interface depends on the Synchronous Ethernet equipment slave clock
(EEC) selected with the network-option statement at the [edit chassis synchronization] hierarchy level.
NOTE: The ACX1000 router does not support the BITS interface.
69
Defined by the ATM Forum, IMA specification version 1.1 is a standardized technology used to transport
ATM traffic over a bundle of T1 and E1 interfaces, also known as an IMA group. Up to eight links per
bundle and 16 bundles per PIC are supported. The following key IMA features are supported:
• ATM CoS
• Denied packets counter in the output for the show interfaces at-fpc/pic/port extensive command
On the ACX Series routers, existing Junos OS Ethernet features are supported without changes to
statements or functionality. The following key features are supported:
• Media type specification (ACX1000 router with Gigabit Ethernet SFP and RJ45 interfaces)
• Flow control
NOTE: The ACX Series router does not support flow control based on PAUSE frames.
• Loopback
The Gigabit Ethernet ports on the router have the capacity to work as a 1 or 10-Gigabit Ethernet interface,
depending on the type of small form-factor pluggable (SFP) transceiver inserted. When you insert an SFP+
transceiver, the interface works at the 10-Gigabit speed. When you insert an SFP transceiver, the interface
70
works at the 1-Gigabit speed. Configuration is not required because the speed is determined automatically
based on the type of inserted SFP transceiver. The dual-speed interface is automatically created with the
xe prefix, for example, xe-4/0/0.
The same configuration statements are used for both speeds and CoS parameters are scaled as a percentage
of the port speed. To configure a dual-speed Gigabit Ethernet interface, include the interface xe-fpc/pic/port
statement at the [edit interfaces] hierarchy level. To display the interface speed and other details, issue
the show interfaces command.
NOTE: You need to use industrial grade of SFP below 0dC for ACX 1100 and ACX 2100 boards.
SEE ALSO
For TX Matrix Plus Routers and for T1600 Core Routers with RE-C1800 configured in a routing matrix,
the Junos OS automatically creates the router’s management Ethernet interface, em0. To use em0 as a
management port, you must configure its logical port, em0.0, with a valid IP address.
When you enter the show interfaces command on a TX Matrix Plus router, the management Ethernet
interfaces (and logical interfaces) are displayed:
...
em0
em0.0
...
71
NOTE: The Routing Engines in the TX Matrix Plus router and in the T1600 routers with RE-C1800
configured in a routing matrix do not support the management Ethernet interface fxp0, or the
internal Ethernet interfaces fxp1 or fxp2.
SEE ALSO
Displaying Internal Ethernet Interfaces for a Routing Matrix with a TX Matrix Plus Router
show interfaces (M Series, MX Series, T Series Routers, and PTX Series Management and Internal Ethernet)
On a T1600 router configured in a routing matrix, the Routing Engine (RE-TXP-LCC) and Control Board
(LCC-CB) function as a unit, or host subsystem. For each host subsystem in the router, the Junos OS
automatically creates two internal Ethernet interfaces, bcm0 and em1, for the two Gigabit Ethernet ports
on the Routing Engine.
SEE ALSO
Displaying Internal Ethernet Interfaces for a Routing Matrix with a TX Matrix Plus Router
show interfaces (M Series, MX Series, T Series Routers, and PTX Series Management and Internal Ethernet)
IN THIS SECTION
This topic discusses on how to configure various physical interface properties with examples.
73
The software driver for each network media type sets reasonable default values for general interface
properties, such as the interface’s maximum transmission unit (MTU) size, receive and transmit leaky bucket
properties, link operational mode, and clock source.
To modify any of the default general interface properties, include the appropriate statements at the [edit
interfaces interface-name] hierarchy level:
The media maximum transmission unit (MTU) is the largest data unit that can be forwarded without
fragmentation.
The default media MTU size used on a physical interface depends on the encapsulation used on that
interface. In some cases, the default IP Protocol MTU depends on whether the protocol used is IP version
4 (IPv4) or International Organization for Standardization (ISO).
When you are configuring point-to-point connections, the MTU sizes on both sides of the connections
must be the same. Also, when you are configuring point-to-multipoint connections, all interfaces in the
subnet must use the same MTU size.
74
NOTE: The actual frames transmitted also contain cyclic redundancy check (CRC) bits, which
are not part of the media MTU. For example, the media MTU for a Gigabit Ethernet Version 2
interface is specified as 1514 bytes, but the largest possible frame size is actually 1518 bytes;
you need to consider the extra bits in calculations of MTUs for interoperability.
The physical MTU for Ethernet interfaces does not include the 4-byte frame check sequence
(FCS) field of the Ethernet frame.
A SONET/SDH interface operating in concatenated mode has a “c” added to the rate descriptor.
For example, a concatenated OC48 interface is referred to as OC48c.
If you do not configure an MPLS MTU, the Junos OS derives the MPLS MTU from the physical
interface MTU. From this value, the software subtracts the encapsulation-specific overhead and
space for the maximum number of labels that might be pushed in the Packet Forwarding Engine.
Currently, the software provides for three labels of four bytes each, for a total of 12 bytes.
In other words, the formula used to determine the MPLS MTU is the following:
The media maximum transmission unit (MTU) is the largest data unit that can be forwarded without
fragmentation.
If you change the size of the media MTU, you must ensure that the size is equal to or greater than the sum
of the protocol MTU and the encapsulation overhead.
75
Media MTU Sizes by Interface Type for M5 and M7i Routers with CFEB, M10 and M10i Routers
with CFEB, and M20 and M40 Routers
Table 8: Media MTU Sizes by Interface Type for M5 and M7i Routers with CFEB, M10 and M10i Routers
with CFEB, and M20 and M40 Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
1532 (12-port)
NOTE: The
maximum MTU for
two 100Base-TX
Fast Ethernet port
FIC is 9192 bytes.
Table 8: Media MTU Sizes by Interface Type for M5 and M7i Routers with CFEB, M10 and M10i Routers
with CFEB, and M20 and M40 Routers (continued)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
9192 (4-port)
Table 9: Media MTU Sizes by Interface Type for M40e Routers (continued)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 10: Media MTU Sizes by Interface Type for M160 Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 10: Media MTU Sizes by Interface Type for M160 Routers (continued)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
4500 (4-port)
Media MTU Sizes by Interface Type for M7i Routers with CFEB-E, M10i Routers with CFEB-E,
and M320 and M120 Routers
Table 11: Media MTU Sizes by Interface Type for M7i Routers with CFEB-E, M10i Routers with CFEB-E,
and M320 and M120 Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 11: Media MTU Sizes by Interface Type for M7i Routers with CFEB-E, M10i Routers with CFEB-E,
and M320 and M120 Routers (continued)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
(excluding M120)
Table 12: Media MTU Sizes by Interface Type for MX Series Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 12: Media MTU Sizes by Interface Type for MX Series Routers (continued)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
NOTE: Starting in Junos OS Release 16.1R1, the MTU size for a media or protocol is
increased from 9192 to 9500 for Ethernet interfaces on the following MX Series MPCs:
• MPC1
• MPC2
• MPC2E
• MPC3E
• MPC4E
• MPC5E
• MPC6E
81
NOTE: Starting in Junos OS Release 16.1R1, the MTU size for a media or protocol is increased
from 9192 to 9500 for Ethernet interfaces on the following MX Series MPCs:
• MPC1
• MPC2
• MPC2E
• MPC3E
• MPC4E
• MPC5E
• MPC6E
Starting in Junos OS Release 16.1R1, the MTU size has been increased to 16,000 bytes for certain MPCs.
The MTU size for the following MPCs has been increased to 16000 bytes:
• MPC8E (MX2K-MPC8E)
• MPC9E (MX2K-MPC9E)
Starting in Junos OS Release 17.3R1, the MTU size for MX10003 MPC is 16,000 bytes.
Starting in Junos OS Release 17.4R1, the MTU size for MX204 is 16,000 bytes.
In all Junos OS releases, the maximum MTU size for MX5, MX10, MX40, and MX80 routers is 9192 bytes.
In all Junos OS releases, the maximum MTU size for MPC2E-NG and MPC3E-NG is 9500 bytes.
Table 13: Media MTU Sizes by Interface Type for T320 Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 13: Media MTU Sizes by Interface Type for T320 Routers (continued)
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 14: Media MTU Sizes by Interface Type for T640 Platforms
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Media MTU Sizes by Interface Type for EX Series Switches and ACX Series Routers
Table 15: Media MTU Sizes by Interface Type for EX Series Switches
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 16: Media MTU Sizes by Interface Type for ACX Series Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type Switch MTU (Bytes) (Bytes) MTU (Bytes)
Gigabit Ethernet and ACX5448 series and 1514 10000 1500 (IPv4),
10-Gigabit Ethernet ACX710 Series 1497 (ISO)
NOTE: On ACX Series routers, you can configure the protocol MTU by including the mtu
statement at the [edit interfaces interface-name unit logical-unit-number family inet] or [edit
interfaces interface-name unit logical-unit-number family inet6] hierarchy level.
• If you configure the protocol MTU at any of these hierarchy levels, the configured value is
applied to all families that are configured on the logical interface.
• If you are configuring the protocol MTU for both inet and inet6 families on the same logical
interface, you must configure the same value for both the families. It is not recommended to
configure different MTU size values for inet and inet6 families that are configured on the same
logical interface.
84
Media MTU Sizes by Interface Type for PTX Series Packet Transport Routers
Table 17: Media MTU Sizes by Interface Type for PTX Series Packet Transport Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
Table 18: Media MTU Sizes by Interface Type for JRR200 Series Routers
Default IP
Default Media Maximum MTU Protocol
Interface Type MTU (Bytes) (Bytes) MTU (Bytes)
The media maximum transmission unit (MTU) is the largest data unit that can be forwarded without
fragmentation. The default media MTU size used on a physical interface depends on the encapsulation
being used on that interface. For a listing of MTU sizes for each encapsulation type, see “Media MTU Sizes
by Interface Type” on page 74.
[edit ]
user@host# [edit interfaces interface-name]
• If you change the size of the media MTU, you must ensure that the size is equal to or greater than the
sum of the protocol MTU and the encapsulation overhead. You configure the protocol MTU by including
the mtu statement at the following hierarchy levels:
NOTE:
• Changing the media MTU or protocol MTU causes an interface to be deleted and added again.
• Because tunnel services interfaces are considered logical interfaces, you cannot configure the
MTU setting for the physical interface. This means you cannot include the mtu statement at
the [edit interfaces interface-name] hierarchy level for the following interface types: generic
routing encapsulation (gr-), IP-IP (ip-), loopback (lo-), link services (ls-), multilink services (ml-),
and multicast (pe-, pd-). You can, however, configure the protocol MTU on all tunnel interfaces
except virtual tunnel (vt) interfaces. Starting in Junos OS Release 17.1R3, you cannot configure
the maximum transmission unit (MTU) size for vt interfaces because the mtu bytes option is
deprecated for vt interfaces. Junos OS sets the MTU size for vt interfaces by default to
unlimited.
• If you configure an MTU value by including the mtu statement at the [edit interfaces
interface-name unit logical-unit-number family mpls] hierarchy level, the configured value is
used.
86
IN THIS SECTION
The default media MTU size used on a physical interface depends on the encapsulation used on that
interface. In some cases, the default IP Protocol MTU depends on whether the protocol used is IP version
4 (IPv4) or International Organization for Standardization (ISO).
When you are configuring point-to-point connections, the MTU sizes on both sides of the connections
must be the same. Also, when you are configuring point-to-multipoint connections, all interfaces in the
subnet must use the same MTU size.
87
NOTE: The actual frames transmitted also contain cyclic redundancy check (CRC) bits, which
are not part of the media MTU. For example, the media MTU for a Gigabit Ethernet Version 2
interface is specified as 1514 bytes, but the largest possible frame size is actually 1518 bytes;
you need to consider the extra bits in calculations of MTUs for interoperability.
The physical MTU for Ethernet interfaces does not include the 4-byte frame check sequence
(FCS) field of the Ethernet frame.
If you do not configure an MPLS MTU, the Junos OS derives the MPLS MTU from the physical
interface MTU. From this value, the software subtracts the encapsulation-specific overhead and
space for the maximum number of labels that might be pushed in the Packet Forwarding Engine.
Currently, the software provides for three labels of four bytes each, for a total of 12 bytes.
In other words, the formula used to determine the MPLS MTU is the following:
If you configure an MTU value by including the mtu statement at the [edit interfaces
interface-name unit logical-unit-number family mpls] hierarchy level, the configured value is used.
Junos OS Release 16.2R1.6 and later releases do not support family mpls MTU.
To modify the default media MTU size for a physical interface, include the mtu statement at the [edit
interfaces interface-name] hierarchy level:
If you change the size of the media MTU, you must ensure that the size is equal to or greater than the sum
of the protocol MTU and the encapsulation overhead.
NOTE: Changing the media MTU or protocol MTU causes an interface to be deleted and added
again.
You configure the protocol MTU by including the mtu statement at the following hierarchy levels:
If you configure the protocol MTU at any of these hierarchy levels, the configured value is applied to all
families that are configured on the logical interface.
NOTE: If you are configuring the protocol MTU for both inet and inet6 families on the same
logical interface, you must configure the same value for both the families. It is not recommended
to configure different MTU size values for inet and inet6 families that are configured on the
same logical interface.
If you change the size of the media MTU, you must ensure that the size is equal to or greater than the sum
of the protocol MTU and the encapsulation overhead. The following table lists the interface encapsulation
and corresponding encapsulation overhead.
Encapsulation Overhead
Interface Encapsulation (Bytes)
802.1Q/Ethernet 802.3 21
802.1Q/Ethernet version 2 18
Cisco HDLC 4
Ethernet 802.3 17
Ethernet SNAP 22
89
Encapsulation Overhead
Interface Encapsulation (Bytes)
Ethernet version 2 14
Frame Relay 4
PPP 4
VLAN CCC 4
VLAN VPLS 4
VLAN TCC 22
You can include a text description of each physical interface in the configuration file. Any descriptive text
you include is displayed in the output of the show interfaces commands, and is also exposed in the ifAlias
Management Information Base (MIB) object. It has no impact on the interface’s configuration.
To add a text description, include the description statement at the [edit interfaces interface-name] hierarchy
level:
[edit]
user@host# set interfaces interface-name description text
For example:
[edit]
user@host# set interfaces fe-0/0/1 description "Backbone connection to PHL01"
90
The description can be a single line of text. If the text contains spaces, enclose it in quotation marks.
NOTE: You can configure the extended DHCP relay to include the interface description in the
option 82 Agent Circuit ID suboption. See Using DHCP Relay Agent Option 82 Information in the
Junos OS Broadband Subscriber Management and Services Library.
For information about describing logical units, see “Adding a Logical Unit Description to the Configuration”
on page 152.
To display the description from the router or switch CLI, use the show interfaces command:
To display the interface description from the interfaces MIB, use the snmpwalk command from a server.
To isolate information for a specific interface, search for the interface index shown in the SNMP ifIndex
field of the show interfaces command output. The ifAlias object is in ifXTable.
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifLinkUpDownTrapEnable.23 = enabled(1)
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHighSpeed.23 = Gauge32: 100
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifPromiscuousMode.23 = false(2)
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifConnectorPresent.23 = true(1)
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.23 = Backbone connection to PHL01
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifCounterDiscontinuityTime.23 = Timeticks:
(0) 0:00:00.00
SEE ALSO
NOTE: This task uses Junos OS for EX Series switches that does not support the Enhanced Layer
2 Software (ELS) configuration style. If your switch runs software that supports ELS, see
Configuring Interface Ranges for EX Series Switches with ELS. For ELS details, see Using the Enhanced
Layer 2 Software CLI.
The Junos OS allows you to group a range of identical interfaces into an interface range. You first specify
the group of identical interfaces in the interface range. Then you can apply a common configuration to
the specified interface range, reducing the number of configuration statements required and saving time
while producing a compact configuration.
To configure an interface range, include the interface-range statement at the [edit interfaces] hierarchy
level.
The interface-range statement accepts only physical networking interface names in its definition. The
following interface types are supported and example CLI descriptors are shown:
• ATM—at-fpc/pic/port
• Channelized—(coc | cstm)n-fpc/pic/port
• DPC—xe-fpc/pic/port
• E1/E3—(e1 | e3)-fpc/pic/port
• Ethernet—(xe | ge | fe)-fpc/pic/port
• ISDN—isdn-fpc/pic/port
• Serial—se-fpc/pic/port
• SONET/SDH—so-fpc/pic/port
• T1/T3—(t1 | t3)-fpc/pic/port
Interfaces can be grouped either as a range of interfaces or using a number range under the interface-range
statement definition.
Interfaces in an interface-range definition can be added as part of a member range or as individual members
or multiple members using a number range.
To specify a member range, use the member-range statement at the [edit interfaces interface-range name]
hierarchy level.
To specify interfaces in lexical order, use the member-range start-range to end-range statement.
CAUTION: The wildcard * in a member statement does not take into account the
interface numbers supported by a specific interface type. Irrespective of the interface
type, * includes interface numbers ranging from 0 through 47 to the interface group.
Therefore, use * in a member statement with caution.
• [num1, num2, num3]—Numbers num1, num2, and num3 specify multiple specific interfaces.
93
To specify one or multiple members, use the member statement at the [edit interfaces interface-range
name] hierarchy level.
To specify the list of interface range members individually or for multiple interfaces using regex, use the
member list of interface names statement.
member ge-0/0/0;
member ge-0/*/*
member ge-0/[1-10]/0;
member ge-0/[1,2,3]/3;
Regex or wildcards are not supported for interface-type prefixes. For example, prefixes ge, fe, and xe must
be mentioned explicitly.
An interface-range definition can contain both member and member-range statements within it. There is
no maximum limit on the number of member or member-range statements within an interface-range.
However, at least one member or member-range statement must exist within an interface-range definition.
Configuration common to an interface range can be added as a part of the interface-range definition, as
follows:
[edit]
interfaces {
+ interface-range foo {
+ member-range ge-1/0/0 to ge-4/0/40;
+ member ge-0/1/1;
+ member ge-5/[1-10]/*;
/*Common configuration is added as part of interface-range definition*/
mtu 256;
hold-time up 10;
94
ether-options {
flow-control;
speed {
100m;
}
802.3ad primary;
}
}
}
These defined interface ranges can be used in other configuration hierarchies, in places where an interface
node exists.
protocols {
dot1x {
authenticator {
interface foo{
retries 1;
}
}
}
}
foo should be an interface-range defined at the [interfaces] hierarchy level. In the above example, the
interface node can accept both individual interfaces and interface ranges.
TIP: To view an interface range in expanded configuration, use the (show | display inheritance)
command. For more information, see the CLI User Guide.
95
By default, interface-range is not available to configure in the CLI where the interface statement is available.
The following locations are supported; however, some of the hierarchies shown in this list are product
specific:
SEE ALSO
All member and member-range statements in an interface range definition are expanded to generate the
final list of interface names for the specified interface range.
97
[edit]
interfaces {
interface-range range-1 {
member-range ge-0/0/0 to ge-4/0/20;
member ge-10/1/1;
member ge-5/[0-5]/*;
/*Common configuration is added part of the interface-range definition*/
mtu 256;
hold-time up 10;
ether-options {
flow-control;
speed {
100m;
}
802.3ad primary;
}
}
}
For the member-range statement, all possible interfaces between start-range and end-range are considered
in expanding the members. For example, the following member-range statement:
expands to:
.
ge-4/0/0 ge-4/0/1 ... ge-4/0/max_ports]
ge-5/[0-5]/*
expands to:
ge-5/1/[2,3,6,10]
expands to:
ge-5/1/2
ge-5/1/3
ge-5/1/6
ge-5/1/10
When the Junos OS expands the member and member-range statements present in an interface-range,
it creates interface objects if they are not explicitly defined in the configuration. The common configuration
is copied to all its member interfaces in the interface-range.
Foreground interface configuration takes priority compared to configuration inherited by the interface
through the interface-range.
interfaces {
99
interface-range range-1 {
member-range ge-1/0/0/ to ge-10/0/47;
mtu 256;
}
ge-1/0/1 {
mtu 1024;
}
}
In the preceding example, interface ge-1/0/1 will have an MTU value of 1024.
This can be verified with output of the show interfaces | display inheritance command, as follows:
Interface range member interfaces inherit the config-groups configuration like any other foreground
configuration. interface-range is similar to any other foreground configuration statement. The only difference
is that the interface-range goes through a member interfaces expansion before Junos OS reads this
configuration.
groups {
global {
interfaces {
<*> {
hold-time up 10;
}
}
}
}
apply-groups [global];
interfaces {
interface-range range-1 {
member-range ge-1/0/0 to ge-10/0/47;
mtu 256;
}
}
ge-1/0/0 {
##
## '256' was expanded from interface-range 'range-1'
##
mtu 256;
##
## 'hold-time' was inherited from group 'global'
101
SEE ALSO
If an interface is a member of several interface ranges, that interface will inherit the common configuration
from all of those interface ranges.
[edit]
interfaces {
interface-range range-1 {
member-range ge-1/0/0 to ge-10/0/47;
mtu 256;
102
}
}
interfaces {
interface-range range-1 {
member-range ge-10/0/0 to ge-10/0/47;
hold-time up 10;
}
}
In this example, interfaces ge-10/0/0 through ge-10/0/47 will have both hold-time and mtu.
The interface ranges are defined in the order of inheritance priority, with the first interface range
configuration data taking priority over subsequent interface ranges.
[edit]
interfaces {
interface-range int-grp-one {
member-range ge-0/0/0 to ge-4/0/40;
member ge-1/1/1;
/*Common config is added part of the interface-range definition*/
mtu 256;
hold-time up 10;
}
}
interfaces {
interface-range int-grp-two {
member-range ge-5/0/0 to ge-10/0/40;
member ge-1/1/1;
mtu 1024;
}
}
Interface ge-1/1/1 exists in both interface-range int-grp-one and interface-range int-grp-two. This interface
inherits mtu 256 from interface-range int-grp-one because it was defined first.
[edit]
103
interfaces {
interface-range range-1 {
member ge-10/1/1;
member ge-5/5/1;
mtu 256;
hold-time up 10;
ether-options {
flow-control;
speed {
100m;
}
802.3ad primary;
}
}
protocols {
dot1x {
authenticator {
interface range-1 {
retries 1;
}
}
}
}
}
The interface node present under authenticator is expanded into member interfaces of the interface-range
range-1 as follows:
protocols {
dot1x {
authenticator {
interface ge-10/1/1 {
retries 1;
}
interface ge-5/5/1 {
retries 1;
}
}
}
}
The interface range-1 statement is expanded into two interfaces, ge-10/1/1 and ge-5/5/1, and configuration
retries 1 is copied under those two interfaces.
104
This configuration can be verified using the show protocols dot1x | display inheritance command.
SEE ALSO
Physical Interfaces
The M Series, MX Series, and T Series routers support aggregated interfaces. To specify an aggregated
interface assign a number with the aggregated interface name. For example, configure aex at the [edit
interfaces] hierarchy level, where x is an integer ranging 0 through 127 for M Series and T Series routers
and 0 through 479 on MX Series routers.
For aggregated SONET/SDH interfaces, configure asx at the [edit interfaces] hierarchy level.
NOTE: SONET/SDH aggregation is proprietary to the Junos OS and might not work with other
software.
If you are configuring VLANs for aggregated Ethernet interfaces, you must include the vlan-tagging
statement at the [edit interfaces aex] hierarchy level to complete the association.
SEE ALSO
IN THIS SECTION
For M Series and T Series Fast Ethernet 12-port and 48-port PIC interfaces, the management Ethernet
interface (fxp0 or em0), and the MX Series Tri-Rate Ethernet copper interfaces, you can explicitly set the
interface speed. The Fast Ethernet, fxp0, and em0 interfaces can be configured for 10 Mbps or 100 Mbps
(10m | 100m). The MX Series Tri-Rate Ethernet copper interfaces can be configured for 10 Mbps, 100 Mbps,
or 1 Gbps (10m | 100m | 1g). For information about management Ethernet interfaces and to determine
the management Ethernet interface type for your router, see Understanding Management Ethernet Interfaces
and Supported Routing Engines by RouterMX Series routers, with MX-DPC and Tri-Rate Copper SFPs, support
20x1 Copper to provide backwards compatibility with 100/10BASE-T and 1000BASE-T operation through
an Serial Gigabit Media Independent Interface (SGMII) interface.
[edit ]
user@host# edit interfaces interface-name
2. To configure the speed, include the speed statement at the [edit interfaces interface-name] hierarchy
level.
NOTE:
• By default, the M Series and T Series routers management Ethernet interface autonegotiates
whether to operate at 10 megabits per second (Mbps) or 100 Mbps. All other interfaces
automatically choose the correct speed based on the PIC type and whether the PIC is configured
to operate in multiplexed mode (using the no-concatenate statement in the [edit chassis]
configuration hierarchy.
• Starting with Junos OS Release 14.2 the auto-10m-100m option allows the fixed tri-speed
port to auto negotiate with ports limited by 100m or 10mmaximum speed. This option must
be enabled only for Tri-rate MPC port, that is, 3D 40x 1GE (LAN) RJ45 MIC on MX platform.
This option does not support other MICs on MX platform.,
• When you manually configure Fast Ethernet interfaces on the M Series and T Series routers,
link mode and speed must both be configured. If both these values are not configured, the
router uses autonegotiation for the link and ignores the user-configured settings.
• If the link partner does not support autonegotiation, configure either Fast Ethernet port
manually to match its link partner's speed and link mode. When the link mode is configured,
autonegotiation is disabled.
• On MX Series routers with tri-rate copper SFP interfaces, if the port speed is negotiated to
the configured value and the negotiated speed and interface speed do not match, the link will
not be brought up.
• When you configure the Tri-Rate Ethernet copper interface to operate at 1 Gbps,
autonegotiation must be enabled.
• Starting with Junos OS Release 11.4, half-duplex mode is not supported on Tri-Rate Ethernet
copper interfaces. When you include the speed statement, you must include the link-mode
full-duplex statement at the same hierarchy level.
SEE ALSO
speed
On aggregated Ethernet interfaces, you can set the required link speed for all interfaces included in the
bundle. Generally, all interfaces that make up a bundle must have the same speed. If you include in the
aggregated Ethernet interface an individual link that has a speed different from the speed that you specify
in the link-speed parameter, an error message is logged. However, there are exceptions.
107
Starting with Junos OS Release 13.2, aggregated Ethernet supports mixed rates and mixed modes on T640,
T1600, T4000, and TX Matrix Plus routers. For example, these mixes are supported:
• Member links of different modes (WAN and LAN) for 10-Gigabit Ethernet links.
• Member links of different rates: 10-Gigabit Ethernet, 40-Gigabit Ethernet, 50-Gigabit Ethernet,
100-Gigabit Ethernet, and OC192 (10-Gigabit Ethernet WAN mode)
Starting with Junos OS Release 14.1R1 and 14.2, support for mixed rates on aggregated Ethernet bundles
is extended to MX240, MX480, MX960, MX2010, and MX2020 routers.
Starting with Junos OS Release 14.2, aggregated Ethernet supports mixed link speeds on PTX Series Packet
Transport Routers.
NOTE:
• Member links of 50-Gigabit Ethernet can only be configured using the 50-Gigabit Ethernet
interfaces of 100-Gigabit Ethernet PIC with CFP (PD-1CE-CFP-FPC4).
• Starting with Junos OS Release 13.2, 100-Gigabit Ethernet member links can be configured
using the two 50-Gigabit Ethernet interfaces of 100-Gigabit Ethernet PIC with CFP. This
100-Gigabit Ethernet member link can be included in an aggregated Ethernet link that includes
member links of other interfaces as well. In releases before Junos OS Release 13.2, the
100-Gigabit Ethernet member link configured using the two 50-Gigabit Ethernet interfaces
of 100-Gigabit Ethernet PIC with CFP cannot be included in an aggregated Ethernet link that
includes member links of other interfaces.
To configure member links of mixed rates and mixed modes on T640, T1600, T4000, TX Matrix Plus, and
PTX routers, you need to configure the mixed option for the [edit interfaces aex aggregated-ether-options
link-speed] statement.
speed can be in bits per second either as a complete decimal number or as a decimal number followed
by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000).
108
Aggregated Ethernet interfaces on the M120 router can have one of the following speeds:
Aggregated Ethernet links on EX Series switches can be configured to operate at one of the following
speeds:
Aggregated Ethernet links on T Series, MX Series, PTX Series routers, and QFX5100, QFX10002,
QFX10008, and QFX10016 switches can be configured to operate at one of the following speeds:
SEE ALSO
aggregated-ether-options
109
1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level, where the interface-name
is so-fpc/pic/port.
[edit]
user@host# edit interfaces so-fpc/pic/port
For example, each port of 4-port OC12 PIC can be configured to be in OC3 or OC12 speed independently
when this PIC is in 4xOC12 concatenated mode.
1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level, where the interface-name
is so-fpc/pic/port.
[edit]
user@host# edit interfaces so-fpc/pic/port
For example, each port of 4-port OC12 PIC can be configured to be in OC3 or OC12 speed independently
when this PIC is in 4xOC12 concatenated mode.
1. In configuration mode, go to the [edit chassis fpc slot-number pic pic-number] hierarchy level.
[edit]
user@host# [edit chassis fpc slot-number pic pic-number]
110
For more information about using the non-concatenate statement, see the Junos OS Administration
Library.
SEE ALSO
By default, the router’s management Ethernet interface, fxp0 or em0, autonegotiates whether to operate
in full-duplex or half-duplex mode. Fast Ethernet interfaces can operate in either full-duplex or half-duplex
mode, and all other interfaces can operate only in full-duplex mode. For Gigabit Ethernet, the link partner
must also be set to full duplex.
NOTE: When you configure the Tri-Rate Ethernet copper interface to operate at 1 Gbps,
autonegotiation must be enabled.
111
NOTE: When you manually configure Fast Ethernet interfaces on the M Series and T Series
routers, link mode and speed must both be configured. If both these values are not configured,
the router uses autonegotiation for the link and ignores the user-configured settings.
NOTE: When the Fast Ethernet interface on Juniper Networks routers with autonegotiation
enabled interoperates with a device configured to operate in half-duplex mode (autonegotiation
disabled), the interface defaults to half-duplex mode after the PIC is taken offline and brought
back online. This results in packet loss and cyclic redundancy check (CRC) errors.
To explicitly configure an Ethernet interface to operate in either full-duplex or half-duplex mode, include
the link-mode statement at the [edit interfaces interface-name] hierarchy level:
You can configure a textual description of a logical unit on a physical interface to be the alias of an interface
name. Interface aliasing is supported only at the unit level. If you configure an alias name, the alias name
is displayed instead of the interface name in the output of all show, show interfaces, and other operational
mode commands. In Junos OS Release 12.3R8 and later, display of the alias can be suppressed in favor of
the actual interface name by using the display no-interface-alias parameter along with the show command.
Configuring an alias for a logical unit of an interface has no effect on how the interface on the router or
switch operates.
When you configure the alias name of an interface, the CLI saves the alias name as the value of the
interface-name variable in the configuration database. To enable backward compatibility with Junos OS
releases in which the support for interface aliases is not available, when the Junos OS processes query
the configuration database for the interface-name variable, the actual, exact value of the interface-name
variable is returned instead of the alias name for system operations and computations.
This capability to define interface alias names for physical and logical interfaces is useful in a Junos Node
Unifier (JNU) environment that contains a Juniper Networks MX Series 5G Universal Routing Platform as
a controller and EX Series Ethernet switches, QFX Series devices, and ACX Series Universal Metro Routers
as satellite devices. The following are the benefits of configuring an alias name, which enables a meaningful,
single, and easily identifiable name to be allocated to an interface:
112
• You can group physical interfaces as one aggregated interface (link aggregation group or LAG bundle)
and name that bundle as a satellite connection interface (for example, sat1).
• You can select a logical interface as a member of the LAG bundle or the entire LAG, and name that
interface to represent a satellite device port or a service instance (for example, ge-0/0/1).
• You can combine the satellite name and the interface name aliases to wholly represent the satellite port
name (for example, sat1:ge-0/0/1 or ge-sat1/0/0/1 or ge-1/0/0/1) in the most easily distinguishable
format that denotes a combination of port and satellite parts of the name.
To specify an interface alias, you can use the alias statement at the [edit interfaces interface-name unit
logical-unit-number] and [edit logical-systems logical-system-name interfaces interface-name unit
logical-unit-number] hierarchy levels.
NOTE: In Juniper Networks M Series Multiservice Edge Routers, if the same alias name is
configured on more than one logical interface, the router displays an error message and commit
fails.
SEE ALSO
alias | 293
IN THIS SECTION
Requirements | 113
Overview | 113
Configuration | 113
Verification | 116
This example shows how to add an alias to the logical unit of an interface. Using an alias to identify interfaces
as they appear in the output for operational commands can allow for more meaningful naming conventions
and easier identification.
113
Requirements
Overview
You can create an alias for each logical unit on a physical interface. The descriptive text you define for the
alias is displayed in the output of the show interfaces commands. In Junos OS Release 12.3R8 and later,
display of the alias can be suppressed in favor of the actual interface name by using the display
no-interface-alias parameter along with the show command. The alias configured for a logical unit of an
interface has no effect on how the interface on the router or switch operates – it is only a cosmetic label.
Configuration
IN THIS SECTION
Results | 115
Consider a scenario in which alias names are configured on the interfaces of a JNU controller that are
connected to a satellite, sat1, in the downlink direction in the JNU management network by using two
links. The alias names enable effective, streamlined identification of these interfaces in the operational
mode commands that are run on the controller and satellites.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information
about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
To add an alias name to the controller interfaces that are used to connect to the satellite devices in the
downlink direction:
1. Configure an alias name for the logical unit of an aggregated Ethernet interface that is used to connect
to a satellite, sat1, in the downlink direction. Configure inet family and address for the interface.
[edit]
user@host# set interfaces ae0 unit 0 alias "controller-sat1-downlink1"
user@host# set interfaces ae0.0 family inet address 10.0.0.1/24
2. Configure an alias name for the logical unit of another aggregated Ethernet interface that is used to
connect to the same satellite, sat1, in downlink direction. Configure INET family and address for the
interface.
[edit]
user@host# set interfaces ae0 unit 1 alias "controller-sat1-downlink2"
user@host# set interfaces ae0.0 family inet address 10.0.0.3/24
3. Configure an alias name for the Gigabit Ethernet interface on the controller and configure its parameters.
[edit]
user@host# set interfaces ge-0/0/0 vlan-tagging
user@host# set interfaces ge-0/0/0 unit 0 alias "ge-to-corp-gw1"
user@host# set interfaces ge-0/0/0.0 vlan-id 101
user@host# set interfaces ge-0/0/0.0 family inet address 1.1.1.1/23
[edit]
user@host# set interfaces ge-0/1/0 gigether-options 802.3ad ae0
user@host# set interfaces ge-0/1/1 gigether-options 802.3ad ae0
5. Configure RIP in the network between the controller and the firewall gateway.
[edit]
user@host# set protocols rip group corporate-firewall neighbor ge-to-corp-gw1
Results
In configuration mode, confirm your configuration by entering the show command. If the output does not
display the intended configuration, repeat the configuration instructions in this example to correct it.
[edit]
interfaces {
ae0 {
unit 0 {
alias "controller-sat1-downlink1";
family inet {
address 10.0.0.1/24;
}
}
unit 1 {
alias "controller-sat1-downlink2";
family inet {
address 10.0.0.3/24;
}
}
}
ge-0/0/0 {
vlan-tagging;
unit 0 {
alias "ge-to-corp-gw1";
vlan-id 101;
family inet {
address 1.1.1.1/23;
}
}
}
ge-0/1/0 {
gigether-options {
116
802.3ad ae0;
}
}
ge-0/1/1 {
gigether-options {
802.3ad ae0;
}
}
}
protocols rip {
group corporate-firewall {
neighbor ge-to-corp-gw1;
}
}
After you have confirmed that the interfaces are configured, enter the commit command in configuration
mode.
NOTE: In Juniper Networks M Series Multiservice Edge Routers, if the same alias name is
configured on more than one logical interface, the router displays an error message and commit
fails.
Verification
IN THIS SECTION
Verifying the Configuration of the Alias Name for the Controller Interfaces | 116
To verify that the alias name is displayed instead of the interface name, perform these steps:
Verifying the Configuration of the Alias Name for the Controller Interfaces
Purpose
Verify that the alias name is displayed instead of the interface name.
117
Action
Meaning
The output displays the details of the benchmarking test that was performed. For more information about
the show rip neighbor operational command, see show rip neighbor in the CLI Explorer.
SEE ALSO
alias | 293
118
For both the router and interfaces, the clock source can be an external clock that is received on the interface
or the router’s internal Stratum 3 clock.
For example, interface A can transmit on interface A’s received clock (external, loop timing) or the Stratum
3 clock (internal, line timing, or normal timing). Interface A cannot use a clock from any other source. For
interfaces such as SONET/SDH that can use different clock sources, you can configure the source of the
transmit clock on each interface.
The clock source resides on the System Control Board (SCB) for M40 routers, the System and Switch
Board (SSB) for M20 routers, the Control Board (CB) for M120 routers, and the Miscellaneous Control
Subsystem (MCS) for M40e and M160 routers. M7i and M10i routers have a clock source on the Compact
Forwarding Engine Board (CFEB) and Enhanced Compact Forwarding Engine Board (CFEB-E).
For T Series and MX Series, the clock source internal Stratum 3 clock resides on the SONET Clock Generator
and Switch Control Board (SCB) respectively. By default, the 19.44-MHz Stratum 3 reference clock
generates the clock signal for all serial PICs (SONET/SDH) and Plesiochronous Digital Hierarchy (PDH)
PICs. PDH PICs include DS3, E3, T1, and E1 PICs.
NOTE: M7i and M10i routers do not support external clocking of SONET interfaces.
For information about clocking on channelized interfaces, see Channelized IQ and IQE Interfaces Properties.
Also see Configuring the Clock Source on SONET/SDH Interfaces and Configuring the Channelized T3 Loop
Timing.
For information about configuring an external synchronization interface that can be used to synchronize
the internal Stratum 3 clock to an external source on the M40e, M120, M320, routers and T Series routers,
see Junos OS Administration Library, Configuring Junos OS to Support an External Clock Synchronization
Interface for M Series, MX Series, and T Series Routers.
For information about configuring Synchronous Ethernet on MX 80, MX240, MX480, and MX960 Universal
Routing Platforms, see Junos OS Administration Library, Synchronous Ethernet Overview and Configuring
Clock Synchronization Interface on MX Series Routers.
SEE ALSO
For both the router and interfaces, the clock source can be an external clock that is received on the interface
or the router’s internal Stratum 3 clock.
[edit]
user@host# edit interfaces interface-name
NOTE: M7i and M10i routers do not support external clocking of SONET interfaces.
NOTE: On Channelized SONET/SDH PICs, if you set the parent (or the master) controller clock
to external, then you must set the child controller clocks to the default value—that is, internal.
For example, on the Channelized STM1 PIC, if the clock on the Channelized STM1 interface
(which is the master controller) is set to external, then you must not configure the CE1 interface
(which is the child controller) clock to external. Instead you must configure the CE1 interface
clock to internal.
For information about clocking on channelized interfaces, see Channelized IQ and IQE Interfaces Properties.
Also see Configuring the Clock Source on SONET/SDH Interfaces and Configuring the Channelized T3 Loop
Timing.
For information about configuring an external synchronization interface that can be used to synchronize
the internal Stratum 3 clock to an external source on the M40e, M120, and M320 routers and on the T
Series routers, see Junos OS Administration Library, Configuring Junos OS to Support an External Clock
Synchronization Interface for M Series, MX Series, and T Series Routers.
120
For information about configuring Synchronous Ethernet on MX80, MX240, MX480, and MX960 Universal
Routing Platforms, see Junos OS Administration Library, Synchronous Ethernet Overview and Configuring
Clock Synchronization Interface on MX Series Routers.
SEE ALSO
IN THIS SECTION
Point-to-Point Protocol (PPP) encapsulation is the default encapsulation type for physical interfaces. You
need not configure encapsulation for any physical interfaces that support PPP encapsulation. If you do
not configure encapsulation, PPP is used by default.
For physical interfaces that do not support PPP encapsulation, you must configure an encapsulation to
use for packets transmitted on the interface. You can optionally configure an encapsulation on a logical
interface, which is the encapsulation used within certain packet types.
121
When you configure a point-to-point encapsulation (such as PPP or Cisco HDLC) on a physical interface,
the physical interface can have only one logical interface (that is, only one unit statement) associated with
it. When you configure a multipoint encapsulation (such as Frame Relay), the physical interface can have
multiple logical units, and the units can be either point-to-point or multipoint.
Ethernet CCC encapsulation for Ethernet interfaces with standard TPID tagging requires that the physical
interface have only a single logical interface. Ethernet interfaces in VLAN mode can have multiple logical
interfaces.
For Ethernet interfaces in VLAN mode, VLAN IDs are applicable as follows:
• For encapsulation type vlan-ccc, VLAN IDs 1 through 511 are reserved for normal VLANs. VLAN IDs
512 and above are reserved for VLAN CCCs.
• For encapsulation type vlan-vpls, VLAN IDs 1 through 511 are reserved for normal VLANs, and VLAN
IDs 512 through 4094 are reserved for VPLS VLANs. For 4-port Fast Ethernet interfaces, you can use
VLAN IDs 512 through 1024 for VPLS VLANs.
• For Gigabit Ethernet interfaces and Gigabit Ethernet IQ and IQE PICs with SFPs (except the 10-port
Gigabit Ethernet PIC and the built-in Gigabit Ethernet port on the M7i router), you can configure flexible
Ethernet services encapsulation on the physical interface. For interfaces with flexible-ethernet-services
encapsulation, all VLAN IDs are valid. VLAN IDs from 1 through 511 are not reserved.
• For encapsulation types extended-vlan-ccc and extended-vlan-vpls, all VLAN IDs are valid.
The upper limits for configurable VLAN IDs vary by interface type.
When you configure a TCC encapsulation, some modifications are needed to handle VPN connections
over unlike Layer 2 and Layer 2.5 links and terminate the Layer 2 and Layer 2.5 protocol locally.
• PPP TCC—Both Link Control Protocol (LCP) and Network Control Protocol (NCP) are terminated on the
router. Internet Protocol Control Protocol (IPCP) IP address negotiation is not supported. The Junos OS
strips all PPP encapsulation data from incoming frames before forwarding them. For output, the next
hop is changed to PPP encapsulation.
• Cisco HDLC TCC—Keepalive processing is terminated on the router. The Junos OS strips all Cisco HDLC
encapsulation data from incoming frames before forwarding them. For output, the next hop is changed
to Cisco HDLC encapsulation.
122
• Frame Relay TCC—All Local Management Interface (LMI) processing is terminated on the router. The
Junos OS strips all Frame Relay encapsulation data from incoming frames before forwarding them. For
output, the next hop is changed to Frame Relay encapsulation.
• ATM—Operation, Administration, and Maintenance (OAM) and Interim Local Management Interface
(ILMI) processing is terminated at the router. Cell relay is not supported. The Junos OS strips all ATM
encapsulation data from incoming frames before forwarding them. For output, the next hop is changed
to ATM encapsulation.
By default, PPP is the encapsulation type for physical interfaces. To configure the encapsulation on a
physical interface, include the encapsulation statement at the [edit interfaces interface-name] hierarchy
level:
[edit]
user@host# set interfaces so-fpc/pic/port
NOTE:
• When you configure a point-to-point encapsulation (such as PPP or Cisco HDLC) on a
physical interface, the physical interface can have only one logical interface (that is, only
one unit statement) associated with it. When you configure a multipoint encapsulation
(such as Frame Relay), the physical interface can have multiple logical units, and the units
can be either point-to-point or multipoint.
• When the encapsulation type is set to Cisco-compatible Frame Relay encapsulation, ensure
that the LMI type is set to ANSI or Q933-A.
• When vlan-vpls encapsulation is set at the physical interface level, commit check will
validate that there should not be any inet family configured within it.
123
Purpose
To display the configured encapsulation and its associated set options on a physical interface when the
following are set at the [edit interfaces interface-name] hierarchy level:
• interface-name—so-7/0/0
• Encapsulation—ppp
• Unit—0
• Family—inet
• Address—192.168.1.113/32
• Destination—192.168.1.114
Action
Run the show command at the [edit interfaces interface-name] hierarchy level.
Meaning
The configured encapsulation and its associated set options are displayed as expected. Note that the
second set of two family statements allow IS-IS and MPLS to run on the interface.
RELATED DOCUMENTATION
encapsulation
124
This topic describes how to configure interface encapsulation on PTX Series Packet Transport Routers.
Use the flexible-ethernet-services configuration statement to configure different encapsulation for different
logical interfaces under a physical interface. With flexible Ethernet services encapsulation, you can configure
each logical interface encapsulation without range restrictions for VLAN IDs.
• flexible-ethernet-services
• ethernet-ccc
• ethernet-tcc
• ethernet
• vlan-ccc
• vlan-tcc
NOTE: PTX Series Packet Transport Routers do not support extended-vlan-cc and
extended-vlan-tcc encapsulation on logical interfaces. Instead, you can configure a tag protocol
ID (TPID) value of 0x9100 to achieve the same results.
interfaces {
et-fpc/pic/port {
vlan-tagging;
encapsulation flexible-ethernet-services;
unit 0 {
vlan-id 1000;
family inet {
address 11.0.0.20/24;
}
}
unit 1 {
encapsulation vlan-ccc;
vlan-id 1010;
}
unit 2 {
125
encapsulation vlan-tcc;
vlan-id 1020;
family tcc {
proxy {
inet-address 11.0.2.160;
}
remote {
inet-address 11.0.2.10;
}
}
}
}
}
Configuring Keepalives
By default, physical interfaces configured with Cisco HDLC or PPP encapsulation send keepalive packets
at 10-second intervals. The Frame Relay term for keepalives is LMI packets; the Junos OS supports both
ANSI T1.617 Annex D LMIs and ITU Q933 Annex A LMIs. On ATM networks, OAM cells perform the
same function. You configure OAM cells at the logical interface level; for more information, see Defining
the ATM OAM F5 Loopback Cell Period.
[edit ]
user@host# edit interfaces interface-name
2. Include the no-keepalives statement at the [edit interfaces interface-name] hierarchy level.
To disable the sending of keepalives on a physical interface configured with Cisco HDLC encapsulation
for a translational cross-connection:
[edit ]
user@host# edit interfaces interface-name
2. Include the no-keepalives statement with the encapsulation cisco-hdlc-tcc statement at the [edit
interfaces interface-name] hierarchy level.
To disable the sending of keepalives on a physical interface configured with PPP encapsulation for a
translational cross-connection:
[edit ]
user@host# edit interfaces interface-name
2. Include the no-keepalives statement with the encapsulation ppp-tcc statement at the [edit interfaces
interface-name] hierarchy level.
For more information about translation cross-connections, see Circuit and Translational Cross-Connects
Overview.
When you configure PPP over ATM or Multilink PPP over ATM encapsulation, you can enable or disable
keepalives on the logical interface. For more information, see Configuring PPP over ATM2 Encapsulation.
[edit ]
user@host# edit interfaces interface-name
2. Include the keepalives statement at the [edit interfaces interface-name] hierarchy level.
127
[edit interfacesinterface-name]
keepalives;
[edit ]
user@host# edit interfaces interface-name
2. Include the keepalives statement with the appropriate option as intervalseconds, down-countnumber,
and the up-countnumber..
On interfaces configured with Cisco HDLC or PPP encapsulation, you can include the following three
keepalive statements; note that Frame Relay encapsulation is not affected by these statements:
• interval seconds—The time in seconds between successive keepalive requests. The range is from 1 second
through 32767 seconds, with a default of 10 seconds.
• down-count number—The number of keepalive packets a destination must fail to receive before the
network takes a link down. The range is from 1 through 255, with a default of 3.
• up-count number—The number of keepalive packets a destination must receive to change a link’s status
from down to up. The range is from 1 through 255, with a default of 1.
CAUTION: If interface keepalives are configured on an interface that does not support
the keepalives configuration statement (for example, 10-Gigabit Ethernet), the link
layer may go down when the PIC is restarted. Avoid configuring the keepalives on
interfaces that do not support the keepalives configuration statement.
For information about Frame Relay keepalive settings, see Configuring Frame Relay Keepalives.
On MX Series routers with Modular Port Concentrators/Modular Interface Cards (MPCs/MICs), the Packet
Forwarding Engine on an MPC/MIC processes and responds to Link Control Protocol (LCP) Echo-Request
keepalive packets that the PPP subscriber (client) initiates and sends to the router. The mechanism by
which LCP Echo-Request packets are processed by the Packet Forwarding Engine instead of by the Routing
128
Engine is referred to as PPP fast keepalive For more information about how PPP fast keepalive works on
an MX Series router with MPCs/MICs, see the Junos OS Subscriber Access Configuration Guide.
SEE ALSO
By default, physical interfaces are bidirectional; that is, they both transmit and receive traffic. You can
configure unidirectional link mode on a 10-Gigabit Ethernet interface that creates two new physical
interfaces that are unidirectional. The new transmit-only and receive-only interfaces operate independently,
but both are subordinate to the original parent interface.
The unidirectional interfaces enable the configuration of a unidirectional link topology. Unidirectional links
are useful for applications such as broadband video services where almost all traffic flow is in one direction,
from the provider to the user. Unidirectional link mode conserves bandwidth by enabling it to be
differentially dedicated to transmit and receive interfaces. In addition, unidirectional link mode conserves
ports for such applications because the transmit-only and receive-only interfaces act independently. Each
can be connected to different routers, for example, reducing the total number of ports required.
NOTE: Unidirectional link mode is currently supported on only the following hardware:
• 10–Gigabit Ethernet IQ2 PIC and 10–Gigabit Ethernet IQ2E PIC on the T Series router
The transmit-only interface is always operationally up. The operational status of the receive-only interface
depends only on local faults; it is independent of remote faults and of the status of the transmit-only
interface.
129
On the parent interface, you can configure attributes common to both interfaces, such as clocking, framing,
gigether-options, and sonet-options. On each of the unidirectional interfaces, you can configure
encapsulation, MAC address, MTU size, and logical interfaces.
Unidirectional interfaces support IP and IPv6. Packet forwarding takes place by means of static routes and
static ARP entries. which you can configure independently on both unidirectional interfaces.
Only transmit statistics are reported on the transmit-only interface (and shown as zero on the receive-only
interface). Only receive statistics are reported on the receive-only interface (and shown as zero on the
transmit-only interface). Both transmit and receive statistics are reported on the parent interface.
SEE ALSO
unidirectional
By default, physical interfaces are bidirectional; that is, they both transmit and receive traffic. You can
configure unidirectional link mode on a 10-Gigabit Ethernet interface that creates two new physical
interfaces that are unidirectional. The new transmit-only and receive-only interfaces operate independently,
but both are subordinate to the original parent interface.
To enable unidirectional link mode on a physical interface, perform the following steps:
[edit]
user@host# edit interfaces interface-name
2. Configure the unidirectional option to create two new, unidirectional (transmit-only and receive-only)
physical interfaces subordinate to the original parent interface.
NOTE: Unidirectional link mode is currently supported on only the following hardware:
• 10–Gigabit Ethernet IQ2 PIC and 10–Gigabit Ethernet IQ2E PIC on the T Series router
SEE ALSO
unidirectional
IN THIS SECTION
Physical interface damping limits the advertisement of the up and down transitions (flapping) on an interface.
Each time a transition occurs, the interface state is changed, which generates an advertisement to the
upper-level routing protocols. Damping helps reduce the number of these advertisements.
From the viewpoint of network deployment, physical interface flaps fall into the following categories:
Figure 6 on page 131 is used to describe these types of interface flaps and the damping configuration that
you can use in each case.
NOTE: We recommend that you use similar damping configurations on both ends of the physical
interface. Configuring damping on one end and not having interface damping on the other end
can result in undesired behavior.
The following sections describe the types of interface damping depending upon the transition time length.
Figure 6 on page 131 shows two routers with two transport devices between them. If a redundant link
between the two transport devices fails, link switching is performed. Link switching takes a number of
milliseconds. As shown in Figure 7 on page 132, during switching, both router interfaces might encounter
multiple flaps with an up-and-down duration of several milliseconds. These multiple flaps, if advertised to
the upper-level routing protocols, might result in undesired route updates. This is why you might want to
damp these interface flaps.
For shorter physical interface transitions, you configure interface damping with the hold-time statement
on the interface. The hold timer enables interface damping by not advertising interface transitions until
the hold timer duration has passed. When a hold-down timer is configured and the interface goes from
132
up to down, the down hold-time timer is triggered. Every interface transition that occurs during the
hold-time is ignored. When the timer expires and the interface state is still down, then the router begins
to advertise the interface as being down. Similarly, when a hold-up timer is configured and an interface
goes from down to up, the up hold-time timer is triggered. Every interface transition that occurs during
the hold-time is ignored. When the timer expires and the interface state is still up, then the router begins
to advertise the interface as being up.
When the link between a router interface and the transport devices is not stable, this can lead to periodic
flapping, as shown in Figure 8 on page 133. Flaps occur in the order of seconds or more, with an up-and-down
flap duration in the order of a second or more. In this case, using the hold timer feature might not produce
optimal results as it cannot suppress the relatively longer and repeated interface flaps. Increasing the hold
time duration to seconds still allows the system to send route updates on the flapping interface, so fails
to suppress periodically flapping interfaces on the system.
133
For longer periodic interface flaps, you configure interface damping with the damping statement on the
interface. This damping method uses an exponential back-off algorithm to suppress interface up-and-down
event reporting to the upper-level protocols. Every time an interface goes down, a penalty is added to the
interface penalty counter. If at some point the accumulated penalty exceeds the suppress level, the interface
is placed in the suppress state, and further interface link up and down events are not reported to the
upper-level protocols.
NOTE:
• Only PTX Series routers, T Series routers, MX960 routers, MX480 routers, MX240 routers,
MX80 routers, and M10i routers support interface damping for longer periodic interface flaps
on all the line cards.
• The system does not indicate whether an interface is down because of suppression or that is
the actual state of the physical interface. Because of this, SNMP link traps and Operation,
Administration, and Maintenance (OAM) protocols cannot differentiate the damped version
of the link state from the real version. Therefore, the traps and protocols might not work as
expected.
• You can verify suppression by viewing the information in the Damping field of the show
interface extensive command output.
At all times, the interface penalty counter follows an exponential decay process. Figure 9 on page 135 and
Figure 10 on page 136 show the decay process as it applies to recovery when the physical level link is down
134
or up. As soon as the accumulated penalty reaches the lower boundary of the reuse level, the interface is
marked as unsuppressed, and further changes in the interface link state are again reported to the upper-level
protocols. You use the max-suppress option to configure the maximum time for restricting the accumulation
of the penalty beyond the value of the maximum penalty. The value of the maximum penalty is calculated
by the software. The maximum penalty corresponds to the time it would take max-suppress to decay and
reach the reuse level. The penalty continues to decay after crossing the reuse level.
Figure 9 on page 135 and Figure 10 on page 136 show the accumulated penalty, and the decay over time
as a curve. Whenever the penalty is below the reuse level and the physical level link changes state, state
changes are advertised to the system and cause SNMP state changes.
Figure 9 on page 135 shows the penalty dropping below the reuse level when the physical link is down.
The system is notified of a state change only after the physical level link transitions to up.
135
Figure 9: Physical-Level Link Is Down When the Penalty Falls Below the Reuse Level
Figure 10 on page 136 shows the penalty dropping below the reuse level when the physical link is up. The
system is notified of a state change immediately.
136
Figure 10: Physical-Level Link Is Up When the Penalty Falls Below the Reuse Level
SEE ALSO
hold-time
By default, when an interface changes from being up to being down, or from down to up, this transition
is advertised immediately to the hardware and Junos OS. In some situations—for example, when an interface
is connected to an add/drop multiplexer (ADM) or wavelength-division multiplexer (WDM), or to protect
against SONET/SDH framer holes—you might want to damp interface transitions. This means not advertising
the interface’s transition until a certain period of time has passed, called the hold-time. When you have
damped interface transitions and the interface goes from up to down, the down hold-time timer is triggered.
Every interface transition that occurs during the hold-time is ignored. When the timer expires and the
interface state is still down, then the router begins to advertise the interface as being down. Similarly, when
an interface goes from down to up, the up hold-time timer is triggered. Every interface transition that
occurs during the hold-time is ignored. When the timer expires and the interface state is still up, then the
router begins to advertise the interface as being up. For information about physical interface damping, see
“Physical Interface Damping Overview” on page 130.
This task applies to damping shorter physical interface transitions in milliseconds. To damp longer physical
interface transitions in seconds, see “Damping Longer Physical Interface Transitions” on page 139.
[edit]
user@host# edit interfaces interface-name
The hold time can be a value from 0 through 4,294,967,295 milliseconds. The default value is 0, which
means that interface transitions are not damped. Junos OS advertises the transition within 100 milliseconds
of the time value you specify.
For most Ethernet interfaces, hold timers are implemented using a one-second polling algorithm. For
1-port, 2-port, and 4-port Gigabit Ethernet interfaces with small form-factor pluggable transceivers (SFPs),
hold timers are interrupt-driven.
138
SEE ALSO
Physical interface damping limits the advertisement of the up and down transitions (flapping) on an interface.
An unstable link between a router Interface and the transport devices can lead to periodic flapping. Longer
flaps occur with a period of about five seconds or more, with an up-and-down duration of one second.
For these longer periodic interface flaps, you configure interface damping with the damping statement on
the interface. This damping method uses an exponential back-off algorithm to suppress interface up and
down event reporting to the upper-level protocols. Every time an interface goes down, a penalty is added
to the interface penalty counter. If at some point the accumulated penalty exceeds the suppress level
max-suppress, the interface is placed in the suppress state, and further interface state up and down
transitions are not reported to the upper-level protocols.
NOTE:
• Only PTX Series routers, T Series routers, MX2010 routers, MX2020 routers, MX960 routers,
MX480 routers, MX240 routers, MX80 routers, and M10i routers support interface damping
for longer periodic interface flaps.
• The system does not indicate whether an interface is down because of suppression or that is
the actual state of the physical interface. Because of this, SNMP link traps and Operation,
Administration, and Maintenance (OAM) protocols cannot differentiate the damped version
of the link state from the real version. Therefore, the traps and protocols might not work as
expected.
• You can verify suppression by viewing the information in the Damping field of the show
interface extensive command output.
You can view the damping parameters with the show interfaces extensive command.
1. Select the interface to damp, where the interface name is interface-type-fpc/pic/port or an interface
range:
[edit]
user@host# edit interfaces interface-name
3. (Optional) Set the maximum time in seconds that an interface can be suppressed no matter how unstable
the interface has been.
NOTE: Configure max-suppress to a value that is greater than the value of half-life; otherwise,
the configuration is rejected.
4. (Optional) Set the decay half-life in seconds, which is the interval after which the accumulated interface
penalty counter is reduced by half if the interface remains stable.
NOTE: Configure max-suppress to a value that is greater than the value of half-life; otherwise,
the configuration is rejected.
5. (Optional) Set the reuse threshold (no units). When the accumulated interface penalty counter falls
below this value, the interface is no longer suppressed.
6. (Optional) Set the suppression threshold (no units). When the accumulated interface penalty counter
exceeds this value, the interface is suppressed.
SEE ALSO
damping | 305
IN THIS SECTION
Requirements | 141
Overview | 141
Configuration | 142
Verification | 143
This example shows how to configure damping for a physical interface on a PTX Series Packet Transport
Router.
Requirements
• One or more routers that provide input packets and receive output packets
Overview
Physical interface damping provides a smoothing of the up and down transitions (flapping) on an interface.
Each time a transition occurs, the interface state is changed, which generates an advertisement to the
upper-level routing protocols. Damping helps reduce the number of these advertisements.
From the viewpoint of network deployment, physical interface flaps fall into these categories:
• Nearly instantaneous multiple flaps of short duration (milliseconds). For shorter physical interface
transitions, you configure interface damping with the hold-time statement on the interface. The hold
timer enables interface damping by not advertising interface transitions until the hold timer duration
has passed. When a hold-down timer is configured and the interface goes from up to down, the interface
is not advertised to the rest of the system as being down until it has remained down for the hold-down
142
timer period. Similarly, when a hold-up timer is configured and an interface goes from down to up, it is
not advertised as being up until it has remained up for the hold-up timer period.
• Periodic flaps of long duration (seconds). For longer periodic interface flaps, you configure interface
damping with the damping statement on the interface. This damping method uses an exponential back-off
algorithm to suppress interface up and down event reporting to the upper-level protocols. Every time
an interface goes down, a penalty is added to the interface penalty counter. If at some point the
accumulated penalty exceeds the suppress level, the interface is placed in the suppress state, and further
interface state up transitions are not reported to the upper-level protocols.
Configuration
set interfaces xe-6/0/0 damping half-life 11 max-suppress 2222 reuse 3333 suppress 4444 enable
Step-by-Step Procedure
To configure damping on the PTX Series Packet Transport Router:
1. Set the half-life interval, maximum suppression, reuse, suppress values, and enable:
[edit interface]
user@router# set xe-6/0/0 damping half-life 11 max-suppress 2222 reuse 3333 suppress 4444 enable
2. Commit configuration:
[edit]
user@router# commit
Results
From configuration mode, confirm your configuration by entering the show interfaces command. If the
output does not display the intended configuration, repeat the instructions in this example to correct the
configuration.
half-life 11;
max-suppress 2222;
reuse 3333;
suppress 4444;
enable;
}
Verification
IN THIS SECTION
Purpose
Verify that damping is enabled on the interface and that the damping parameter values are correctly set.
Action
Meaning
144
SEE ALSO
damping | 305
By default, Simple Network Management Protocol (SNMP) notifications are sent when the state of an
interface or a connection changes. You can enable or disable these notification based on you requirements.
To explicitly enable sending SNMP notifications on the physical interface, perform the following steps:
[edit]
user@host# edit interfaces interface-name
2. Configure the traps option to enable sending of Simple Network Management Protocol (SNMP)
notifications when the state of the connection changes.
To disable sending SNMP notifications on the physical interface, perform the following steps:
[edit]
user@host# edit interfaces interface-name
2. Configure the no-traps option to disable sending of Simple Network Management Protocol (SNMP)
notifications when the state of the connection changes.
SEE ALSO
traps
IN THIS SECTION
Juniper Networks routers and switches can collect various kinds of data about traffic passing through the
router and switch. You can set up one or more accounting profiles that specify some common characteristics
of this data, including the following:
• The number of files that the router or switch retains before discarding, and the number of bytes per file
• The polling period that the system uses to record the data
You configure the profiles and define a unique name for each profile using statements at the [edit
accounting-options] hierarchy level. There are two types of accounting profiles: interface profiles and
filter profiles. You configure interface profiles by including the interface-profile statement at the [edit
accounting-options] hierarchy level. You configure filter profiles by including the filter-profile statement
at the [edit accounting-options] hierarchy level. For more information, see the Network Management and
Monitoring Guide.
You apply filter profiles by including the accounting-profile statement at the [edit firewall filter filter-name]
and [edit firewall family family filter filter-name] hierarchy levels. For more information, see the Routing
Policies, Firewall Filters, and Traffic Policers User Guide.
to a log file. For more information on how to configure an accounting-data log file, see the Configuring
Accounting-Data Log Files.
An interface profile specifies the information collected and written to a log file. You can configure a profile
to collect error and statistic information for input and output packets on a particular physical interface.
1. To configure which statistics should be collected for an interface, include the fields statement at the
[edit accounting-options interface-profile profile-name] hierarchy level.
2. Each accounting profile logs its statistics to a file in the /var/log directory. To configure which file to
use, include the file statement at the [edit accounting-options interface-profile profile-name] hierarchy
level.
NOTE: You must specify a file statement for the interface profile that has already been
configured at the [edit accounting-options] hierarchy level. For more information, see the
Configuring Accounting-Data Log Files
3. Each interface with an accounting profile enabled has statistics collected once per interval time specified
for the accounting profile. Statistics collection time is scheduled evenly over the configured interval.
To configure the interval, include the interval statement at the [edit accounting-options interface-profile
profile-name] hierarchy level.
NOTE: The minimum interval allowed is 1 minute. Configuring a low interval in an accounting
profile for a large number of interfaces might cause serious performance degradation.
4. To configure the interfaces on which the accounting needs to be performed, apply the interface profile
to a physical interface by including the accounting-profile statement at the [edit interfaces
interface-name] hierarchy level.
147
[edit interfaces]
user@host# set interface-name accounting-profile profile-name
SEE ALSO
Purpose
To display the configured accounting profile a particular physical interface at the [edit accounting-options
interface-profile profile-name] hierarchy level:
• interface-name—ge-1/0/1
• File name—if_stats
• Interval—15 minutes
Action
• Run the show command at the [edit edit interfaces ge-1/0/1] hierarchy level.
interface-profile if_profile {
interval 15;
file if_stats {
fields {
input-bytes;
output-bytes;
input-packets;
output-packets;
input-errors;
output-errors;
}
}
}
148
Meaning
The configured accounting and its associated set options are displayed as expected.
IN THIS SECTION
You can disable a physical interface, marking it as being down, without removing the interface configuration
statements from the configuration.
CAUTION: Dynamic subscribers and logical interfaces use physical interfaces for
connection to the network. The Junos OS allows you to set the interface to disable
and commit the change while dynamic subscribers and logical interfaces are still active.
This action results in the loss of all subscriber connections on the interface. Use care
when disabling interfaces.
[edit]
user@host# edit interfaces ge-fpc/pic/port
NOTE: On the router, when you use the disable statement at the edit interfaces hierarchy level,
depending on the PIC type, the interface might or might not turn off the laser. Older PIC
transceivers do not support turning off the laser, but newer Gigabit Ethernet PICs with SFP and
XFP transceivers do support it and the laser will be turned off when the interface is disabled.
WARNING: Do not stare into the laser beam or view it directly with optical instruments
even if the interface has been disabled.
[edit interfaces]
user@host# show
ge-0/3/2 {
unit 0 {
description CE2-to-PE1;
family inet {
address 20.1.1.6/24;
}
}
}
The following table describes the effect of using the set interfaces disable interface_name statement on
T series PICs.
Type of
PIC Model Number PIC Description PIC Behaviour
RELATED DOCUMENTATION
disable
151
IN THIS SECTION
This topic discusses how to configure various logical interface properties with examples.
For a physical interface device to function, you must configure at least one logical interface on that device.
For each logical interface, you must specify the protocol family that the interface supports. You can also
configure other logical interface properties. These vary by Physical Interface Card (PIC) and encapsulation
type, but include the IP address of the interface, and whether the interface supports multicast traffic,
data-link connection identifiers (DLCIs), virtual channel identifiers (VCIs) and virtual path identifiers (VPIs),
and traffic shaping.
To configure logical interface properties, include the statements at the following hierarchy levels:
SEE ALSO
Each logical interface must have a logical unit number. The logical unit number corresponds to the logical
unit part of the interface name. For more information, see “Interface Naming Overview” on page 26.
Point-to-Point Protocol (PPP), Cisco High-level Data Link Control (HDLC), and Ethernet circuit cross-connect
(CCC) encapsulations support only a single logical interface, whose logical unit number must be 0. Frame
Relay and ATM encapsulations support multiple logical interfaces, so you can configure one or more logical
unit numbers.
You specify the logical unit number by including the unit statement:
unit logical-unit-number {
...
}
The range of number available for the logical unit number varies for different interface types. See unit for
current range values.
You can include a text description of each logical unit in the configuration file. Any descriptive text you
include is displayed in the output of the show interfaces commands, and is also exposed in the ifAlias
Management Information Base (MIB) object. It has no impact on the interface’s configuration. To add a
text description, include the description statement:
description text;
The description can be a single line of text. If the text contains spaces, enclose it in quotation marks.
NOTE: You can configure the extended DHCP relay to include the interface description in the
option 82 Agent Circuit ID suboption. See “Using DHCP Relay Agent Option 82 Information” in
the Junos OS Broadband Subscriber Management and Services Library.
For information about describing physical interfaces, see “Configuring Interface Description” on page 89.
By default, the Junos OS uses the physical interface’s speed for the MIB-II object, ifSpeed. You can configure
the logical unit to populate the ifSpeed variable by configuring a bandwidth value for the logical interface.
The bandwidth statement sets an informational-only parameter; you cannot adjust the actual bandwidth
of an interface with this statement.
NOTE: We recommend that you be careful when setting this value. Any interface bandwidth
value that you configure using the bandwidth statement affects how the interface cost is
calculated for a dynamic routing protocol, such as OSPF. By default, the interface cost for a
dynamic routing protocol is calculated using the following formula:
cost = reference-bandwidth/bandwidth,
where bandwidth is the physical interface speed. However, if you specify a value for bandwidth
using the bandwidth statement, that value is used to calculate the interface cost, rather than
the actual physical interface bandwidth.
To configure the bandwidth value for a logical interface, include the bandwidth statement:
bandwidth rate;
rate is the peak rate, in bps or cps. You can specify a value in bits per second either as a complete decimal
number or as a decimal number followed by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000).
You can also specify a value in cells per second by entering a decimal number followed by the abbreviation
c; values expressed in cells per second are converted to bits per second using the formula 1 cps = 384 bps.
The value can be any positive integer. The bandwidth statement is valid for all logical interfaces, except
multilink interfaces.
IN THIS SECTION
You can configure an encapsulation on a logical interface, which is the encapsulation used within certain
packet types.
• With the atm-nlpid, atm-cisco-nlpid, and atm-vc-mux encapsulations, you can configure the inet family
only.
• With the CCC circuit encapsulations, you cannot configure a family on the logical interface.
• A logical interface cannot have frame-relay-ccc encapsulation unless the physical device also has
frame-relay-ccc encapsulation.
• A logical interface cannot have frame-relay-tcc encapsulation unless the physical device also has
frame-relay-tcc encapsulation. In addition, you must assign this logical interface a DLCI from 512 through
1022 and configure it as point-to-point.
• For frame-relay-ether-type-tcc encapsulation, you must assign this logical interface a DLCI from 512
through 1022.
• For interfaces that carry IP version 6 (IPv6) traffic, you cannot configure ether-over-atm-llc encapsulation.
155
• When you use ether-over-atm-llc encapsulation, you cannot configure multipoint interfaces.
• A logical interface cannot have vlan-ccc or vlan-vpls encapsulation unless the physical device also has
vlan-ccc or vlan-vpls encapsulation, respectively. In addition, you must assign this logical interface a
VLAN ID from 512 through 1023; if the VLAN ID is 511 or lower, it is subject to the normal destination
filter lookups in addition to source address filtering. For more information, see Configuring VLAN and
Extended VLAN Encapsulation.
• You can create an ATM cell-relay circuit by configuring an entire ATM physical device or an individual
virtual circuit (VC). When you configure an entire device, only cell-relay encapsulation is allowed on the
logical interfaces. For more information, see Configuring an ATM1 Cell-Relay Circuit Overview.
Generally, you configure an interface’s encapsulation at the [edit interfaces interface-name] hierarchy
level. However, for some encapsulation types, such as Frame Relay, ATM, and Ethernet virtual local area
network (VLAN) encapsulations, you can also configure the encapsulation type that is used inside the
Frame Relay, ATM, or VLAN circuit itself.
[edit]
user@host# set interfaces at-fpc/pic/port unit logical-unit-number
Purpose
To display the configured encapsulation and its associated set options on a physical interface when the
following are set at the [edit interfaces interface-name] or [edit logical-systems logical-system-name
interfaces interface-name] hierarchy level:
• interface-name—at-1/1/0
• Encapsulation—atm-ccc-cell-relay
• Unit—120
156
Action
Run the show command at the [edit interfaces interface-name] hierarchy level.
Meaning
The configured encapsulation and its associated set options are displayed as expected.
RELATED DOCUMENTATION
This topic describes how to configure interface encapsulation on PTX Series Packet Transport Routers.
Use the flexible-ethernet-services configuration statement to configure different encapsulation for different
logical interfaces under a physical interface. With flexible Ethernet services encapsulation, you can configure
each logical interface encapsulation without range restrictions for VLAN IDs.
• flexible-ethernet-services
• ethernet-ccc
• ethernet-tcc
• ethernet
• vlan-ccc
• vlan-tcc
157
NOTE: PTX Series Packet Transport Routers do not support extended-vlan-cc and
extended-vlan-tcc encapsulation on logical interfaces. Instead, you can configure a tag protocol
ID (TPID) value of 0x9100 to achieve the same results.
interfaces {
et-fpc/pic/port {
vlan-tagging;
encapsulation flexible-ethernet-services;
unit 0 {
vlan-id 1000;
family inet {
address 11.0.0.20/24;
}
}
unit 1 {
encapsulation vlan-ccc;
vlan-id 1010;
}
unit 2 {
encapsulation vlan-tcc;
vlan-id 1020;
family tcc {
proxy {
inet-address 11.0.2.160;
}
remote {
inet-address 11.0.2.10;
}
}
}
}
}
By default, all interfaces are assumed to be point-to-point connections. You must ensure that the maximum
transmission unit (MTU) sizes on both sides of the connection are the same.
158
For all interfaces except aggregated Ethernet, Fast Ethernet, and Gigabit Ethernet, you can explicitly
configure an interface to be a point-to-point connection by including the point-to-point statement:
point-to-point;
multipoint;
A dynamic profile acts as a template that enables you to create, update, or remove a configuration that
includes attributes for client access (for example, interface or protocol) or service (for example, IGMP).
Using these profiles you can consolidate all of the common attributes of a client (and eventually a group
of clients) and apply the attributes simultaneously.
After they are created, the profiles reside in a profile library on the router. You can then use the
dynamic-profile statement to attach profiles to interfaces. To assign a dynamic profile to a PPP interface,
you can include the dynamic-profile statement at the [edit interfaces interface-name unit logical-unit-number
ppp-options] hierarchy level:
For information about dynamic profiles, see Dynamic Profiles Overview in the Junos Subscriber Access
Configuration Guide.
For information about creating dynamic profiles, see Configuring a Basic Dynamic Profile in the Junos
Subscriber Access Configuration Guide.
For information about assigning a dynamic profile to a PPP interface, see Attaching Dynamic Profiles to
Static PPP Subscriber Interfaces in the Junos Subscriber Access Configuration Guide.
For information about using dynamic profiles to authenticate PPP subscribers, see Configuring Dynamic
Authentication for PPP Subscribers.
NOTE: Dynamic profiles for PPP subscribers are supported only on PPPoE interfaces for this
release.
IN THIS SECTION
Juniper Networks routers and switches can collect various kinds of data about traffic passing through the
router and switch. You can set up one or more accounting profiles that specify some common characteristics
of this data, including the following:
• The number of files that the router or switch retains before discarding, and the number of bytes per file
• The polling period that the system uses to record the data
You configure the profiles and define a unique name for each profile using statements at the [edit
accounting-options] hierarchy level. There are two types of accounting profiles: interface profiles and
filter profiles. You configure interface profiles by including the interface-profile statement at the [edit
160
accounting-options] hierarchy level. You configure filter profiles by including the filter-profile statement
at the [edit accounting-options] hierarchy level. For more information, see the Network Management and
Monitoring Guide.
You apply filter profiles by including the accounting-profile statement at the [edit firewall filter filter-name]
and [edit firewall family family filter filter-name] hierarchy levels. For more information, see the Routing
Policies, Firewall Filters, and Traffic Policers User Guide.
An interface profile specifies the information collected and written to a log file. You can configure a profile
to collect error and statistic information for input and output packets on a particular logical interface.
1. To configure which statistics should be collected for an interface, include the fields statement at the
[edit accounting-options interface-profile profile-name] hierarchy level.
2. Each accounting profile logs its statistics to a file in the /var/log directory. To configure which file to
use, include the file statement at the [edit accounting-options interface-profile profile-name] hierarchy
level.
NOTE: You must specify a file statement for the interface profile that has already been
configured at the [edit accounting-options] hierarchy level. For more information, see the
Configuring Accounting-Data Log Files
3. Each interface with an accounting profile enabled has statistics collected once per interval time specified
for the accounting profile. Statistics collection time is scheduled evenly over the configured interval.
To configure the interval, include the interval statement at the [edit accounting-options interface-profile
profile-name] hierarchy level.
161
NOTE: The minimum interval allowed is 1 minute. Configuring a low interval in an accounting
profile for a large number of interfaces might cause serious performance degradation.
4. To configure the interfaces on which the accounting needs to be performed, apply the interface profile
to a logial interface by including the accounting-profile statement at the [edit interfaces interface-name
unit logical-unit-number] hierarchy level.
[edit interfaces]
user@host# set interface-name unit logical-unit-numberaccounting-profile profile-name
SEE ALSO
Purpose
To display the configured accounting profile a particular logical interface at the [edit accounting-options
interface-profile profile-name] hierarchy level:
• interface-name—ge-1/0/1
• File name—if_stats
• Interval—15 minutes
Action
• Run the show command at the [edit interfaces ge-1/0/1 unit 1] hierarchy level.
interface-profile if_profile {
interval 15;
file if_stats {
fields {
input-bytes;
output-bytes;
input-packets;
output-packets;
input-errors;
output-errors;
}
}
}
Meaning
The configured accounting and its associated set options are displayed as expected.
By default, Simple Network Management Protocol (SNMP) notifications are sent when the state of an
interface or a connection changes. To explicitly enable these notifications on the logical interface, include
the traps statement; to disable these notifications on the logical interface, include the no-traps statement:
(traps | no-traps);
You can unconfigure a logical interface, effectively disabling that interface, without removing the logical
interface configuration statements from the configuration. To do this, include the disable statement:
163
disable;
When an interface is disabled, a route (pointing to the reserved target “REJECT”) with the IP address of
the interface and a 32–bit subnet mask is installed in the routing table. See Routing Protocols.
[edit interfaces]
user@host# show
et-2/1/1 {
vlan-tagging;
encapsulation flexible-ethernet-services;
unit 0 {
vlan-id 1000;
family inet {
address 11.0.0.20/24;
}
}
}
family inet {
address 11.0.0.20/24;
}
}
IN THIS SECTION
Operational Behavior of Interfaces When the Same IPv4 Address Is Assigned to Them | 171
This section discusses on how to configure protocol family and interface address properties.
165
A protocol family is a group of logical properties within an interface configuration. Protocol families include
all the protocols that make up a protocol suite. To use a protocol within a particular suite, you must configure
the entire protocol family as a logical property for an interface.
• Inet—Supports IP protocol traffic, including OSPF, BGP, and Internet Control Message Protocol (ICMP).
• Inet6—Supports IPv6 protocol traffic, including RIP for IPv6 (RIPng), IS-IS, and BGP.
• MPLS—Supports MPLS.
In addition to the common protocol suites, JUNOS protocol families sometimes use the following protocol
suites. For more information see, family.
To configure the logical interface’s protocol family, include the family statement, specifying the selected
family. To configure the protocol family, following are the minimum configuration tasks under the [edit
interfaces interface-name unit logical-unit-number family family] hierarchy.
Configure the unit and family so that the interface can Restricting Tunnels to Multicast Traffic
transmit and receive multicast traffic only
Disable the sending of redirect messages by the router Protocol Redirect Messages
SEE ALSO
family
166
You assign an address to an interface by specifying the address when configuring the protocol family. For
the inet or inet6 family, configure the interface IP address. For the iso family, configure one or more
addresses for the loopback interface. For the ccc, ethernet-switching, tcc, mpls, tnp, and vpls families,
you never configure an address.
NOTE: The point-to-point (PPP) address is taken from the loopback interface address that has
the primary attribute. When the loopback interface is configured as an unnumbered interface,
it takes the primary address from the donor interface.
1. Configure the interface address at the [edit interfaces interface-name unit logical-unit-number family
family] hierarchy level.
• To configure an IPv4 address on routers and switches running Junos OS, use the interface
interface-name unit number family inet address a.b.c.d/nn statement at the [edit interfaces] hierarchy
level.
You can also assign multiple IPv4 addresses on the same interface.
[edit interfaces ]
user@host# set interface-name unit logical-unit-number family inet address a.b.c.d/nn
NOTE:
• Juniper Networks routers and switches support /31 destination prefixes when used in
point-to-point Ethernet configurations; however, they are not supported by many other
devices, such as hosts, hubs, routers, or switches. You must determine if the peer system
also supports /31 destination prefixes before configuration.
• You can configure the same IPv4 address on multiple physical interfaces. When you
assign the same IPv4 address to multiple physical interfaces, the operational behavior of
those interfaces differs, depending on whether they are implicitly or explicitly
point-to-point .
• By default, all interfaces are assumed to be point-to-point (PPP) interfaces. For all
interfaces except aggregated Ethernet, Fast Ethernet, and Gigabit Ethernet, you can
explicitly configure an interface to be a point-to-point connection.
• If you configure the same IP address on multiple interfaces in the same routing instance,
Junos OS applies the configuration randomly on one of the interfaces. The other interfaces
will remain without an IP address.
• To configure an IPv6 address on routers and switches running Junos OS, use the interface
interface-name unit number family inet6 address aaaa:bbbb:...:zzzz/nn statement at the [edit interfaces]
hierarchy level.
[edit interfaces ]
user@host# set interface-name unit logical-unit-number family inet6 address aaaa:bbbb:...:zzzz/nn
168
NOTE:
• You represent IP version 6 (IPv6) addresses in hexadecimal notation using a
colon-separated list of 16-bit values. The double colon (::) represents all bits set to 0.
• You must manually configure the router or switch advertisement and advertise the default
prefix for autoconfiguration to work on a specific interface.
NOTE: The broadcast address must have a host portion of either all ones or all zeros. You
cannot specify the addresses 0.0.0.0 or 255.255.255.255
3. [Optional] specify the remote address of the connection for the encrypted, PPP-encapsulated, and
tunnel interfaces.
[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number family family address
address]
user@host# set destination address
4. [Optional] For interfaces that carry IP version 6 (IPv6) traffic, configure the host to assign iteslf a unique
64-Bit IP Version 6 interface identifier (EUI-64).
[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number family family address
address]
user@host# set eui-64
169
IN THIS SECTION
The router has a default address and a primary interface, and interfaces have primary and preferred
addresses.
The default address of the router is used as the source address on unnumbered interfaces. The routing
protocol process tries to pick the default address as the router ID, which is used by protocols, including
OSPF and internal BGP (IBGP).
The primary interface for the router is the interface that packets go out when no interface name is specified
and when the destination address does not imply a particular outgoing interface.
An interface’s primary address is used by default as the local address for broadcast and multicast packets
sourced locally and sent out the interface. An interface’s preferred address is the default local address used
for packets sourced by the local router to destinations on the subnet.
The default address of the router is chosen using the following sequence:
1. The primary address on the loopback interface lo0 that is not 127.0.0.1 is used.
The primary interface for the router has the following characteristics:
• It is the interface that packets go out when you type a command such as ping 255.255.255.255—that
is, a command that does not include an interface name (there is no interface type-0/0/0.0 qualifier) and
where the destination address does not imply any particular outgoing interface.
• It is the interface on which multicast applications running locally on the router, such as Session
Announcement Protocol (SAP), do group joins by default.
170
• It is the interface from which the default local address is derived for packets sourced out an unnumbered
interface if there are no non-127 addresses configured on the loopback interface, lo0.
By default, the multicast-capable interface with the lowest-index address is chosen as the primary interface.
If there is no such interface, the point-to-point interface with the lowest index address is chosen. Otherwise,
any interface with an address could be picked. In practice, this means that, on the router, the fxp0 or em0
interface is picked by default.
To configure a different interface to be the primary interface, include the primary statement:
primary;
The primary address on an interface is the address that is used by default as the local address for broadcast
and multicast packets sourced locally and sent out the interface. For example, the local address in the
packets sent by a ping interface so-0/0/0.0 255.255.255.255 command is the primary address on interface
so-0/0/0.0. The primary address flag also can be useful for selecting the local address used for packets
sent out unnumbered interfaces when multiple non-127 addresses are configured on the loopback interface,
lo0. By default, the primary address on an interface is selected as the numerically lowest local address
configured on the interface.
primary;
The preferred address on an interface is the default local address used for packets sourced by the local
router to destinations on the subnet. By default, the numerically lowest local address is chosen. For example,
if the addresses 172.16.1.1/12, 172.16.1.2/12, and 172.16.1.3/12 are configured on the same interface,
171
the preferred address on the subnet (by default, 172.16.1.1) would be used as a local address when you
issue a ping 172.16.1.5 command.
To set a different preferred address for the subnet, include the preferred statement:
preferred;
You can configure the same IPv4 address on multiple physical interfaces. When you assign the same IPv4
address to multiple physical interfaces, the operational behavior of those interfaces differs, depending on
whether they are (implicitly) point-to-point or not.
NOTE: For all interfaces except aggregated Ethernet, Fast Ethernet, and Gigabit Ethernet, you
can explicitly configure an interface to be a point-to-point connection.
If you configure the same IP address on multiple interfaces in the same routing instance, Junos OS applies
the configuration randomly on one of the interfaces. The other interfaces will remain without an IP address.
The following examples show the sample configuration of assigning the same IPv4 address to implicitly
and explicitly point-to-point interfaces, and their corresponding show interfaces terse command outputs
to see their operational status.
[edit]
user@host# show
ge-0/1/0 {
unit 0 {
family inet {
address 200.1.1.1/24;
}
172
}
}
ge-3/0/1 {
unit 0 {
family inet {
address 200.1.1.1/24;
}
}
}
The sample output shown below for the above configuration reveals that only ge-0/1/0.0 was assigned
the same IPv4 address 200.1.1.1/24 and its link state was up, while ge-3/0/1.0 was not assigned the
IPv4 address, though its link state was up, which means that it will be operational only when it gets a
unique IPv4 address other than 200.1.1.1/24.
[edit]
user@host# show
so-0/0/0 {
unit 0 {
family inet {
address 200.1.1.1/24;
}
}
}
so-0/0/3 {
unit 0 {
family inet {
address 200.1.1.1/24;
173
}
}
}
The sample output shown below for the above configuration reveals that both so-0/0/0.0 and so-0/0/3.0
were assigned the same IPv4 address 200.1.1.1/24 and that their link states were down. The interfaces
are down due to an issue with the link and not because same IPv4 address is assigned to both the
interfaces. It is expected that not more than one of the interface is up at any given time (following a
redundancy scheme outside of the JUNOS devices scope) as both being up may cause adverse effects.
[edit interfaces]
user@host# show
ge-0/0/1 {
vlan-tagging;
unit 0 {
vlan-id 1;
family inet {
address 1.1.1.1/24;
}
}
unit 1{
vlan-id 2;
family inet {
174
address 1.1.1.1/24;
}
}
}
On a non-P2P interface, you cannot configure the same local address on different units of different
interfaces. In this case, commit error will be thrown and the configuration will not be successful.
Configuring same IPv4 address in multiple instances of the same p2p interface
[edit interfaces]
user@host# show
gr-0/0/10 {
unit 0 {
tunnel {
source 1.1.1.1;
destination 1.1.1.2;
}
family inet {
mtu 1500;
address 1.2.2.2/24;
}
}
unit 1{
family inet {
address 1.2.2.2/24;
}
}
}
The sample output shown below for the above configuration reveals that only one interfaces gets
successfully configured on P2P interfaces, when you try to configure same IPv4 address for multiple
instance of different interfaces.
For interfaces with PPP encapsulation, you can configure IPCP to negotiate IP address assignments and
to pass network-related information such as Windows Name Service (WINS) and Domain Name System
(DNS) servers, as defined in RFC 1877, PPP Internet Protocol Control Protocol Extensions for Name Server
Addresses.
When you enable a PPP interface, you can configure an IP address, enable the interface to negotiate an
IP address assignment from the remote end, or allow the interface to be unnumbered. You can also assign
a destination profile to the remote end. The destination profile includes PPP properties, such as primary
and secondary DNS and NetBIOS Name Servers (NBNSs). These options are described in the following
sections:
NOTE: The Junos OS does not request name servers from the remote end; the software does,
however, send name servers to the remote end if requested.
You must configure the PPP encapsulation on the interface before configuring the IPCP option. On the
logical interface, the following PPP encapsulation types are supported:
• atm-mlppp-llc
• atm-ppp-llc
• atm-ppp-vc-mux
• multilink-ppp
For more information about PPP encapsulation, see “Configuring Interface Encapsulation on Logical
Interfaces” on page 154 and Configuring ATM Interface Encapsulation
176
• To configure an IP address for the interface, include the address statement in the configuration. For
more information, see “Configuring the Interface Address” on page 166.
If you include the address statement in the configuration, you cannot include the negotiate-address or
unnumbered-address statement in the configuration.
When you include the address statement in the interface configuration, you can assign PPP properties
to the remote end.
NOTE: The option to negotiate an IP address is not allowed in MLFR and MFR encapsulations.
• To enable the interface to obtain an IP address from the remote end, include the negotiate-address
statement at the [edit interfaces interface-name unit logical-unit-number family inet] hierarchy level.
NOTE: If you include the negotiate-address statement in the configuration, you cannot include
the address or unnumbered-address statement in the configuration.
NOTE:
• The unnumbered-address statement enables the local address to be derived from the
specified interface. The interface name must include a logical unit number and must have a
configured address (see “Configuring the Interface Address” on page 166). Specify the IP
address of the remote interface with the destination statement.
• If you include the unnumbered-address statement in the configuration, you cannot include
the address or negotiate-address statement in the interface configuration.
• To assign PPP properties to the remote end include the destination-profile statement:
177
NOTE:
• You can assign PPP properties to the remote end, after you include the address or
unnumbered-address statement in the interface configuration.
• You define the profile at the [edit access group-profile name ppp] hierarchy level. For more
information, see Example: PPP MP for L2TP
SEE ALSO
IN THIS SECTION
Configuring a Preferred Source Address for Unnumbered Ethernet or Demux Interfaces | 180
Displaying the Configured Preferred Source Address for an Unnumbered Ethernet Interface | 183
Displaying the Configuration for Unnumbered Ethernet Interface as the Next Hop for a Static Route | 184
When you need to conserve IP addresses, you can configure unnumbered interfaces. Setting up an
unnumbered interface enables IP processing on the interface without assigning an explicit IP address to
the interface. For IPv6, in which conserving addresses is not a major concern, you can configure unnumbered
interfaces to share the same subnet across multiple interfaces. IPv6 unnumbered interfaces are only
supported on Ethernet interfaces. The statements you use to configure an unnumbered interface depend
on the type of interface you are configuring: a point-to-point interface or an Ethernet interface:
[edit ]
user@host# edit interfaces interface-name unit logical-unit-number
2. To configure an unnumbered point-to-point interface, configure the protocol family, but do not include
the address statement.
NOTE:
• For interfaces with PPP encapsulation, you can configure an unnumbered interface by including
the unnumbered-interface statement in the configuration. For more information, see
“Configuring IPCP Options for Interfaces with PPP Encapsulation” on page 175.
• When configuring unnumbered interfaces, you must ensure that a source address is configured
on some interface in the router. This address is the default address. We recommend that you
do this by assigning an address to the loopback interface (lo0), as described in “Loopback
Interface Configuration” on page 233. If you configure an address (other than a martian) on the
lo0 interface, that address is always the default address, which is preferable because the
loopback interface is independent of any physical interfaces and therefore is always accessible.
[edit ]
user@host# edit interfaces interface-name unit logical-unit-number family family-name
3. (Optional) To specify the unnumbered Ethernet interface as the next-hop interface for a configured
static route, include the qualified-next-hop statement at the [edit routing-options static route
destination-prefix] hierarchy level. This feature enables you to specify independent preferences and
metrics for static routes on a next-hop basis.
NOTE:
• The unnumbered-address statement currently supports configuration of unnumbered demux
interfaces only for the IPv4 address family. You can configure unnumbered Ethernet interfaces
for both IPv4 and IPv6 address families.
• The interface that you configure to be unnumbered borrows an assigned IP address from
another interface, and is referred to as the borrower interface. The interface from which the IP
address is borrowed is referred to as the donor interface. In the unnumbered-address statement,
interface-name specifies the donor interface. For an unnumbered Ethernet interface, the donor
interface can be an Ethernet, ATM, SONET, or loopback interface that has a logical unit number
and configured IP address and is not itself an unnumbered interface. For an unnumbered IP
demultiplexing interface, the donor interface can be an Ethernet or loopback interface that
has a logical unit number and configured IP address and is not itself an unnumbered interface.
In addition, for either Ethernet or demux, the donor interface and the borrower interface must
be members of the same routing instance and the same logical system.
• When you configure an unnumbered Ethernet or demux interface, the IP address of the donor
interface becomes the source address in packets generated by the unnumbered interface.
• You can configure a host route that points to an unnumbered Ethernet or demux interface.
For information about host routes, see the MPLS Applications User Guide.
180
When a loopback interface with multiple secondary IP addresses is configured as the donor interface for
an unnumbered Ethernet or demux interface, you can optionally specify any one of the loopback interface’s
secondary addresses as the preferred source address for the unnumbered Ethernet or demux interface.
This feature enables you to use an IP address other than the primary IP address on some of the unnumbered
Ethernet or demux interfaces in your network.
[edit ]
user@host# edit interfaces interface-name unit logical-unit-number family family-name
2. To configure a secondary address on a loopback donor interface as the preferred source address for
an unnumbered Ethernet or demux interface, include the preferred-source-address option in the
unnumbered-address statement:
NOTE:
The following considerations apply when you configure a preferred source address on an
unnumbered Ethernet or demux interface:
• If you do not specify the preferred source address, the router uses the default primary IP
address of the donor interface.
• You cannot delete an address on a donor loopback interface while it is being used as the
preferred source address for an unnumbered Ethernet or demux interface.
181
The following restrictions apply when you configure unnumbered Ethernet interfaces:
• You cannot assign an IP address to an Ethernet interface that is already configured as an unnumbered
interface.
• The donor interface for an unnumbered Ethernet interface must have one or more configured IP addresses.
• The donor interface for an unnumbered Ethernet interfaced cannot be configured as unnumbered.
• An unnumbered Ethernet interface does not support configuration of the following address statement
options: arp, broadcast, primary, preferred, and vrrp-group. For information about these options, see
“Configuring the Interface Address” on page 166.
• Running IGMP and PIM are supported only on unnumbered Ethernet interfaces that directly face the
host and have no downstream PIM neighbors. IGMP and PIM are not supported on unnumbered Ethernet
interfaces that act as upstream interfaces in a PIM topology.
• Running OSPF and IS-IS on unnumbered Ethernet interfaces is not supported. However, you can run
OSPF over unnumbered Ethernet interfaces configured as a Point-to-Point connection.
For link-state distribution using an interior gateway protocol (IGP), ensure that OSPF is enabled on the
donor interface for an unnumbered interface configuration, so the donor IP address is reachable to
establish OSPF sessions.
182
NOTE: If you configure the same address on multiple interfaces in the same routing instance,
Junos OS uses only the first configuration, the remaining address configurations are ignored and
can leave interfaces without an address. Interfaces that do not have an assigned address cannot
be used as a donor interface for an unnumbered Ethernet interface.
For example, in the following configuration the address configuration of interface xe-0/0/1.0 is
ignored:
interfaces {
xe-0/0/0 {
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
xe-0/0/1 {
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
For more information on configuring the same address on multiple interfaces, see “Configuring
the Interface Address” on page 166.
Purpose
To display the configured unnumbered interface at the [edit interfaces interface-name unit
logical-unit-number] hierarchy level:
Action
• Run the show command at the [edit] hierarchy level.
183
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
address 4.4.4.1/24;
}
}
}
ge-1/0/0 {
unit 0 {
family inet {
unnumbered-address ge-0/0/0.0;
}
}
}
}
Meaning
The sample configuration that is described works correctly on M and T Series routers. For unnumbered
interfaces on MX Series routers, you must additionally configure static routes on an unnumbered Ethernet
interface by including the qualified-next-hop statement at the [edit routing-options static route
destination-prefix] hierarchy level to specify the unnumbered Ethernet interface as the next-hop interface
for a configured static route.
Displaying the Configured Preferred Source Address for an Unnumbered Ethernet Interface
Purpose
To display the configuration of preferred source address for an unnumbered interface at the [edit interfaces
interface-name unit logical-unit-number family inet] hierarchy level:
Action
• Run the show command at the [edit] hierarchy level.
interfaces {
lo0 {
unit 0 {
184
family inet {
address 2.2.2.1/32;
address 3.3.3.1/32;
}
}
}
}
interfaces {
ge-4/0/0 {
unit 0 {
family inet {
unnumbered-address lo0.0 preferred-source-address 3.3.3.1;
}
}
}
}
Meaning
The loopback interface lo0 is the donor interface from which unnumbered Ethernet interface ge-4/0/0
“borrows” an IP address.
The example shows one of the loopback interface’s secondary addresses, 3.3.3.1, as the preferred source
address for the unnumbered Ethernet interface.
Displaying the Configuration for Unnumbered Ethernet Interface as the Next Hop for a Static
Route
Purpose
To display the unnumbered interface configured as the next hop for the static route at the [edit interfaces
interface-name unit logical-unit-number family inet] hierarchy level:
• Static route—7.7.7.1/32
Action
• Run the show command at the [edit] hierarchy level.
185
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
unnumbered-address lo0.0;
}
}
}
}
lo0 {
unit 0 {
family inet {
address 5.5.5.1/32;
address 6.6.6.1/32;
}
}
}
• The following configuration enables the kernel to install a static route to address 7.7.7.1/32 with a next
hop through unnumbered interface ge-0/0/0.0.
static {
route 7.7.7.1/32 {
qualified-next-hop ge-0/0/0.0;
}
}
Meaning
In this example, ge-0/0/0 is the unnumbered interface and a loopback interface, lo0, is the donor interface
from which ge-0/0/0 “borrows” an IP address. The example also configures a static route to 7.7.7.1/32
with a next hop through unnumbered interface ge-0/0/0.0.
When you initially configure an interface, the protocol maximum transmission unit (MTU) is calculated
automatically. If you subsequently change the media MTU, the protocol MTU on existing address families
automatically changes.
For a list of default protocol MTU values, see “Media MTU Sizes by Interface Type” on page 74.
To modify the MTU for a particular protocol family, include the mtu statement:
186
mtu bytes;
If you increase the size of the protocol MTU, you must ensure that the size of the media MTU is equal to
or greater than the sum of the protocol MTU and the encapsulation overhead. For a list of encapsulation
overhead values, see “Encapsulation Overhead by Interface Encapsulation Type” on page 88. If you reduce
the media MTU size, but there are already one or more address families configured and active on the
interface, you must also reduce the protocol MTU size. (You configure the media MTU by including the
mtu statement at the [edit interfaces interface-name] hierarchy level.)
NOTE: Changing the media MTU or protocol MTU causes an interface to be deleted and added
again.
The maximum number of data-link connection identifiers (DLCIs) is determined by the MTU on the interface.
If you have keepalives enabled, the maximum number of DLCIs is 1000, with the MTU set to 5012.
The actual frames transmitted also contain cyclic redundancy check (CRC) bits, which are not part of the
MTU. For example, the default protocol MTU for a Gigabit Ethernet interface is 1500 bytes, but the largest
possible frame size is actually 1504 bytes; you need to consider the extra bits in calculations of MTUs for
interoperability.
SEE ALSO
For Point-to-Point Protocol (PPP) CCC-encapsulated interfaces, the address and control bytes are removed
by default before the packet is encapsulated into a tunnel.
You can disable the removal of address and control bytes. To do this, include the keep-address-and-control
statement:
keep-address-and-control;
187
SEE ALSO
keep-address-and-control | 354
By default, the interface sends protocol redirect messages. To disable the sending of these messages on
an interface, include the no-redirects statement:
no-redirects;
To disable the sending of protocol redirect messages for the entire router or switch, include the no-redirects
statement at the [edit system] hierarchy level.
SEE ALSO
no-redirects
IN THIS SECTION
When applying a firewall filter, you can define an interface to be part of an interface group. Packets received
on that interface are tagged as being part of the group. You can then match these packets using the
interface-group match statement, as described in the Routing Policies, Firewall Filters, and Traffic Policers
User Guide.
To define the interface to be part of an interface group, include the group statement:
group filter-group-number;
When an FBF filter is installed as an output filter, a packet that is forwarded to the filter has already
undergone at least one route lookup. After the packet is classified at the egress interface by the FBF filter,
it is redirected to another routing table for additional route lookup. To avoid packet looping inside the
Packet Forwarding Engine, the route lookup in the latter routing table (designated by an FBF routing
instance) must result in a different next hop from any next hop specified in a table that has already been
applied to the packet.
If an input interface is configured for FBF, the source lookup is disabled for those packets headings to a
different routing instance, since the routing table is not set up to handle the source lookup.
For more information about FBF configuration, see the Junos OS Routing Protocols Library. For more
information about port mirroring, see the Junos OS Services Interfaces Library for Routing Devices.
filter {
group filter-group-number;
input filter-name;
input-list [ filter-names ];
output filter-name;
output-list [ filter-names ];
}
filter {
input filter-name;
}
To apply a list of filters to evaluate packets received on an interface, include the input-list statement.
filter {
input-list [ filter-names ];
}
To apply a list of filters to evaluate packets transmitted on an interface, include the output-list statement.
filter {
output-list [ filter-names ];
}
When you apply filters using the input-list statement or the output-list statement, a new filter is created
with the name <interface-name>.<unit-direction>. This filter is exclusively interface-specific.
In the family statement, the protocol family can be ccc, inet, inet6, mpls, or vpls.
In the group statement, specify the interface group number to associate with the filter.
In the input statement, list the name of one firewall filter to be evaluated when packets are received on
the interface.
In the input-list statement, list the names of filters to evaluate when packets are received on the interface.
You can include up to 16 filter names.
190
In the output statement, list the name of one firewall filter to be evaluated when packets are transmitted
on the interface.
NOTE: Output filters do not work for broadcast and multicast traffic, including VPLS traffic
(except in MX Series routers with MPC/MIC interfaces), as shown in “Applying a Filter to an
Interface” on page 188.
NOTE: MPLS family firewall filters applied on the output interface are not supported on the
PTX10003 router due to product limitation.
NOTE: On an MX Series router, you cannot apply as an output filter, a firewall filter configured
at the [edit firewall filter family ccc] hierarchy level. Firewall filters configured for the family ccc
statement can be applied only as input filters.
In the output-list statement, list the names of filters to evaluate when packets are transmitted on the
interface. You can include up to 16 filter names.
You can use the same filter one or more times. On M Series routers (except the M320 and M120 routers),
if you apply a firewall filter or policer to multiple interfaces, the filter or policer acts on the sum of traffic
entering or exiting those interfaces.
On T Series, M120, and M320 routers, interfaces are distributed among multiple packet forwarding
components. Therefore, on these routers, if you apply a firewall filter or policer to multiple interfaces, the
filter or policer acts on the traffic stream entering or exiting each interface, regardless of the sum of traffic
on the multiple interfaces.
For more information on Understanding Ethernet Frame Statistics, see the MX Series Layer 2 Configuration
Guide.
If you apply the filter to the interface lo0, it is applied to packets received or transmitted by the Routing
Engine. You cannot apply MPLS filters to the management interface (fxp0 or em0) or the loopback interface
(lo0).
Filters applied at the [set interfaces lo0 unit 0 family any filter input] hierarchy level are not installed on
T4000 Type 5 FPCs.
For more information about firewall filters, see the Routing Policies, Firewall Filters, and Traffic Policers User
Guide. For more information about MPLS filters, see the MPLS Applications User Guide.
For M Series and T Series routers only, apply an input filter to VPLS traffic. Output filters do not work for
broadcast and multicast traffic, including VPLS traffic. Note that on MX Series routers with MPC/MIC
interfaces, the VPLS filters on the egress is applicable to broadcast, multicast, and unknown unicast traffic.
[edit interfaces]
fe-2/2/3 {
vlan-tagging;
encapsulation vlan-vpls;
unit 601 {
encapsulation vlan-vpls;
vlan-id 601;
family vpls {
filter {
input filter1; # Works for multicast destination MAC address
output filter1; # Does not work for multicast destination MAC address
}
}
}
}
[edit firewall]
family vpls {
filter filter1 {
term 1 {
from {
destination-mac-address {
01:00:0c:cc:cc:cd/48;
}
}
then {
discard;
}
}
term 2 {
then {
accept;
}
}
}
}
The following example illustrates the configuration of filter-based forwarding at the output interface. In
this example, the packet flow follows this path:
1. A packet arrives at interface fe-1/2/0.0 with source and destination addresses 10.50.200.1 and
10.50.100.1 respectively.
2. The route lookup in routing table inet.0 points to the egress interface so-0/0/3.0.
3. The output filter installed at so-0/0/3.0 redirects the packet to routing table fbf.inet.0.
4. The packet matches the entry 10.50.100.0/25 in the fbf.inet.0 table, and finally leaves the router from
interface so-2/0/0.0.
[edit interfaces]
so-0/0/3 {
unit 0 {
family inet {
filter {
output fbf;
}
address 10.50.10.2/25;
}
}
}
fe-1/2/0 {
unit 0 {
family inet {
address 10.50.50.2/25;
}
}
}
so-2/0/0 {
unit 0 {
family inet {
address 10.50.20.2/25;
}
}
}
[edit firewall]
filter fbf {
term 0 {
from {
source-address {
193
10.50.200.0/25;
}
}
then routing-instance fbf;
}
term d {
then count d;
}
}
[edit routing-instances]
fbf {
instance-type forwarding;
routing-options {
static {
route 10.50.100.0/25 next-hop so-2/0/0.0;
}
}
}
[edit routing-options]
interface-routes {
rib-group inet fbf-group;
}
static {
route 10.50.100.0/25 next-hop 10.50.10.1;
}
rib-groups {
fbf-group {
import-rib [inet.0 fbf.inet.0];
}
}
IN THIS SECTION
For interfaces that carry IPv4, IPv6, MPLS, or peer AS billing traffic, you can maintain packet counts based
on the entry and exit points for traffic passing through your network. Entry and exit points are identified
by source and destination prefixes grouped into disjoint sets defined as source classes and destination
classes. You can define classes based on a variety of parameters, such as routing neighbors, autonomous
systems, and route filters.
Source class usage (SCU) counts packets sent to customers by performing lookup on the IP source address.
SCU makes it possible to track traffic originating from specific prefixes on the provider core and destined
for specific prefixes on the customer edge. You must enable SCU accounting on both the inbound and
outbound physical interfaces, and the route for the source of the packet must be in located in the forwarding
table.
NOTE: SCU and DCU accounting do not work with directly connected interface routes. Source
class usage does not count packets coming from sources with direct routes in the forwarding
table because of software architecture limitations.
Destination class usage (DCU) counts packets from customers by performing lookup of the IP destination
address. DCU makes it possible to track traffic originating from the customer edge and destined for specific
prefixes on the provider core router.
NOTE: We recommend that you stop the network traffic on an interface before you modify the
DCU or SCU configuration for that interface. Modifying the DCU or SCU configuration without
stopping the traffic might corrupt the DCU or SCU statistics. Before you restart the traffic after
modifying the configuration, enter the clear interfaces statistics command.
Figure 11 on page 195 illustrates an Internet service provider (ISP) network. In this topology, you can use
DCU to count packets customers send to specific prefixes. For example, you can have three counters, one
per customer, that count the packets destined for prefix 210.210/16 and 220.220/16.
You can use SCU to count packets the provider sends from specific prefixes. For example, you can count
the packets sent from prefix 210.210/16 and 215.215/16 and transmitted on a specific output interface.
195
You can configure up to 126 source classes and 126 destination classes. For each interface on which you
enable destination class usage and source class usage, the Junos OS maintains an interface-specific counter
for each corresponding class up to the 126 class limit.
NOTE: For transit packets exiting the router through the tunnel, forwarding path features, such
as RPF, forwarding table filtering, source class usage, and destination class usage are not supported
on the interfaces you configure as the output interface for tunnel traffic. For firewall filtering,
you must allow the output tunnel packets through the firewall filter applied to input traffic on
the interface that is the next-hop interface towards the tunnel destination.
NOTE:
Performing DCU accounting when an output service is enabled produces inconsistent behavior
in the following configuration:
• Both SCU input and DCU are configured on the packet input interface.
For an incoming packet with source and destination prefixes matching the SCU and DCU classes
respectively configured in the router, both SCU and DCU counters will be incremented. This
behavior is not harmful or negative. However, it is inconsistent with non-serviced packets, in
that only the SCU count will be incremented (because the SCU class ID will override the DCU
class ID in this case).
accounting {
196
destination-class-usage;
source-class-usage {
direction;
}
}
• input output—On a single interface, configure at least one expected ingress point and one expected
egress point.
For SCU to work, you must configure at least one input interface and at least one output interface.
The ability to count a single packet for both SCU and DCU accounting depends on the underlying physical
interface.
• For traffic over MPC/MIC interfaces , a single incoming packet is counted for both SCU and DCU
accounting if both SCU and DCU are configured. To ensure the outgoing packet is counted, include the
source-class-usage output statements in the configuration of the outgoing interface.
• For traffic over DPC interfaces, an incoming packet is counted only once, and SCU takes priority over
DCU. This means that when a packet arrives on an interface on which you include the source-class-usage
input and destination-class-usage statements in the configuration, and when the source and destination
both match accounting prefixes, the Junos OS associates the packet with the source class only.
For traffic over MPC interfaces , SCU and DCU accounting is performed after output filters are evaluated.
If a packet matches a firewall filter match condition, the packet is included in SCU or DCU accounting
except in the case where the action of the matched term is discard.
On T Series, M120, and M320 routers, the source class and destination classes are not carried across the
router fabric. The implications of this are as follows:
• On T Series, M120, and M320 routers, SCU and DCU accounting is performed before the packet enters
the fabric.
• On M7i, M10i, M120, and M320 routers, on MX Series routers with non-MPC, and on T Series routers,
SCU and DCU accounting is performed before output filters are evaluated. Consequently, if a packet
197
matches a firewall filter match condition, the packet is included in SCU or DCU accounting; the packet
is counted for any term action (including the discard action).
• On M120, M320, and T Series routers, the destination-class and source-class statements are supported
at the [edit firewall family family-name filter filter-name term term-name from] hierarchy level only for
the filter applied to the forwarding table. On M7i, M10i, and MX Series routers, these statements are
supported.
Once you enable accounting on an interface, the Junos OS maintains packet counters for that interface,
with separate counters for inet, inet6, and mpls protocol families. You must then configure the source
class and destination class attributes in policy action statements, which must be included in forwarding-table
export policies.
NOTE: When configuring policy action statements, you can configure only one source class for
each matching route. In other words, more than one source class cannot be applied to the same
route.
In Junos OS Release 9.3 and later, you can configure SCU accounting for Layer 3 VPNs configured with
the vrf-table-label statement. Include the source-class-usage statement at the [edit routing-instances
routing-instance-name vrf-table-label] hierarchy level. The source-class-usage statement at this hierarchy
level is supported only for the virtual routing and forwarding (VRF) instance type.
NOTE: DCU counters cannot be enabled on the label-switched interface (LSI) that is created
dynamically when the vrf-table-label statement is configured within a VRF. For more information,
see the Junos OS VPNs Library for Routing Devices.
For a complete discussion about source and destination class accounting profiles, see the Network
Management and Monitoring Guide. For more information about MPLS, see the MPLS Applications User
Guide.
198
[edit]
interfaces {
so-6/1/0 {
unit 0 {
family inet {
accounting {
destination-class-usage;
source-class-usage {
output;
}
}
}
}
}
}
Source routers A and B use loopback addresses as the prefixes to be monitored. Most of the
configuration tasks and actual monitoring occur on transit Router SCU.
The loopback address on Router A contains the origin of the prefix that is to be assigned to source
class A on Router SCU. However, no SCU processing happens on this router. Therefore, configure
Router A for basic OSPF routing and include your loopback interface and interface so-0/0/2 in the
OSPF process.
199
2. Router A
[edit]
interfaces {
so-0/0/2 {
unit 0 {
family inet {
address 10.255.50.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.255.192.10/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.0 {
interface so-0/0/2.0;
interface lo0.0;
}
}
}
3. Router SCU
Router SCU handles the bulk of the activity in this example. On Router SCU, enable source class usage
on the inbound and outbound interfaces at the [edit interfaces interface-name unit unit-number family
inet accounting] hierarchy level. Make sure you specify the expected traffic: input, output, or, in this
case, both.
Next, configure a route filter policy statement that matches the prefixes of the loopback addresses
from routers A and B. Include statements in the policy that classify packets from Router A in one group
named scu-class-a and packets from Router B in a second class named scu-class-b. Notice the efficient
use of a single policy containing multiple terms.
[edit]
interfaces {
200
so-0/0/1 {
unit 0 {
family inet {
accounting {
source-class-usage {
input;
output;
}
}
address 10.255.50.1/24;
}
}
}
so-0/0/3 {
unit 0 {
family inet {
accounting {
source-class-usage {
input;
output;
}
}
address 10.255.10.3/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.255.6.111/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.0 {
interface so-0/0/1.0;
interface so-0/0/3.0;
}
}
}
routing-options {
forwarding-table {
201
export scu-policy;
}
}
policy-options {
policy-statement scu-policy {
term 0 {
from {
route-filter 10.255.192.0/24 orlonger;
}
then source-class scu-class-a;
}
term 1 {
from {
route-filter 10.255.165.0/24 orlonger;
}
then source-class scu-class-b;
}
}
}
4. Router B
Just as Router A provides a source prefix, Router B's loopback address matches the prefix assigned to
scu-class-b on Router SCU. Again, no SCU processing happens on this router, so configure Router B
for basic OSPF routing and include your loopback interface and interface so-0/0/4 in the OSPF process.
interfaces {
so-0/0/4 {
unit 0 {
family inet {
address 10.255.10.4/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.255.165.226/32;
}
}
}
}
protocols {
202
ospf {
area 0.0.0.0 {
interface so-0/0/4.0;
interface lo0.0;
}
}
}
You can use SCU and DCU to count packets on Layer 3 VPNs. To enable packet counting for Layer 3
VPN implementations at the egress point of the MPLS tunnel, you must configure a virtual loopback
tunnel interface (vt) on the PE router, map the virtual routing and forwarding (VRF) instance type to
the virtual loopback tunnel interface, and send the traffic received from the VPN out the source class
output interface, as shown in the following example:
Configure a virtual loopback tunnel interface on a provider edge router equipped with a tunnel PIC:
[edit interfaces]
vt-0/3/0 {
unit 0 {
family inet {
accounting {
source-class-usage {
input;
}
}
}
}
}
6. Map the VRF instance type to the virtual loopback tunnel interface.
In Junos OS Release 9.3 and later, you can configure SCU accounting for Layer 3 VPNs configured with
the vrf-table-label statement. Include the source-class-usage statement at the [edit routing-instances
routing-instance-name vrf-table-label] hierarchy level. The source-class-usage statement at this hierarchy
level is supported only for the virtual routing and forwarding (VRF) instance type. DCU is not supported
when the vrf-table-label statement is configured. For more information, see the Junos OS VPNs Library
for Routing Devices.
[edit routing-instances]
VPN-A {
203
instance-type vrf;
interface at-2/1/1.0;
interface vt-0/3/0.0;
route-distinguisher 10.255.14.225:100;
vrf-import import-policy-A;
vrf-export export-policy-A;
protocols {
bgp {
group to-r4 {
local-address 10.27.253.1;
peer-as 400;
neighbor 10.27.253.2;
}
}
}
}
7. Send traffic received from the VPN out the source class output interface:
[edit interfaces]
at-2/1/0 {
unit 0 {
family inet {
accounting {
source-class-usage {
output;
}
}
}
}
}
For more information about VPNs, see the Junos OS VPNs Library for Routing Devices. For more
information about virtual loopback tunnel interfaces, see the Junos OS Services Interfaces Library for
Routing Devices.
SEE ALSO
accounting | 286
destination-classes
family
204
forward-and-send-to-re | 335
source-classes
targeted-broadcast
unit
Targeted broadcast is a process of flooding a target subnet with Layer 3 broadcast IP packets originating
from a different subnet. The intent of targeted broadcast is to flood the target subnet with the broadcast
packets on a LAN interface without broadcasting to the entire network. Targeted broadcast is configured
with various options on the egress interface of the router or switch and the IP packets are broadcast only
on the LAN (egress) interface. Targeted broadcast helps you implement remote administration tasks such
as backups and wake-on LAN (WOL) on a LAN interface, and supports virtual routing and forwarding (VRF)
instances.
Regular Layer 3 broadcast IP packets originating from a subnet are broadcast within the same subnet.
When these IP packets reach a different subnet, they are forwarded to the Routing Engine (to be forwarded
to other applications). Because of this, remote administration tasks such as backups cannot be performed
on a particular subnet through another subnet. As a workaround you can enable targeted broadcast, to
forward broadcast packets that originate from a different subnet.
Layer 3 broadcast IP packets have a destination IP address that is a valid broadcast address for the target
subnet. These IP packets traverse the network in the same way as unicast IP packets until they reach the
destination subnet. In the destination subnet, if the receiving router has targeted broadcast enabled on
the egress interface, the IP packets are forwarded to an egress interface and the Routing Engine or to an
egress interface only. The IP packets are then translated into broadcast IP packets which flood the target
subnet only through the LAN interface (if there is no LAN interface, the packets are discarded), and all
hosts on the target subnet receive the IP packets. If targeted broadcast is not enabled on the receiving
router, the IP packets are treated as regular Layer 3 broadcast IP packets and are forwarded to the Routing
Engine. If targeted broadcast is enabled without any options, the IP packets are forwarded to the Routing
Engine.
Targeted broadcast can be configured to forward the IP packets only to an egress interface, which is helpful
when the router is flooded with packets to process, or to both an egress interface and the Routing Engine.
205
NOTE: Targeted broadcast does not work when the targeted broadcast option
forward-and-send-to-re and the traffic sampling option sampling are configured on the same
egress interface of an M320 router, a T640 router, or an MX960 router. To overcome this
scenario, you must either disable one of the these options or enable the sampling option with
the targeted broadcast option forward-only on the egress interface. For information about traffic
sampling, see Configuring Traffic Sampling.
NOTE: Any firewall filter that is configured on the Routing Engine loopback interface (lo0) cannot
be applied to IP packets that are forwarded to the Routing Engine as a result of a targeted
broadcast. This is because broadcast packets are forwarded as flood next hop and not as local
next hop traffic, and you can only apply a firewall filter to local next hop routes for traffic directed
towards the Routing Engine.
SEE ALSO
targeted-broadcast
IN THIS SECTION
The following sections explain how to configure targeted broadcast on an egress interface and its options:
206
You can configure targeted broadcast on an egress interface with different options. You can either allow
the IP packets destined for a Layer 3 broadcast address to be forwarded on the egress interface and to
send a copy of the IP packets to the Routing Engine or you can allow the IP packets to be forwarded on
the egress interface only. Note that the packets are broadcast only if the egress interface is a LAN interface.
[edit]
user@host# set interfaces interface-name
2. Configure the logical unit number at the [edit interfaces interface-name hierarchy level.
3. Configure the protocol family as inet at the [edit interfaces interface-name unit interface-unit-number
hierarchy level.
4. Configure targeted broadcast at the [edit interfaces interface-name unit interface-unit-number family
inet hierarchy level
• To allow IP packets destined for a Layer 3 broadcast address to be forwarded on the egress interface
and to send a copy of the IP packets to the Routing Engine.
NOTE: Targeted broadcast does not work when the targeted broadcast option
forward-and-send-to-re and the traffic sampling option sampling are configured on the same
egress interface of an M320 router, a T640 router, or an MX960 router. To overcome this
scenario, you must either disable one of the these options or enable the sampling option with
the targeted broadcast option forward-only on the egress interface. For information about traffic
sampling, see Configuring Traffic Sampling.
IN THIS SECTION
Forward IP Packets On the Egress Interface and To the Routing Engine | 207
The following topics display targeted broadcast configuration with its various options:
Purpose
Display the configuration when targeted broadcast is configured on the egress interface to forward the
IP packets on the egress interface and to send a copy of the IP packets to the Routing Engine.
Action
To display the configuration run the show command at the [edit interfaces interface-name unit
interface-unit-number family inet] where the interface name is ge-2/0/0, the unit value is set to 0, the
protocol family is set to inet.
Purpose
Display the configuration when targeted broadcast is configured on the egress interface to forward the
IP packets on the egress interface only.
Action
To display the configuration run the show command at the [edit interfaces interface-name unit
interface-unit-number family inet] where the interface name is ge-2/0/0, the unit value is set to 0, the
protocol family is set to inet.
SEE ALSO
targeted-broadcast
2 CHAPTER
Other Interfaces
Discard Interfaces
IN THIS SECTION
The discardinterface dsc is not a physical interface, but a virtual interface that discards packets.
IN THIS SECTION
Discard Interfaces
You can configure the inet family protocol on the discard interface, which allows you to apply an output
filter to the interface. If you apply an output filter to the interface, the action specified by the filter is
executed before the traffic is discarded.
After you configure a discard interface, you must then configure a local policy to forward attacking traffic
to the discard interface.
211
• The discard interface allows you to identify the ingress point of a denial-of-service (DoS) attack. When
your network is under attack, the target host IP address is identified, and the local policy forwards
attacking packets to the discard interface. When traffic is routed out of the discard interface, the traffic
is silently discarded.
Keep the following guidelines in mind when configuring the discard interface:
• Although you can configure an input filter and a filter group, these configuration statements have no
effect because traffic is not transmitted from the discard interface.
IN THIS SECTION
The discard (dsc) interface is a virtual interface that silently discards packets as they arrive. It is especially
useful if the network is under a denial-of-service (DoS) attack, because you can configure a policy to drop
millions of requests from being sent to a given target address, or set of addresses.
In addition, with a discard interface, you can configure filters for counting, logging, and sampling the traffic
(which you cannot do with discard static routes).
Note that a discard interface can have only one logical unit (unit 0), but you can configure multiple IP
addresses on that unit.
In M and MX series routers, the discard interface is supported for inet, mpls, and vpls traffic families.
Starting in Junos release 20.1, for MX Series routers, the discard interface is also supported for the inet6
family.
212
[edit]
user@host# edit interfaces
2. Configure the discard interface. Note that you must use ’dsc’ to configure discard interface and ensure
that there is no discard interface already configured.
[edit interfaces]
user@host# edit dsc
You must configure an output policy to set up the community on the routes injected into the network.
213
[edit]
user@host# edit policy-options
[edit policy-options]
user@host# edit policy-statement statement-name
5. Configure the action that is to be taken when the if and to conditions match with the then statement.
In this case, configure the BGP community properties (set, add, and delete) associated with a route.
SEE ALSO
IP Demultiplexing Interfaces
IN THIS SECTION
Demultiplexing (demux) interfaces are logical interfaces that share a common, underlying interface. You
can create logical subscriber interfaces using static or dynamic demultiplexing interfaces. In addition, you
can use IP demultiplexing interfaces or VLAN demultiplexing interfaces when creating logical subscriber
interfaces.
IN THIS SECTION
Demux interfaces support only Gigabit Ethernet, Fast Ethernet, 10-Gigabit Ethernet, or aggregated Ethernet
underlying interfaces.
NOTE: You can also configure demux interfaces dynamically. For information about how to
configure dynamic IP demux or dynamic VLAN demux interfaces, see Configuring Dynamic
Subscriber Interfaces Using IP Demux Interfaces in Dynamic Profiles or Configuring Dynamic Subscriber
Interfaces Using VLAN Demux Interfaces in Dynamic Profiles.
To configure static demux interfaces, see “Configuring a VLAN Demultiplexing Interface” on page 223 and
“Configuring an IP Demultiplexing Interface” on page 218.
IP demux interfaces use the IP source address or IP destination address to demultiplex received packets
when the subscriber is not uniquely identified by a Layer 2 circuit.
To determine which IP demux interface to use, the destination or source prefix is matched against the
destination or source address of packets that the underlying interface receives. The underlying interface
family type must match the demux interface prefix type.
VLAN demux interfaces use the VLAN ID to demultiplex received packets when the subscriber is not
uniquely identified. A VLAN demux interface uses an underlying logical interface to receive packets.
To determine which VLAN demux interface to use, the VLAN ID is matched against that which the underlying
interface receives.
NOTE: VLAN demux subscriber interfaces over aggregated Ethernet physical interfaces are
supported only for MX Series routers that have only Trio MPCs installed. If the router has other
MPCs in addition to Trio MPCs, theCLI accepts the configuration but errors are reported when
the subscriber interfaces are brought up.
IN THIS SECTION
Keep the following guidelines in mind when configuring the demux interface:
• Only demux0 is supported. If you configure another demux interface, such as demux1, the configuration
commit fails.
• You can configure only one demux0 interface per chassis, but you can define logical demux interfaces
on top of it (for example, demux0.1, demux0.2, and so on).
• If the address in a received packet does not match any demux prefix, the packet is logically received on
the underlying interface. For this reason, the underlying interface is often referred to as the primary
interface.
NOTE: IP demux interfaces currently support only Gigabit Ethernet, Fast Ethernet, 10-Gigabit
Ethernet, and aggregated Ethernet underlying interfaces.
• The demux underlying interface must reside on the same logical system as the demux interfaces that
you configure over it.
• IP demux interfaces currently supports the Internet Protocol version 4 (IPv4) suite inet and Internet
Protocol version 6 (IPv6) suite inet6 family types.
• You can configure more than one demux prefix for a given demux unit. However, you cannot configure
the exact same demux prefix on two different demux units with the same underlying interface.
• You can configure overlapping demux prefixes on two different demux units with the same underlying
prefix. However, under this configuration, best match rules apply (in other words, the most specific prefix
wins).
• You must associate VLAN demux interfaces with an underlying logical interface.
NOTE: VLAN demux interfaces currently support only Gigabit Ethernet, Fast Ethernet,
10-Gigabit Ethernet, and aggregated Ethernet underlying interfaces.
217
• The demux underlying interface must reside on the same logical system as the demux interfaces that
you configure over it.
• VLAN demux interfaces currently supports the Internet Protocol version 4 (IPv4) suite inet and Internet
Protocol version 6 (IPv6) suite inet6 family types.
IN THIS SECTION
Loose | 217
Strict | 217
MAC address validation enables the router to validate that received packets contain a trusted IP source
and an Ethernet MAC source address.
MAC address validation is supported on static demux interfaces on MX Series routers only.
There are two types of MAC address validation that you can configure:
Loose
Forwards packets when both the IP source address and the MAC source address match one of the trusted
address tuples.
Drops packets when the IP source address matches one of the trusted tuples, but the MAC address does
not support the MAC address of the tuple
Continues to forward packets when the source address of the incoming packet does not match any of the
trusted IP addresses.
Strict
Forwards packets when both the IP source address and the MAC source address match one of the trusted
address tuples.
Drops packets when the MAC address does not match the tuple's MAC source address, or when IP source
address of the incoming packet does not match any of the trusted IP addresses.
SEE ALSO
Demultiplexing (demux) interfaces are logical interfaces that share a common, underlying interface. You
can configure IP demultiplexing interfaces or VLAN demultiplexing interfaces.
To configure an IP demux interface, you must configure the demux prefixes that are used by the underlying
interface and then configure the IP demultiplexing interface as explained in the following tasks:
An IP demux interface uses an underlying logical interface to receive packets. To determine which IP
demux interface to use, the destination or source prefix is matched against the destination or source
address of packets that the underlying interface receives. The underlying interface family type must match
the demux interface prefix type.
NOTE: IP demux interfaces currently support only Gigabit Ethernet, Fast Ethernet, 10-Gigabit
Ethernet, and aggregated Ethernet underlying interfaces.
[edit]
user@host# edit interfaces
2. Configure the interface as fe-x/y/z and the logical interface with the unit statement. Note that IP demux
interfaces currently support only Gigabit Ethernet, Fast Ethernet, 10-Gigabit Ethernet, and aggregated
Ethernet underlying interfaces. In this procedure, we show a Fast Ethernet interface as an example.
[edit interfaces]
219
3. Configure the logical demux source family type on the IP demux underlying interface as inet or inet6,
or both.
or
4. (Optional) To improve datapath performance for DHCPv4 subscribers, specify that only subscribers
with 32-bit prefixes are allowed to come up on the interface.
NOTE: This step requires that you specify the demux-source as only inet. A commit error
occurs if you specify only inet6 or both inet and inet6.
[edit]
user@host# edit interfaces
220
2. Configure the interface as fe-x/y/z and the logical interface with the unit statement. Note that IP demux
interfaces currently support only Gigabit Ethernet, Fast Ethernet, 10-Gigabit Ethernet, and aggregated
Ethernet underlying interfaces.
[edit interfaces]
user@host# edit fe-x/y/z unit logical-unit-number unit logical-unit-number
3. Configure the logical demux destination family type on the IP demux underlying interface as inet or
inet6.
You can configure one or more logical demux source prefixes or destination prefixes after specifying an
underlying interface for the static demux interface to use. This underlying interface must reside on the
same logical system as the demux interface.
You configure demux prefixes for use by the underlying interface. The demux prefixes can represent
individual hosts or networks. For a given demux interface unit, you can configure either demux source or
demux destination prefixes but not both.
You can choose not to configure a demux source or demux destination prefix. This type of configuration
results in a transmit-only interface.
[edit]
user@host# edit interfaces
2. Configure the interface as a logical demux interface (for example, demux0 interface) and configure the
logical interface with the unit statement.
221
NOTE: You can configure only one demux0 interface per chassis, but you can define logical
demux interfaces on top of it (for example, demux0.1, demux0.2, and so on).
[edit interfaces]
user@host# edit demux0 unit logical-unit-number
3. Configure the underlying interface on which the demux interface is running under the demux-options
statement.
5. Configure one or more logical demux source prefixes (IP address). The prefixes are matched against
the source address of packets that the underlying interface receives. When a match occurs, the packet
is processed as if it was received on the demux interface.
[edit]
user@host# edit interfaces
222
2. Configure the interface as a logical demux interface (for example, demux0 interface) and configure the
logical interface with the unit statement.
NOTE: You can configure only one demux0 interface per chassis, but you can define logical
demux interfaces on top of it (for example, demux0.1, demux0.2, and so on).
[edit interfaces]
user@host# edit demux0 unit logical-unit-number
3. Configure the underlying interface on which the demux interface is running under the demux-options
statement.
5. Configure one or more logical demux destination prefixes. The prefixes are matched against the
destination address of packets that the underlying interface receives. When a match occurs, the packet
is processed as if it was received on the demux interface.
MAC address validation enables the router to validate that received packets contain a trusted IP source
and an Ethernet MAC source address.
1. In configuration mode, go to the [edit interfaces demux0 unit logical-unit-number] hierarchy level:
[edit]
user@host# edit interfaces demux0 unit logical-unit-number
3. Configure the mac-validate statement to validate source MAC address with loose or strict options.
Demultiplexing (demux) interfaces are logical interfaces that share a common, underlying interface. You
can configure IP demultiplexing interfaces or VLAN demultiplexing interfaces.
To configure a VLAN demux interface, you must configure the demux prefixes that are used by the
underlying interface and then configure the VLAN demultiplexing interface as explained by the following
tasks:
A VLAN demux interface uses an underlying logical interface to receive packets. To determine which VLAN
demux interface to use, the VLAN ID is matched against that which the underlying interface receives.
NOTE: VLAN demux interfaces currently support only Gigabit Ethernet, Fast Ethernet, 10-Gigabit
Ethernet, and aggregated Ethernet underlying interfaces.
VLAN demux subscriber interfaces over aggregated Ethernet physical interfaces are supported
only for MX Series routers that have only Trio MPCs installed. If the router has other MPCs in
addition to Trio MPCs, the CLI accepts the configuration but errors are reported when the
subscriber interfaces are brought up
To configure a logical interface as a VLAN demux underlying interface with demux source:
[edit]
user@host# edit interfaces
2. Configure the interface as fe-x/y/z and the logical interface with the unit option.
[edit interfaces]
user@host# edit fe-x/y/z unit logical-unit-number unit logical-unit-number
3. Configure the VLAN ID. The VLAN ID is used to determine which VLAN demux interface to use, that
is the VLAN ID is matched against that which the underlying interface receives.
4. Configure the logical demux source family type on the VLAN demux underlying interface as inet or
inet6.
To configure a logical interface as a VLAN demux underlying interface with demux destination:
[edit]
user@host# edit interfaces
2. Configure the interface as fe-x/y/z and the logical interface with the unit option.
[edit interfaces]
user@host# edit fe-x/y/z unit logical-unit-number unit logical-unit-number
3. Configure the VLAN ID. The VLAN ID is used to determine which VLAN demux interface to use, that
is the VLAN ID is matched against that which the underlying interface receives.
4. Configure the logical demux destination family type on the VLAN demux underlying interface as inet
or inet6.
You can configure one or more logical demux source prefixes or destination prefixes after specifying an
underlying interface for the static demux interface to use. This underlying interface must reside on the
same logical system as the demux interface.
You configure demux prefixes for use by the underlying interface. The demux prefixes can represent
individual hosts or networks. For a given demux interface unit, you can configure either demux source
prefix or demux destination prefixes but not both.
You can choose not to configure a demux source prefix or a demux destination prefix. This type of
configuration results in a transmit-only interface
[edit]
user@host# edit interfaces
2. Configure the interface as a logical demux interface (for example, demux0 interface) and configure the
logical interface with the unit statement.
NOTE: You can configure only one demux0 interface per chassis, but you can define logical
demux interfaces on top of it (for example, demux0.1, demux0.2, and so on).
[edit interfaces]
user@host# edit demux0 unit logical-unit-number
3. Configure the underlying interface on which the demux interface is running under the demux-options
statement.
5. Configure one or more logical demux source prefixes. The prefixes are matched against the source
address of packets that the underlying interface receives. When a match occurs, the packet is processed
as if it was received on the demux interface.
[edit]
user@host# edit interfaces
2. Configure the interface as a logical demux interface (for example, demux0 interface) and configure the
logical interface with the unit statement.
NOTE: You can configure only one demux0 interface per chassis, but you can define logical
demux interfaces on top of it (for example, demux0.1, demux0.2, and so on).
[edit interfaces]
user@host# edit demux0 unit logical-unit-number
3. Configure the underlying interface on which the demux interface is running under the demux-options
statement.
5. Configure one or more logical demux destination prefixes. The prefixes are matched against the
destination address of packets that the underlying interface receives. When a match occurs, the packet
is processed as if it was received on the demux interface.
MAC address validation enables the router to validate that received packets contain a trusted IP source
and an Ethernet MAC source address.
1. In configuration mode, go to the [edit interfaces demux0 unit logical-unit-number] hierarchy level:
[edit]
user@host# edit interfaces demux0 unit logical-unit-number
3. Configure the mac-validate statement to validate source MAC address with loose or strict options.
Purpose
Check the configuration of a demux interface and its underlying interface when the following are configured:
• Two VLANs are configured, where each VLAN consists of two IP demux interfaces.
Action
From configuration mode on the MX Series router, run the show interfaces fe-0/0/0 and show interfaces
demux0 configuration mode commands.
vlan-tagging;
unit 100 {
vlan-id 100;
demux-source inet; # Enable demux of inet prefixes
family inet {
address 10.1.1.1/24;
filter {
input vlan1-primary-in-filter;
output vlan1-primary-out-filter;
}
mac-validate loose;
}
}
unit 200 {
vlan-id 200;
demux-destination inet; # Enable demux of inet using destination addresses
family inet {
address 20.1.1.1/24;
}
}
230
unit 300 {
vlan-id 300;
demux-source inet; # Enable demux of inet using source addresses
family inet {
address 20.1.2.1/24;
}
}
unit 101 {
description vlan1-sub1;
demux-options {
underlying-interface fe-0/0/0.100;
}
family inet {
demux-source 10.1.1.0/24;
filter {
input vlan1-sub1-in-filter;
output vlan1-sub1-out-filter;
}
mac-validate loose;
}
}
unit 102 {
description vlan1-sub2;
demux-options {
underlying-interface fe-0/0/0.100;
}
family inet {
demux-source {
10.1.0.0/16;
10.2.1.0/24;
}
filter {
input vlan1-sub2-in-filter;
output vlan1-sub2-out-filter;
}
mac-validate loose;
}
}
unit 202 {
231
description vlan2-sub2;
demux-options {
underlying-interface fe-0/0/0.200;
}
family inet {
demux-destination 100.1.2.0/24;
}
}
unit 302 {
description vlan2-sub2;
demux-options {
underlying-interface fe-0/0/0.300;
}
family inet {
demux-source 100.1.2.0/24;
}
}
Loopback Interfaces
IN THIS SECTION
This topic discusses about the use of loopback interface, step-by-step procedure on how to configure
loopback interfaces with examples.
The Internet Protocol (IP) specifies a loopback network with the (IPv4) address 127.0.0.0/8. Most IP
implementations support a loopback interface (lo0) to represent the loopback facility. Any traffic that a
computer program sends on the loopback network is addressed to the same computer. The most commonly
232
used IP address on the loopback network is 127.0.0.1 for IPv4 and ::1 for IPv6. The standard domain name
for the address is localhost.
A network device also includes an internal loopback address (lo0.16384). The internal loopback address
is a particular instance of the loopback address with the logical unit number 16384.
The loopback interface is used to identify the device. While any interface address can be used to determine
if the device is online, the loopback address is the preferred method. Whereas interfaces might be removed
or addresses changed based on network topology changes, the loopback address never changes.
When you ping an individual interface address, the results do not always indicate the health of the device.
For example, a subnet mismatch in the configuration of two endpoints on a point-to-point link makes the
link appear to be inoperable. Pinging the interface to determine whether the device is online provides a
misleading result. An interface might be unavailable because of a problem unrelated to the device's
configuration or operation. You can use the loopback interface to address these issues.
• As the loopback address never changes, it is the best way to identify a device in the network.
• The loopback interface is always up and it is reachable as long as the route to that IP address is available
in the IP routing table. Hence you can use the loopback interface for diagnostics and troubleshooting
purposes.
• Protocols such as OSPF use the loopback address to determine protocol-specific properties for the
device or network. Further, some commands such as ping mpls require a loopback address to function
correctly.
• You can apply stateless firewall filters to the loopback address to filter packets originating from, or
destined for, the Routing Engine.
• Junos OS creates the loopback interface for the internal routing instance, which prevents any filter on
lo0.0 from disrupting internal traffic.
SEE ALSO
Understanding Interfaces
233
IN THIS SECTION
Example: Configuring Two Addresses on the Loopback Interface with Host Routes | 234
Example: Configuring Two Addresses on the Loopback Interface with Subnetwork Routes | 235
Example: Configuring an IPv4 and an IPv6 Address on the Loopback Interface with Subnetwork Routes | 235
When specifying the loopback address, do not include a destination prefix. Also, in most cases, do not
specify a loopback address on any unit other than unit 0.
NOTE: For Layer 3 virtual private networks (VPNs), you can configure multiple logical units for
the loopback interface. This allows you to configure a logical loopback interface for each virtual
routing and forwarding (VRF) routing instance. For more information, see the Junos OS VPNs
Library for Routing Devices.
For some applications, such as SSL for Junos XML protocol, the address for the interface lo0.0
must be 127.0.0.1.
You can configure loopback interfaces using a subnetwork address for both inet and inet6 address families.
Many protocols require a subnetwork address as their source address. Configuring a subnetwork loopback
address as a donor interface enables these protocols to run on unnumbered interfaces.
If you configure the loopback interface, it is automatically used for unnumbered interfaces. If you do not
configure the loopback interface, the router chooses the first interface to come online as the default. If
you configure more than one address on the loopback interface, we recommend that you configure one
to be the primary address to ensure that it is selected for use with unnumbered interfaces. By default, the
primary address is used as the source address when packets originate from the interface.
On the router, you can configure the physical loopback interface, lo0, and one or more addresses on the
interface. You can configure more than just unit 0 for lo0, but each additional unit needs to be applied
somewhere other than the main instance.
1. To configure the physical loopback interface, include the following statements at the [edit interfaces]
hierarchy level:
234
[edit interfaces]
lo0 {
unit 0 {
family inet {
address loopback-address;
address <loopback-address2>;
...
}
family inet6 {
address loopback-address;
}
}
}
Example: Configuring Two Addresses on the Loopback Interface with Host Routes
[edit]
user@host# edit interfaces lo0 unit 0 family inet
[edit interfaces lo0 unit 0 family inet]
user@host# set address 172.16.0.1
[edit interfaces lo0 unit 0 family inet]
user@host# set address 10.0.0.1
[edit interfaces lo0 unit 0 family inet]
user@host# top
[edit]
user@host# show
interfaces {
lo0 {
unit 0 {
family inet {
10.0.0.1/32;
127.0.0.1/32;
172.16.0.1/32;
}
}
}
}
235
Example: Configuring Two Addresses on the Loopback Interface with Subnetwork Routes
[edit]
user@host# edit interfaces lo0 unit 0 family inet
[edit interfaces lo0 unit 0 family inet]
user@host# set address 192.16.0.1/24
[edit interfaces lo0 unit 0 family inet]
user@host# set address 10.2.0.1/16
[edit interfaces lo0 unit 0 family inet]
user@host# top
[edit]
user@host# show
interfaces {
lo0 {
unit 0 {
family inet {
10.2.0.1/16;
127.0.0.1/32;
192.16.0.1/24;
}
}
}
}
Example: Configuring an IPv4 and an IPv6 Address on the Loopback Interface with Subnetwork
Routes
To configure an IPv4 and an IPv6 address on the loopback interface with subnetwork routes:
[edit]
user@host# edit interfaces lo0 unit 0 family inet
[edit interfaces lo0 unit 0 family inet]
user@host# set address 192.16.0.1/24
[edit interfaces lo0 unit 0 family inet]
user@host# up
[edit interfaces lo0 unit 0 family]
user@host# edit interfaces lo0 unit 0 family inet6
[edit interfaces lo0 unit 0 family inet6]
user@host# set address 3ffe::1:200:f8ff:fe75:50df/64
236
RELATED DOCUMENTATION
Serial Interfaces
IN THIS SECTION
This topic discusses about the serial interfaces, and how to configure serial line protocol, serial clocking
mode, serial signal handling, serial DTR circuit, serial signal polarities, serial loopback capability, and serial
line encoding.
Devices that communicate over a serial interface are divided into two classes: data terminal equipment
(DTE) and data circuit-terminating equipment (DCE). Juniper Networks Serial Physical Interface Cards
(PICs) have two ports per PIC and support full-duplex data transmission. These PICs support DTE mode
only. On the Serial PIC, you can configure three types of serial interfaces, which are based on the following
standards:
• EIA-530—An Electronics Industries Alliance (EIA) standard for the interconnection of DTE and DCE using
serial binary data interchange with control information exchanged on separate control circuits.
• V.35—An ITU-T standard describing a synchronous, physical layer protocol used for communications
between a network access device and a packet network. V.35 is most commonly used in the United
States and in Europe.
• X.21—An ITU-T standard for serial communications over synchronous digital lines. The X.21 protocol is
used primarily in Europe and Japan.
There are no serial interface-specific logical properties. For information about general logical properties
that you can configure, see Configuring Logical Interface Properties. This support on serial interfaces is the
same as the existing LFI and MLPPP support on T1 and E1 interfaces.
• Serial interface are a simple, cost-effective way to connect transmitting and receiving devices or ICs. A
serial interface requires fewer conducting wires (often only one) than other interfaces, which eases
implementation.
IN THIS SECTION
By default, serial interfaces use the EIA-530 line protocol. You can configure each port on the PIC
independently to use one of the following line protocols:
• EIA-530
• V.35
• X.21
1. Include the line-protocol statement, specifying the eia530, v.35, or x.21 option:
line-protocol protocol;
For more information about serial interfaces, see the following sections:
IN THIS SECTION
IN THIS SECTION
dce-options | dte-options {
cts normal;
dcd normal;
dsr normal;
dtr normal;
rts normal;
tm normal;
}
clock-rate 16.384mhz;
clocking-mode loop;
cts-polarity positive;
dcd-polarity positive;
dsr-polarity positive;
dtr-circuit balanced;
dtr-polarity positive;
encoding nrz;
rts-polarity positive;
tm-polarity positive;
NOTE: On M Series routers, you can set the DCE clocking mode for EIA-530 interfaces and
commit. An error message is not displayed and the CLI is not blocked.
You can include the line-protocol statement at the following hierarchy levels:
dce-options | dte-options {
cts normal;
dcd normal;
dsr normal;
dtr normal;
rts normal;
}
240
clock-rate 16.384mhz;
clocking-mode loop;
cts-polarity positive;
dcd-polarity positive;
dsr-polarity positive;
dtr-circuit balanced;
dtr-polarity positive;
encoding nrz;
rts-polarity positive;
You can include the line-protocol statement at the following hierarchy levels:
dce-options | dte-options {
control-signal normal;
indication normal;
}
clock-rate 16.384mhz;
clocking-mode loop;
control-polarity positive;
encoding nrz;
indication-polarity positive;
You can include the line-protocol statement at the following hierarchy levels:
IN THIS SECTION
The following sections show the invalid configuration statements for each type of serial interface. If you
include the following statements in the configuration, an error message indicates the location of the error
and the configuration is not activated.
dce-options | dte-options {
control-signal (assert | de-assert | normal);
indication (ignore | normal | require);
}
control-polarity (negative | positive);
indication-polarity (negative | positive);
You can include the line-protocol statement at the following hierarchy levels:
dce-options | dte-options {
control-signal (assert | de-assert | normal);
indication (ignore | normal | require);
tm (ignore | normal | require);
}
control-polarity (negative | positive);
indication-polarity (negative | positive);
loopback (dce-local | dce-remote);
tm-polarity (negative | positive);
You can include the line-protocol statement at the following hierarchy levels:
dce-options | dte-options {
242
You can include the line-protocol statement at the following hierarchy levels:
IN THIS SECTION
By default, serial interfaces use loop clocking mode. For EIA-530 and V.35 interfaces, you can configure
each port on the PIC independently to use loop, DCE, or internal clocking mode. For X.21 interfaces, only
loop clocking mode is supported.
• Loop clocking mode—Uses the DCE’s RX clock to clock data from the DCE to the DTE.
• DCE clocking mode—Uses the TXC clock, which is generated by the DCE specifically to be used by the
DTE as the DTE’s transmit clock.
• Internal clocking mode—Also known as line timing, uses an internally generated clock. You can configure
the speed of this clock by including the clock-rate statement at the [edit interfaces se-pim/0/port
serial-options] or [edit interfaces se-fpc/pic/port dte-options] hierarchy levels. For more information
about the DTE clock rate, see “Configuring the DTE Clock Rate” on page 244.
Note that DCE clocking mode and loop clocking mode use external clocks generated by the DCE.
Figure 13 on page 243 shows the clock sources of loop, DCE, and internal clocking modes.
To configure the clocking mode of a serial interface, include the clocking-mode statement:
When an externally timed clocking mode (DCE or loop) is used, long cables might introduce a phase shift
of the DTE-transmitted clock and data. At high speeds, this phase shift might cause errors. Inverting the
transmit clock corrects the phase shift, thereby reducing error rates.
244
By default, the transmit clock is not inverted. To invert the transmit clock, include the transmit-clock invert
statement:
transmit-clock invert;
By default, the serial interface has a clock rate of 16.384 MHz. For EIA-530 and V.35 interfaces with
internal clocking mode configured, you can configure the clock rate.
clock-rate rate;
• 2.048 MHz
• 2.341 MHz
• 2.731 MHz
• 3.277 MHz
• 4.096 MHz
• 5.461 MHz
• 8.192 MHz
• 16.384 MHz
Although the serial interface is intended for use at the default rate of 16.384 MHz, you might need to use
a slower rate if any of the following conditions prevail:
245
• The interconnecting cable is exposed to an extraneous noise source that might cause an unwanted
voltage in excess of +1 volt measured differentially between the signal conductor and circuit common
at the load end of the cable, with a 50-ohm resistor substituted for the generator.
For detailed information about the relationship between signaling rate and interface cable distance, see
the following standards:
By default, normal signal handling is enabled for all signals. For each signal, the normal option applies to
the normal signal handling for that signal, as defined by the following standards:
Table 22 on page 245 shows the serial interface modes that support each signal type.
From-DCE signals
To-DCE signals
246
You configure serial interface signal characteristics by including the dce-options or dte-options statement:
dce-options |dte-options {
control-signal (assert | de-assert | normal);
cts (ignore | normal | require);
dcd (ignore | normal | require);
dsr (ignore | normal | require);
dtr signal-handling-option;
ignore-all;
indication (ignore | normal | require);
rts (assert | de-assert | normal);
tm (ignore | normal | require);
}
For EIA-530 and V.35 interfaces, configure to-DCE signals by including the dtr and rts statements, specifying
the assert, de-assert, or normal option:
For X.21 interfaces, configure to-DCE signals by including the control-signal statement, specifying the
assert, de-assert, or normal option:
Assertion is when the positive side of a given signal is at potential high-level output voltage (Voh), while
the negative side of the same signal is at potential low-level output voltage (Vol). Deassertion is when the
positive side of a given signal is at potential Vol, while the negative side of the same signal is at potential
Voh.
247
For the DTR signal, you can configure normal signal handling using the signal for automatic resynchronization
by including the dtr statement, and specifying the auto-synchronize option:
dtr {
auto-synchronize {
duration milliseconds;
interval seconds;
}
}
The pulse duration of resynchronization can be from 1 through 1000 milliseconds. The offset interval for
resynchronization can be from 1 through 31 seconds.
For EIA-530 and V.35 interfaces, configure from-DCE signals by including the cts, dcd, and dsr statements,
specifying the ignore, normal, or require option:
For X.21 interfaces, configure from-DCE signals by including the indication statement, specifying the
ignore, normal, or require option:
For EIA-530 interfaces only, you can configure from-DCE test-mode (TM) signaling by including the tm
statement, specifying the ignore, normal, or require option:
To specify that the from-DCE signal must be asserted, include the require option in the configuration. To
specify that the from-DCE signal must be ignored, include the ignore option in the configuration.
248
NOTE: For V.35 and X.21 interfaces, you cannot include the tm statement in the configuration.
For X.21 interfaces, you cannot include the cts, dcd, dsr, dtr, and rts statements in the
configuration.
For EIA-530 and V.35 interfaces, you cannot include the control-signal and indication statements
in the configuration.
For a complete list of serial options statements that are not supported by each serial interface
mode, see “Invalid Serial Interface Statements” on page 240.
To return to the default normal signal handling, delete the require, ignore, assert, de-assert, or
auto-synchronize statement from the configuration, as shown in the following example:
[edit]
user@host# delete interfaces se-fpc/pic/port dte-options control-leads cts require
To explicitly configure normal signal handling, include the control-signal statement with the normal option:
control-signal normal;
You can configure the serial interface to ignore all control leads by including the ignore-all statement:
ignore-all;
You can include the ignore-all statement in the configuration only if you do not explicitly enable other
signal handling options at the [edit interfaces se-pim/0/port serial-options dce-options] or [edit interfaces
se-fpc/pic/port serial-options dte-options] hierarchy levels.
You can include the control-signal, cts, dcd, dsr, dtr, indication, rts, and tm statements at the following
hierarchy levels:
A balanced circuit has two currents that are equal in magnitude and opposite in phase. An unbalanced
circuit has one current and a ground; if a pair of terminals is unbalanced, one side is connected to electrical
ground and the other carries the signal. By default, the DTR circuit is balanced.
For EIA-530 and V.35 interfaces, configure the DTR circuit by including the dtr-circuit statement:
Serial interfaces use a differential protocol signaling technique. Of the two serial signals associated with
a circuit, the one referred to as the A signal is denoted with a plus sign, and the one referred to as the B
signal is denoted with a minus sign; for example, DTR+ and DTR–. If DTR is low, then DTR+ is negative
with respect to DTR–. If DTR is high, then DTR+ is positive with respect to DTR–.
By default, all signal polarities are positive. You can reverse this polarity on a Juniper Networks serial
interface. You might need to do this if signals are miswired as a result of reversed polarities.
For EIA-530 and V.35 interfaces, configure signal polarities by including the cts-polarity, dcd-polarity,
dsr-polarity, dtr-polarity, rts-polarity, and tm-polarity statements:
For X.21 interfaces, configure signal polarities by including the control-polarity and indication-polarity
statements:
From the router, remote line interface unit (LIU) loopback loops the TX (transmit) data and TX clock back
to the router as RX (receive) data and RX clock. From the line, LIU loopback loops the RX data and RX
clock back out the line as TX data and TX clock, as shown in Figure 14 on page 250.
DCE local and DCE remote control the EIA-530 interface-specific signals for enabling local and remote
loopback on the link partner DCE. Local loopback is shown in Figure 15 on page 251.
251
For EIA-530 interfaces, you can configure DCE local, DCE remote, local, and remote (LIU) loopback
capability.
For V.35, you can configure remote LIU and local loopback capability. DCE local and DCE remote loopbacks
are not supported on V.35 and X.21 interfaces. Local and remote loopbacks are not supported on X.21
interfaces.
To configure the loopback capability on a serial interface, include the loopback statement, specifying the
dce-local, dce-remote, local, or remote option:
loopback mode;
To disable the loopback capability, remove the loopback statement from the configuration:
[edit]
user@host# delete interfaces se-fpc/pic/port serial-options loopback
You can determine whether there is an internal or external problem by checking the error counters in the
output of the show interface se-fpc/pic/port extensive command:
1. To determine the source of a problem, loop the packets on the local router, the local DCE, the remote
DCE, and the remote line interface unit (LIU).
252
2. To do this, include the no-keepalives and encapsulation cisco-hdlc statements at the [edit interfaces
se-fpc/pic/port] hierarchy level, and the loopback local option at the [edit interfaces se-pim/0/port
serial-options] or [edit interfaces se-fpc/pic/port serial-options] hierarchy level. With this configuration,
the link stays up, so you can loop ping packets to a remote router. The loopback local statement causes
the interface to loop within the PIC just before the data reaches the transceiver.
[edit interfaces]
se-1/0/0 {
no-keepalives;
encapsulation cisco-hdlc;
serial-options {
loopback local;
}
unit 0 {
family inet {
address 10.100.100.1/24;
}
}
}
By default, serial interfaces use non-return to zero (NRZ) line encoding. You can configure non-return to
zero inverted (NRZI) line encoding if necessary.
To have the interface use NRZI line encoding, include the encoding statement, specifying the nrzi option:
encoding nrzi;
To explicitly configure the default NRZ line encoding, include the encoding statement, specifying the nrz
option:
encoding nrz;
When setting the line encoding parameter, you must set the same value for paired ports. Ports 0 and 1
must share the same value.
3 CHAPTER
Monitoring Interfaces
IN THIS SECTION
This topic discusses about tracing operations of individual router interface, interface process, and pppd
process.
You can trace the operations of individual router interfaces and those of the interface process (dcd). For
a general discussion of tracing and of the precedence of multiple tracing operations, see the Junos OS
Administration Library.
For information about the operations of Virtual Router Resolution Protocol (VRRP)-enabled interfaces,
see the High Availability User Guide.
SEE ALSO
To trace the operations of individual router interfaces, perform the following steps:
[edit]
user@host# edit interfaces interface-name
The interfaces traceoptions statement does not support a trace file. The logging is done by the kernel, so
the tracing information is placed in the system syslog files.
For more information about trace operations, see “Tracing Operations of the Interface Process” on page 255.
SEE ALSO
traceoptions
To trace the operations of the router or switch interface process, dcd, perform the following steps:
[edit]
user@host# edit interfaces
256
[edit interfaces]
user@host# edit traceoptions
5. Configure the files number option, match regular-expression option, size size option, and world-readable
| no-world-readable option.
7. Configure the disable option in flag flag-option statement to disable the tracing operation. You can use
this option to disable a single operation when you have defined a broad group of tracing operations,
such as all.
You can specify the following flags in the interfaces traceoptions statement:
By default, interface process operations are placed in the file named dcd and three 1-MB files of tracing
information are maintained.
For general information about tracing, see the tracing and logging information in the Junos OS Administration
Library.
SEE ALSO
[edit ]
user@host# edit protocols ppp
traceoptions {
file filename <files number> <match regular-expression> <size size> <world-readable | no-world-readable>;
flag flag;
level severity-level;
no-remote-trace;
}
• To specify more than one tracing operation, include multiple flag statements.
• ci—Trace CI code
SEE ALSO
traceoptions | 395
Troubleshooting Interfaces
IN THIS SECTION
Troubleshooting: Faulty Ethernet Physical Interface on an M Series, an MX Series, or a T Series Router | 264
Diagnosis
Perform the following tests to check if the em0 management interface is down on the master Routing
Engine or the backup Routing Engine:
Is the alarm Ethernet Link Down displayed against the em0 interface of the master Routing Engine
(Host 0)?
2. Run the show interfaces em0 and the show interfaces em0 terse operational mode commands.
• Yes:Continue to resolution.
Resolution
261
From the aforementioned diagnosis, we ascertain that the chassis alarm has been raised for the em0
management interface in the backup Routing Engine (Host 1) and not for the master Routing Engine
(Host 0).
Implement one of the following solutions on the backup Routing Engine to resolve this issue:
2. Ignore the Ethernet link down alarm on the management interface by setting the
management-ethernet link-down alarm option to ignore.
[edit chassis]
user@host1# set alarm management-ethernet link-down ignore
SEE ALSO
Diagnosis
Perform the following tests to check if the fxp0 interface is down on the master Routing Engine or
the backup Routing Engine:
Is the alarm Ethernet Link Down displayed against the fxp0 interface of the master Routing Engine
(Host 0)?
2. Run the show interfaces fxp0 and the show interfaces fxp0 terse operational mode commands.
• Yes:Continue to resolution.
Resolution
From the diagnosis, we ascertain that the chassis alarm has been raised for the fxp0 management
interface in the backup Routing Engine (Host 1) and not for the master Routing Engine (Host 0).
Implement one of the following solutions on the backup Routing Engine to avoid this issue:
2. Ignore the Ethernet link down alarm on the management interface by setting the
management-ethernet link-down alarm option to ignore.
264
[edit chassis]
user@host1# set alarm management-ethernet link-down ignore
SEE ALSO
You can follow the basic troubleshooting checklist as explained in the following topics from one through
five to troubleshoot an Ethernet physical interface on an M Series, MX Series, or a T Series router.
Problem
Description: Packets are not received or transmitted over the Ethernet physical interface.
Diagnosis
• Yes:Continue to “Checking the Physical Link Status of the Interface” on page 265.
Resolution
265
1. Connect the cable properly on the local and remote ends without any loose connections.
2. Swap the Ethernet cable for a known good cable if the existing cable is damaged.
3. Connect a single-mode fiber cable to a single-mode interface only and a multimode fiber cable
to a multimode interface only. To check fiber optic cable integrity, see “Checking Fiber Optic
Cable Integrity” on page 265.
4. Connect the correct small form-factor pluggable transceiver (SFP) on both sides of the cable.
1. Measure the received light level at the receiver (R ) port to see whether the received light level
X
is within the receiver specification of the Ethernet interface.
2. Measure transmitted light level at the transmitter (T ) port to see whether the transmitted light
X
level is within the transmitter specification of the Ethernet interface.
Problem
Description: Unable to transmit and receive packets on the Ethernet interface even though the cable
connection is correct.
Solution
To display the physical link status of the interface, run the show interface interface-name media operational
mode command. For example, on the ge-5/0/1 interface.
For information about show interfaces interface-name media, see show interfaces .
Diagnosis
1. Are there any connectivity problems such as input errors and packet loss even though the Enabled
field displays Physical link is Up status and the Active alarms and Active defect field displays
None?
2. Does the Enabled field display Physical link is Down status and the Active alarms and Active
defect field display Link?
• Yes:The interface is either not connected correctly or is not receiving a valid signal. Go to
“Resolving Cabling Issue” on page 265.
267
• No: Continue.
Problem
Description: The physical interface is not working even though the Enabled field displays Physical link is
Up status and the Active alarms and Active defect field displays None.
Solution
To display the interface statistics in detail, run the show interface interface-name extensive operational
command. For example, on ge-5/0/1 interface.
Output bytes : 0
Input packets: 0
Output packets: 0
Input errors:
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 233060,
L3 incompletes: 0, L2 channel errors: 0,
L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0
Output errors:
Carrier transitions: 11, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0,
FIFO errors: 0, HS link CRC errors: 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 3216 3216 0
1 expedited-fo 0 0 0
2 assured-forw 0 0 0
3 network-cont 8320 8320 0
Queue number: Mapped forwarding classes
0 best-effort
1 expedited-forwarding
2 assured-forwarding
3 network-control
Active alarms : None
Active defects : None
MAC statistics: Receive Transmit
Total octets 1007655 1082219
Total packets 10886 11536
Unicast packets 4350 4184
Broadcast packets 32 77
Multicast packets 6504 7275
CRC/Align errors 0 0
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
Filter statistics:
Input packet count 10886
Input packet rejects 68
Input DA rejects 68
Input SA rejects 0
269
For information about show interfaces interface-name detail, see show interfaces .
Diagnosis
1. Does the Policed discards, L2 channel errors, Input DA rejects, or the Input SA rejects field display
any errors?
• Yes:Resolve the errors as needed. Resolving these errors is beyond the scope of this topic.
• No: Continue with “Performing the Loopback Diagnostic Test” on page 269.
Problem
Description: The interface cable is connected correctly and there are no alarms or errors associated with
the Ethernet physical interface yet the interface is not working.
Solution
270
To check whether the Ethernet port or PIC is faulty, you must perform the internal loopback test and
hardware loopback test.
To perform a internal loopback diagnostic test on an Ethernet interface, for example on ge-5/0/1 interface:
[edit]
user@host# edit interface ge-5/0/1
2. Set the gigether-options option as loopback, commit the configuration and quit configuration mode.
Execute one of the following steps for a hardware loopback diagnostic test as needed:
• For an Ethernet PIC with a fiber optic interface—Physically loop the TX and RX port and check the status
of the physical link with the show interfaces interface-name media operational mode command.
• For an Ethernet PIC with an RJ-45 Ethernet interface—Build a loopback plug by crossing pin 1 (TX +)
to pin 3 (R +) together and pin 2 (T -) and pin 6 (R -) together and check the status of the physical
X X X
link with the show interfaces interface-name media operational mode command.
NOTE: For information about loopback testing, see Performing Loopback Testing for Fast Ethernet
and Gigabit Ethernet Interfaces.
Diagnosis
1. Does the Enabled field display Physical link is Up status and the Active alarms and Active defect
field display None when you perform the loopback test?
2. When the Ethernet interface is connected to a remote Ethernet device over multiple patch panels,
check to see whether the connection can be looped back at the different patch panels so you can
conduct a loopback diagnostic test. Is the loopback diagnostic test successful?
Problem
Description: Loopback diagnostic test is successful but unable to transmit and receive packets on the
Ethernet interface.
Solution
Use the following commands as needed to troubleshoot an Ethernet interface, for example, an ge-5/0/1
interface:
• Run the show interfaces interface-name terse operational command to check if the physical interface
and logical interfaces are administratively disabled. For example, on ge-5/0/1 interface.
Diagnosis
1. Does the physical interface and its corresponding logical interfaces display down in the output
of the show interfaces interface-name terse operational mode command?
• Yes:Enable the interfaces as shown in “To Enable a Physical Interface” on page 273.
2. Are the speed, duplex, and auto-negotiation fields in the output of show interfaces interface-name
extensive operational mode command correctly set for the interface?
NOTE: Check if the associated Flexible PIC Concentrator (FPC), Modular Port
Concentrator (MPC), or Dense Port Concentrator (DPC) and its Modular
Interface Card (MIC) or PIC with its 10-gigabit small form-factor pluggable
transceiver (XFP) or SFP supports speed and auto-negotiation settings.
• Yes:Check Monitoring Fast Ethernet and Gigabit Ethernet Interfaces for more troubleshooting
tips.
[edit]
user@host# edit interfaces
2. Check if the interface is administratively disabled by executing the show command on the interface.
For example on ge-5/0/1 interface.
disable;
[edit interfaces
user@host# delete interface-name disable
user@host# commit
SEE ALSO
show interfaces
Time Domain Reflectometry (TDR) is a technology used for diagnosing copper cable states. This technique
can be used to determine if cabling is at fault when you cannot establish a link. TDR detects the defects
by sending a signal through a cable, and reflecting it from the end of the cable. Open circuits, short circuits,
sharp bends and other defects in the cable, reflects the signal back, at different amplitudes, depending on
the severity of the defect.
Several factors that result in degraded or low-quality cable plants can cause packet loss, suboptimal
connection speed, reduced network efficiency, and complete connection failures. These types of problems
can occur because of poor cable construction, identification of pair twists, loose connectors, poor contacts
274
between the points, and stretched or broken pairs of cables. Broadcom transceivers enable you to analyze
the condition of the cable plant or topology and identify any problems that have occurred. This functionality
is effectively used in the following scenarios:
• Fault determination during the testing of network equipment in production cable networks.
TDR supports the following capabilities for examination of cable faults on ACX Series routers:
• Cable status pair (open or short)—When the router operates in Gigabit Ethernet mode, all the four pairs
(8 wires) are used. Only Pair-A and Pair-B are required to operate in 10/100BASE-T Ethernet mode. If
either of these required pairs is open or short-circuited, the transceiver reports the following faults:
• Distance to fault per pair—Distance at which an open or a short-circuit is detected in meters. This
measurement is also termed as cable length. The transceiver reports the following faults:
• Pair Swap—Swapping of twisted-pairs in straight-through and cross-over cable plants are detected.
• Polarity Swap—Each cable pair carries a differential signal from one end to the other end of the cable.
Each wire within the pair is assigned a polarity. The wires in a pair are normally connected in a one-to-one
form. This connection enables the transmitter at one end to be connected to the receiver at the other
end with same polarity. Sometimes, the wiring within the pair is also swapped. This type of connection
is called polarity swap. Broadcom transceivers can detect such swapping and automatically adjust the
connection to enable the links to operate normally. However, the transceiver reports polarity swaps that
it detects in the cable plant.
On 4-port Gigabit Ethernet and 8-port Gigabit Ethernet MICs with copper SFP transceivers (using
BCM54880) and 4-port Gigabit Ethernet, 6-port Gigabit Ethernet, and 8-port Gigabit Ethernet MICs with
copper and optical SFP transceivers (using BCM54640E PHY), only 10BASE-T pair polarity is supported.
100BASE-T and 1000BASE-T polarities are not supported.
When the Gigabit Ethernet link cannot be established (for example, if only two pairs are present that are
fully functional), TDR in the physical layer (PHY) brings down the link to a 100 MB link, which is called a
downshift in the link. The physical layer might require 10-20 seconds for the link to come up if a downgrade
in wire speed occurs because it attempts to connect at 1000 MB five times before it falls back to
100BASE-TX.
TDR diagnostics is supported only on copper interfaces and not on fiber interfaces.
275
• If you connect a port undergoing a TDR test to a Gigabit Ethernet interface that is enabled to automatically
detect MDI (Media Dependent Interface) and MDIX (Media Dependent Interface with Crossover) port
connections, the TDR result might be invalid.
• If you connect a port undergoing a TDR test to a 100BASE-T copper interface, the unused pairs are
reported as faulty because the remote end does not terminate these pairs.
• You must not modify the port configuration while the TDR test is running.
• Because of cable characteristics, you need to run the TDR test multiple times to get accurate results.
• Do not change the port status (such as removing the cable at the near or far end) because such a change
can result in inaccurate statistics in the results.
• While measuring the cable length or distance to fault (per pair), sometimes, a few cable length
inconsistencies might be observed during a TDR test. Broadcom transceivers have the following cable
length limitations:
• For a properly-terminated good cable, the accuracy of the cable length reported is plus or minus 10
meters.
• If a pair is open or short-circuited, the far-end termination does not affect the computed result for
that pair.
• The accuracy of the measured cable length, when open and short-circuit conditions are detected, is
plus or minus 5 meters.
• The accuracy of a good pair, when one or more pairs are open or short-circuited, is plus or minus 10
meters.
• The TDR test does not impact the traffic if the interface operates at 10-Gigabit Ethernet per second of
bandwidth, which is the default configuration. However, if the speed of the interface is configured to
be other than 10-Gigabit Ethernet, running the TDR test affects the traffic.
TDR diagnostics might bring the link down and initialize the physical layer (PHY) with default configuration
to perform its operation.
When the TDR validation test is completed, the PHY layer resumes operation in the same manner as
before the cable diagnostics test was performed. However, link flaps might be momentarily observed.
We recommend that you run the TDR test at a speed of 1 gigabit per second, which is the default
configuration, to obtain more accurate results.
• On ACX1000 routers, 4 RJ45 (Cu) ports or 8-port Gigabit Ethernet MICs with small form-factor pluggable
(SFP) transceivers and RJ45 connectors.
On ACX1100 routers, 4-port or 8-port Gigabit Ethernet MICs with SFP transceivers and RJ45 connectors.
• On ACX2000 routers, 8-port Gigabit Ethernet MICs with SFP transceivers and RJ45 connectors.
• On ACX2100 and ACX2200 routers, 4-port Gigabit Ethernet MICs with SFP transceivers and RJ45
connectors.
• On ACX4000 routers, 4-port, 6-port, or 8-port Gigabit Ethernet MICs with SFP transceivers and RJ45
connectors.
You must select the media type as copper for the 1-Gigabit Ethernet interfaces. To specify the media type,
include the media-type statement with the copper option at the [edit interfaces interface-name] hierarchy
level. Media type selection is applicable to ports only in slot 2. When media-type is not set, the port accepts
either type of connection. The media type is fiber if a transceiver is installed in the SFP connection. If no
transceiver is installed, the media type is copper. The COMBO ports (combination ports) on ACX routers
support both the copper and fiber-optic media types. On such ports or interfaces, you must configure the
media type as copper to run the TDR test.
You can run the TDR test from operational mode and view the success or failure results of the test. To
start a test on a specific interface, issue the request diagnostics tdr start interface interface-name command.
To stop the TDR test currently in progress on the specified interface, issue the request diagnostics tdr
abort interface interface-name command. To display the test results for all copper interfaces, enter the
show diagnostics tdr command. To display the test results for a particular interface, enter the show
diagnostics tdr interface interface-name command.
SEE ALSO
Solution
Use the time domain reflectometry (TDR) test to determine whether a twisted-pair Ethernet cable is faulty.
• Detects and reports faults for each twisted pair in an Ethernet cable. Faults detected include open
circuits, short circuits, and impedance mismatches.
• Detects and reports pair swaps, pair polarity reversals, and excessive pair skew.
The TDR test is supported on the following ACX routers and interfaces:
• On ACX1000 routers, 4 RJ45 (Cu) ports or 8-port Gigabit Ethernet MICs with small form-factor pluggable
(SFP) transceivers and RJ45 connectors.
• On ACX1100 routers, 4-port or 8-port Gigabit Ethernet MICs with SFP transceivers and RJ45 connectors.
• On ACX2000 routers, 8-port Gigabit Ethernet MICs with SFP transceivers and RJ45 connectors.
• On ACX2100 and ACX2200 routers, 4-port Gigabit Ethernet MICs with SFP transceivers and RJ45
connectors.
• On ACX4000 routers, 4-port, 6-port, or 8-port Gigabit Ethernet MICs with SFP transceivers and RJ45
connectors.
NOTE: We recommend running the TDR test on an interface when there is no traffic on the
interface.
TDR diagnostics are applicable for copper ports only and not for optical fiber ports.
2. View the results of the TDR test with the show diagnostics tdr command.
3. Examine the Cable status field for the four MDI pairs to determine if the cable has a fault. In the
preceding example, the twisted pair on pins 4 and 5 is broken or cut at approximately one meter from
the ge-0/0/10 port connection.
NOTE: The Test Status field indicates the status of the TDR test, not the cable. The value Passed
means the test completed—it does not mean that the cable has no faults.
• The TDR test can take some seconds to complete. If the test is still running when you execute the show
diagnostics tdr command, the Test status field displays Started. For example:
• You can terminate a running TDR test before it completes by using the request diagnostics tdr abort
interface interface-name command. The test terminates with no results, and the results from any previous
test are cleared.
• You can display summary information about the last TDR test results for all interfaces on the router that
support the TDR test by not specifying an interface name with the show diagnostics tdr command. For
example:
SEE ALSO
Configuration Statements
accounting | 286
accounting-profile | 287
acfc | 288
activation-delay | 290
activation-priority | 291
backup-options | 294
callback | 295
callback-wait-period | 296
caller | 297
calling-number | 298
clock-rate | 299
clocking-mode | 300
control-polarity | 301
control-signal | 302
cts | 303
cts-polarity | 304
dcd | 307
dcd-polarity | 308
deactivation-delay | 309
dce-options | 310
destination-class-usage | 320
destination-profile | 321
dial-string | 322
dialer | 323
dot1x | 324
dsr | 327
dsr-polarity | 328
dte-options | 329
dtr | 330
dtr-circuit | 331
dtr-polarity | 332
encoding | 333
f-max-period | 334
forward-and-send-to-re | 335
forward-only | 336
hierarchical-policer | 337
idle-timeout | 338
ignore-all | 340
incoming-map | 341
indication | 342
indication-polarity | 343
init-command-string | 344
initial-route-check | 345
input-list | 346
interface-range | 348
interface-transmit-statistics | 350
interface-shared-with | 352
isdn-options | 353
keep-address-and-control | 354
key | 355
lcp-max-conf-req | 356
lcp-restart-timer | 357
line-protocol | 358
line-rate | 359
load-interval | 360
load-threshold | 361
local-password | 362
loopback-clear-timer | 364
modem-options | 365
monitor-session | 366
multipoint | 367
ncp-max-conf-req | 368
ncp-restart-timer | 369
operating-mode | 370
pfc | 372
point-to-point | 373
pool | 375
preferred-source-address | 376
redial-delay | 378
rts | 379
rts-polarity | 380
serial-options | 381
shdsl-options | 383
snr-margin | 384
snext | 385
spid1 | 386
spid2 | 387
static-tei-val | 388
switch-type | 389
t310 | 390
tei-option | 391
then | 392
tm | 393
tm-polarity | 394
traceoptions (PPP Process) | 395
transmit-clock | 398
watch-list | 402
286
accounting
Syntax
accounting {
destination-class-usage;
source-class-usage {
direction;
}
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Enable IP packet counters on an interface.
RELATED DOCUMENTATION
accounting-profile
Syntax
accounting-profile name;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 15.1F6 for PTX Series routers with third-generation FPCs
installed.
Description
Enable collection of accounting data for the specified physical or logical interface or interface range.
Options
name—Name of the accounting profile.
RELATED DOCUMENTATION
acfc
Syntax
acfc;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For interfaces with PPP encapsulation, configure compression of the Data Link Layer address and control
fields. The acfc option is not supported with frame-relay-ppp encapsulation.
On M320, M120, and T Series routers, address and control field compression (ACFC) is not supported for
any ISO family protocols. Do not include the acfc statement at the [edit interfaces interface-name
ppp-options compression] hierarchy level when you include the family iso statement at the [edit interfaces
interface-name unit logical-unit-number] hierarchy level.
RELATED DOCUMENTATION
action (Policer)
Syntax
action {
loss-priority high then discard;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.2.
Description
This statement discards high loss priority traffic as part of a configuration using tricolor marking on a logical
interface.
RELATED DOCUMENTATION
activation-delay
Syntax
activation-delay seconds;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
(J Series Services Routers) For ISDN interfaces, configure the ISDN dialer activation delay. Used only for
dialer backup and dialer watch cases.
Options
seconds—Interval before the backup interface is activated after the primary interface has gone down.
Range: 1 through 4,294,967,295 seconds
RELATED DOCUMENTATION
activation-priority
Syntax
activation-priority priority;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.2.
Description
(J4350 and J6350 Services Routers supporting voice over IP with the TGM550 media gateway module)
For Fast Ethernet and Gigabit Ethernet interfaces, ISDN BRI interfaces, and serial interfaces with PPP or
Frame Relay encapsulation, configure the dynamic call admission control (dynamic CAC) activation priority
value.
Options
priority—The activation priority in which the interface is used for providing call bandwidth. The interface
with the highest activation priority value is used as the primary link for providing call bandwidth. If the
primary link becomes unavailable, the TGM550 switches over to the next active interface with the highest
activation priority value, and so on.
Range: 0 through 255
Default: 50
RELATED DOCUMENTATION
aggregate {
if-exceeding {
bandwidth-limit bandwidth;
burst-size-limit burst;
}
then {
discard;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
On M40e, M120, and M320 (with FFPC and SFPC) edge routers and T320, T640, and T1600 core routers
with Enhanced Intelligent Queuing (IQE) PICs, T4000 routers with Type 5 FPC and Enhanced Scaling Type
4 FPC, configure an aggregate hierarchical policer.
Options
Options are described separately.
RELATED DOCUMENTATION
Applying Policers
Class of Service User Guide (Routers and EX9200 Switches)
293
alias (Interfaces)
Syntax
alias alias-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 13.3.
Description
Configure a textual description of a physical interface or the logical unit of an interface to be the alias of
an interface name. The alias name can be a single line of text. If the text contains spaces, enclose it in
quotation marks. If you configure an alias name, the alias name is displayed instead of the interface name
in the output of all show, show interfaces, and other operational mode commands. In Junos OS Release
12.3R8 and later, display of the alias can be suppressed in favor of the actual interface name by using the
display no-interface-alias parameter along with the show command.
Options
alias-name—Text to denote an easily identifiable, meaningful alias name for the interface. If the text includes
spaces, enclose the entire text in quotation marks.
RELATED DOCUMENTATION
backup-options
Syntax
backup-options {
interface interface-name;
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure an interface to be used as a backup interface if the primary interface goes down. This is used
to support ISDN dial backup operation.
RELATED DOCUMENTATION
callback
Syntax
callback;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
On J Series Services Routers with interfaces configured for ISDN, configure the dialer to terminate the
incoming call and call back the originator after the callback wait period. The default wait time is 5 seconds.
To configure the wait time, include the callback-wait-period statement at the [edit interfaces dl n unit
logical-unit-number dialer-options] hierarchy level.
NOTE: The incoming-map statement is mandatory for the router to accept any incoming ISDN
calls.
If the callback statement is configured, you cannot use the caller caller-id statement at the [edit interfaces
dln unit logical-unit-number dialer-options] hierarchy level.
RELATED DOCUMENTATION
callback-wait-period
Syntax
callback-wait-period time;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
On J Series Services Routers with interfaces configured for ISDN with callback, specify the amount of time
the dialer waits before calling back the caller. The default wait time is 5 seconds. The wait time is necessary
because, when a call is rejected, the switch waits for up to 4 seconds on point-to-multipoint connections
to ensure no other device accepts the call before sending the DISCONNECT message to the originator of
the call. However, the default time of 5 seconds may not be sufficient for different switches or may not
be needed on point-to-point connections.
To configure callback mode, include the callback statement at the [edit interfaces dln unit logical-unit-number
dialer-options] hierarchy level.
If the callback statement is configured, you cannot use the caller caller-id statement at the [edit interfaces
dln unit logical-unit-number dialer-options] hierarchy level.
Options
time—Time the dialer waits before calling back the caller.
RELATED DOCUMENTATION
caller
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
On J Series Services Routers with interfaces configured for ISDN, specify the dialer to accept a specified
caller number or accept all incoming calls.
Options
caller-id—Incoming caller number. You can configure multiple caller IDs on a dialer. The caller ID of the
incoming call is matched against all caller IDs configured on all dialers. The dialer matching the caller ID is
looked at for further processing. Only a precise match is a valid match, For example, the configured caller
ID 1-222-333-4444 or 222-333-4444 will match the incoming caller ID 1-222-333-4444.
If the incoming caller ID has fewer digits than the number configured, it is not a valid match. Duplicate
caller IDs are not allowed on different dialers; however, for example, the numbers 1-408-532-1091,
408-532-1091, and 532-1091 can still be configured on different dialers.
Only one B-channel can map to one dialer. If one dialer is already mapped, any other call mapping to the
same dialer is rejected (except in the case of a multilink dialer). If no dialer caller is configured on a dialer,
that dialer will not accept any calls.
RELATED DOCUMENTATION
calling-number
Syntax
calling-number number;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN interfaces, configure the calling number to include in outgoing
calls.
Options
number—Calling number.
RELATED DOCUMENTATION
clock-rate
Syntax
clock-rate rate;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces, configure the interface speed, in megahertz (MHz).
Options
rate—You can specify one of the following rates:
• 2.048 MHz
• 2.341 MHz
• 2.731 MHz
• 3.277 MHz
• 4.096 MHz
• 5.461 MHz
• 8.192 MHz
• 16.384 MHz
RELATED DOCUMENTATION
clocking-mode
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces, configure the clock mode. You cannot configure clocking-mode dce on
a DTE router using an X.21 serial line protocol (detected automatically when an X.21 cable is plugged into
the serial interface).
Options
dce—DCE timing (DTE mode only, not valid for X.21).
loop—Loop timing.
Default: loop
RELATED DOCUMENTATION
control-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For X.21 interfaces only, configure the control signal polarity.
Options
positive—Positive signal polarity.
RELATED DOCUMENTATION
control-signal
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For X.21 interfaces only, configure the to-DCE signal.
Options
assert—The to-DCE signal must be asserted.
RELATED DOCUMENTATION
cts
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces only, configure the from-DCE signal, clear-to-send (CTS).
Options
ignore—The from-DCE signal is ignored.
RELATED DOCUMENTATION
cts-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure CTS signal polarity.
Options
positive—Positive signal polarity.
RELATED DOCUMENTATION
damping (Interfaces)
Syntax
damping {
enable;
half-life seconds;
max-suppress seconds;
reuse number;
suppress number;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 14.1 for PTX Series Packet Transport Routers and T Series
Core Routers.
Statement introduced in Junos OS Release 14.2 for MX960, MX480, MX240, and MX80 Universal Routing
Platforms and M10i Multiservice Edge Routers.
Description
Limit the number of advertisements of the up and down transitions (flapping) on an interface. Each time
a transition occurs, the interface state is changed, which generates an advertisement to the upper-level
routing protocols. Damping helps reduce the number of these advertisements. Every time an interface
goes down, a penalty is added to the interface penalty counter. Penalty added on every interface flap is
1000.
If at some point the accumulated penalty exceeds the suppress level max-suppress, the interface is placed
in the suppress state, and further interface state up and down transitions are not reported to the upper-level
protocols.
Options
enable—Enable damping on a per-interface basis. If damping is enabled on an interface, it is suppressed
during interface flaps that match the configuration settings.
Default: Disabled
half-life seconds—Decay half-life. seconds is the interval after which the accumulated interface penalty
counter is reduced by half if the interface remains stable.
306
NOTE: For the half-life, configure a value that is less than the max-suppress value. If you do not,
the configuration is rejected.
Range: 1 through 30
Default: 5
max-suppress seconds—Maximum hold-down time. seconds is the maximum time that an interface can be
suppressed no matter how unstable the interface has been.
NOTE: For max-suppress, configure a value that is greater than the half-life. If you do not, the
configuration is rejected.
reuse number—Reuse threshold. When the accumulated interface penalty counter falls below number, the
interface is no longer suppressed.
Range: 1 through 20,000
Default: 1000
suppress number—Cutoff (suppression) threshold. When the accumulated interface penalty counter exceeds
number, the interface is suppressed.
Range: 1 through 20,000
Default: 2000
RELATED DOCUMENTATION
dcd
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces only, configure the from-DCE signal, data-carrier-detect (DCD).
Options
ignore—The from-DCE signal is ignored.
RELATED DOCUMENTATION
dcd-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure DCD signal polarity.
Options
positive—Positive signal polarity.
RELATED DOCUMENTATION
deactivation-delay
Syntax
deactivation-delay seconds;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN interfaces, configure the ISDN deactivation delay. Used only for
dialer backup and dialer watch cases.
Options
seconds—Interval before the backup interface is deactivated after the primary interface has comes up.
Range: 1 through 4,294,967,295 seconds
Default: 0 (zero)
RELATED DOCUMENTATION
dce-options
Syntax
dce-options {
control-signal (assert | de-assert | normal);
cts (ignore | normal | require);
dcd (ignore | normal | require);
dsr (ignore | normal | require);
dtr signal-handling-option;
ignore-all;
indication (ignore | normal | require);
rts (assert | de-assert | normal);
tm (ignore | normal | require);
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Statement previously known as control-leads.
Description
For J Series Services Routers, configure the serial interface signal characteristics.
RELATED DOCUMENTATION
demux-destination family;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Support for aggregated Ethernet added in Junos OS Release 9.4.
Description
Configure the logical demultiplexing (demux) destination family type on the IP demux underlying interface.
NOTE: The IP demux interface feature currently supports only Fast Ethernet, Gigabit Ethernet,
10-Gigabit Ethernet, or aggregated Ethernet underlying interfaces.
RELATED DOCUMENTATION
demux-destination {
destination-prefix;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Support for aggregated Ethernet added in Junos OS Release 9.4.
Description
Configure one or more logical demultiplexing (demux) destination prefixes. The prefixes are matched
against the destination address of packets that the underlying interface receives. When a match occurs,
the packet is processed as if it was received on the demux interface.
RELATED DOCUMENTATION
demux–options {
underlying-interface interface-name
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Description
Configure logical demultiplexing (demux) interface options.
RELATED DOCUMENTATION
demux-source {
source-prefix;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Support for aggregated Ethernet added in Junos OS Release 9.4.
Description
Configure one or more logical demultiplexing (demux) source prefixes. The prefixes are matched against
the source address of packets that the underlying interface receives. When a match occurs, the packet is
processed as if it was received on the demux interface.
RELATED DOCUMENTATION
demux-source family;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Support for aggregated Ethernet added in Junos OS Release 9.4.
Description
Configure the logical demultiplexing (demux) source family type on the IP demux underlying interface.
NOTE: The IP demux interface feature currently supports only Fast Ethernet, Gigabit Ethernet,
10-Gigabit Ethernet, or aggregated Ethernet underlying interfaces.
Options
family—Protocol family:
RELATED DOCUMENTATION
demux0 {
unit logical-unit-number {
demux-options {
underlying-interface interface-name
}
family family {
access-concentrator name;
{
destination-prefix;
}
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
{
source-prefix;
}
max-sessions number;
service-name-table table-name
targeted-distribution;
unnumbered-address interface-name <preferred-source-address address>;
}
vlan-id number;
vlan-tags outer [tpid].vlan-id [inner [tpid].vlan-id];
}
}
Hierarchy Level
[edit interfaces],
[edit logical-systems logical-system-name interfaces]
Release Information
Statement introduced in Junos OS Release 9.0.
Description
Configure the logical demultiplexing (demux) interface.
Logical IP demux interfaces do not support IPv4 and IPv6 dual stack.
RELATED DOCUMENTATION
demux0 {
unit logical-unit-number {
demux-options {
underlying-interface interface-name
}
family family {
access-concentrator name;
address address;
demux-source {
source-prefix;
}
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
input filter-name;
output filter-name;
}
mac-validate (loose | strict):
max-sessions number;
max-sessions-vsa-ignore;
rpf-check {
fail-filter filter-name;
mode loose;
}
service-name-table table-name
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds>;
unnumbered-address interface-name <preferred-source-address address>;
}
filter {
input filter-name;
output filter-name;
}
vlan-id number;
}
}
Hierarchy Level
319
Release Information
Statement introduced in Junos OS Release 9.3.
Description
Configure the logical demultiplexing (demux) interface in a dynamic profile.
Logical IP demux interfaces do not support IPv4 and IPv6 dual stack.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
destination-class-usage
Syntax
destination-class-usage;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Enable packet counters on an interface that count packets that arrive from specific customers and are
destined for specific prefixes on the provider core router.
RELATED DOCUMENTATION
destination-profile
Syntax
destination-profile name;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 11.1 for the QFX Series.
Description
For interfaces with PPP encapsulation, assign PPP properties to the remote destination end. You define
the profile at the [edit access group-profile name ppp] hierarchy level.
Options
name—Profile name defined at the [edit access group-profile name ppp] hierarchy level.
RELATED DOCUMENTATION
dial-string
Syntax
dial-string [ dial-string-numbers ];
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN interfaces, specify one or more ISDN dial strings used to reach a
destination subnetwork.
Options
dial-string-numbers—One or more strings of numbers to call.
RELATED DOCUMENTATION
None
323
dialer
Syntax
dialer filter-name;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Apply a dialer filter to an interface. To create the dialer filter, include the dialer-filter statement at the
[edit firewall filter family family] hierarchy level.
Options
filter-name—Dialer filter name.
RELATED DOCUMENTATION
dot1x
Syntax
dot1x {
authenticator {
authentication-profile-name access-profile-name;
interface (all | [ interface-names ]) {
authentication-order (captive-portal | dot1x | mac-radius);
disable;
guest-bridge-domain guest-bridge-domain;
guest-vlan guest-vlan;
ignore-port-bounce;
mac-radius {
authentication-protocol {
eap-md5;
eap-peap {
resume;
}
pap;
}
flap-on-disconnect;
restrict;
}
maximum-requests number;
multi-domain {
max-data-session max-data-session;
packet-action (drop-and-log | shutdown);
recovery-timeout seconds;
}
(no-reauthentication | reauthentication interval );
no-tagged-mac-authentication;
quiet-period seconds;
redirect-url redirect-url;
retries number;
server-fail (bridge-domain bridge-domain | deny | permit | use-cache | vlan-name vlan-name);
server-fail-voip (deny | permit | use-cache | vlan-name vlan-name);
server-reject-bridge-domain bridge-domain {
block-interval seconds;
eapol-block;
}
server-reject-vlan (vlan-id | vlan-name) {
block-interval block-interval;
eapol-block;
325
}
server-timeout seconds;
supplicant (single | single-secure | multiple);
supplicant-timeout seconds;
transmit-period seconds;
}
ip-mac-session-binding;
no-mac-table-binding;
radius-options {
add-interface-text-description;
use-vlan-id;
use-vlan-name;
}
static mac-address {
bridge-domain-assignment bridge-domain-assignment;
interface interface;
vlan-assignment vlan-identifier;
}
}
}
ssl-certificate-path path-name;
traceoptions {
file filename <files files> <size size> <(world-readable | no-world-readable)>;
flag (all | config-internal | dot1x-debug | dot1x-event | dot1x-ipc | eapol | esw-if | general | iccp | normal | parse
| state | task | timer | vlan) {
disable;
}
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 9.3 for MX Series routers.
Statement introduced in Junos OS Release 14.1X53-D30 for the QFX Series.
Statement introduced in Junos OS Release 15.1X49-D80 for SRX Series.
ssl-certificate-path introduced in Junos OS Release 19.4.
ip-mac-session-binding introduced in Junos OS Release 20.2
326
Description
Configure IEEE 802.1X authentication for Port-Based Network Access Control. 802.1X authentication is
supported on interfaces that are members of private VLANs (PVLANs).
Default
802.1X is disabled.
Options
ssl-certificate-path path-name—Specify the file path for SSL certificates if you are not using the default
path. The default path for SSL certificates is /var/tmp.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
show dot1x
Example: Setting Up 802.1X for Single-Supplicant or Multiple-Supplicant Configurations on an EX Series
Switch
Example: Setting Up 802.1X in Conference Rooms to Provide Internet Access to Corporate Visitors on an
EX Series Switch
Example: Setting Up VoIP with 802.1X and LLDP-MED on an EX Series Switch
Example: Configuring Static MAC Bypass of 802.1X and MAC RADIUS Authentication on an EX Series Switch
Example: Configuring MAC RADIUS Authentication on an EX Series Switch
Configuring RADIUS Server Fail Fallback (CLI Procedure)
327
dsr
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces only, configure the from-DCE signal, data-set-ready (DSR).
Options
ignore—The from-DCE signal is ignored.
RELATED DOCUMENTATION
dsr-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure DSR signal polarity.
Options
positive—Positive signal polarity.
RELATED DOCUMENTATION
dte-options
Syntax
dte-options {
control-signal (assert | de-assert | normal);
cts (ignore | normal | require);
dcd (ignore | normal | require);
dsr (ignore | normal | require);
dtr signal-handling-option;
ignore-all;
indication (ignore | normal | require);
rts (assert | de-assert | normal);
tm (ignore | normal | require);
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Statement previously known as control-leads.
Description
For M Series and T Series routers, configure the serial interface signal characteristics.
RELATED DOCUMENTATION
dtr
Syntax
dtr signal-handling-option;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces only, configure the to-DCE signal, data-transmit-ready (DTR).
Options
signal-handling-option—Signal handling for the DTR signal. The signal handling can be one of the following:
auto-synchronize—Normal DTR signal with automatic synchronization. This statement has two
substatements:
RELATED DOCUMENTATION
dtr-circuit
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces only, configure a DTR circuit.
Options
balanced—Balanced DTR signal.
RELATED DOCUMENTATION
dtr-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure DTR signal polarity.
Options
positive—Positive signal polarity.
RELATED DOCUMENTATION
encoding
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For serial interfaces, set the line encoding format.
Default
The default line encoding is non-return to zero (NRZ).
Options
nrz—Use NRZ line encoding.
RELATED DOCUMENTATION
f-max-period
Syntax
f-max-period number;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For all adaptive services interfaces and for ISDN interfaces on J Series Services Routers. Specify the
maximum number of compressed packets allowed between the transmission of full headers in a compressed
Real-Time Transport Protocol (RTP) traffic stream.
Options
number—Maximum number of packets. The value can be from 1 through 65535.
RELATED DOCUMENTATION
forward-and-send-to-re
Syntax
forward-and-send-to-re;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.2.
Description
Specify that IP packets destined for a Layer 3 broadcast address be forwarded to an egress interface and
the Routing Engine. The packets are broadcast only if the egress interface is a LAN interface.
RELATED DOCUMENTATION
forward-only
Syntax
forward-only;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.2.
Description
Specify that IP packets destined for a Layer 3 broadcast address be forwarded to an egress interface only.
The packets are broadcast only if the egress interface is a LAN interface.
RELATED DOCUMENTATION
hierarchical-policer
Syntax
hierarchical-policer name {
aggregate {
if-exceeding {
bandwidth-limit bandwidth;
burst-size-limit burst;
}
then {
discard;
}
}
premium {
if-exceeding {
bandwidth-limit bandwidth;
burst-size-limit burst;
}
then {
discard;
}
}
Hierarchy Level
[edit firewall]
Release Information
Statement introduced in Junos OS Release 9.5.
Description
For M40e, M120, and M320 (with FFPC and SFPC) edge routers and T320, T640, and T1600 core routers
with Enhanced Intelligent Queuing (IQE) PICs, specify a hierarchical policer.
Options
Options are described separately.
RELATED DOCUMENTATION
Applying Policers
Class of Service User Guide (Routers and EX9200 Switches)
idle-timeout
Syntax
idle-timeout seconds;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN interfaces, configure the number of seconds the link is idle before
losing connectivity.
Options
seconds—Time for which the connection can remain idle. For interfaces configured to use a filter for traffic,
the idle timeout is based on traffic.
Range: 1 through 429497295
Default: 120 seconds
RELATED DOCUMENTATION
if-exceeding-pps {
pps-limit pps;
packet-burst packets;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 15.2 for MX Series routers with MPCs.
Description
For MX Series routers , if-exceeding-pps allows you to configure a packets-per-second (pps)-based trigger
for a premium or aggregate component of a hierarchical policer. When applied to the loopback interface
(lo0), this kind of trigger can help protect the Routing Engine from DDoS attacks. When applied in other
areas, to either transit or control traffic, it is a more fine-grained monitor.
RELATED DOCUMENTATION
ignore-all
Syntax
ignore-all;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Ignore all control leads. You can include the ignore-all statement in the configuration only if you do not
explicitly enable other signal handling options at the dte-options hierarchy level.
RELATED DOCUMENTATION
incoming-map
Syntax
incoming-map {
caller caller-number | accept-all;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
On J Series Services Routers with interfaces configured for ISDN, specify the dialer to accept incoming
calls.
NOTE: The incoming-map statement is mandatory for the router to accept any incoming ISDN
calls.
RELATED DOCUMENTATION
indication
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For X.21 interfaces only, configure the from-DCE signal indication.
Options
ignore—The from-DCE signal is ignored.
RELATED DOCUMENTATION
indication-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For X.21 interfaces only, configure the indication signal polarity.
Options
positive—Positive signal polarity.
RELATED DOCUMENTATION
init-command-string
Syntax
init-command-string initialization-command-string;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.2.
Description
For J Series Services Routers, configure the command string used to initialize the USB modem.
When you connect the USB modem to the USB port on a Services Router, the router applies the modem
AT commands configured in the init-command-string command to the initialization commands on the
modem.
For example, the initialization command string ATS0 = 2\n configures the USB modem to pick up a call
after 2 rings.
If you do not include the init-command-string statement, the router applies the default initialization string
to the modem.
Options
initialization-command-string—Specify an initialization command string using the following AT command
values:
• E0—Disables the display on the local terminal of commands issued to the modem from the local terminal.
• S0=0—Disables the auto-answer feature, whereby the modem automatically answers calls.
• S7=45—Instructs the modem to wait 45 seconds for a telecommunications service provider (carrier)
signal before terminating the call.
initial-route-check
Syntax
initial-route-check seconds;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN interfaces, allows the router to check whether the primary route
is up after the initial startup of the router is complete and the timer expires.
Options
seconds—How long to wait to check if the primary interface is up after the router comes up.
Range: 1 through 300 seconds
Default: 120 seconds
RELATED DOCUMENTATION
input-list
Syntax
input-list [ filter-names ];
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
Apply a group of filters to evaluate when packets are received on an interface.
Options
[ filter-names ]—Name of a filter to evaluate when packets are received on the interface. Up to 16 filters
can be included in a filter input list.
RELATED DOCUMENTATION
interface interface-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
Specify an interface that is a member of the interface set. Supported on Ethernet interfaces on an MX
Series router, Ethernet interfaces on IQ2E PIC on M Series and T Series routers, and IP demux interfaces
on an MX Series router.
RELATED DOCUMENTATION
interface-range
Syntax
interface-range name {
member-range interface-name-fpc/pic/port to interface-name-fpc/pic/port;
member interface-name-fpc/pic/port;
member interface-name-fpc/[low-high]/*;
member interface-name-fpc/[pic1,pic2,pic3...picN]/port
/*Common config is added as part of interface-range definition, as follows*/
mtu 256;
hold-time up 10;
ether-options {
flow-control;
speed {
100m;
}
802.3ad primary;
}
}
Hierarchy Level
[edit interfaces]
Release Information
Statement introduced in Junos OS Release 10.0.
Description
Specify a set of identical interfaces as an interface group, to which you can apply a common configuration
to the entire set of interfaces. This group can consist of both lexical member ranges of interfaces specified
using the member-range interface-type-fpc/pic/port to xx-fpc/pic/port option (regex not supported), and
of individual or non-sequential members using the member interface-type-fpc/pic/port option (with regex
support to specify the fpc/pic/port values).
Options
member-range—Adds interfaces in lexical order. Regex is not supported.
Example:—member ge-0/0/0;
member ge-0/1/1;
member ge-0/*/*;
member ge-0/[1-10]/0;
member ge-1/[1,3,6,10]/12
RELATED DOCUMENTATION
interface-transmit-statistics
Syntax
interface-transmit-statistics;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.4R3 for MX Series devices.
Description
Configure the interface to report the transmitted load statistics. If this statement is not included in the
configuration, the interface statistics show the offered load on the interface, and not the actual transmitted
load.
RELATED DOCUMENTATION
interface-set interface-set-name {
interface ethernet-interface-name {
(unit unit-number | vlan-tags-outer vlan-tag);
}
}
Hierarchy Level
[edit interfaces]
Release Information
Statement introduced in Junos OS Release 8.5.
Description
The set of interfaces used to configure hierarchical CoS schedulers on Ethernet interfaces on the MX
Series router and IQ2E PIC on M Series and T Series routers.
RELATED DOCUMENTATION
interface-shared-with
Syntax
interface-shared-with psdn;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.3.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Description
Assign a logical interface under a shared physical interface to a Protected System Domain (PSD).
Options
n—PSD identification as a numeric value.
Range: 1 through 31
RELATED DOCUMENTATION
353
isdn-options
Syntax
isdn-options {
bchannel-allocation (ascending | descending);
calling-number number;
incoming-called-number number <reject>;
spid1 spid-string;
spid2 spid-string;
static-tei-val value;
switch-type (att5e | etsi | ni1 | ntdms100 | ntt);
t310 seconds;
tei-option (first-call | power-up);
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
bchannel-allocation option added in Junos OS Release 8.3.
Description
For J Series Services Routers only. Specify the ISDN options for configuring ISDN interfaces for group and
user sessions.
RELATED DOCUMENTATION
keep-address-and-control
Syntax
keep-address-and-control;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For interfaces with encapsulation type PPP CCC, do not remove the address and control bytes before
encapsulating the packet into a tunnel.
Default
If you do not include this statement, address and control bytes are removed before encapsulating the
packet into a tunnel.
RELATED DOCUMENTATION
key
Syntax
key number;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For Adaptive Services PICs on M Series routers (except the M320 and M120 routers), identify an individual
traffic flow within a tunnel, as defined in RFC 2890, Key and Sequence Number Extensions to GRE.
Options
number—Value of the key.
Range: 0 through 4,294,967,295
RELATED DOCUMENTATION
lcp-max-conf-req
Syntax
lcp-max-conf-req number
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.6.
Description
Set the maximum number of LCP Configure-Requests to be sent, after which the router goes to LCP down
state.
Options
number—From 0 to 65,535, where 0 means send infinite LCP Configure-Requests, and any other value
specifies the maximum number LCP Configure-Requests to send and then stop sending.
Default—254
RELATED DOCUMENTATION
lcp-restart-timer
Syntax
lcp-restart-timer milliseconds;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.1.
Description
For interfaces with PPP, PPP TCC, PPP over Ethernet, PPP over ATM, and PPP over Frame Relay
encapsulations, configure a restart timer for the Link Control Protocol (LCP) component of a PPP session.
Options
milliseconds—The time, in milliseconds, between successive LCP configuration requests.
Range: 20 through 10000 milliseconds
Default: 3 seconds
RELATED DOCUMENTATION
line-protocol
Syntax
line-protocol protocol;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For serial interfaces only, configure the line protocol.
Options
protocol—You can specify the one of the following line protocols:
RELATED DOCUMENTATION
line-rate
Syntax
line-rate line-rate;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.4.
Description
For J Series Services Routers only, configure the SHDSL line rate.
Options
line-rate—SHDSL line rate, in Kbps. Possible values are:
2-wire (Kbps): 192, 256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024, 1088, 1152, 1216,
1280, 1344, 1408, 1472, 1536, 1600, 1664, 1728, 1792, 1856, 1920, 1984, 2048, 2112, 2176, 2240,
2304, auto
4-wire (Kbps): 384, 512, 640, 768, 896, 1024, 1152, 1280, 1408, 1536, 1664, 1792, 1920, 2048, 2176,
2304, 2432, 2560, 2688, 2816, 2944, 3072, 3200, 3328, 3456, 3584, 3712, 3840, 3968, 4096, 4224,
4352, 4480, 4608
Default: For 2-wire mode, auto; for 4-wire mode, 4608 Kbps
load-interval
Syntax
load-interval seconds;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN logical interfaces, specify the interval used to calculate the average
load on the network. By default, the average interface load is calculated every 60 seconds.
Options
seconds—Number of seconds at which the average load calculation is triggered.
Range: 20 through 180, in 10-second intervals
Default: 60 seconds
RELATED DOCUMENTATION
load-threshold
Syntax
load-threshold percent;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN logical interfaces, specify the bandwidth threshold percentage
used for adding interfaces. Another link is added to the multilink bundle when the load reaches the threshold
value you set. Specify a percentage between 0 and 100.
Options
percent—Bandwidth threshold percentage used for adding interfaces. When set to 0, all available channels
are dialed.
Range: 0 through 100 seconds
Default: 100 seconds
RELATED DOCUMENTATION
local-password
Syntax
local-password password;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Description
Configure the host password for sending PAP requests.
RELATED DOCUMENTATION
loopback (Serial)
Syntax
loopback mode;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure a loopback connection.
Default
If you do not include this statement, there is no loopback connection.
Options
mode—You can specify the one of the following loopback modes:
• dce-local—For EIA-530 interfaces only, loop packets back on the local DCE.
• dce-remote—For EIA-530 interfaces only, loop packets back on the remote DCE.
RELATED DOCUMENTATION
loopback-clear-timer
Syntax
loopback-clear-timer seconds;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
For interfaces with PPP, PPP TCC, PPP over Ethernet, PPP over ATM, and PPP over Frame Relay
encapsulations, configure a loop detection clear timer for the Link Control Protocol (LCP) component of
a PPP session.
Options
seconds—The time in seconds to wait before the loop detection flag is cleared if it is not cleared by the
protocol.
Range: 1 through 60 seconds
Default: 9 seconds
RELATED DOCUMENTATION
modem-options
Syntax
modem-options {
dialin (console | routable);
init-command-string initialization-command-string;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.2.
Description
For J Series Services Routers, configure a USB port to act as a USB modem.
monitor-session
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
Monitor PPP packet exchanges. When monitoring is enabled, packets exchanged during a session are
logged to the default log of /var/log/pppd.
Default
If you do not include this statement, no PPPD-specific monitoring operations are performed.
Options
all—Monitor PPP packet exchanges on all sessions.
RELATED DOCUMENTATION
multipoint
Syntax
multipoint;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure the interface unit as a multipoint connection.
Default
If you omit this statement, the interface unit is configured as a point-to-point connection.
RELATED DOCUMENTATION
ncp-max-conf-req
Syntax
ncp-max-conf-req number
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.6.
Description
Set the maximum number of NCP Configure-Requests to be sent, after which the router goes to NCP
down state.
Options
number—Ranges from 0 to 65535, where 0 means send infinite NCP Configure-Requests and any other
value specifies the maximum number NCP Configure-Requests to send and then stop sending.
Default—254
Range: 0 through 65,535
RELATED DOCUMENTATION
ncp-restart-timer
Syntax
ncp-restart-timer milliseconds;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.1.
Description
For interfaces with PPP and PPP TCC encapsulations and on multilink PPP bundle interfaces, configure a
restart timer for the Network Control Protocol (NCP) component of a PPP session.
Options
milliseconds—The time in milliseconds between successive NCP configuration requests.
Range: 500 through 10,000 milliseconds
Default: 3 seconds
RELATED DOCUMENTATION
operating-mode
Syntax
operating-mode mode;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For J Series Services Routers only, modify the operating mode of the digital subscriber line for an ATM
interface.
Options
mode—Operating mode for ATM-over-ADSL interfaces. The mode can be one of the following:
• ansi-dmt—Set the ADSL line to train in the ANSI T1.413 Issue 2 mode.
• auto—Set the ADSL line to autonegotiate the setting to match the setting of the DSL access multiplexer
(DSLAM) located at the central office. The ADSL line trains in the ANSI T1.413 Issue 2 (ansi-dmt) or ITU
G.992.1 (itu-dmt) mode.
• etsi—Set the ADSL line to train in the ETSI TS 101 388 V1.3.1 mode.
• itu-annexb-ur2—Set the ADSL line to train in the ITU G.992.1 UR-2 mode.
• itu-annexb-non-ur2—Set the ADSL line to train in the ITU G.992.1 non-UR-2 mode.
Default: auto
RELATED DOCUMENTATION
371
ATM-over-ADSL Overview
Junos OS Interfaces and Routing Configuration Guide
passive (PAP)
Syntax
passive;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Description
Initiate an authentication request when the PAP option is received from a peer. If you omit this statement
from the configuration, the interface requires the peer to initiate an authentication request.
RELATED DOCUMENTATION
pfc
Syntax
pfc;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For interfaces with PPP encapsulation, configure the router to compress the protocol field to one byte.
RELATED DOCUMENTATION
point-to-point
Syntax
point-to-point;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For all interfaces except aggregated Ethernet, Fast Ethernet, and Gigabit Ethernet, configure the interface
unit as a point-to-point connection. This is the default connection type.
Default
If you omit this statement, the interface unit is configured as a point-to-point connection.
RELATED DOCUMENTATION
policer (Interface)
Syntax
policer {
arp policer-template-name;
input policer-template-name;
output policer-template-name;
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Support for MX Series routers added in Junos OS Release 20.2R1
Description
Apply a policer to an interface.
Options
arp policer-template-name—For inet family only, name of one policer to evaluate when ARP packets are
received on the interface.
input policer-template-name—Name of one policer to evaluate when packets are received on the interface.
output policer-template-name—Name of one policer to evaluate when packets are transmitted on the
interface.
RELATED DOCUMENTATION
Applying Policers
Configuring Firewall Filters and Policers for VPLS
Routing Policies, Firewall Filters, and Traffic Policers User Guide
Junos OS Services Interfaces Library for Routing Devices
375
pool
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers, for logical and physical ISDN interfaces, specify the dial pool. The dial pool
allows logical (dialer) and physical (br-pim/0/port) interfaces to be bound together dynamically on a per-call
basis. On a dialer interface, pool directs the dialer interface which dial pool to use. On br-pim/0/port
interface, pool defines the pool to which the interface belongs.
Options
pool-name—Pool identifier.
priority priority—(Physical br-pim/0/port interfaces only) Specify a priority value of 0 (lowest) to 255
(highest) for the interface within the pool.
RELATED DOCUMENTATION
preferred-source-address
Syntax
preferred-source-address address;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Description
For unnumbered Ethernet interfaces configured with a loopback interface as the donor interface, specify
one of the loopback interface’s secondary addresses as the preferred source address for the unnumbered
Ethernet interface. Configuring the preferred source address enables you to use an IP address other than
the primary IP address on some of the unnumbered Ethernet interfaces in your network.
Configuration of a preferred source address for unnumbered Ethernet interfaces is supported for the IPv4
and IPv6 address families.
Options
address—Secondary IP address of the donor loopback interface.
RELATED DOCUMENTATION
primary;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure the primary interface for a device. By default, the multicast-capable interface with the
lowest-index address is chosen as the primary interface. If there is no such interface, the point-to-point
interface with the lowest-index address is chosen. Otherwise, any interface with an address can be picked.
In practice, this means that, on the device, the fxp0 or em0 interface is picked by default. To configure a
different interface to be the primary interface, you include this statement.
The primary interface for the router has the following characteristics:
• It is the interface through which the packets go out when you type a command such as ping
255.255.255.255—that is, a command that does not include an interface name (there is no interface
type-0/0/0.0 qualifier) and where the destination address does not imply any particular outgoing interface.
• It is the interface on which multicast applications running locally on the router, such as Session
Announcement Protocol (SAP), perform group joins by default.
• It is the interface from which the default local address is derived for packets sourced out of an
unnumbered interface if there are no non-127 addresses configured on the loopback interface, lo0.
RELATED DOCUMENTATION
redial-delay
Syntax
redial-delay time;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
On J Series Services Routers with interfaces configured for ISDN with dialout, specify the delay (in seconds)
between two successive calls made by the dialer. To configure callback mode, include the callback statement
at the [edit interfaces dln unit logical-unit-number dialer-options] hierarchy level.
If the callback statement is configured, you cannot use the caller caller-id statement at the [edit interfaces
dln unit logical-unit-number dialer-options] hierarchy level.
Options
time—Delay (in seconds) between two successive calls.
Range: 2 through 255 seconds
Default: 3 seconds
RELATED DOCUMENTATION
rts
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 and V.35 interfaces only, configure the to-DCE signal, request to send (RTS).
Options
assert—The to-DCE signal must be asserted.
RELATED DOCUMENTATION
rts-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure RTS signal polarity.
Options
negative—Negative signal polarity.
RELATED DOCUMENTATION
serial-options
Syntax
serial-options {
clock-rate rate;
clocking-mode (dce | loop);
control-polarity (negative | positive);
cts-polarity (negative | positive);
dcd-polarity (negative | positive);
dce-options {
control-signal (assert | de-assert | normal);
cts (ignore | normal | require);
dcd (ignore | normal | require);
dsr (ignore | normal | require);
dtr signal-handling-option;
ignore-all;
indication (ignore | normal | require);
rts (assert | de-assert | normal);
tm (ignore | normal | require);
}
dsr-polarity (negative | positive);
dte-options {
control-signal (assert | de-assert | normal);
cts (ignore | normal | require);
dcd (ignore | normal | require);
dsr (ignore | normal | require);
dtr signal-handling-option;
ignore-all;
indication (ignore | normal | require);
rts (assert | de-assert | normal);
tm (ignore | normal | require);
}
dtr-circuit (balanced | unbalanced);
dtr-polarity (negative | positive);
encoding (nrz | nrzi);
indication-polarity (negative | positive);
line-protocol protocol;
loopback (dce-local | dce-remote | local | remote);
rts-polarity (negative | positive);
tm-polarity (negative | positive);
transmit-clock invert;
}
382
Hierarchy Level
Release Information
Statement introduced prior to Junos OS Release 7.4.
Description
Configure serial-specific interface properties.
RELATED DOCUMENTATION
shdsl-options
Syntax
shdsl-options {
annex (annex-a | annex-b);
line-rate line-rate;
loopback (local | remote | payload);
snr-margin {
snext margin;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.4.
Description
For J Series Services Routers only, configure symmetric DSL (SHDSL) options.
snr-margin
Syntax
snr-margin {
snext margin;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.4.
Description
For J Series Services Routers only, configure the SHDSL signal-to-noise ratio (SNR) margin. The SNR margin
is the difference between the desired SNR and the actual SNR. Configuring the SNR creates a more stable
SHDSL connection by making the line train at a SNR margin higher than the threshold. If any external noise
below the threshold is applied to the line, the line remains stable.
RELATED DOCUMENTATION
snext
Syntax
snext margin;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.4.
Description
For J Series Services Routers only, configure self-near-end crosstalk (SNEXT) signal-to-noise ratio (SNR)
margin for a SHDSL line. When configured, the line trains at higher than SNEXT threshold. The SNR margin
is the difference between the desired SNR and the actual SNR.
Options
margin—Desired SNEXT margin. Possible values are disabled or a margin between –10dB and 10 dB.
Default: disabled
RELATED DOCUMENTATION
spid1
Syntax
spid1 spid1-string;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure the Service Profile Identifier (SPID).
Options
spid1-string—Numeric SPID.
RELATED DOCUMENTATION
spid2
Syntax
spid2 spid2-string;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure an additional SPID.
Options
spid2-string—Numeric SPID.
RELATED DOCUMENTATION
388
static-tei-val
Syntax
static-tei-val value;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For J Series Services Routers only. Statically configure the Terminal Endpoint Identifier (TEI) value. The
TEI value represents any ISDN-capable device attached to an ISDN network that is the terminal endpoint.
TEIs are used to distinguish between several different devices using the same ISDN links.
Options
value—Value between 0 through 63.
RELATED DOCUMENTATION
switch-type
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For J Series Services Routers only. Configure the ISDN variant supported.
Options
att5e—AT&T switch variant.
RELATED DOCUMENTATION
t310
Syntax
t310-value seconds;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For ISDN interfaces, configure the Q.931-specific timer for T310, in seconds. The Q.931 protocol is
involved in the setup and termination of connections.
Options
seconds—Timer value, in seconds.
Range: 1 through 65,536 seconds
Default: 10 seconds
RELATED DOCUMENTATION
tei-option
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For ISDN interfaces, configure when the Terminal Endpoint Identifier (TEI) negotiates with the ISDN
provider.
Options
first-call—Activation does not occur until the call setup is sent.
RELATED DOCUMENTATION
then
Syntax
then {
discard;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
On M40e, M120, and M320 (with FFPC and SFPC) edge routers and T320, T640, and T1600 core routers
with Enhanced Intelligent Queuing (IQE) PICs, discard packets when a specified bandwidth or burst limits
for an aggregate level of a hierarchical policer is reached.
Options
discard—Discard packets if condition is met.
RELATED DOCUMENTATION
Applying Policers
Class of Service User Guide (Routers and EX9200 Switches)
393
tm
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For EIA-530 interfaces only, configure the from-DCE signal, test-mode (TM).
Options
ignore—The from-DCE signal is ignored.
RELATED DOCUMENTATION
tm-polarity
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure TM signal polarity.
Options
negative—Negative signal polarity.
RELATED DOCUMENTATION
traceoptions {
file filename <files number> <match regular-expression> <size size> <world-readable | no-world-readable>;
flag flag;
level severity-level;
no-remote-trace;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.5.
Description
Define tracing operations for the PPP process.
To specify more than one tracing operation, include multiple flag statements.
You cannot specify a separate trace tile. Tracing information is placed in the system syslog file in the
directory /var/log/pppd.
Default
If you do not include this statement, no PPPD-specific tracing operations are performed.
Options
filename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation
marks. All files are placed in the directory /var/log. By default, commit script process tracing output is
placed in the file ppd. If you include the file statement, you must specify a filename. To retain the default,
you can specify eventd as the filename.
files number—(Optional) Maximum number of trace files. When a trace file named trace-file reaches its
maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace
files is reached. Then the oldest trace file is overwritten.
If you specify a maximum number of files, you also must specify a maximum file size with the size option
and a filename.
Range: 2 through 1000
Default: 3 files
396
disable—(Optional) Disable the tracing operation. You can use this option to disable a single operation
when you have defined a broad group of tracing operations, such as all.
flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag
statements. The following are the PPPD-specific tracing options.
• access—Access code
• auth—Authentication code
• config—Configuration code
• timer—Timer code
match regex—(Optional) Refine the output to include only those lines that match the given regular expression.
size size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB).
When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again
reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This
renaming scheme continues until the maximum number of trace files is reached. Then the oldest trace file
is overwritten.
397
If you specify a maximum file size, you also must specify a maximum number of trace files with the files
option and filename.
Syntax: xk to specify KB, xm to specify MB, or xg to specify GB
Range: 10 KB through 1 GB
Default: 128 KB
non-world-readable—(Optional) By default, log files can be accessed only by the user who configures the
tracing operation. Specify non-world-readable to reset the default.
RELATED DOCUMENTATION
transmit-clock
Syntax
transmit-clock invert;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure the transmit clock signal.
Options
invert—Shift the clock phase 180 degrees.
RELATED DOCUMENTATION
unnumbered-address (Demux)
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.2.
preferred-source-address option introduced in Junos OS Release 9.0.
IP demultiplexing interfaces supported in Junos OS Release 9.2.
Description
For IP demultiplexing interfaces, enable the local address to be derived from the specified interface.
Configuring an unnumbered interface enables IP processing on the interface without assigning an explicit
IP address to the interface.
Options
interface-name—Name of the interface from which the local address is derived. The specified interface
must have a logical unit number and a configured IP address, and must not be an unnumbered interface.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
Binds a single-tag logical interface to a list of VLAN IDs. Configures a logical interface to receive and
forward any tag frame whose VLAN ID tag matches the list of VLAN IDs you specify.
NOTE:
When you create a circuit cross-connect (CCC) using VLAN-bundled single-tag logical interfaces
on Layer 2 VPN routing instances, the circuit automatically uses ethernet encapsulation. For
Layer 2 VPN, you need to include the encapsulation-type statement and specify the value
ethernet at either of the following hierarchy levels:
For more information about the encapsulation-type configuration statement and the Layer 2
encapsulation types ethernet and ethernet-vlan, see the Junos OS VPNs Library for Routing Devices.
Options
[vlan-id vlan-id–vlan-id]—A list of valid VLAN ID numbers. Specify the VLAN IDs individually by using a
space to separate each ID, as an inclusive list by separating the starting VLAN ID and ending VLAN ID
with a hyphen, or as a combination of both.
Range: 1 through 4094. VLAN ID 0 is reserved for tagging the priority of frames.
401
NOTE: Configuring vlan-id-list with the entire vlan-id range is an unnecessary waste of system
resources and is not best practice. It should be used only when a subset of VLAN IDs (not the
entire range) needs to be associated with a logical interface. If you specify the entire range
(1-4094), it has the same result as not specifying a range; however, it consumes PFE resources
such as VLAN lookup tables entries, and so on.
RELATED DOCUMENTATION
watch-list
Syntax
watch-list {
[ routes ];
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
On J Series Services Routers with ISDN interfaces, configure an ISDN list of routes to watch. Used only
for dialer watch.
Options
routes—IP prefix of a route. Specify one or more. The primary interface is considered up if there is at least
one valid route for any of the addresses in the watch list to an interface other than the backup interface.
RELATED DOCUMENTATION
Operational Commands
This chapter explains the content of the output fields, which appear in the output of most show interfaces
commands.
Damping Field
For the physical interface, the Damping field shows the setting of the following damping parameters:
• half-life—Decay half-life. The number of seconds after which the accumulated interface penalty counter
is reduced by half if the interface remains stable.
• max-suppress—Maximum hold-down time. The maximum number of seconds that an interface can be
suppressed irrespective of how unstable the interface has been.
• reuse—Reuse threshold. When the accumulated interface penalty counter falls below this number, the
interface is no longer suppressed.
• suppress—Cutoff (suppression) threshold. When the accumulated interface penalty counter exceeds
this number, the interface is suppressed.
For the logical interface, the Destination class field provides the names of destination class usage (DCU)
counters per family and per class for a particular interface. The counters display packets and bytes arriving
from designated user-selected prefixes. For example:
Packets Bytes
Destination class (packet-per-second) (bits-per-second)
silver 0 0
( 0) ( 0)
Enabled Field
For the physical interface, the Enabled field provides information about the state of the interface, displaying
one or more of the following values:
• Administratively down, Physical link is Down—The interface is turned off, and the physical link is
inoperable and cannot pass packets even when it is enabled.To change the interface state to Enabled,
use the following command:
• Administratively down, Physical link is Up—The interface is turned off, but the physical link is operational
and can pass packets when it is enabled.To change the interface state to Enabled, use the following
command:
• Enabled, Physical link is Down—The interface is turned on, but the physical link is inoperable and cannot
pass packets. Manually verify the connections to bring the physical link up.
• Enabled, Physical link is Up—The interface is turned on, and the physical link is operational and can pass
packets.
Filters Field
For the logical interface, the Filters field provides the name of the firewall filters to be evaluated when
packets are received or transmitted on the interface. The format is Filters: Input: filter-name and Filters:
Output: filter-name. For example:
Flags Fields
IN THIS SECTION
The following sections provide information about flags that are specific to interfaces:
The Addresses, Flags field provides information about the addresses configured for the protocol family
on the logical interface and displays one or more of the following values:
• Dest-route-down—The routing process detected that the link was not operational and changed the
interface routes to nonforwarding status
• Is-Default—The default address of the router used as the source address by SNMP, ping, traceroute,
and other network utilities.
• Is-Preferred—The default local address for packets originating from the local router and sent to
destinations on the subnet.
• Is-Primary—The default local address for broadcast and multicast packets originated locally and sent
out the interface.
• Trunk—Interface is a trunk.
• Trunk, Inter-Switch-Link—Interface is a trunk, and InterSwitch Link protocol (ISL) is configured on the
trunk port of the primary VLAN in order to connect the routers composing the PVLAN to each other.
407
The Device flags field provides information about the physical device and displays one or more of the
following values:
• ASIC Error—Device is down because of ASIC wedging and due to which PFE is disabled.
• Link-Layer-Down—The link-layer protocol has failed to connect with the remote endpoint.
• Loop-Detected—The link layer has received frames that it sent, thereby detecting a physical loopback.
• Promiscuous—Device is in promiscuous mode and recognizes frames addressed to all physical addresses
on the media.
The Family flags field provides information about the protocol family on the logical interface and displays
one or more of the following values:
• Dest-route-down—The software detected that the link is down and has stopped forwarding the link's
interface routes.
• Down—Protocol is inactive.
• Maximum labels—Maximum number of MPLS labels configured for the MPLS protocol family on the
logical interface.
408
The Interface flags field provides information about the physical interface and displays one or more of the
following values:
• Admin-Test—Interface is in test mode and some sanity checking, such as loop detection, is disabled.
• OAM-On-SVLAN—(MX Series routers with MPC/MIC interfaces only) Interface is configured to propagate
the Ethernet OAM state of a static, single-tagged service VLAN (S-VLAN) on a Gigabit Ethernet, 10-Gigabit
Ethernet, or aggregated Ethernet interface to a dynamic or static double-tagged customer VLAN (C-VLAN)
that has the same S-VLAN (outer) tag as the S-VLAN.
• Point-To-Point—Interface is point-to-point.
• Pop all MPLS labels from packets of depth—MPLS labels are removed as packets arrive on an interface
that has the pop-all-labels statement configured. The depth value can be one of the following:
• [ 1 2 ]—Takes effect for incoming packets with either one or two labels.
• Promiscuous—Interface is in promiscuous mode and recognizes frames addressed to all physical addresses.
The Link flags field provides information about the physical link and displays one or more of the following
values:
• ACFC—Address control field compression is configured. The Point-to-Point Protocol (PPP) session
negotiates the ACFC option.
• Give-Up—Link protocol does not continue connection attempts after repeated failures.
• Loose-LCP—PPP does not use the Link Control Protocol (LCP) to indicate whether the link protocol is
operational.
• Loose-LMI—Frame Relay does not use the Local Management Interface (LMI) to indicate whether the
link protocol is operational.
• Loose-NCP—PPP does not use the Network Control Protocol (NCP) to indicate whether the device is
operational.
• PFC—Protocol field compression is configured. The PPP session negotiates the PFC option.
The Logical interface flags field provides information about the logical interface and displays one or more
of the following values:
• Clear-DF-Bit—GRE tunnel or IPsec tunnel is configured to clear the Don't Fragment (DF) bit.
• Point-To-Point—Interface is point-to-point.
When you use the vrf-table-label statement to configure a VRF routing table, a label-switched interface
(LSI) logical interface label is created and mapped to the VRF routing table.
Any routes present in a VRF routing table and configured with the vrf-table-label statement are advertised
with the LSI logical interface label allocated for the VRF routing table. When packets for this VPN arrive
on a core-facing interface, they are treated as if the enclosed IP packet arrived on the LSI interface and
are then forwarded and filtered based on the correct table. For more information on the vrf-table-label
statement, including a list of supported interfaces, see the Junos VPNs Configuration Guide.
If you configure the family mpls statement at the [edit interfaces interface-name unit logical-unit-number]
hierarchy level and you also configure the vrf-table-label statement at the [edit routing-instances
routing-instance-name] hierarchy level, the output for the show interface interface-name extensive command
includes the following output fields about the LSI traffic statistics:
• Input bytes—Number of bytes entering the LSI and the current throughput rate in bits per second (bps).
• Input packets—Number of packets entering the LSI and the current throughput rate in packets per
second (pps).
NOTE: If LSI interfaces are used with VPLS when no-tunnel-services is configured or L3VPN
when vrf-table-label configuration is applied inside the routing-instance, the Input packets field
associated with the core-facing interfaces may not display the correct value. Only the Input
counter is affected because the LSI is used to receive traffic from the remote PEs. Traffic that
arrives on an LSI interface might not be counted at both the Traffic Statistics and the
Label-switched interface (LSI) traffic statistics levels.
• M Series routers with -E3 FPC model numbers or configured with an Enhanced CFEB (CFEB-E),
and M120 routers
The following example shows the LSI traffic statistics that you might see as part of the output of the show
interface interface-name extensive command:
Policer Field
For the logical interface, the Policer field provides the policers that are to be evaluated when packets are
received or transmitted on the interface. The format is Policer: Input: type-fpc/picport-in-policer, Output:
type-fpc/pic/port-out-policer. For example:
Protocol Field
For the logical interface, the Protocol field indicates the protocol family or families that are configured on
the interface, displaying one or more of the following values:
• aenet—Aggregated Ethernet. Displayed on Fast Ethernet interfaces that are part of an aggregated
Ethernet bundle.
• ccc—Circuit cross-connect (CCC). Configured on the logical interface of CCC physical interfaces.
• inet—IP version 4 (IPv4). Configured on the logical interface for IPv4 protocol traffic, including Open
Shortest Path First (OSPF), Border Gateway Protocol (BGP), Internet Control Message Protocol (ICMP),
and Internet Protocol Control Protocol (IPCP).
• inet6—IP version 6 (IPv6). Configured on the logical interface for IPv6 protocol traffic, including Routing
Information Protocol for IPv6 (RIPng), Intermediate System-to-Intermediate System (IS-IS), and BGP.
• iso—International Organization for Standardization (ISO). Configured on the logical interface for IS-IS
traffic.
• mlfr-end-to-end—Multilink Frame Relay end-to-end. Configured on the logical interface for multilink
bundling.
412
• mlppp—Multilink Point-to-Point Protocol (MLPPP). Configured on the logical interface for multilink
bundling.
• mpls—Multiprotocol Label Switching (MPLS). Configured on the logical interface for participation in an
MPLS path.
• pppoe— Point-to-Point Protocol over Ethernet (PPPoE). Configured on Ethernet interfaces enabled to
support multiple protocol families.
• tcc—Translational cross-connect (TCC). Configured on the logical interface of TCC physical interfaces.
• tnp—Trivial Network Protocol (TNP). Used to communicate between the Routing Engine and the router’s
packet forwarding components. The Junos OS automatically configures this protocol family on the
router’s internal interfaces only.
• vpls—Virtual private LAN service (VPLS). Configured on the logical interface on which you configure
VPLS.
For the logical interface, the RPF Failures field provides information about the amount of incoming traffic
(in packets and bytes) that failed a unicast reverse path forwarding (RPF) check on a particular interface.
The format is RPF Failures: Packets: xx,Bytes: yy. For example:
For the logical interface, the Source class field provides the names of source class usage (SCU) counters
per family and per class for a particular interface. The counters display packets and bytes arriving from
designated user-selected prefixes. For example:
Packets Bytes
Source class (packet-per-second) (bits-per-second)
( 0) ( 0)
The offered load on an interface can be defined as the amount of data the interface is capable of transmitting
during a given time period. The actual traffic that goes out of the interface is the transmitted load. However,
when outgoing interfaces are oversubscribed, there could be traffic drops in the schedulers attached to
the outgoing interfaces. Hence, the offered load is not always the same as the actual transmitted load
because the offered load calculation does not take into account possible packet drop or traffic loss.
On MX Series routers, the logical interface-level statistics show the offered load, which is often different
from the actual transmitted load. To address this limitation, Junos OS introduces a new configuration
option in Release 11.4 R3 and later. The new configuration option, interface-transmit-statistics, at the
[edit interface interface-name] hierarchy level, enables you to configure Junos OS to accurately capture
and report the transmitted load on interfaces.
When the interface-transmit-statistics statement is included at the [edit interface interface-name] hierarchy
level, the following operational mode commands report the actual transmitted load:
The show interface interface-name command also shows whether the interface-transmit-statistics
configuration is enabled or disabled on the interface.
RELATED DOCUMENTATION
interface-transmit-statistics | 350
show interfaces
414
Release Information
Command introduced in Junos OS Release 8.0.
Command introduced in Junos OS Release 12.1 for PTX Series Packet Transport Routers.
Description
(PTX Series Packet Transport Routers only) Display status information about the specified Ethernet interface.
Options
et-fpc/pic/port—Display standard information about the specified Ethernet interface.
snmp-index snmp-index—(Optional) Display information for the specified SNMP index of the interface.
Output Fields
See Table 23 on page 415 for the output fields for the show interfaces (PTX Series Packet Transport Routers)
command.
415
Physical Interface
Enabled State of the interface. Possible values are described in the “Enabled Field” All levels
section under “Common Output Fields Description” on page 404.
Interface index Index number of the physical interface, which reflects its initialization detail extensive none
sequence.
SNMP ifIndex SNMP index number for the physical interface. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Link-level type Encapsulation being used on the physical interface. All levels
MTU Maximum transmission unit size on the physical interface. All levels
BPDU Error Bridge protocol data unit (BPDU) errors (if any). All levels
Loopback Loopback status: Enabled or Disabled. If loopback is enabled, type of All levels
loopback: Local or Remote.
Device flags Information about the physical device. Possible values are described in All levels
the “Device Flags” section under “Common Output Fields Description”
on page 404.
Interface flags Information about the interface. Possible values are described in the All levels
“Interface Flags” section under “Common Output Fields Description” on
page 404.
Link flags Information about the link. Possible values are described in the “Links All levels
Flags” section under “Common Output Fields Description” on page 404.
416
Hold-times Current interface hold-time up and hold-time down, in milliseconds. detail extensive
Last flapped Date, time, and how long ago the interface went from down to up. The detail extensive
format is Last flapped: year-month-day hour:minute:second:timezone none
(hour:minute:second ago). For example, Last flapped: 2002-04-26 10:52:40
PDT (04:33:20 ago).
Statistics last Time when the statistics for the interface were last set to zero. detail extensive
cleared
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
physical interface.
NOTE: Input bytes and output bytes are counted as Layer 3 packet length.
417
Input errors Input errors on the interface. The following paragraphs explain the extensive
counters whose meaning might not be obvious:
Output errors Output errors on the interface. The following paragraphs explain the extensive
counters whose meaning might not be obvious:
Egress queues Total number of egress queues supported on the specified interface. detail extensive
Queue counters CoS queue number and its associated user-configured forwarding class detail extensive
(Egress) name.
Ingress queues Total number of ingress queues supported on the specified interface. extensive
419
Queue counters CoS queue number and its associated user-configured forwarding class extensive
(Ingress) name.
Active alarms Ethernet-specific defects that can prevent the interface from passing detail extensive
and Active packets. When a defect persists for a certain amount of time, it is none
defects promoted to an alarm. Based on the router configuration, an alarm can
ring the red or yellow alarm bell on the router, or turn on the red or yellow
alarm LED on the craft interface. These fields can contain the value None
or Link.
MAC statistics Receive and Transmit statistics reported by the PIC's MAC subsystem, extensive
including the following:
Filter statistics Receive and Transmit statistics reported by the PIC's MAC address filter extensive
subsystem. The filtering is done by the content-addressable memory
(CAM) on the PIC. The filter examines a packet's source and destination
MAC addresses to determine whether the packet should enter the system
or be rejected.
Packet Information about the configuration of the Packet Forwarding Engine: extensive
Forwarding
Engine • Destination slot—FPC slot number.
configuration
CoS information Information about the CoS queue for the physical interface. extensive
Logical Interface
Index Index number of the logical interface, which reflects its initialization detail extensive
sequence. none
SNMP ifIndex SNMP interface index number for the logical interface. detail extensive
none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Flags Information about the logical interface. Possible values are described in All levels
the “Logical Interface Flags” section under “Common Output Fields
Description” on page 404.
424
VLAN-Tag Rewrite profile applied to incoming or outgoing frames on the outer (Out) brief detail extensive
VLAN tag or for both the outer and inner (In) VLAN tags. none
• push—An outer VLAN tag is pushed in front of the existing VLAN tag.
• pop—The outer VLAN tag of the incoming frame is removed.
• swap—The outer VLAN tag of the incoming frame is overwritten with
the user-specified VLAN tag information.
• push—An outer VLAN tag is pushed in front of the existing VLAN tag.
• push-push—Two VLAN tags are pushed in from the incoming frame.
• swap-push—The outer VLAN tag of the incoming frame is replaced by
a user-specified VLAN tag value. A user-specified outer VLAN tag is
pushed in front. The outer tag becomes an inner tag in the final frame.
• swap-swap—Both the inner and the outer VLAN tags of the incoming
frame are replaced by the user-specified VLAN tag value.
• pop-swap—The outer VLAN tag of the incoming frame is removed, and
the inner VLAN tag of the incoming frame is replaced by the
user-specified VLAN tag value. The inner tag becomes the outer tag in
the final frame.
• pop-pop—Both the outer and inner VLAN tags of the incoming frame
are removed.
Demux IP demultiplexing (demux) value that appears if this interface is used as detail extensive
the demux underlying interface. The output is one of the following: none
Protocol Protocol family. Possible values are described in the “Protocol Field” detail extensive none
section under “Common Output Fields Description” on page 404.
MTU Maximum transmission unit size on the logical interface. detail extensive none
Maximum labels Maximum number of MPLS labels configured for the MPLS protocol family detail extensive
on the logical interface. none
425
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
specified interface set.
NOTE: Input bytes and output bytes are counted as Layer 3 packet length.
IPv6 transit Number of IPv6 transit bytes and packets received and transmitted on extensive
statistics the logical interface if IPv6 statistics tracking is enabled.
Local statistics Number and rate of bytes and packets destined to the router. extensive
Transit statistics Number and rate of bytes and packets transiting the switch. extensive
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Route Table Route table in which the logical interface address is located. For example, detail extensive none
0 refers to the routing table inet.0.
Flags Information about protocol family flags. Possible values are described in detail extensive
the “Family Flags” section under “Common Output Fields Description” on
page 404.
Donor interface (Unnumbered Ethernet) Interface from which an unnumbered Ethernet detail extensive none
interface borrows an IPv4 address.
Preferred source (Unnumbered Ethernet) Secondary IPv4 address of the donor loopback detail extensive none
address interface that acts as the preferred source address for the unnumbered
Ethernet interface.
Input Filters Names of any input filters applied to this interface. If you specify a detail extensive
precedence value for any filter in a dynamic profile, filter precedence
values appear in parentheses next to all interfaces.
Output Filters Names of any output filters applied to this interface. If you specify a detail extensive
precedence value for any filter in a dynamic profile, filter precedence
values appear in parentheses next to all interfaces.
426
Mac-Validate Number of MAC address validation failures for packets and bytes. This detail extensive
Failures field is displayed when MAC address validation is enabled for the logical none
interface.
Addresses, Flags Information about the address flags. Possible values are described in the detail extensive none
“Addresses Flags” section under “Common Output Fields Description” on
page 404.
protocol-family Protocol family configured on the logical interface. If the protocol is inet, brief
the IP address of the interface is also displayed.
Flags Information about flags (possible values are described in the “Addresses detail extensive none
Flags” section under “Common Output Fields Description” on page 404.
Destination IP address of the remote side of the connection. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Sample Output
show interfaces brief (PTX5000 Packet Transport Router)
user@host> show interfaces brief et-7/0/0
Total octets 0 0
Total packets 0 0
Unicast packets 0 0
Broadcast packets 0 0
Multicast packets 0 0
CRC/Align errors 0 0
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
Filter statistics:
Input packet count 0
Input packet rejects 0
Input DA rejects 0
Input SA rejects 0
Output packet count 0
Output packet pad count 0
Output packet error count 0
CAM destination filters: 0, CAM source filters: 0
Autonegotiation information:
Negotiation status: Incomplete
Packet Forwarding Engine configuration:
Destination slot: 7
CoS information:
Direction : Output
CoS transmit queue Bandwidth Buffer Priority
Limit
% bps % usec
0 best-effort 95 9500000000 95 0 low
none
3 network-control 5 500000000 5 0 low
none
Interface transmit statistics: Disabled
et-2/0/1 up up
et-2/0/2 up up
et-2/0/3 up up
et-2/0/4 up up
et-2/0/5 up down
et-2/0/6 up up
et-2/0/7 up up
et-2/0/8 up up
et-2/0/9 up down
et-2/0/10 up up
et-2/0/11 up up
et-2/0/12 up up
et-2/0/13 up down
et-2/0/14 up up
et-2/0/15 up up
et-2/0/16 up up
et-2/0/17 up down
et-2/0/18 up down
et-2/0/19 up up
et-2/0/20 up down
et-2/0/21 up up
et-2/0/22 up down
et-2/0/23 up up
et-2/1/0 up up
et-2/1/1 up up
et-2/1/2 up up
et-2/1/3 up up
et-2/1/4 up up
et-2/1/5 up up
et-2/1/6 up up
et-2/1/7 up up
et-2/1/8 up up
et-2/1/9 up up
et-2/1/10 up up
et-2/1/11 up up
et-2/1/12 up up
et-2/1/13 up up
et-2/1/14 up up
et-2/1/15 up up
et-2/1/16 up up
et-2/1/17 up up
et-2/1/18 up up
et-2/1/19 up up
et-2/1/20 up up
430
et-2/1/21 up up
et-2/1/22 up up
et-2/1/23 up up
et-5/0/0 up up
et-5/0/0.0 up up ccc
et-5/0/0.32767 up up multiservice
et-5/0/1 up up
et-5/0/2 up up
et-5/0/3 up down
et-5/0/4 up down
et-5/0/5 up up
et-5/0/5.0 up up ccc
et-5/0/5.32767 up up multiservice
et-5/0/6 up up
et-5/0/7 up up
et-5/0/8 up down
et-5/0/9 up up
et-5/0/10 up up
et-5/0/11 up up
et-5/0/12 up up
et-5/0/13 up down
et-5/0/14 up down
et-5/0/15 up up
et-5/0/16 up up
et-5/0/17 up up
et-5/0/18 up up
et-5/0/19 up up
et-5/0/20 up down
et-5/0/21 up down
et-5/0/22 up up
et-5/0/23 up up
et-5/1/0 up up
et-5/1/1 up up
et-7/0/0 up up
et-7/0/1 up up
et-7/0/2 up up
et-7/0/3 up up
et-7/0/4 up up
et-7/0/5 up up
et-7/0/6 up up
et-7/0/7 up up
et-7/0/8 up up
et-7/0/9 up up
et-7/0/10 up down
431
et-7/0/11 up down
et-7/0/12 up down
et-7/0/13 up down
et-7/0/14 up down
et-7/0/15 up down
et-7/0/16 up down
et-7/0/17 up down
et-7/0/18 up down
et-7/0/19 up down
et-7/0/20 up down
et-7/0/21 up down
et-7/0/22 up down
et-7/0/23 up down
dsc up up
em0 up up
em0.0 up up inet 192.168.177.61/25
gre up up
ipip up up
ixgbe0 up up
ixgbe0.0 up up inet 10.0.0.4/8
128.0.0.1/2
128.0.0.4/2
inet6 fe80::200:ff:fe00:4/64
fec0::a:0:0:4/64
tnp 0x4
ixgbe1 up up
ixgbe1.0 up up inet 10.0.0.4/8
128.0.0.1/2
128.0.0.4/2
inet6 fe80::200:1ff:fe00:4/64
fec0::a:0:0:4/64
tnp 0x4
lo0 up up
lo0.0 up up inet 10.255.177.61 --> 0/0
127.0.0.1 --> 0/0
iso
47.0005.80ff.f800.0000.0108.0001.0102.5517.7061
inet6 abcd::10:255:177:61
fe80::ee9e:cd0f:fc02:b01e
lo0.16384 up up inet 127.0.0.1 --> 0/0
lo0.16385 up up inet
lsi up up
mtun up up
pimd up up
432
pime up up
tap up up
3 16045690984503098046 0 0
Queue number: Mapped forwarding classes
0 best-effort
1 expedited-forwarding
2 assured-forwarding
3 network-control
Active alarms : None
Active defects : None
PCS statistics Seconds
Bit errors 0
Errored blocks 0
MAC statistics: Receive Transmit
Total octets 0 0
Total packets 0 0
Unicast packets 0 0
Broadcast packets 0 0
Multicast packets 0 0
CRC/Align errors 0 0
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
Total errors 0 0
Filter statistics:
Input packet count 0
Input packet rejects 0
Input DA rejects 0
Input SA rejects 0
Output packet count 0
Output packet pad count 0
Output packet error count 0
CAM destination filters: 0, CAM source filters: 0
434
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced on PTX Series Packet Transport Routers for Junos OS Release 12.1.
Description
Display media-specific information about all configured network interfaces.
NOTE: show interfaces media lists details for all interfaces, whereas show interfaces media
interface-name lists details only for the specified interface.
Options
This command has no options.
Additional Information
Output from both the show interfaces interface-name detail and the show interfaces interface-name
extensive commands includes all the information displayed in the output from the show interfaces media
command.
Output Fields
The output from the show interfaces media command includes fields that display interface media-specific
information. These fields are also included in the show interfaces interface-name command for each
particular interface type, and the information provided in the fields is unique to each interface type.
One field unique to the show interfaces media command is interface-type errors (for example, SONET
errors). This field appears for channelized E3, channelized T3, channelized OC, E1, E3, SONET, T1, and T3
interfaces. The information provided in this output field is also provided in the output from the show
interfaces interface-name command. (For example, for SONET interfaces, these fields are SONET section,
435
SONET line, and SONET path). For a description of errors, see the chapter with the particular interface
type in which you are interested.
Sample Output
show interfaces media (SONET/SDH)
The following example displays the output fields unique to the show interfaces media command for a
SONET interface (with no level of output specified):
None,
Loopback: None, Source filtering: Disabled, Flow control: Enabled
Pad to minimum frame size: Enabled
Device flags : Present Running
Interface flags: Hardware-Down SNMP-Traps Internal: 0x0
Link flags : None
CoS queues : 8 supported, 8 maximum usable queues
Current address: 08:81:f4:82:a3:f0, Hardware address: 08:81:f4:82:a3:f0
Last flapped : 2013-10-26 03:20:40 test (1w6d 00:19 ago)
Input rate : 0 bps (0 pps)
Output rate : 0 bps (0 pps)
Active alarms : LINK
Active defects : LINK
PCS statistics Seconds
Bit errors 78
Errored blocks 78
MAC statistics:
Input bytes: 0, Input packets: 0, Output bytes: 0, Output packets: 0
Filter statistics:
Filtered packets: 0, Padded packets: 0, Output packet errors: 0
Interface transmit statistics: Disabled
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced on PTX Series Packet Transport Routers for Junos OS Release 12.1.
Description
Display summary information about interfaces.
Options
This command has no options.
Additional Information
Interfaces are always displayed in numerical order, from the lowest to the highest FPC slot number. Within
that slot, the lowest PIC slot is shown first. On an individual PIC, the lowest port number is always first.
RELATED DOCUMENTATION
Output Fields
Table 24 on page 437 lists the output fields for the show interfaces terse command. Output fields are listed
in the approximate order in which they appear.
Sample Output
show interfaces terse
user@host> show interfaces terse
lsi up up
439
mtun up up
162.0.0.4/2
inet6 fe80::200:1ff:fe22:4/64
fec0::a:22:0:4/64
tnp 0x22000004
Protocol-Independent Routing
Operational Commands
Release Information
Command introduced in Junos OS Release 11.4.
Description
Allows you to search for routes using regular expressions based on the extended (modern) regular
expressions as defined in POSIX 1003.2.
Options
match-prefix—Regular expression to match formatted prefix.
Additional Information
RELATED DOCUMENTATION
Regular Expressions for Allowing and Denying Junos OS Operational Mode Commands, Configuration
Statements, and Hierarchies
Output Fields
For information about output fields, see the output field tables for the show route command, the show
route detail command, the show route extensive command, or the show route terse command.
Sample Output
show route match-prefix *:10.255.2.200:6:* (Show all routes matching route distributor 10.255.2.200:6)
user@host> show route match-prefix *:10.255.2.200:6:*
443
Paste
router command output here
show route match-prefix *:224.* (Show all routes matching group 224/4)
user@host> show route match-prefix *:224.*