Supported Platforms
Related Documentation
- EX Series
- Configuring Gigabit Ethernet Interfaces (J-Web Procedure)
- Monitoring Interface Status and Traffic
- show interfaces xe-
- Understanding Interface Naming Conventions on EX Series Switches
- EX Series, QFabric System, QFX Series standalone switches
- show interfaces ge-
Configuring Gigabit Ethernet Interfaces (CLI Procedure)
![]() | 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 Getting Started with Enhanced Layer 2 Software. |
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 EX Series 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 (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 EX Series 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
Configuring the Link Settings
EX Series switches include a factory default configuration that enables interfaces with the link settings provided in Table 1.
Table 1: Factory Default Configuration Link Settings for EX Series Switches
Ethernet Interface | Autonegotiation | Flow Control | Link Mode | Link Speed |
---|---|---|---|---|
1 gigabit | Enabled | Enabled | Autonegotiation | Autonegotiation |
10 gigabit | Enabled | Enabled | Full duplex | 10 Gbps |
10 gigabit | Disabled | Enabled | Full duplex | 10 Gbps |
40 gigabit | Enabled | Enabled | Full duplex | 40 Gbps |
40 gigabit | Disabled | Enabled | Full duplex | 40 Gbps |
![]() | Note: On EX4300 switches, the interfaces operate in full duplex mode only. |
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 Understanding Interface Naming Conventions on EX Series Switches.
Configurable link settings include:
- 802.3ad—Specify an aggregated Ethernet bundle. See Configuring Aggregated Ethernet Links (CLI Procedure).
- auto-negotiation—Enable or disable autonegotation of flow control, link mode, and speed.
- flow-control—Enable or disable flow control.
- link-mode—Specify full duplex, half duplex, or autonegotiation. On EX4300 switches, the interfaces operate in full duplex mode only.
- 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. |
Related Documentation
- EX Series
- Configuring Gigabit Ethernet Interfaces (J-Web Procedure)
- Monitoring Interface Status and Traffic
- show interfaces xe-
- Understanding Interface Naming Conventions on EX Series Switches
- EX Series, QFabric System, QFX Series standalone switches
- show interfaces ge-
Published: 2014-04-25
Supported Platforms
Related Documentation
- EX Series
- Configuring Gigabit Ethernet Interfaces (J-Web Procedure)
- Monitoring Interface Status and Traffic
- show interfaces xe-
- Understanding Interface Naming Conventions on EX Series Switches
- EX Series, QFabric System, QFX Series standalone switches
- show interfaces ge-