ConfiguringEX 2ed PDF
ConfiguringEX 2ed PDF
ConfiguringEX 2ed PDF
UPDATE
D
TO JUNO
S
12.3
By David Nguyen
DAY ONE: CONFIGURING EX SERIES ETHERNET
SWITCHES, 2nd ED.
This Day One book does an excellent job of providing you with the necessary information to get
the EX Switches in your environment up and running correctly without trying to reteach you the
history or basics of ethernet switching.
Brandon Bennett, Senior IT Engineer, tw telecom
JNCIE-ER #46, JNCIP-M, JNCIA-EX, CCIE R&S #19406
ITS DAY ONE AND YOU HAVE A JOB TO DO, SO LEARN HOW TO:
Manage an EX Series switch using the Junos command line interface (CLI).
Set key Virtual Chassis configurations using various interconnection methods, as
well as important design considerations for your Virtual Chassis configuration.
Configure Link Aggregation Group (LAG).
Configure Layer 2 Switching and Layer 3 Routing.
Configure basic IP connectivity and elements to enable remote access.
Configure basic static routing.
Set various Ethernet-switching-options such as voice VLAN, L2 security (DHCP
snooping, Dynamic ARP Inspection, etc.), or other Layer 2-specific features.
Configure key EX Series switch features such as Ethernet OAM, MVRP,
Multicast,EZQOS-Voice and Port Mirroring.
Juniper Networks Books are singularly focused on network productivity and efficiency. Peruse the
complete library at www.juniper.net/books.
ISBN 978-1-936779-14-7
51400
By David Nguyen
2013 by Juniper Networks, Inc. All rights reserved. About the Author
Juniper Networks, the Juniper Networks logo, Junos, David Nguyen is a Technical Marketing Engineer for
NetScreen, and ScreenOS are registered trademarks of Fabric and Switching Technology. Prior to joining
Juniper Networks, Inc. in the United States and other Juniper, David was a Systems Engineer for Spirent
countries. Junose is a trademark of Juniper Networks, Communications and a Customer Support Engineer for
Inc. All other trademarks, service marks, registered Cisco Systems.
trademarks, or registered service marks are the property
of their respective owners. Author Acknowledgments
The authors want to thank the people who assisted us in
Juniper Networks assumes no responsibility for any creating this book. First and foremost, we would like to
inaccuracies in this document. Juniper Networks reserves thank Cathy Gadecki and Patrick Ames for giving us the
the right to change, modify, transfer, or otherwise revise opportunity to contribute to the Day One Series. We
this publication without notice. Products made or sold by would also like to thank Chris Spain and Joseph Li for
Juniper Networks or components thereof might be their feedback and guidance. Last but not least, Christy
covered by one or more of the following patents that are Calderon and Lenny Bonsall; without them this book
owned by or licensed to Juniper Networks: U.S. Patent would have never made it off of our laptops.
Nos. 5,473,599, 5,905,725, 5,909,440, 6,192,051,
6,333,650, 6,359,479, 6,406,312, 6,429,706,
6,459,579, 6,493,347, 6,538,518, 6,538,899, This book is available in a variety of formats at: www.
6,552,918, 6,567,902, 6,578,186, and 6,590,785. juniper.net/dayone.
Published by Juniper Networks Books Send your suggestions, comments, and critiques by email
Writers: David Nguyen to [email protected].
Editor in Chief: Patrick Ames
Copyediting and Proofing: Nancy Koerbel Follow the Day One series on Twitter: @Day1Junos
Second Edition Technical Reviewer: Lenny Bonsall
EX Series Overview
MORE? For more information about each specific line of EX Series switches,
see the product literature at http://www.juniper.net/us/en/products-
services/switching/ex-series/.
NOTE The VCP uses a specific Virtual Chassis cable (that is included) to
interconnect EX4200 Ethernet switches. For more information, see the
Connecting a Virtual Chassis Cable to an EX4200 Switch Guide at
www.juniper.net/techpubs.
The front panel of the EX4200 switch (see Figure 1.2) includes an LCD
panel, an optional uplink module bay, and up to 48 host network
ports.
n LCD panel: The backlit LCD panel displays various types of
information about the switch, including key stages of the boot
process, the host name of the switch, the switchs role in a Virtual
Chassis configuration, and current switch status. The LCD panel
also provides a menu for performing basic operations such as
initial switch setup and reboot.
n LCD buttons and status LEDs: Located next to the LCD panel,
the LEDs and buttons allow you to quickly determine switch status
and perform basic operations. The top button, labeled Menu,
enables you to cycle through various LCD panel menus. The
bottom button, labeled Enter, allows you to confirm the selection.
The Enter button also works as confirmation when used in the
LCD panels maintenance mode.
MORE? The LCD panel and buttons also serve other useful purposes, such as
returning the switch to factory default settings or rebooting the switch
without requiring a computer for management. See the LCD Panel in
EX3200 and EX4200 Switches documentation at the EX Switches
section at www.juniper.net/techpubs/.
MORE? For more information on getting started with CLI configuration and
commands, see Day One: Exploring the Junos CLI for step-by-step
instructions for logging in to a network device: www.juniper.net/
dayone.
In-Band Management
Its possible to manage and configure the switch in-band by using the
front-panel network ports. Whether this method is selected for conve-
nience, or to comply with corporate policy, in-band management
requires minimal up-front configuration.
This method does not require a separate network subnet to be created
or utilized; simply use the IP address that has been allocated and
configured for the network ports, and connect a computer for manage-
ment. In-band management is available only when the switch is
booted, initialized, and configured properly.
10 Day One: Configuring EX Series Ethernet Switches
Out-of-Band Management
TIP By default, the EX Series switch has a user login credential of root as
the username and no password. See Day One: Configuring Junos
Basics for how to change the Junos password for your device: www.
juniper.net/dayone.
J-Web Management
MORE? To learn more about the Junos Web Device Manager, see the Connect-
ing and Configuring an EX Series Switch J-Web Guide at www.juniper.
net/techpubs/.
Summary
This chapter discussed the different ways of consoling to your EX
switch. Again, there is no right or wrong way to console, there is only
the way that you might prefer. Junos provides multiple methods for the
initial configurations and deployment of your EX Series Ethernet
Switch.
Youll use this information throughout this book as it helps you place
your EX Switch within your network and configure it.
Now that you know what one switch looks like, lets turn to how to
set-up multiple EX switches together in a Virtual Chassis, intercon-
necting and operating as a single, high-bandwidth device.
Chapter 2
Network Role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
xe-0/1/0
Uplink module
EX 4200
Member ID: 1
0 2 4 6 8 10 12 14 16 18 2021 22 24 2627 2829 3031 32 3435 3637 3839 4041 42 4445 4647
1 3 5 7 9 11 13 15 17 19 23 25 33 43
SWA-1
Role: Linecard
xe-1/1/0 Uplink module
Member ID: 2
0 2 4 6 8 10 12 14 16 18 2021 22
1 3 5 7 9 11 13 15 17 19 23
EX 4200
Member ID: 3
0 2 4 6 8 10 12 14 16 18 2021 22 24 2627 2829 3031 32 3435 3637 3839 4041 42 4445 4647
1 3 5 7 9 11 13 15 17 19 23 25 33 43
SWA-3
Role: Linecard
xe-3/1/0
BEST PRACTICE Virtual Chassis technology does not require cable connections to be in
the form of a ring. However, it is highly recommended that you close
the loop with a ring configuration to provide resiliency.
Figure 2.3 EX4200 Virtual Chassis Configuration in a Ring Topology Using the
Daisy-chained Ring Method
Braided-ring Configuration
Extended Configuration
NOTE Beginning with Junos 9.6, extended Virtual Chassis connections can be
bundled into a single logical group to provide more Virtual Chassis
bandwidth.
MORE? If you need more information on getting started with CLI configura-
tion and commands, go get Day One: Exploring the Junos CLI for
step-by-step instructions on logging into a network device: www.
juniper.net/dayone.
assigned the backup role (BK) and takes over the master role if the
master switch should fail. All other members are assigned a line card
role (LC). The system executes a mastership election algorithm to
determine member roles.
MORE? For more information about the Virtual Chassis mastership election
algorithm, see the Understanding Virtual Chassis Components Guide
at www.juniper.net/techpubs/.
BEST PRACTICE Dynamic method is the default setting when the switch is powered up
for the first time. However, the pre-provisioning method is recom-
mended to minimize potential user errors and maximize operational
consistency.
Dynamic Installation
NOTE The Virtual Chassis mastership priority value ranges from 0 to 255.
Factory Defaults
It is recommended that factory defaults be loaded on all Virtual
Chassis switch members before adding these switches to the Virtual
Chassis configuration if the switch is not out of the box. This proce-
dure prevents unexpected behavior during the addition of the new
member, such as new master reelection and wiping out the current
configuration.
Factory defaults can be loaded in either of the following ways:
1. Use the following configuration mode CLI commands:
user@switch# load factory-default
user@switch# set system root-authentication plain-password
Pre-Provisioned Installation
BEST PRACTICE For better resiliency, it is recommended that VME be configured for IP
address management rather than individual Management Ethernet
(me0).
1 vcp-1
1 (FPC 1) Prsnt ABC012345679 ex4200-24p 200 Backup 0 vcp-0
0 vcp-1
Member ID for next new member: 2 (FPC 2)
MORE? To learn more about implementing Virtual Chassis technology, see the
Virtual Chassis Technology Best Practices Guide at www.juniper.net/
techpubs/.
Network Role
With the details of Virtual Chassis technology covered, you might
wonder where you would actually deploy a Virtual Chassis configura-
tion. First, however, some fundamentals of network roles should be
covered.
An enterprise LAN architecture may span up to three layers, from
end-user computers and devices connected to wiring closet switches at
the access layer to the core layer at the center of a large enterprise
LAN. This hierarchical topology segments the network into physical
building blocks, simplifying operation and increasing availability. Each
layer within the hierarchical infrastructure has a specific role:
n Access layer: provides an access control boundary and network
connectivity to end users in a LAN.
n Aggregation layer: aggregates connections and traffic flows from
multiple access-layer switches delivering traffic to core-layer
switches.
n Core layer: provides connectivity between aggregation-layer
switches and the routers connecting to the WAN or the Internet to
enable network collaboration.
This book primarily focuses on three-layered LAN designs, although
you can implement a two-layered design with a converged aggregation
and a core layer that is prevalent in extremely small campuses or
branches.
MORE? To learn more about designing an Enterprise network, see the Campus
LAN Design Guide at www.juniper.net/techpubs/.
26 Day One: Configuring EX Series Ethernet Switches
Access Layer
Aggregation Layer
MORE? For more information about the EX4500 and EX8200 line of modular
Ethernet switches, see the product information at www.juniper.net/
techpubs/.
Core Layer
ALERT! If both ends are both in passive mode, they do not exchange LACP
packets, which results in the LAG not coming up. By default, LACP is
in passive mode. To initiate transmission of LACP packets and thus
bring up the LAG, LACP must be enabled in active mode on at least
one side of the LAG.
NOTE By default, the actor and partner send LACP packets every second (fast
mode). The interval can be fast (every second) or slow (every 30
seconds).
Layer 3 (Routing). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Layer 2 (Switching). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Three-Tiered Layer
Two-Tiered Layer
Virtual Virtual
Chassis Virtual Chassis
Access
Chassis
L2 Virtual Virtual
Chassis Virtual Chassis
Access Chassis
Aggregation L2
Core
L3
L3
Core EX8200 EX8200
EX8200 EX8200
Figure 3.1 Routing and Switching Domains for a Three- and Two-Tiered Network
Chapter 3: Network Topology (Logical Topology) 33
Layer 3 (Routing)
Routing typically starts at the aggregation layer for the majority of
enterprise campus deployments, although there are some deployments
that move the L3 boundary from the aggregation to the access. The
benefits of routing at the access layer include eliminating spanning-tree
and having multipath active-active links.
MORE? For more information on routing to the access layer, please refer to
either of these documents: Campus LAN Reference Architecture, and
Deploying Fixed-Configuration and Chassis-Based EX Series Ethernet
Switches in Campus LANs at www.juniper.net/.
NOTE For additional RVIs, just increase the unit number. The unit number
can be arbitrary and does not have to be sequential. However, it is
recommended that the RVI unit number match the VLAN-id.
The second step is to bind the RVI to a VLAN with the following
command:
user@switch# set vlans vlan-name l3-interface vlan.1
Here is another example, where two RVIs are created for two different
VLANs:
user@switch# set interfaces vlan unit 1 family inet address 10.0.1.1/24
user@switch# set interfaces vlan unit 2 family inet address 10.0.2.1/24
NOTE This book focuses on basic OSPF configuration and does not go into
detail about the OSPF protocol itself. For more advanced configura-
tions on OSPF, or for configuring other routing protocols, please
reference the Technical Documentation Software Guide for EX Series
Switches at www.juniper.net.techpubs/.
Chapter 3: Network Topology (Logical Topology) 35
Layer 2 (Switching)
The L2 (switching) domain is typically at the access layer and can span
multiple switches. With L2 loops and the nature of L2 domains, traffic
can be broadcast across the domain, creating the possibility of traffic
from a source returning to that source endlessly (see Figure 3.2) thus
the need for a protocol such as Spanning Tree to manage L2 loops. If
the loops are not prevented, then the network is susceptible to outages
due to broadcast storms.
36 Day One: Configuring EX Series Ethernet Switches
MSTI 1 MSTI 2
NOTE Starting with Junos 10.2, RSTP can be configured with VSTP. This
allows interoperability with Cisco PVST+/R-PVST+.
Virtual Virtual
FWD for Chassis Blocking for Chassis FWD for
Link failure
all VLANs all VLANs all VLANs
NOTE RTG and STP are mutually exclusive. Spanning Tree needs to be
disabled for interfaces configured for RTG.
Primary Keyword
The primary keyword does two things. First, the link that is config-
ured as primary is active and forwarding. Second, it preempts any
other links from becoming active. Anytime the link is up, then that link
will always be active and forwarding, regardless of whether or not the
RTG failed over to the standby link.
user@switch# set ethernet-switching-options redundant-trunk-group group RTG-1
interface ge-0/1/1.0 primary
Ethernet Switching
VLAN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Voice VLAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Interface Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
44 Day One: Configuring EX Series Ethernet Switches
VLAN VOICE
EX Series Switch
VLAN STUDENTS
VLAN FACULTY
NOTE The above output may vary depending on the EX Series switch model.
The asterisk (*) denotes the port is active (link up).
VLAN Range
VLAN Membership
Placing a port into a VLAN can be done in one of two ways, either
VLAN-centric or port-centric. Neither method offers any advantage
over the other, as the results will be the same.
Membership: VLAN-centric
Use the following command to configure the VLAN membership under
the VLAN:
user@switch# set vlans faculty interface ge-0/0/0.0
Membership: Port-centric
Use one of the following commands to configure the VLAN member-
ship under the interface:
user@switch# set interfaces ge-0/0/0.0 family ethernet-switching vlan members faculty
Or:
user@switch# set interfaces ge-0/0/0.0 family ethernet-switching vlan members 10
Chapter 4: Ethernet Switching 47
BEST PRACTICE For easier CLI management, Juniper Networks recommends central-
izing the VLAN membership configuration. For access port, configure
all the VLAN membership under the VLAN stanza. For trunk ports,
configure all the VLAN membership under the interface (port-centric
method). See also the Interface Range section later in this chapter.
Endpoints typically dictate the port mode for which the switch is
configured. For example, if the end point is host (PC), then the major-
ity of the time the port will be configured as an access port. If there is a
phone plus a PC, then most likely it is an access-port plus voice VLAN.
The most common port roles are host, server, network devices (routers,
switches or wireless APs), and service devices (firewall, IDP, etc.). The
three switch port types are access, trunk, or routed. Table 4.1 shows a
matrix of device and port type.
Port Type
Access Trunk Routed
Device
Host
Host + IP Telephony (IPT)
Server
Network Devices
Service Devices
48 Day One: Configuring EX Series Ethernet Switches
Data VLAN
Voice VLAN
Access Port
EX Series Switch
Figure 4.2 Switch Port Configured as an Access Port With Voice VLAN, IP
Telephony, and PC Sharing the Same Switch Port.
Chapter 4: Ethernet Switching 49
LLDP-MED
The network policy TLV advertises the VLAN information (see voice
VLAN section) for which the interface is configured, as well as associ-
ated Layer 2 and Layer 3 attributes such as 802.1Q tagging, and QoS
information such as DSCP. The switch uses this TLV to ensure that
voice traffic gets treated with appropriate priority by advertising this
information to the IP phone.
The PoE management TLV lets the switch advertise the power level
and PoE priority required. For example, the switch can compare the
power required by an IP telephone connected to a PoE interface with
available resources. If the switch cannot deliver the resources required
by the IP phone, the switch could negotiate with the IP phone until a
compromise on power is reached.
And the location information advertises the configured physical
location of the endpoint. This can be determined either by physical
location or by emergency line identification number (ELIN).
MORE? For additional information about LLDP-MED TLVs, see the EX switch
documentation at www.juniper.net/techpubs/.
For verifying LLDP status on EX4200 Ethernet switches, use the show
lldp command:
LLDP : Enabled
Advertisement interval : 30 seconds
Transmit delay : 2 seconds
Hold timer : 4 seconds
Notification interval : 0 Second(s)
Config Trap Interval : 0 seconds
Connection Hold timer : 300 seconds
In the event an existing LLDP neighbor list needs to be cleared, you can
clear it using the following:
user@switch> clear lldp neighbors
Chassis ID : 00:11:22:33:44:50
System descr : Juniper Networks, Inc. ex4200-24t , version 10.1R1.8
Build date: 2010-xx-xx 01:31:39 UTC
System Capabilities
Supported : Bridge Router
Enabled : Bridge Router
Management Information
Port Name : me0.0
Port Address : 192.168.1.1
Address Type : IPv4
Port ID : 34
Port ID Subtype : local(7)
Port Subtype : ifIndex(1)
Finally, use the clear keyword to clear the collected LLDP statistics on
the EX4200 switch:
user@switch> clear lldp statistics
Voice VLAN
Voice VLAN allows 802.1Q-tagged packets onto access ports, which is
very useful when multiple devices such as computers and VoIP phones
are connected to a single port. The EX4200 Ethernet switch can
advertise the voice VLAN-ID and QoS information to the VoIP phone
through Link Layer Discovery Protocol Media Endpoint Discovery
(LLDP-MED) to ease deployment. Remember that LLDP and LLDP-
MED are enabled on EX4200 Ethernet switches by default, so if the
VoIP phone supports LLDP-MED, then it will utilize the LLDP-MED
information provided by the EX4200 Ethernet switch to tag the voice
packets with the appropriate VLAN-ID as well as any QoS markings.
To configure the Voice VLAN feature, it is first necessary to configure
the access port as part of the user VLAN (see the section, VLAN
Membership, earlier in this chapter for configuration syntax). Next,
enable the Voice VLAN feature with the following command that
enables the access port to accept both tagged and untagged packets
(where voip-vlan is the vlan-name):
user@switch# set ethernet-switching-options voip interface ge-0/0/0.0 vlan voip-vlan
NOTE To advertise the proper QoS code point, a Behavioral Aggregate (BA)
must be bound to the interface. See the EZCOS-Voice section in
Chapter 5.
Interface Range
The interface range function allows users to apply a common set of
configurations across a group of interfaces within a given range,
simplifying EX Series switch configuration and reducing the number of
lines in the configuration file. Interface range is a very useful feature
when deploying EX4200 switches in a Virtual Chassis configuration,
or when deploying EX8200 switches in cases where every interface is
not explicitly defined within the default configurations. Interface range
is configured under the interface stanza:
user@switch# set interfaces interface-range interface-range-name [member|member-range]
member ge-0/*/*;
member ge-0/0/[0-23];
Lets use an interface range example: half the ports on an access switch
are assigned to the faculty and the other half are assigned to students.
Instead of configuring the VLAN membership on a per-interface basis,
one can use an interface range command to collectively apply one set
of configuration options to the faculty group and another set to the
student group:
user@switch# set interfaces interface-range faculty-ports member ge-0/0/[0-23]
user@switch# set interfacss interface-range faculty-ports unit 0 family ethernet-
switching vlan members faculty
EX Features
MVRP (802.1ak). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
EZQOS-Voice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Port Mirroring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
58 Day One: Configuring EX Series Ethernet Switches
Lets go through some of the EX Series switch features that are com-
monly used in both campus and branch deployment:
n Ethernet OAM (802.3ah), which protects against a uni-directional
link;
n MVRP (802.1ak) helps VLAN management across switched
network;
n Multicast for delivery options to a subset or group of users;
n EZQOS-Voice that takes the guessing out of CoS configuration;
n Access port security to help protect LAN from man-in-the-middle
or denial-of-service (DoS) attacks;
n Power over Ethernet (PoE) to provide power to connected devices;
n And, port mirroring for network policy enforcement or identifying
problems such as abnormal or excessive bandwidth during
troubleshooting.
There are, of course, lots of other features in the EX Ethernet Switch
platform that may be taken advantage of in your network. Seek out the
documentation, Junos Enterprise Switching by Reynolds & Marschke
(O'Reilly Media, 2009), and especially the feature overview of each
new Junos operating system release available at http://www.juniper.
net/us/en/community/junos/releases/.
802.3ah is configured under the oam stanza in Junos. The first step is
to configure the OAM action profile for loss-adjacency; when adja-
cency is lost, it brings the link down:
user@switch# set protocols oam ethernet link-fault-management action-profile action-
profile-name event link-adjacency-loss
user@switch# set protocols oam ethernet link-fault-management action-profile action-
profile-name action link-down
And the last step is to bind the action profile to the interface:
user@switch# set interface ge-0/1/0.0 apply-action-profile action-profile-name
MVRP (802.1ak)
MVRP is a standards-based protocol that supersedes the Generic
VLAN Registration Protocol (GVRP). It is used to dynamically
manage VLANs across a Layer 2 network to reduce the management
overhead for a switched network and improve the bandwidth efficien-
cy by pruning VLANs on trunk ports. Through join and leave messag-
ing, MVRP allows switches to register or withdraw VLAN informa-
60 Day One: Configuring EX Series Ethernet Switches
tion with other switches in the same Layer 2 domain. The joins and
leaves are sent across on trunk ports and will follow the active span-
ning-tree topology as shown in Figure 5.1.
Trunk Trunk
VLANs that are learned by MVRP have the following naming struc-
ture: __mvrp_vlan-id__. The show mvrp dynamic-vlan-memberships
MVRP command can be used to view VLAN membership learned
from MVRP, (the standard show vlan will also display the VLAN
learned by MVRP):
user@switch> show mvrp dynamic-vlan-memberships
VLAN Name Interfaces
-------------- ----------
__mvrp_10__ ge-0/0/0.0
ge-0/0/1.0
Using the statistics keyword, you can view MVRP statistics, such as
joins and leaves:
user@switch> show mvrp statistics interface ge-0/1/0
MVRP statistics
Interface name : ge-0/1/0.0
MRPDU received : 162
Invalid PDU received : 0
Chapter 5: EX Features 61
New received : 0
Join Empty received : 380
Join In received : 106
<output truncated>
NOTE This book only provides configuration syntax for PIM-SM and static
rendezvous-point (RP).
The show pim rps command is to verify the RP. Its output provides a
RP address, how the RP is learned, number of active multicast groups,
and the multicast group the RP can forward:
user@swtich> show pim rps
Instance: PIM.master
Address family INET
RP address Type Holdtime Timeout Groups Group prefixes
10.1.1.1 static 0 None 1 224.0.0.0/4
The show multicast route command displays the multicast route for a
given multicast group, as well as the multicast source and the upstream
and downstream multicast path:
user@switch> show multicast route
Family: INET
Group: 224.0.1.39
Source: 1.1.1.2/32
Upstream interface: ge-0/1/0.0
Downstream interface list:
local ge-1/0/23.0
Multicast Switching
For hosts that do not support IGMP, the group can be manually
configured using:
user@switch# set protocols igmp-snooping vlan <vlan_name> interface <interface_name>
static group <multicast_ip_group_address>
EZQOS-Voice
The EX lines of switches support Class of Service (CoS), which can
help meet business applications requirements while ensuring that
specialized traffic does not exceed the latency and jitter requirements
of the network. The EX Series switches support up to eight CoS queues
per port and each queue can be uniquely molded to best serve business
needs. In order to ensure that applications meet the required service
level, it is recommended to enable CoS end-to-end.
The basic CoS building blocks for the EX Series switches are classifica-
tion, policing, queuing, scheduling, and remarking, shown in Figure
5.2. Configuring CoS can be daunting task, as it requires proper
knowledge and QoS configuration. How do I classify traffic? How
much bandwidth should I allocate? How much buffer should be
allocated between the queues? These are all questions that users face
when deploying QoS.
NOTE EZQOS-Voice does not implement all of the QOS stages, but it is avail-
able if required. For more information on CoS on the EX Series
switches, please reference the EX Series switch technical documenta-
tion at www.juniper.net/techpub/.
Classifying Traffic
Classifying traffic is the first QoS process, which is done when the
switch first receives traffic. By separating traffic flows, the switch can
handle traffic based on its prioritization. Traffic differentiation can be
accomplished by using any of the numerous port classification meth-
ods:
n Behavioral Aggregate (BA): Classify traffic base on 802.1P, DSCP,
or IP Precedence.
n Multifield Classifier (MF): Classifying traffic base on L2, L3, and/
or L4 information.
n Port Based: Although this isnt differentiating traffic, but rather
characterizing all incoming traffic to a specified forwarding-class.
EZQOS-VOICE uses BA and classifies traffic based on the DSCP
values, some of which are listed in Table 5.1. Based on DSCP, the
packet will be associated with a particular class-of-service servicing
level, forwarding-class. The forwarding-class is mapped to a given
egress queue.
Video 4 34 SDWRR
Voice 5 46 Strict-Priority
Queuing Traffic
The important factors for queuing traffic are the number of queues, the
queue depth, and queue management. EX Series switches support up
to eight queues per port, and EZQOS-VOICE uses four of the eight
queues. Each queue is responsible for certain traffic classes (forward-
ing-class); EZQOS-Voice uses queue 0, 4, 5, 7 which are associated to
best-effort, video, voice, and network-control respectively. Each queue
is configured with a different buffer size based on the traffic type and
platform.
Scheduling Traffic
There are two different types of queue schedulers that can be config-
ured for the queue Strict-Priority (strict-high) or SDWRR (low). If
the queue is configured for the strict-high, then anytime packets are in
this queue they are always serviced. When queues are configured for
SDWRR, queues are serviced in round-robin fashion (from high queue
to low queue) while preserving the overall bandwidth distribution base
on weight.
The bandwidth distribution on the EX4200 switch for best-effort and
video is 30/70; on the EX8200 it is 20/50. Voice and network-control
are treated as strict-priority, thus anytime voice or network-control
packets are in queue, they are serviced immediately.
The EZQOS-VOICE template is saved as a file, ezqos-voice.conf in the
/etc/config directory. Use the load merge command to load and merge
the EZQOS-VOICE template into the configuration:
user@switch# load merge /etc/config/ezqos-voip.conf
The majority of the Junos show commands for CoS are under the show
class-of-service stanza. The show interface <interface-name> exten-
sive | find, <Cos Information> or show class-of-service inter-
face <interface-name>, are good summary commands:
In the sample output shown here, the show command provides the
number of configured egress queues, the configured scheduler, and the
configured and type of classifier.
To view specific classifier or scheduler-map configuration, use:
user@switch> show class-of-service classifier name classifier-name
user@switch> show class-of-service scheduler-map scheduler-map-name
<output truncated>
Victim
Attacker
DHCP Snooping
6 5 4
TIP DHCP snooping is the foundation for other access port security
features such as Dynamic ARP Inspection (DAI) and IP source guard.
Use the following command to configure static entry for the DHCP
snooping database, for devices that have static IP addresses and do not
rely on DHCP.
user@switch# set ethernet-switching-options secure-access-port interface <interface_
name> static-ip <ip_address mac mac_address vlan vlan_name>
NOTE By default, the IP-MAC bindings are lost when the switch is rebooted
and DHCP clients (the network devices or hosts) must reacquire
bindings. However, you can configure the bindings to persist by setting
the dhcp-snooping-file statement to store the database file either locally
or remotely.
NOTE The concept of untrusted and trusted ports on DAI and IP source
guard is the same as with the DHCP snooping feature.
IP Source Guard
MORE? For more information about access port security CLI configuration, see
the Port Security on EX Series Switches Guide at www.juniper.net/
techpubs/.
VoIP Phones
The ability to deliver power over the same Ethernet LAN cables used
to transmit data has eliminated the need to attach PDs to electrical
outlets. Additional benefits include simplified device deployment,
lower cost of deployment, greater flexibility, and remote management.
The EX2200, EX3200, EX 3300, EX4200, EX6200, and EX8200
switches all provide support for PoE, wherein the switch acts as the
PSE. The EX4200 switch provides either full, or partial, PoE on all
models (with the exception of the fiber-based EX4200-24F model).
The full PoE models provide power on all 24 or 48 ports, while the
partial PoE models provide power on first eight ports only.
74 Day One: Configuring EX Series Ethernet Switches
For PoE management, there are two modes available on the EX Series
switches:
n Static mode: as the name suggests, this mode allocates a specified
amount of power from the switchs available power budget to the
individual interface.
n Class mode: allocates power for interfaces based on the class of PD
connected to the port. The amount of power allocated will be the
maximum of the class of the PD. Refer to Table 5.2 for each PoE
class and corresponding power allocation range.
ALERT! The default PoE management mode is static. For the EX2200, it is
recommended that the mode be changed from static to class. For more
information, please refer to www.juniper.net/techpubs/.
NOTE Although the amount of output power on the PSE is listed in Table 5.2,
the actual power received on the PD must take line loss into account.
For example, in case of Class 3 PoE, the specified15.4 watts would
need to subtract 16% to account for power loss, which would guaran-
tee 12.95 watts on the PD. IEEE 802.3af compliant PDs require up to
12.95 watts.
The set poe management class command can be used to change the
PoE power management mode:
user@switch# set poe management class
Chapter 5: EX Features 75
For the purposes of verifying PoE status on EX Series switches, use the
show poe interface command:
Port Mirroring
An Ethernet switch such as the EX4200 normally does not flood out
every packet when the destination MAC address is known. However,
there are times when it is necessary to receive copies of packets for traffic
analysis on interfaces that are different than the originally intended
destination interface. Port mirroring can be used to analyze traffic on EX
Series Ethernet Switches at Layer 2. It can be used for business and
network policy enforcement regarding proper network usage and for
identifying problems such as abnormal or excessive band- width usage
from nodes or applications during troubleshooting.
Port mirroring copies packets from a source to a destination. This source
and destination pairing is considered a session of port mirroring. Mir-
rored packets can in turn be analyzed using a protocol analyzer applica-
tion. The protocol analyzer can be run on a host directly connected to
the destination port locally (see Figure 5.5), or on a remotely located
monitoring station which can be on a different Ethernet switch with a
VLAN configured as the destination (as in Figure 5.6).
www.juniper.net/dayone
If youre reading a print version of this booklet, go here to download
the PDF version or find out what other Day One booklets are currently
available.
www.juniper.net/junos
Junos Enterprise Switching is the one and only detailed technical book
on the new Juniper Networks ethernet switching EX product platform.
While the hardware and ASIC design prowess of the EX platform is
simply extraordinary, its real mojo is Junos, the field-tested, robust
proven workhorse of the largest service provider networks on the
planet. The authors, Harry Reynolds and Doug Marschke, get this.
And once you finish Junos Enterprise Switching, youll get it too. Use
this book as an extraordinary hands-on field guide to the ethernet
switching EX platform, or use the study questions at the end of each
chapter as a study guide for the certification exams in the JNTCP
enterprise tracks. Whether youre certified or not youll learn about:
n Enterprise switching and virtual LANs (VLANs).
n The Spanning Tree protocol, and why its needed.
n Inter-VLAN routing, including route tables and preferences.
n Routing policy and firewall filters.
n Switching security, such as DHCP snooping.
n Telephony integration, including VLAN voice.