Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Gigabit Ethernet Interface

 

Gigabit Ethernet Interface can be configured with various modes like VLAN options, IP options, interface modes, link settings on the switches. The configuration uses Junos OS for EX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style.

Configuring Gigabit and 10-Gigabit Ethernet Interfaces for EX4600 and QFX Series Switches

Devices include a factory default configuration that:

  • Enables all 10-Gigabit Ethernet network interfaces on the switch

  • Sets a default port mode (access)

  • Sets default link settings

  • Specifies a logical unit (unit 0) and assigns it to family ethernet-switching

  • Configures Storm Control on all 10-Gigabit Ethernet network interfaces

  • Provides basic Rapid Spanning Tree Protocol (RSTP) and Link Layer Discovery Protocol (LLDP) configuration

The ether-options statement enables you to modify the following options:

  • 802.3ad—Specify an aggregated Ethernet bundle for both Gigabit Ethernet and 10-Gigabit Ethernet interfaces.

  • autonegotiation—Enable or disable autonegotation of flow control, link mode, and speed for interfaces.

  • link-mode—Specify full-duplex, half-duplex, or automatic for Gigabit Ethernet interfaces.

  • loopback—Enable or disable a loopback interface for both Gigabit Ethernet and 10-Gigabit Ethernet interfaces.

To set ether-options for both Gigabit Ethernet and 10-Gigabit Ethernet interfaces:

[edit]

user@switch# set interfaces interface-name ether-options

This topic describes:

Configuring Port Mode on QFX5100-48S, QFX5100-48T, QFX5100-24Q, and EX4600 Switches

If you are connecting a switch to other switches and to routers on the LAN, you need to assign the interface to a logical port and you need to configure the logical port as a trunk port.

To configure a Gigabit Ethernet or 10-Gigabit interface for trunk port mode on the Enhanced Layer 2 software (ELS):

[edit]

user@switch# set interfaces interface-name unit logical-unit-number family ethernet-switching interface-mode trunk

Devices include a factory default configuration that enables Gigabit Ethernet interfaces with applicable link settings.

The following default configurations are available on Gigabit Ethernet interfaces:

  • You cannot set the speed on these interfaces.

    On QFX5100-48S and QFX5100-96S devices using 1-Gigabit Ethernet SFP interfaces, the speed is set to 1 Gbps by default and cannot be configured to operate in a different speed.

  • On QFX5100 devices, the interface naming for Gigabit Ethernet interfaces changes automatically to xe-0/0/0, ge-0/0/0, or et-0/0/0 when the appropriate SFP is inserted.

  • Gigabit Ethernet interfaces operate in full-duplex mode.

  • Autonegotiation is supported by default. Autonegotiation is enabled by default, and will autonegotiate the speed with the link partner. We recommend that you keep autonegotiation enabled for interfaces operating at 100M and 1G. By default, autonegotiation is disabled on 10-Gigabit fiber ports.

    If for some reason you have disabled autonegotiation, you can enable it by issuing the set interfaces name ether-options auto-negotiate command.

    To disable autonegotiation, issue the delete interfaces name ether-options auto-negotiate command.

    Note

    Do not use the set interfaces name ether-options no-auto-negoatiate command to remove the autonegotiation configuration.

    Issue the show interfaces name extensive command to see if autonegotiation is enabled or disabled and the negotiated speed of the interface.

Configuring Gigabit Ethernet Interfaces on QFX5100-48T Switches

Devices include a factory default configuration that enables Gigabit Ethernet interfaces with applicable link settings.

The following default configurations are available on Gigabit Ethernet interfaces:

  • Gigabit Ethernet interfaces operate in full-duplex mode.

  • Gigabit Ethernet interfaces must be configured as xe-fpc/pic/port, and not ge-fpc/pic/port.

  • Autonegotiation is enabled by default, and will autonegotiate the speed with the link partner. We recommend that you keep autonegotiation enabled for interfaces operating at 100M, 1G, and 10G. By default, autonegotiation is enabled on 10-Gigabit Ethernet Copper interfaces.

    To disable autonegotiation, issue the delete interfaces name ether-options auto-negotiate command.

    Note

    Do not use the set interfaces name ether-options no-auto-negotiate command to remove the autonegotiation configuration.

    You can reenable autonegotation it by issuing the set interfaces name ether-options auto-negotiate command.

    Issue the show interfaces name extensive command to see if autonegotiation is enabled or disabled and the negotiated speed of the interface.

The following default configurations are available on 10-Gigabit Ethernet interfaces:

  • All the 10-Gigabit Ethernet interfaces are set to auto-negotiation.

  • Flow control for 10-Gigabit Ethernet interfaces is set to enabled by default. You can disable flow control by specifying the no-flow-control option.

  • The speed cannot be configured.

    On QFX5100-48S, QFX5100-96S, and QFX5100-24Q devices using 10-Gigabit Ethernet SFP interfaces, the speed is set to 10 Gbps by default and cannot be configured to operate in a different speed.

  • On QFX5100 devices, the interface naming for Gigabit Ethernet interfaces changes automatically to xe-0/0/0, ge-0/0/0, or et-0/0/0 when the appropriate SFP is inserted.

  • 10-Gigabit Ethernet interfaces operate in full-duplex mode by default.

  • Autonegotiation is enabled by default, and will autonegotiate the speed with the link partner. We recommend that you keep autonegotiation enabled for interfaces operating at 100M and 1G. By default, autonegotiation is disabled on 10-Gigabit fiber ports.

    If for some reason you have disabled autonegotiation, you can enable it by issuing the set interfaces name ether-options auto-negotiate command.

    To disable autonegotiation, issue the delete interfaces name ether-options auto-negotiate command.

    Note

    Do not use the set interfaces name ether-options no-auto-negoatiate command to remove the autonegotiation configuration.

    Issue the show interfaces name extensive command to see if autonegotiation is enabled or disabled and the negotiated speed of the interface.

The following default configurations are available on 10-Gigabit Ethernet interfaces:

  • All the 10-Gigabit Ethernet interfaces are set to auto-negotiation.

  • Flow control for 10-Gigabit Ethernet interfaces is set to enabled by default. You can disable flow control by specifying the no-flow-control option.

  • 10-Gigabit Ethernet interfaces operate in full-duplex mode by default.

  • Autonegotiation is enabled by default, and will autonegotiate the speed with the link partner. We recommend that you keep autonegotiation enabled for interfaces operating at 100M, 1G, and 10G.

    Note

    In Junos OS Release 14.1X53-D35 on QFX5100-48T-6Q devices using 10-Gigabit Ethernet Copper interfaces, autonegotiation is disabled by default on the copper ports, and the interfaces operate at a speed of 100M. You can, however, enable auto-negotiation by issuing the set interface name ether-options auto-negotiation command on the interface for which you want to change the interface speed. With autonegotiation enabled, the interface auto-detects the speed in which to operate.

    If for some reason you have disabled autonegotiation, you can enable it by issuing the set interfaces name ether-options auto-negotiate command.

    Issue the show interfaces name extensive command to see if autonegotiation is enabled or disabled and the negotiated speed of the interface.

Configuring the IP Options on QFX5100-48S, QFX5100-48T, QFX5100-24Q, and EX4600 Switches

To specify an IP address for the logical unit:

[edit]

user@switch# set interfaces interface-name unit logical-unit-number family inet address ip-address

Configuring Gigabit Ethernet Interfaces for EX Series Switches with ELS support

Note

This task uses Junos OS for EX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that does not support ELS, see Configuring Gigabit Ethernet Interfaces (CLI Procedure). For ELS details, see Using the Enhanced Layer 2 Software CLI.

An Ethernet interface must be configured for optimal performance in a high-traffic network. EX Series switches include a factory default configuration that:

  • Enables all the network interfaces on the switch

  • Sets a default interface mode (access)

  • Sets default link settings

  • Specifies a logical unit (unit 0) and assigns it to family ethernet-switching (except on EX8200 switches and Virtual Chassis)

  • Specifies Rapid Spanning Tree Protocol (RSTP) and Link Layer Discovery Protocol (LLDP)

This topic describes:

Configuring VLAN Options and Interface Mode

By default, when you boot a switch and use the factory default configuration, or when you boot the switch and do not explicitly configure a port mode, all interfaces on the switch are in access mode and accept only untagged packets from the VLAN named default. You can optionally configure another VLAN and use that instead of default. You can also configure a port to accept untagged packets from the user-configured VLAN. For details on this concept (native VLAN), see Understanding Bridging and VLANs on Switches.

If you are connecting either a desktop phone, wireless access point or a security camera to a Power over Ethernet (PoE) port, you can configure some parameters for the PoE interface. PoE interfaces are enabled by default. For detailed information about PoE settings, see Configuring PoE on EX Series Switches (CLI Procedure).

If you are connecting a device to other switches and to routers on the LAN, you need to assign the interface to a logical port and configure the logical port as a trunk port. See Port Role Configuration with the J-Web Interface (with CLI References) for more information about port configuration.

If you are connecting to a server that contains virtual machines and a VEPA for packet aggregation from those virtual machines, configure the port as a tagged-access port. See Understanding Bridging and VLANs on Switches for more information about tagged access.

To configure a 1-Gigabit, 10-Gigabit, or 40-Gigabit Ethernet interface for trunk port mode:

[edit]

user@switch# set interfaces interface-name unit logical-unit-number family ethernet-switching interface-mode trunk

EX Series switches include a factory default configuration that enables interfaces with the link settings provided in Table 1.

Ethernet Interface

Autonegotiation

Flow Control

Link Mode

Link Speed

1 gigabit

Enabled

Enabled

Autonegotiation

(full duplex or half duplex) For information about EX4300, see the Note below this table.

Autonegotiation

(10 Mbps, 100 Mbps, or 1 Gbps)

10 gigabit

(using a DAC cable)

Enabled

Enabled

Full duplex

10 Gbps

10 gigabit

(using a fiber-optic cable)

Disabled

Enabled

Full duplex

10 Gbps

40 gigabit

(using a DAC cable)

Enabled

Enabled

Full duplex

40 Gbps

40 gigabit

(using a fiber-optic cable)

Disabled

Enabled

Full duplex

40 Gbps

Note

On EX4300 switches, there is no link-mode configuration statement. The link-mode setting on an EX4300 switch is handled as follows:

  • If the link partner is operating in half duplex, the EX4300interface goes to half duplex.

  • If the link partner is not capable of autonegotiation, the EX4300 interface goes to half duplex.

  • If the link partner is capable of autonegotiation and is operating in full duplex, the EX4300 interface also works in full duplex.

  • To force an EX4300 interface to stay in full-duplex mode, configure the interface’s speed as 10 Mbps or 100 Mbps and also configure the interface with the no-autonegotiation statement.

To configure the link mode and speed settings for a 1-Gigabit, 10-Gigabit, or 40-Gigabit Ethernet interface:

Note

On EX4300 switches, there is no link-mode configuration statement. See information earlier in this document regarding how the link mode is set on EX4300 switches.

[edit]

user@switch# set interfaces interface-name

To configure additional link settings for a 1-Gigabit, 10-Gigabit, or 40-Gigabit Ethernet interface:

[edit]

user@switch# set interfaces interface-name ether-options


For detailed information about the FPC, PIC, and port numbers used for EX Series switches, see Understanding Interface Naming Conventions.

Configurable link settings include:

  • 802.3ad—Specify an aggregated Ethernet bundle. See Configuring Aggregated Ethernet Links (CLI Procedure).

  • auto-negotiation—Enable or disable autonegotiation of flow control, link mode, and speed.

    Note

    Starting with Junos OS Releases 14.1X53-D40, 15.1R4, and 17.1R1, half-duplex communication is supported on all built-in network copper ports on EX4300 switches. Half-duplex is bidirectional communication; however, signals can flow in only one direction at a time. Full-duplex communication means that both ends of the communication can send and receive signals at the same time.

    Half-duplex is configured by default on EX4300switches. If the link partner is set to autonegotiate the link, then the link is autonegotiated to full duplex or half duplex. If the link is not set to autonegotiation, then the EX4300link defaults to half duplex unless the interface is explicitly configured for full duplex.

    To explicitly configure full duplex:



    [edit]

    user@switch# set interfaces interface-name speed 10m-or-100m
    [edit]

    user@switch# set interfaces interface-name ether-options no-auto-negotiation

    To verify a half-duplex (or a full-duplex) setting:

    user@switch> show interfaces interface-name extensive
  • flow-control—Enable or disable flow control.

  • link-mode—Specify full duplex, half duplex, or autonegotiation.

    Note

    On EX4300 switches, there is no link-mode configuration statement. See information earlier in this document regarding how the link mode is set on EX4300 switches.

  • loopback—Enable or disable loopback mode.

  • speed—Specify 10 Mbps, 100 Mbps, 1 Gbps, or autonegotiation.

Configuring the IP Options

To specify an IP address for the logical unit using IPv4:

[edit]

user@switch# set interfaces interface-name unit logical-unit-number family inet address ip-address

To specify an IP address for the logical unit using IPv6:

[edit]

user@switch# set interfaces interface-name unit logical-unit-number family inet6 address ip-address
Note

Access interfaces on EX4300 switches are set to family ethernet-switching by default. You might have to delete this or any other user-configured family setting before changing the setting to family inet or family inet6.

Configuring Gigabit and 10-Gigabit Ethernet Interfaces for OCX Series Switches

Devices include a factory default configuration that:

  • Enables all 10-Gigabit Ethernet network interfaces on the switch

  • Sets default link settings

  • Specifies a logical unit (unit 0) and assigns it to family ethernet-switching

  • Configures Storm Control on all 10-Gigabit Ethernet network interfaces

This topic describes:

Devices include a factory default configuration that enables 10-Gigabit Ethernet and interfaces with applicable link settings.

The following default configurations are available on 10-Gigabit Ethernet interfaces:

  • The speed for 10-Gigabit Ethernet interfaces is set to 10 Gbps by default. The speed cannot be configured.

  • 10-Gigabit Ethernet interfaces operate in full-duplex mode by default.

  • Autonegotiation is not supported.

The ether-options statement enables you to modify the following options:

  • 802.3ad—Specify an aggregated Ethernet bundle for 10-Gigabit Ethernet interfaces.

  • loopback—Enable or disable a loopback interface for 10-Gigabit Ethernet interfaces.

To set ether-options for 10-Gigabit Ethernet interfaces:

[edit]

user@switch# set interfaces interface-name ether-options

Configuring the IP Options

To specify an IP address for the logical unit:

[edit]

user@switch# set interfaces interface-name unit logical-unit-number family inet address ip-address
Release History Table
Release
Description
In Junos OS Release 14.1X53-D35 on QFX5100-48T-6Q devices using 10-Gigabit Ethernet Copper interfaces, autonegotiation is disabled by default on the copper ports, and the interfaces operate at a speed of 100M.
Starting with Junos OS Releases 14.1X53-D40, 15.1R4, and 17.1R1, half-duplex communication is supported on all built-in network copper ports on EX4300 switches.