Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Physical Interface Properties

The physical interfaces undergo various transitions which is advertised to the Junos OS for proper functioning of the routers and switches. Accounting profiles that specify the characteristics of data about the traffic passing through the routers and switches can also be configured on the physical interfaces. Simple Network Management Protocol (SNMP) notifications can be enabled on the physical interface to provide information about the state of an interface or when a connection changes. The interface offers to configure various modes like short-reach-mode, flow-control and media type on the devices for ease of access.

Configure Damping of Shorter Physical Interface Transitions

By default, when an interface changes from up to down or from down to up, this transition is advertised immediately to the hardware and Junos OS. In some situations, you might want to damp interface transitions.

For example, you may want to configure damping on an interface that is connected to an add/drop multiplexer (ADM) or wavelength-division multiplexer (WDM), or to protect against SONET/SDH framer holes.

Damping the interface means not advertising the interface’s transition until a certain period of time has passed, called the hold-time. When 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. If 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. If the timer expires and the interface state is still up, then the router begins to advertise the interface as being up.

To configure damping of shorter physical interface transitions in milliseconds:

  1. Select the interface to damp, where the interface name is interface-type-fpc/pic/port:
  2. Configure the hold time for link up and link down.

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, Junos OS implements hold timers using a one-second polling algorithm. For 1-port, 2-port, and 4-port Gigabit Ethernet interfaces with small form-factor pluggable (SFP) transceivers, hold timers are interrupt driven.

Note:

The hold-time option is not available for controller interfaces.

Accounting for Physical Interfaces

Devices running Junos OS 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

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.

For more information about how to configure an accounting data log file, see the Configuring Accounting-Data Log Files.

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:

  1. Navigate to the [edit accounting-options interface-profile] hierarchy level. Include the profile-name to name the interface profile.
  2. To configure which statistics should be collected for an interface, include the fields statement.
  3. Each accounting profile logs its statistics to a file in the /var/log directory. To configure which file to use, use the file statement.
    Note:

    You must specify a file statement for the interface profile that has already been configured at the [edit accounting-options] hierarchy level.

  4. The operating system collects statistics from each interface with an accounting profile enabled. It collects the statistics once per interval time specified for the accounting profile. The operating system schedules statistics collection time evenly over the configured interval. To configure the interval, use the interval statement:
    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.

  5. Apply the interface profile to a physical interface by including the accounting-profile statement at the [edit interfaces interface-name] hierarchy level. The operating system performs the accounting on the interfaces that you specify.

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.

  • Run the show command at the [edit accounting-options] hierarchy level.

Meaning

The configured accounting and its associated set options are displayed as expected.

Enable SNMP Notifications on Physical Interfaces

By default, Junos OS 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:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level:
  2. Configure the traps option to enable SNMP notifications when the state of the connection changes.

To disable SNMP notifications on the physical interface:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level:

  2. Configure the no-traps option to disable SNMP notifications when the state of the connection changes.

Configuring Ethernet Loopback Capability

To place an interface in loopback mode, include the loopback statement:

To return to the default—that is, to disable loopback mode—delete the loopback statement from the configuration:

To explicitly disable loopback mode, include the no-loopback statement:

You can include the loopback and no-loopback statements at the following hierarchy levels:

  • [edit interfaces interface-name aggregated-ether-options]

  • [edit interfaces interface-name ether-options]

Configuring Short Reach Mode on QFX5100-48T

You can enable short-reach mode for individual as well as a range of copper-based 10-Gigabit Ethernet interfaces using short cable lengths (less than 10m) on the QFX5100-48T switch. Short-reach mode reduces power consumption up to 5W on these interfaces.

  1. To enable short-reach mode on an individual interface, issue the following command:

    For example, to enable short-reach mode on port 0 on PIC 0, issue the following command:

  2. To enable short-reach mode on a range of interfaces, issue the following command:

    For example, to enable short-reach mode on a range of interfaces between port 0 and port 47 on PIC 0, issue the following command:

  3. To disable short-reach mode on an individual interface, issue the following command:

    For example, to disable short-reach mode on port 0 on PIC 0, issue the following command:

  4. To disable short-reach mode on a range of interfaces, issue the following command:

    For example, to disable short-reach mode on a range of interfaces between port 0 and port 47 on PIC 0, issue the following command:

Configuring Flow Control

By default, the router or switch imposes flow control to regulate the amount of traffic sent out on a Fast Ethernet, Tri-Rate Ethernet copper, Gigabit Ethernet, and 10-Gigabit Ethernet interface. Flow control is not supported on the 4-port Fast Ethernet PIC. This is useful if the remote side of the connection is a Fast Ethernet or Gigabit Ethernet switch.

You can disable flow control if you want the router or switch to permit unrestricted traffic. To disable flow control, include the no-flow-control statement:

To explicitly reinstate flow control, include the flow-control statement:

You can include these statements at the following hierarchy levels:

  • [edit interfaces interface-name aggregated-ether-options]

  • [edit interfaces interface-name ether-options]

  • [edit interfaces interface-name fastether-options]

  • [edit interfaces interface-name gigether-options]

Note:

On the Type 5 FPC, to prioritize control packets in case of ingress oversubscription, you must ensure that the neighboring peers support MAC flow control. If the peers do not support MAC flow control, then you must disable flow control.

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

CAUTION:

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:

  1. In configuration mode, go to the [edit interfaces interface-name] hierarchy level.
  2. Include the disable statement.

    For example:

    Note:

    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. On a device with newer PICs, the laser turns off when the interface is disabled.

    Laser Warning:

    Do not stare into the laser beam or view it directly with optical instruments even if the interface has been disabled.

Example: Disable a Physical Interface

Sample interface configuration:

Disable the interface:

Verify the interface configuration:

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.

Release
Description
19.3R1
Starting with Junos OS Release 19.3R1, you can configure the 2-port 40-Gigabit Ethernet QSFP+/100-Gigabit Ethernet QSFP28 uplink module on EX4300-48MP switches to operate either two 40-Gigabit Ethernet ports or two 100-Gigabit Ethernet ports.
19.1R1
Starting with Junos OS Release 19.1R1, in the 2-port 40-Gigabit Ethernet QSFP+/1-port 100-Gigabit Ethernet QSFP28 uplink module of EX4300-48MP switches, you can channelize the 100-Gigabit four independent 25-Gigabit Ethernet ports by using breakout cables.