Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Technical Documentation
 
CLI Explorer New
 
Content Explorer New
 
Documentation Help New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
Glossary
 
Portable Libraries
 
Home > Support > Technical Documentation > EX Series > Configuring Gigabit Ethernet Interfaces (CLI Procedure)
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • EX Series
  • Monitoring Interface Status and Traffic
  • show interfaces ge-
  • show interfaces xe-
  • Understanding Interface Naming Conventions on EX Series Switches
 

Configuring Gigabit Ethernet Interfaces (CLI Procedure)

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 port 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 Port Mode
  • Configuring the Link Settings
  • Configuring the IP Options

Configuring VLAN Options and Port 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 on 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 Gigabit Ethernet interface or 10-Gigabit Ethernet interface for trunk port mode:

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

To configure a Gigabit Ethernet interface or 10-Gigabit Ethernet interface for tagged-access port mode:

[edit]
user@switch# set interfaces interface-name unit logical-unit-number family ethernet-switching port-mode tagged-access

Configuring the Link Settings

EX Series switches include a factory default configuration that enables interfaces with the following link settings:

  • All Gigabit Ethernet interfaces are set to auto-negotiation.
  • The speed for Gigabit Ethernet interfaces is set to auto, allowing the interface to operate at 10m, 100m, or 1g. The link operates at the highest possible speed, depending on the capabilities of the remote end.
  • The flow control for Gigabit Ethernet interfaces and 10-Gigabit Ethernet interfaces is set to enabled.
  • The link mode is set to auto, allowing the interface to operate as either full duplex or half duplex. The link operates as full duplex unless this mode is not supported at the remote end.
  • The 10-Gigabit Ethernet interfaces default to no auto-negotiation. The default speed is 10g and the default link mode is full duplex.

To configure the link settings:

  • Set link settings for a Gigabit Ethernet interface:
    [edit]
    user@switch# set interfaces ge-fpc/pic/port ether-options
  • Set link settings for a 10-Gigabit Ethernet interface:
    [edit]
    user@switch# set interfaces xe-fpc/pic/port ether-options

Note: On EX Series switches, fpc can have the following values:

  • On an EX2200 switch, an EX3200 switch, a standalone EX3300 switch, a standalone EX4200 switch, and a standalone EX4500 switch, FPC refers to the switch itself. The FPC number is always 0 on these switches.
  • On an EX3300 Virtual Chassis, an EX4200 Virtual Chassis, an EX4500 Virtual Chassis, or a mixed EX4200 and EX4500 Virtual Chassis, the FPC number indicates the member ID of the switch within the Virtual Chassis.
  • On an EX6200 switch and a standalone EX8200 switch, the FPC number indicates the slot number of the line card that contains the physical interface. On an EX6200 switch, the FPC number also indicates the slot number of the Switch Fabric and Routing Engine (SRE) module that contains the uplink port.
  • On an EX8200 Virtual Chassis, the FPC number indicates the slot number of the line card on the Virtual Chassis. The line card slots on Virtual Chassis member 0 are numbered 0 through 15; on member 1, they are numbered 16 through 31, and so on.

pic can have the following values:

  • On EX2200, EX3200, EX3300, EX4200, and EX4500 switches, the PIC number is 0 for all built-in interfaces (interfaces that are not an uplink port).
  • On EX2200, EX3200, and EX4200 switches, the PIC number is 1 for uplink ports.
  • On EX4500 switches, the PIC number is 1 for uplink ports on the left-hand uplink module and 2 for uplink ports on the right-hand uplink module.
  • On EX6200 and EX8200 switches, the PIC number is always 0.

The ether-options statement allows you to modify the configuration:

  • 802.3ad—Specify an aggregated Ethernet bundle. See Configuring Aggregated Ethernet Interfaces (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 automatic.
  • loopback—Enable or disable loopback mode.
  • speed—Specify 10m, 100m, 1g, 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 EX2200, EX3200, EX3300, EX4200, and EX4500 switches are set to family ethernet-switching by default. You might have to delete this or another user-configured family setting before changing the setting to family inet or family inet6.

 

Related Documentation

  • EX Series
  • Monitoring Interface Status and Traffic
  • show interfaces ge-
  • show interfaces xe-
  • Understanding Interface Naming Conventions on EX Series Switches
 

Published: 2011-08-11

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out