Configure Gigabit and 10-Gigabit Ethernet Interfaces
Learn how to configure link settings and IP options on Gigabit and 10-Gigabit Ethernet interfaces. Also, this topic includes how to configure Gigabit Ethernet interfaces with ELS support.
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 GbE and 10-Gigabit Ethernet interfaces.
-
autonegotiation—Enable or disable autonegotiation of flow control, link mode, and speed for interfaces.
-
link-mode—Specify full-duplex, half-duplex, or automatic for GbE interfaces.
-
loopback—Enable or disable a lo0 for both GbE and 10 GbE interfaces.
To set ether-options for both GbE and 10-Gigabit Ethernet interfaces:
[edit]
user@switch# set interfaces interface-name ether-options
This topic describes:
Configure the Link Settings
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 GbE and 10-Gigabit Ethernet interfaces.
-
autonegotiation—Enable or disable autonegotiation of flow control, link mode, and speed for interfaces.
-
link-mode—Specify full-duplex, half-duplex, or automatic for GbE interfaces.
-
loopback—Enable or disable a lo0 for both GbE and 10 GbE interfaces.
To set ether-options for both GbE and 10-Gigabit Ethernet interfaces:
[edit]
user@switch# set interfaces interface-name ether-options
- Link Settings Guidelines for QFX5100-48S, QFX5100-96S, and EX4600 Switches
- Link Setting Guidelines for QFX5100-48T Switches
- Link Settings Guidelines for QFX5120-48T Switches
- Link Settings Guidelines for EX4100 and EX4100-F Multigigabit Switches
Link Settings Guidelines for QFX5100-48S, QFX5100-96S, and EX4600 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:
-
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.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.
Link Setting Guidelines for QFX5100-48T Switches
The following default configurations are available on 10-Gigabit Ethernet interfaces:
-
All the 10-GbE interfaces are set to autonegotiation.
-
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-GbE interfaces operate in full-duplex mode by default.
-
Autonegotiation is enabled by default, and will autonegotiate the speed with the link partner. You cannot disable autonegotiation.
If you've configured a switch with 100-Mbps speed, then you must also configure the link partner with 100-Mbps speed and duplex to full duplex. To connect to the link partner with 100-Mbps speed that supports autonegotiation at 100-Mbps, configure the speed to 10 Gbps, 1 Gbps, or auto on QFX5100-48T switch.
Issue the
show interfaces name extensive
command to see if autonegotiation is enabled or disabled and the negotiated speed of the interface.
Link Settings Guidelines for QFX5120-48T Switches
The following default configurations are available on 10-Gigabit Ethernet interfaces:
-
The 10-Gigabit Ethernet interfaces are set to autonegotiation by default.
-
The 10-Gigabit Ethernet interfaces operate in full-duplex mode by default.
-
Flow control for the 10-Gigabit Ethernet interfaces is set to enabled by default. You can disable flow control by specifying the no-flow-control option.
-
Six 40GbE/100GbE QSFP28 ports support both manual and auto-channelization. Auto channelization is enabled by default.
Issue the show interfaces name extensive
command to see if
autonegotiation is enabled or disabled and the negotiated speed of the interface.
Link Settings Guidelines for EX4100 and EX4100-F Multigigabit Switches
The following default configurations are available on 1-Gigabit Ethernet interfaces:
- Autonegotiation is enabled by default, and autonegotiates the speed with the link partner.
-
1-Gigabit Ethernet interfaces operate in full-duplex mode by default.
-
Flow control for 1-Gigabit Ethernet interfaces is enabled by default. You can disable flow control by specifying the no-flow-control option.
If you configure the half-duplex mode without specifying the no-flow-control option, the system displays an error message as given in the following example:
root@ex4100-device# set interfaces ge-0/0/3 speed 100m {master:0}[edit] root@ex4100-device# set interfaces ge-0/0/3 link-mode half-duplex {master:0}[edit] root@ex4100-device# commit [edit interfaces] 'ge-0/0/3' Half duplex and flow control enable is an invalid configuration. error: configuration check-out failed {master:0}[edit]
Add the no-flow-control option and the configuration is successful:
root@ex4100-device# ... speed 100m ether-options no-flow-control {master:0}[edit] root@ex4100-device# commit configuration check succeeds commit complete {master:0}[edit]
Issue the
show interfaces name extensive
command to see if autonegotiation is enabled or disabled and the negotiated speed of the interface.
Configure 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
Configure Gigabit Ethernet Interfaces for EX Series Switches with ELS Support
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 tofamily ethernet-switching
(except on EX8200 switches and Virtual Chassis) -
Specifies Rapid Spanning Tree Protocol (RSTP) and Link Layer Discovery Protocol (LLDP)
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.
This topic describes:
Configure 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 Interfaces on EX Series Switches.
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
See Also
Configure the Link Settings
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 |
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, then the link is established as either half-duplex or full-duplex, based on the physical layer of the link partner and EX4300 switches. Only if the speed is either 10-Gbps or 100-Gbps and the duplexity is Half Duplex on both sides, link will be established successfully.
-
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.
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.
To configure the link mode and speed settings for a 1-Gigabit, 10-Gigabit, or 40-Gigabit Ethernet interface:
[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 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. -
flow-control
—Enable or disable flow control. -
link-mode
—Specify full duplex, half duplex, or autonegotiation.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
-
loopback
—Enable or disable loopback mode. -
speed
—Specify 10 Mbps, 100 Mbps, 1 Gbps, or autonegotiation.
Configure 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
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
.
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.