ON THIS PAGE
Physical Interface Properties
Use this topic to configure various properties of physical interfaces on your device. Read on to configure properties such as interface descriptions, interface speeds, and accounting profiles for physical interfaces.
Physical Interface Properties Overview
The software driver for each network media type sets reasonable default values for general interface properties. These properties include the interface’s maximum transmission unit (MTU) size, receive and transmit leaky bucket properties, and speed.
To modify any of the default general interface properties, include the appropriate statements at
the [edit interfaces interface-name]
hierarchy
level.
Configure the Interface Description
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. The interface description 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. The
description can be a single line of text. If the text contains spaces, enclose it in quotation
marks.
[edit] user@host# set interfaces interface-name description text
For example:
[edit] user@host# set interfaces et-1/0/1 description "Backbone connection to PHL01"
You can configure the extended DHCP relay to include the interface description in the option 82 Agent Circuit ID suboption.
To display the description from the router or switch CLI, use
the show interfaces
command:
user@host> show interfaces et-1/0/1 Physical interface: et-1/0/1, Enabled, Physical link is Up Interface index: 129, SNMP ifIndex: 23 Description: Backbone connection to PHL01 ...
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
.
For information about describing logical units, see Adding a Logical Unit Description to the Configuration.
How to Specify an Aggregated Interface
An
aggregated interface is a group of interfaces. To specify an aggregated Ethernet
interface, configure aex
at the [edit
interfaces]
hierarchy level, where x is an integer
starting at 0.
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.
Interface Speed
m
is in megabits per second
(Mbps). A link speed ending in g
is in gigabits per second
(Gbps).- Configuring the Interface Speed on Ethernet Interfaces
- Configure Interface Speeds for PTX10003 Routers and QFX5220 Switches
- Configure the Aggregated Ethernet Link Speed
Configuring the Interface Speed on Ethernet Interfaces
For
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 Router.
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 thelink-mode full-duplex
statement at the same hierarchy level.
See Also
Configure Interface Speeds for PTX10003 Routers and QFX5220 Switches
[edit chassis]
level rather than the
[edit interface]
level.Configure the Aggregated Ethernet Link Speed
On aggregated Ethernet interfaces, you can set the required link speed for all interfaces included in the bundle.
Some devices support mixed rates and mixed modes. For example, you could configure the following on the same aggregated Ethernet (AE) interface:
Member links of different modes (WAN and LAN) for 10-Gigabit Ethernet links
Member links of different rates: 10-Gigabit Ethernet, 25-Gigabit Ethernet, 40-Gigabit Ethernet, 50-Gigabit Ethernet, 100-Gigabit Ethernet, 400-Gigabit Ethernet, and OC192 (10-Gigabit Ethernet WAN mode)
Use Feature Explorer to confirm platform and release support for specific features.
Review the Platform-Specific LAG Behavior section for notes related to your platform.
You can only configure 50-Gigabit Ethernet member links using the 50-Gigabit Ethernet interfaces of 100-Gigabit Ethernet PIC with CFP (PD-1CE-CFP-FPC4).
You can only configure 100-Gigabit Ethernet member links using the two 50-Gigabit Ethernet interfaces of a 100-Gigabit Ethernet PIC with CFP. You can include this 100-Gigabit Ethernet member link in an aggregated Ethernet link that includes member links of other interfaces as well.
To configure the aggregated Ethernet link speed:
Platform-Specific LAG Behavior
Platform |
Difference |
---|---|
ACX Series |
|
Forward Error Correction (FEC)
Forward error correction (FEC) improves the reliability of the data transmitted by your device. When FEC is enabled on an interface, that interface sends redundant data. The receiver accepts data only where the redundant bits match, which removes erroneous data from the transmission. Junos OS Evolved enables you (the network administrator) to configure Reed-Solomon FEC (RS-FEC) and BASE-R FEC on Ethernet interfaces. RS-FEC is compliant with IEEE 802.3-2015 Clause 91. BASE-R FEC is compliant with IEEE 802.3-2015 Cause 74.
Benefits of FEC
When you configure FEC on Ethernet interfaces, FEC improves your device function in these ways:
-
Enhances the reliability of the connection
-
Enables the receiver to correct transmission errors without requiring retransmission of the data
-
Extends the reach of optics
Overview
By default, Junos OS Evolved enables or disables FEC based on the plugged-in optics. For instance, Junos OS Evolved enables RS-FEC for 25 Gigabit (Gb) or 50 Gb SR4 optics and disables RS-FEC for 25 Gb or 50 Gb LR4 optics. You can override the default behavior and explicitly enable or disable FEC. You must disable FEC mode if you do not want it assigned by default.
You can enable or disable RS-FEC for 25-, 50-, and 100-Gigabit Ethernet (GbE) interfaces. You can enable or disable BASE-R FEC for 25GbE and 50GbE interfaces. If you enable or disable FEC, this behavior applies to any 25GbE or 50GbE optical transceiver installed in the port associated with the interface. You can configure FEC clauses CL74 on 25 Gb and 50 Gb interfaces and CL91 on 25 Gb, 50 Gb, or 100 Gb interfaces. Because the FEC clauses are applied by default on these interfaces, you must disable the FEC clauses if you do not want to apply them.
FEC is always enabled on 200GbE and 400GbE interfaces. You cannot disable it.
If there is an FEC mismatch between pairs of nodes, the link between nodes can go down. To prevent the nodes from going down, you must reconfigure them.
For instance, consider two peer nodes, Node1 and Node2. Node1 is running Junos OS Evolved Release 21.1R1, where the default is FEC91. The peer node (Node2) is running Junos OS Evolved Release 20.1R1, where the default is FEC74. The link between the two nodes will go down because the FEC modes don't match. To enable the link to come back up, you must manually change the FEC on one of the nodes.
Configure FEC
To disable or enable an FEC mode on an interface and any associated interfaces, complete the relevant action:
Interface Aliases
Overview
An interface alias is a textual description of a logical unit on a physical interface. An alias enables you to give a single meaningful and easily identifiable name to an interface. Interface aliasing is supported only at the unit level.
The alias name is displayed instead of the interface name in the output of all
show
, show interfaces
, and other operational mode
commands. Configuring an alias for a logical unit of an interface has no effect on how the
interface operates on the device.
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. When the operating system processes query the configuration database
for the interface-name
variable, the exact value of the
interface-name
variable is returned instead of the
alias name for system operations and computations.
Configuration
To specify an interface alias, use the alias
statement at the
[edit interfaces interface-name unit
logical-unit-number]
hierarchy level. Start the alias name
with a letter followed by letters, numbers, dashes, dots, underscores, colons, or slashes.
Avoid starting the alias with any part of a valid interface name. Use between 5 and 128
characters.
[edit interfaces interface-name unit logical-unit-number] user@device# set alias alias-name
For example:
[edit interfaces et-1/0/1 unit 0] user@device# set alias controller-sat1-downlink1
If you configure the same alias name on more than one logical interface, the router displays an error message, and the commit fails.
You can use interface alias names to make it easy to see the roles interfaces play in your configuration. For example, to make it easy to identify satellite connection interfaces:
- Group physical interfaces as one aggregated interface using a link aggregation group (LAG) or LAG bundle. Name that aggregated interface sat1 to show it is a satellite connection interface.
- Select a logical interface as a member of the LAG bundle or the entire LAG. Name that interface et-0/0/1 to represent a satellite device port or a service instance.
- You can combine the satellite name and the interface name aliases to wholly represent the satellite port name. For example, you could give your satellite port the alias sat1:et-0/0/1.
Interface Encapsulation on Physical Interfaces
Point-to-Point Protocol (PPP) encapsulation is the default encapsulation type for physical interfaces. You don't need to configure encapsulation for physical interfaces that support PPP encapsulation, because 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. On a logical interface, you can optionally configure an encapsulation type that Junos OS Evolved uses within certain packet types.
- Encapsulation Capabilities
- Configure Encapsulation on a Physical Interface
- Configure Interface Encapsulation on PTX Series Routers
Encapsulation Capabilities
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 circuit cross-connect (CCC) encapsulation for Ethernet interfaces with standard Tag Protocol Identifier (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:
-
VLAN ID 0 is reserved for tagging the priority of frames.
-
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 Ethernet interfaces, 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.
The upper limits for configurable VLAN IDs vary by interface type.
When you configure a translational cross-connect (TCC) encapsulation, some modifications are needed to handle VPN connections over dissimilar Layer 2 and Layer 2.5 links and terminate the Layer 2 and Layer 2.5 protocol locally. The device performs the following media-specific changes:
-
Point-to-Point Protocol (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. Junos OS Evolved strips all PPP encapsulation data from incoming frames before forwarding them. For output, the next hop is changed to PPP encapsulation.
-
Cisco High-Level Data Link Control (HDLC) TCC—Keepalive processing is terminated on the router. Junos OS Evolved strips all Cisco HDLC encapsulation data from incoming frames before forwarding them. For output, the next hop is changed to Cisco HDLC encapsulation.
-
Frame Relay TCC—All Local Management Interface (LMI) processing is terminated on the router. Junos OS Evolved strips all Frame Relay encapsulation data from incoming frames before forwarding them. For output, the next hop is changed to Frame Relay encapsulation.
Configure Encapsulation on a Physical Interface
To configure encapsulation on a physical interface:
Configure Interface Encapsulation on PTX Series Routers
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.
Supported encapsulations for physical interfaces include:
-
flexible-ethernet-services
-
ethernet-ccc
-
ethernet-tcc
In Junos OS Evolved, the flexible-ethernet-services
encapsulation is
not supported on PTX10003 devices.
Supported encapsulations for logical interfaces include:
-
ethernet
-
vlan-ccc
-
vlan-tcc
PTX Series Packet Transport Routers do not support
extended-vlan-cc
or extended-vlan-tcc
encapsulation on logical interfaces. Instead, you can configure a tag protocol
ID (TPID) value of 0x9100 to achieve the same results.
To configure flexible Ethernet services encapsulation, include the
encapsulation flexible-ethernet-services
statement at the
[edit interfaces
et-fpc/pic/port]
hierarchy level. For example:
interfaces { et-1/0/3 { 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; } } } } }
Enable SNMP Notifications on Physical Interfaces
By default, Junos OS Evolved sends Simple Network Management Protocol (SNMP) notifications when the state of an interface or a connection changes. You can enable or disable SNMP notifications based on your requirements.
To explicitly enable sending SNMP notifications on the physical interface:
To disable SNMP notifications on the physical interface:
In configuration mode, go to the
[edit interfaces interface-name]
hierarchy level:[edit] user@host# edit interfaces interface-name
-
Configure the
no-traps
option to disable SNMP notifications when the state of the connection changes.[edit interfaces interface-name] user@host# set no-traps
Accounting for Physical Interfaces
Devices running Junos OS Evolved can collect various kinds of data about traffic passing through the device. You (the systems administrator) can set up one or more accounting profiles that specify some common characteristics of this data. These characteristics include the following:
-
The fields used in the accounting records
-
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
- Overview
- Configure an Accounting Profile for a Physical Interface
- How to Display the Accounting Profile
Overview
There are two types of accounting profiles: filter profiles and interface profiles.
Configure the profiles using statements at the [edit
accounting-options]
hierarchy level.
Configure filter profiles by including the filter-profile
statement
at the [edit accounting-options]
hierarchy level.
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.
Configure interface profiles by including the interface-profile
statement at the [edit accounting-options]
hierarchy level. Read on
to learn how to configure interface profiles.
Configure an Accounting Profile for a Physical Interface
Before You Begin
Configure an accounting data log file at the [edit
accounting-options]
hierarchy level. The operating system logs the
statistics in the accounting data log file.
Configuration
Configure an interface profile to collect error and statistic information for input and output packets on a particular physical interface. The interface profile specifies the information that the operating system writes to the log file.
To configure an interface profile:
How to Display the Accounting Profile
Purpose
To display the configured accounting profile of a particular physical interface
at the [edit accounting-options interface-profile
profile-name]
hierarchy level that has been
configured with the following:
-
interface-name—et-1/0/1
-
Interface profile —
if_profile
-
File name—
if_stats
-
Interval—15 minutes
Action
-
Run the
show
command at the[edit interfaces et-1/0/1]
hierarchy level.[edit interfaces et-1/0/1] user@host# show accounting-profile if_profile;
-
Run the
show
command at the[edit accounting-options]
hierarchy level.[edit accounting-options] user@host# show 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.
Disable a Physical Interface
You can disable a physical interface, marking it as being down, without removing the interface configuration statements from the configuration.
How to Disable a Physical Interface
Dynamic subscribers and logical interfaces use physical interfaces for connection to the network. You can 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.
To disable a physical interface:
Example: Disable a Physical Interface
Sample interface configuration:
[edit interfaces] user@device# show et-0/3/2 { unit 0 { description CE2-to-PE1; family inet { address 20.1.1.6/24; } } }
Disable the interface:
[edit interfaces et-0/3/2] user@device# set disable
Verify the interface configuration:
[edit interfaces et-0/3/2] user@device# show disable; # Interface is marked as disabled. unit 0 { description CE2-to-PE1; family inet { address 20.1.1.6/24; } }
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.
auto-10m-100m
option allows the fixed
tri-speed port to auto negotiate with ports limited by 100m
or 10m
maximum 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.speed
statement,
you must include the link-mode full-duplex
statement at
the same hierarchy level.