Use Only: HP Networking Interoperability
Use Only: HP Networking Interoperability
HP Networking Interoperability
Learner Guide
Version 11.12
y
nl
O
Se
alU
rn
te
In
P
r H
Fo
Copyright 2010 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. The only warranties for HP products and
services are set forth in the express warranty statements accompanying such products and services. Nothing
herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial
errors or omissions contained herein.
This is an HP copyrighted work that may not be reproduced without the written permission of HP. You may not use
these materials to deliver training to any person outside of your organization without the written permission of HP.
HP Networking Interoperability
Learner Guide
y
Rev. 11.12
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Contents
y
Module 2 objectives ...................................................................................... 2-1
nl
Notes ..............................................................................................2-1
O
Enabling basic remote management ................................................................ 2-2
Notes ..............................................................................................2-2
Se
Management scenario 1 ................................................................................2-3
Management scenario 1a—Cisco ...................................................................2-5
lU
Management scenario 1b—HP A-Series ...........................................................2-6
Management scenario 1c—HP E-Series ............................................................ 2-7
a
Rev. 11.12 i
HP Networking Interoperability
y
Useful show and display commands ..............................................................2-45
nl
Notes ............................................................................................ 2-45
O
Lab 2.1: Management.................................................................................. 2-46
Lab debrief ................................................................................................. 2-47
Se
Module 2 summary .....................................................................................2-49
Module 3: VLANs
lU
Module 3 objectives ...................................................................................... 3-1
a
VLAN configuration on Cisco: VLAN creation and trunk ports ............................ 3-6
H
ii Rev. 11.12
Contents
y
Which BPDUs are used?—Review 3 ................................................................ 4-6
nl
MSTP BPDUs—Review 4 ................................................................................ 4-7
O
Additional Information about MSTP .................................................... 4-8
Common spanning tree—Review 5 ................................................................. 4-9
Se
What setup is required to enable load balancing?—Review 6 ........................... 4-10
Mapping VLANs to MST instances—Review 7 ................................................. 4-11
lU
Is MSTP “aware” of the VLAN setup?—Review 8 ............................................. 4-12
MSTP design options .................................................................................... 4-13
a
y
PVST+ quiz ................................................................................................. 5-18
nl
Cisco and HP scenario 1 .............................................................................. 5-19
O
PVST+/STP interoperability—Scenario 1.........................................................5-20
Scenario 1—VLAN topologies ...................................................................... 5-21
Se
Considering STP port cost differences ............................................................. 5-22
Considering STP port cost differences (cont.) ................................................... 5-23
lU
Cisco and HP scenario 1: Cisco switch configurations ...................................... 5-24
Cisco and HP scenario 1: HP A-Series switch configuration ............................... 5-25
a
What about other Cisco switches in the access layer? ..................................... 5-33
What is the purpose of load balancing?........................................................ 5-34
r
iv Rev. 11.12
Contents
y
Smart link status .......................................................................................... 6-13
nl
Configuring monitor link ............................................................................... 6-14
O
Monitor link on HP A-Series switches .............................................................. 6-15
Monitor link on HP A-Series switches (cont.) .................................................... 6-16
Se
Monitor link configuration ............................................................................. 6-17
Lab 6.1: Redundancy without STP ................................................................... 6-18
lU
Lab debrief ................................................................................................ 6-20
Module 6 summary .....................................................................................6-22
a
Rev. 11.12 v
HP Networking Interoperability
y
and access layers ......................................................................................... 8-9
nl
IRF, link aggregation, and interoperability: IRF in the core and
O
distribution layers ........................................................................................ 8-10
Static link aggregation configuration ...............................................................8-11
Se
Static LACP link aggregation configuration ..................................................... 8-12
VLAN trunking and link aggregation .............................................................. 8-13
lU
Troubleshooting link aggregation ................................................................... 8-14
Lab 8.1: Configuring link aggregation and IRF ................................................. 8-15
a
vi Rev. 11.12
Contents
y
HSRP configuration example ......................................................................... 9-29
nl
GLBP configuration example ........................................................................ 9-30
O
VRRP configuration example on HP A-Series .................................................... 9-31
VRRP tracking remote IP on HP A-Series ......................................................... 9-32
Se
VRRP tracking remote IP on HP A-Series (cont.) ............................................... 9-33
Example output for display and debugging commands ...................... 9-35
lU
VRRP configuration example on HP E-Series ................................................... 9-38
Lab 9.1: Configuring VRRP (Optional) ............................................................ 9-39
a
y
OSPF area summarization—Scenario 2-1-c .................................................... 10-21
nl
OSPF area summarization—Scenario 2-2 ..................................................... 10-23
O
OSPF passive interface—Scenario 2-3 .......................................................... 10-26
Use cases .................................................................................... 10-26
Se
OSPF passive interface—Scenario 2-3-a ................................................. 10-27
OSPF area and redistribution scenarios ........................................................ 10-28
lU
OSPF redistribution—Scenario 3-1 ............................................................... 10-29
OSPF redistribution—Scenario 3-1-a ....................................................... 10-31
a
y
NAT and Internet access—Scenario 1 .............................................................11-3
nl
NAT and Internet access—Scenario 1a .......................................................... 11-4
O
NAT and Internet access—Scenario 1b ........................................................... 11-5
NAPT configuration on the HP A-Series switch .....................................11-5
Se
Introduction to connection limit .......................................................... 11-6
Internal servers with static NAT ....................................................................... 11-7
lU
Internal servers and NAT—Scenario 2 .............................................................11-8
Internal servers and NAT—Scenario 2a ...........................................................11-9
a
Rev. 11.12 ix
HP Networking Interoperability
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
x Rev. 11.12
Introduction to HP Networking Interoperability
Module 1
Course objectives
In this course, you will learn how to deploy Cisco and HP devices together in a
network. You will examine Cisco interoperability both with HP A-Series devices,
designed for large and complex enterprises, and with HP E-Series devices, intended
for Small to Medium Businesses (SMBs), which might, nonetheless, have some
sophisticated requirements.
Specifically, you will learn how to:
y
Manage the devices from a single management solution
nl
Extend VLANs across the network in a consistent manner
O
Configure link aggregation groups between HP and Cisco switches
Se
Implement redundant links in a loopless topology using the best method for your
environment
lU
Configure virtual IP protocols for redundant routing
a
Rev. 11.12 1 –1
HP Networking Interoperability
Course agenda
The agenda for this course is:
Day 1:
Module 1: Introduction to HP Networking Interoperability
Module 2: Switch Management
Lab 2.1: Management
Module 3: VLANs
Lab 3.1: Configuring VLANs
Module 4: Implementing MSTP (beginning)
y
Day 2:
nl
Module 4: Implementing MSTP (end)
O
Lab 4.1: Configuring MSTP
Se
Module 5: Interoperability Among PVST+, Rapid PVST+, and MSTP
Lab 5.1: Configuring PVST+/MSTP Interoperability: Cisco at the
lU
Aggregation Layer
a
Aggregation Layer
te
H
1 –2 Rev. 11.12
Introduction to HP Networking Interoperability
y
nl
O
Se
Figure 1-1: Multi-vendor network—Challenges and opportunities
lU
Consider the questions displayed in the table. Why do you want to implement a
multi-vendor network? What benefits do you expect from knowing how to do so? On
a
the other hand, what challenges do you expect to face during the implementation?
rn
The table above gives a couple of general ideas to get you started. Discuss more
ideas with your classmates. Try to make your contributions to the discussion as
In
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Rev. 11.12 1 –3
HP Networking Interoperability
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
_______________________________________________________________________
a lU
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
1 –4 Rev. 11.12
Introduction to HP Networking Interoperability
Interoperability goals
– What are your goals for the multi-vendor network
deployment?
• Using single management system?
• Providing a consistent, high-quality network experience?
• Implementing open-standard protocols? Making familiar Cisco
protocols interoperate with open-standard protocols?
• Other goals?
y
nl
Figure 1-2: Interoperability goals
O
You have considered the challenges of deploying a multi-vendor network. You must
Se
now set goals to meet those challenges. The figure gives some examples of general
goals that you might set. For example, you might want to deploy a network that uses
lU
a single management solution.
a
Of course, you will need to define your goals more precisely than the ones listed
rn
above. What does a consistent, high-quality network experience mean to you? What
issues are involved in providing it, and what concrete goals can you set to ensure
te
that these issues are resolved? For example, you might need to provide high
In
Your goals might differ from others’. For example, you might want to implement open-
H
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Rev. 11.12 1 –5
HP Networking Interoperability
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
_______________________________________________________________________
a lU
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
1 –6 Rev. 11.12
Introduction to HP Networking Interoperability
IP addressing:
Names: 10.POD.VLAN.X/24
y
nl
Figure 1-3: Initial information for labs
O
During this course, you will complete several labs. Each lab includes two or more of
Se
the switches displayed in the slide. The names and IP addresses used throughout the
labs are consistent. For example, the HP A5800 switches are always HP-C and HP-D
lU
and have 3 and 4 in the final octet of their IP addresses. However, some of the labs
include only some of the equipment.
a
You will also use a Windows Server 2008 and a client for the labs.
rn
te
In
P
r H
Fo
Rev. 11.12 1 –7
HP Networking Interoperability
Module 1 summary
You have articulated your goals for a multi-vendor network deployment and seen the
multi-vendor equipment with which you will be practicing such a deployment for the
rest of this course. You are ready to turn your attention to the specific interoperability
issues on which the rest of this course focuses.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
1 –8 Rev. 11.12
Switch Management
Module 2
Module 2 objectives
After completing this module, you will be able to:
Configure HP A-Series, HP E-Series, and Cisco switches so that they can be
managed by the HP Intelligent Management Center (IMC) platform
Configure the following features for secure management of HP A-Series, HP E-
Series, and Cisco switches:
Authenticated access
y
nl
Secure Shell (SSH) V2.0
O
Simple Network Management Protocol (SNMP) v2 and v3
Network Time Protocol (NTP)
Syslog
Se
lU
Configure and use Link Layer Discovery Protocol (LLDP) on HP A-Series, HP E-
Series, and Cisco switches
a
rn
Notes
te
_____________________________________________________________________
In
_____________________________________________________________________
P
H
_____________________________________________________________________
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Rev. 11.12 2 –1
HP Networking Interoperability
Notes
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
2 –2 Rev. 11.12
Switch Management
Management scenario 1
– You must deploy a number of access-layer
switches:
• HP A-Series, E-Series, and Cisco switches
y
nl
What minimal switch parameters should you configure to allow
discovery by IMC?
O
Figure 2-1: Management scenario 1
Se
For the first scenario, you are deploying an HP A-Series switch, HP E-Series switch,
lU
and Cisco switch at the access layer. You need to pre-configure the switches with the
most basic configurations that will allow IMC to discover the switches. You will then
a
Q: What minimal switch parameters does IMC require to discover the switches?
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Rev. 11.12 2 –3
HP Networking Interoperability
y
configuration, which will be shown in management
nl
scenario 2.
O
Figure 2-2: Management scenario 1 (cont.)
Se
These are the basic switch parameters necessary for IMC to discover the device:
lU
System name
IP address and default gateway
a
the device, but it needs the read-write community to manage the device.
te
Configuring an SNMP trap receiver is not necessary for the discovery process but
In
can provide useful feedback to IMC regarding the switch. Once IMC discovers a
device, it can set itself as an SNMP trap receiver.
P
Telnet access is also not needed for the discovery process, but you might want to
H
configure it so that you can configure the switches remotely as needed. (SSH is the
r
2 –4 Rev. 11.12
Switch Management
Management scenario
g 1a—Cisco
Conf t
1 System name
hostname corpabc-1-2
2 IP address through DHCP IMC
Interface vlan 1 10.1.1.100
ip address dhcp
no shut
3 SNMP v2c community
snmp-server community imc-access rw
4 SNMP traps
snmp-server enable traps
snmp-server source-interface loopback 0
snmp-server host 10.1.1.100 version 2c public
5 Telnet without authentication
y
line vty 0 4
no login
nl
privilege level 15
O
When is a source-interface useful?
Se
Figure 2-3: Management scenario 1a—Cisco
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
Note
Setting up Telnet access without authentication, as shown above, will allow you
to access a Cisco switch remotely and log in without a password. This can be
insecure, so in a real-world situation, you would either set a password or set the
privilege level lower for the interface without authentication.
Rev. 11.12 2 –5
HP Networking Interoperability
Management scenario
g 1b—HP A-Series
system-view
1 System name
sysname corpabc-1-3
2 IP address through DHCP
Interface vlan 1
ip address dhcp-alloc
quit
3 SNMP v2c community
snmp-agent trap-source vlan-interface 1
snmp-agent sys-info version v2c
snmp-agent community write imc-access
4 SNMP trap receiver
snmp-agent target-host trap address udp-domain 10.1.1.100
params securityname public V2C
5 Telnet without authentication
telnet server enable
y
user-interface vty 0 15
nl
authentication-mode none
user privilege level 3
O
quit
What does user privilege level 3 mean?
Se
Figure 2-4: Management scenario 1b—HP A-Series
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
Note
r
A-Series switches have four command and privilege levels: visitor, monitor,
Fo
system, and manager. These levels are numbered 0-3, respectively. By default,
the command level for a user console interface is 3, and for all other interfaces it
is 0.
2 –6 Rev. 11.12
Switch Management
Management scenario
g 1c—HP E-Series
1 System name
hostname corpabc-2-4
2 IP address through DHCP
vlan 1 ip address dhcp ! Default
3 SNMP v2c community
no snmp-server community public
snmp-server community imc-access manager unrestricted
4 SNMP trap receiver
snmp-server host 10.1.1.100 public
snmp-server trap-source loopback 0
5 Telnet without authentication
! telnet access is permitted without passwords
! And provide access to privileged level
y
Why not configure a read-only community?
nl
O
Figure 2-5: Management scenario 1c—HP E-Series
Se
Q: Why not configure a read-only community?
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
Rev. 11.12 2 –7
HP Networking Interoperability
dhcp enable
y
nl
Figure 2-6: Setting up a DHCP server on an HP A-Series switch
O
Q1: Why would you configure a DHCP server on an A-Series switch?
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
_________________________________________________________________________
te
In
Q2: Why would you use a DHCP server to assign IP address to your switches? You
usually configure static IP addresses on switches.
P
H
_________________________________________________________________________
r
_________________________________________________________________________
Fo
_________________________________________________________________________
For example, suppose you need to replace a defective switch. If you preconfigure the
switch with the basic parameters outlined in this scenario, it will automatically
acquire an IP address and be discovered by IMC when it is plugged in to the
network. (The IP address can also be found through the LLDP display.) This will allow
remote configuration and management of the switch.
Later you can apply an IMC configuration template that sets the IP address for all
devices.
2 –8 Rev. 11.12
Switch Management
IMC discovery—1
y
nl
2. Multiple SNMP templates can be used by Auto-Discovery
mechanisms.
O
Figure 2-7: IMC discovery—1
Se
The next several pages describe the basic steps to set IMC to discover the devices
lU
that have been added to the network.
The first step is to create an SNMP template that contains one of the following:
a
An SNMP v3 group, a user associated with that group, and authentication and
te
encryption methods
In
Multiple templates can be created to be used by IMC to discover all devices or those
within a given range of IP addresses
P
H
_________________________________________________________________________
r
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Rev. 11.12 2 –9
HP Networking Interoperability
IMC discovery—2
dhcp enable
y
nl
O
Figure 2-8: IMC discovery—2
SNMPv3 group
SNMPv3 user
P
IMC discovery—3
Four modes for auto-discovery
y
nl
What are the discovery methods? Pro and cons of each?
O
Figure 2-9: IMC discovery—3
Se
IMC supports four modes of auto discovery, which determine how IMC searches for
lU
devices:
1. Routing-Based
a
rn
IMC reads the routing table of the “seed” router and explores all the nodes in all
IP subnets discovered in the routing table.
te
Cons: If the routing table is large, discovery could take hours or even days.
P
The routing table may be much larger than the network to be discovered.
H
2. ARP-Based
ARP reads the ARP table of the main device to find nodes.
Pros: The search is restricted to active devices of local IP subnets as found
on a routing switch, so the search is quicker.
Cons: If devices are not active in IP, they may not be found. Also, if the ARP
table is populated with many IP end nodes, the search can be time
consuming.
Recommendation: Use for a quicker search.
3. IPSec VPN-Based
IMC scans the IP addresses on the remote end of IPSec VPN.
Pros: The search focuses on remote devices related to IPSec VPN.
Cons: May be time consuming if remote networks are large.
Recommendation: Use with IPSec VPN remote networks
4. Network-Segment Based
You enter specific ranges of IP addresses to reduce scope of the IMC search.
Pros: You can target the “management VLAN”IP subnets, the IP ranges in
which devices are set (for example, the first 10 IP addresses of the subnet).
This can increase discovery efficiency
y
Cons: Requires more manual configuration.
nl
Recommendation: Use with large networks. Use when the range of IP
O
addresses of network devices is known. Use to decrease discovery time.
Se
Note
Manual discovery is always possible.
a lU
rn
te
In
P
r H
Fo
IMC discovery—4 y
5. How to discover devices:
- IP range
- SNMP templates
- Telnet and SSH templates
dhcp enable
y
nl
O
Se
Figure 2-10: IMC discovery—4
lU
This figure shows the IMC window on which you define Network Segment-Based
auto-discovery. Configuration tasks include:
a
Select the Automatically register to receive SNMP traps from supported devices
check box.
P
Configure the SNMP settings. You can use pre-defined SNMP templates or
r
Fo
IMC discovery—5
y
nl
Figure 2-11: IMC discovery—5
O
This is how IMC lists the auto-discovered devices.
Se
a lU
rn
te
In
P
r H
Fo
Notes
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Management scenario 2
– Goals:
• Make devices manageable
• Createa secured infrastructure, which
requires secured devices
y
What settings would you recommend to make switches
nl
manageable and secured?
O
Figure 2-12: Management scenario 2
Se
In scenario 2, you will concentrate on creating secured configurations for switches.
lU
What settings would you recommend to make switches manageable and secured?
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
P
_________________________________________________________________________
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Management scenario
g
2 (cont.)( )
1 Encrypting passwords
2 Time protocol client
3 Syslog services
4 SSH V2.0
5 Secured access
• Local authentication
6 SNMP v3
y
How do you secure management access?
nl
O
Figure 2-13: Management scenario 2 (cont.)
Se
Now you need to select the features needed to complete the configuration.
The device needs to be fully manageable
lU
The access needs to be secure
a
Examine the following features to make the device and the configuration secure:
rn
SSH access
In
SNMP v3
P
Due to the time constraints of the course, only a limited number of features can be
covered. However, you should be aware of some other features, including:
r
Fo
y
_________________________________________________________________________
nl
_________________________________________________________________________
O
Se
_________________________________________________________________________
lU
_________________________________________________________________________
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
What commands do you use to access logging on the terminal?
nl
Figure 2-14: Management scenario 2a—Cisco
O
In this Cisco switch configuration, note the following command:
clock timezone gmt1 1
Se
lU
This command sets the timezone. Note that gmt1 does not configure the
timezone; rather this option is a name that displays for the timezone setting. You
a
The next option actually sets the timezone. In this example, it is the positive offset
te
to the coordinated universal time (UTC). For a negative offset, use the –
character:
In
clock timezone PT -8
P
Use the clock summer-time recurring command to set the system to annually adjust
H
In Western Europe, Daylight Saving Time starts on the last Sunday in March and
Fo
In the USA, Daylight Saving Time begins the second Sunday in March and ends
the first Sunday in November. (Note that the states of Hawaii and Arizona do
not observe Daylight Saving Time.)
clock summer-time GMT1 recurring 2 Sun Mar 1:00 first Sun Nov 1:00
60
_________________________________________________________________________
_________________________________________________________________________
Use the following command as a precaution against your input being interrupted by
a large amount of system output:
Cisco# conf t
y
Cisco(config)# line vty 04
nl
Cisco(config)# logging synchronous
O
Cisco(config)# exit
With this feature enabled, you can continue your operations from the point where
Se
you were interrupted.
You should also specify the name or number of the severity level where messages
lU
should be automatically logged by the system. Messages at, or numerically lower,
than the specified level will be logged.
a
rn
Severity values
te
Warnings 4 Warnings
Notifications 5 Information that the system
administrator should be aware of
Informational 6 Information to be recorded
Debugging 7 Debugging information
The default level varies according to the platform you are using, but is generally 7.
Level 7 means that messages at all levels (0-7) are logged to the buffer.
y
nl
Figure 2-15: Management scenario 2a—Cisco (cont.)
O
Q: How will admin123 log in to the switch?
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
It could be argued that this authentication method is not secure because it uses one
P
password and not two. However, security can be enhanced by implementing the
H
y
nl
Figure 2-16: Management scenario 2a—Cisco (cont.)
O
What is the purpose of the no snmp trap link-status command?
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
Should SNMP v2 or SNMP v3 be used to send the trap? SNMP v2 has been used
P
here, but the trap could also be sent using SNMP v3:
H
test
Fo
The setup can also be achieved via IMC itself during device discovery (this is an
option in IMC and PCM+) or after.
IMC is the recommended method because:
The setup will be homogeneous for all devices
Passwords can be changed through IMC on a regular basis
IMC maintains synchronization of changed authentication passwords and
methods in devices and its database
y
nl
Figure 2-17: Management scenario 2-a—Cisco (cont.)
O
To set up SNMPv3 on a Cisco switch, you must:
Se
Define its engine ID
Create an SNMPv3 group
lU
Management scenario
g 2b—HP A-Series
1 Encrypting passwords
Use “cipher” keyword every time a password is entered
y
nl
What commands do you use to access logging on terminal
and to set level of information displayed?
O
Figure 2-18: Management scenario 2-b—HP A-Series
Se
Q1: What does the ntp-service unicast-server command do?
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
You can define multiple NTP servers, specifying the authentication and version levels.
P
You can also set your preferred NTP server with a priority keyword.
H
_________________________________________________________________________
Use the clock summer-time repeating command to set the system to annually adjust
for Daylight Saving Time.
In Western Europe, Daylight Saving Time starts on the last Sunday in March and
ends the last Sunday in October at 1:00 a.m.
One hour is added when summertime starts and deducted when it ends.
clock summer-time GMT1 recurring last Sun Mar 1:00 last Sun Oct
1:00 60
In the USA, Daylight Saving Time begins the second Sunday in March and ends
the first Sunday in November. (Note that the states of Hawaii and Arizona do
not observe Daylight Saving Time.)
clock summer-time GMT1 recurring 2 Sun Mar 1:00 first Sun Nov 1:00
60
y
Q3: What commands can you use to access logging on the terminal?
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
Use this command as a precaution against your input being interrupted by a large
amount of system output. With this feature enabled, you can continue your
P
By default, the log level for syslog is set to information. You can change this setting
using the following commands:
info-center source default channel loghost log level alerts
info-center source default channel loghost debug level
debugging
info-center source default channel loghost trap level alerts
You can select from one of the following levels:
0 = emergencies – System is unusable
1 = alerts – Immediate action required
2 = critical – Critical condition
3 = errors – Error conditions exist
y
4 = warnings – Warning condition
nl
5 = notifications – Normal but significant conditions
O
6 = informational – Informational system messages
Se
7 = debugging – Debugging messages
lU
On an A-Series switch, there are ten information channels, ranging from 0 to 9. Each
channel is assigned to a different output destination, as shown in the table below.
a
console 0 console
te
You will more about these channels as you learn about the information center on the
next slide.
As you did for the Cisco switches, you can prevent ports from generating link
up/down log information. For example, to disable port GigabitEthernet 3/0/1 from
generating link up/down logging information, enter:
<HP-A> system-view
[HP-A] interface GigabitEthernet 3/0/1
[HP-A-GigabitEthernet3/0/1] undo enable log updown
default console
ospf monitor
log level 0-7
info-center source pim channel loghost
debug
stp logbuffer state on |off
trap
. . . logfile
snmpagent
. . .
y
nl
Introduction to information center
O
Acting as the system information hub, the information center classifies and manages
Se
system information, offering powerful support for network administrators and
developers in monitoring network performance and diagnosing network problems.
lU
The following describes the working process of information center:
Receives the log, trap, and debugging information generated by each module
a
rn
In sum, the information center assigns the log, trap and debugging information to the
P
10 information channels according to the eight severity levels and then outputs the
H
y
Errors 3 Error warning
nl
Warnings 4 Warnings
O
Notifications 5 Information that the system administrator
should be aware of
Se
Informational 6 Information to be recorded
Debugging 7 Debugging information
lU
Seven output destinations and ten channels of system information
a
console, monitor terminal (monitor), log buffer, log host, trap buffer, SNMP module
te
These switches also support ten channels. The seven channels 0 through 5, and
channel 9 are configured with channel names, output rules, and are associated with
P
output destinations by default. The channel names, output rules and the associations
H
between the channels and output destinations can be changed through commands.
You can configure channels 6, 7, and 8 without changing the default configuration of
r
Fo
y
information.
nl
5 snmpagant SNMP mod. Receives trap information.
6 channel6 non spec. Receives log, trap, and debugging
O
information.
7 channel7 non spec. Receives log, trap, and debugging
Se
information.
8 channel8 non spec. Receives log, trap, and debugging
lU
information.
9 channel9 non spec. Receives log, trap, and debugging
information.
a
rn
Log information with severity level equal to or higher than warnings is allowed to
r
Log information is not allowed to be output to the trap buffer and the SNMP
module.
All trap information is allowed to be output to the console, monitor terminal, log host
and log file.
Trap information with severity level equal to or higher than warnings is allowed
to be output to the trap buffer and SNMP module.
Trap information is not allowed to be output to the log buffer.
info-center source
To access the information center, use the following command:
info-center source [{ module-name | default } channel {
channel-number | channel-name } [ debug{ level severity |
state state } * | log { level severity | state state } * |
trap { level severity | state state }]*
y
Parameters:
nl
O
module-name
Specifies the output rules of the system information of the specified modules. For
Se
instance, if information on the ARP module is to be output, you can configure
this argument as ARP. You can use the info-center source ? command to view
lU
the modules supported by the device.
default
a
This specifies the output rules of the system information of all the modules
rn
allowed to output the system information, including all modules displayed using
te
debug
Displays debugging information.
P
log
H
trap
Fo
You can use the display info-center command to view the operational status of
information center, the configuration of information channels, and the format of the
time stamp.
[S5800(4)]display info-center
Information Center:enabled
Log host:
10.1.1.100, port number : 514, host facility : local0,
channel number : 2, channel name : loghost
Console:
channel number : 0, channel name : console
Monitor:
channel number : 1, channel name : monitor
y
nl
SNMP Agent:
channel number : 5, channel name : snmpagent
O
Log buffer:
Se
enabled,max buffer size 1024, current buffer size 512,
current messages 512, dropped messages 0, overwritten messages
lU
60
channel number : 4, channel name : logbuffer
a
Trap buffer:
rn
syslog:
r
Management scenario
g 2b—HP A-Series (cont.)
4 Generate key pair and enable SSH server
public-key local create rsa
ssh server enable Any drawback to disabling Telnet?
Undo telnet server enable
y
authorization-attribute level 3
nl
quit
O
What user characteristic is supported on these switches but not on Cisco?
Se
Figure 2-20: Management scenario 2-b—HP A-Series (cont.)
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Q3: What would you recommend instead of the user privilege level 3 command?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Command levels on A-Series switches are divided into four levels, visitor, monitor,
system, and manager, corresponding to the numbers 0-3, respectively. The system
y
administrator can change the command level of a user if necessary. The default
nl
command level for the console user interface is 3, and 0 for the other user interfaces.
O
Q4: What user characteristic is supported on HP A-Series switches but is not
available on Cisco?
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
Extend the standard linkup/linkdown traps defined in RFC
nl
snmp-agent trap if-mib link extended
O
Figure 2-21: Management scenario 2-b—HP A-Series (cont.)
Se
To enable an interface to send linkup/linkdown traps when its state changes, you
need to enable the trap function both on the interface and globally.
lU
Use these commands to enable or disable the trap function on an interface:
a
y
Figure 2-22: Management scenario 2b—HP A-Series (cont.)
nl
To configure the agent in SNMP v3, complete the following steps:
O
1. Configure an SNMP group.
Se
2. Configure a user associated with that group, authentication mode and
password, and the encryption mode and password.
lU
The configuration is very similar to that on a Cisco switch.
a
number ]
H
Alternatively you can set a group with restricted MIB right access:
r
For example, the user can read and write the objects under the interface node with
Fo
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
What command displays logging on the terminal? Logging buffer?
nl
Figure 2-23: Management scenario 2c—HP E-Series
O
This slide shows a similar configuration on HP E-Series switches.
Se
The include-credentials command enables various security settings to be included
and viewed in the running-configuration instead of flash only. These settings include:
lU
Local manager/operator usernames and passwords for switch access
a
When you enter the include-credentials keywords, the following cautions and
P
action will make irreversible changes to the password and ssh public-key
Fo
storage.
It will affect *all* stored configurations, which might need to be updated.
Those credentials will no longer be readable by older software revisions.
It also may break some of your existing user scripts. Continue?[y/n] y
**** CAUTION ****
This will insert possibly sensitive information in switch configuration files,
and as a part of some CLI commands output. It is strongly recommended that you
use sftp rather than tftp for transfer of the configuration over the network,
and that you use the web configuration interface only with SSL enabled.
Proceed?[y/n]y
y
nl
time timezone -480 daylight-time-rule continental-us-and-canada
O
For your reference, the complete syntax for this command is listed below.
time timezone < -720 - 840 > time daylight-time-rule < none |
Se
alaska | continental-us-and-canada | middle-europe-and-portugal |
southern-hemisphere | western-europe | user-defined>
lU
Q1: What command displays logging on the terminal?
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
By default, an E-Series switch sends debug messages to the logging buffer. If this
default setting has been changed, enter:
Switch# debug destination buffer
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
SSH v2 is enabled by default on HP E-Series switches, but you must generate a key
pair.
y
You can define two password levels on E-Series switches:
nl
operator level (read/monitor/user level)
O
hp (config)# password operator plaintext / sha-1
topsecret
manager level (write/privileged/admin level)
Se
lU
hp (config)# password manager plaintext / sha-1
verysecret
a
The password you enter determines the management level of your session.
rn
te
In
P
r H
Fo
y
On what port do you want to disable snmp trap link up/down?
nl
O
Figure 2-25: Management scenario 2c—HP E-Series (cont.)
Se
Q: On what port do you want to disable SNMP trap link up/down?
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
You may choose to disable link traps on all access-layer switch ports, if leaving the
trap active on uplink ports generates too many events, and enable link traps only on
P
y
nl
Figure 2-26: Management scenario 2c—HP E-Series (cont.)
O
The SNMP v3 predefined group managerpriv allows full read-write access and
requires the user profile to be set with authentication and encryption.
Se
There are seven other predefined groups, as shown in the table below. Only the Ver3
lU
groups are intended for SNMPv3 users.
View View
rn
Authentication
Operatorauth Ver3 Must have OperatorReadView DiscoveryView
P
Authentication
H
Notes
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
LLDP LLDP
HP A-Series
HP A-Series
y
LLDP enabled
LLDP not enabled
CDP Enabled
nl
CDP not enabled
X : not interpreted
O
Figure 2-27: IEEE 802.1AB LLDP and CDP
Se
LLDP has become the industry standard and is implemented by all vendors. However,
you may encounter older equipment that uses CDP. The CDP and LLDP support on
lU
each platform is described below.
a
HP E-Series
rn
A Cisco switch is visible in the LLDP and CDP MIBs because entries are cross
H
populated.
r
HP A-Series
Fo
The CDP feature is meant to be used with Cisco IP phones that support CDP v2 as
provisioning mechanism. When used with a switch neighbor, this feature does not
send CDP frames. With an IP Phone it works in Tx/Rx.
Cisco
By default, CDP is enabled on all ports.
Support for LLDP has been introduced on Cisco Catalyst switches series 2950,
3760, 3750 switches running 12.2(37)SE without SNMP support and on Cisco
Catalyst 6500 running 12.2(33)SXH.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
information interface <port-id>
nl
Figure 2-28: Useful show and display commands
O
Refer to these commands as you set up or troubleshoot LLDP or CDP.
Notes
Se
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
X=100 on Server_1
y
Server_1 Client_1 X=101 on Client_1
nl
IMC XP
O
Px=Gigabit Port,
Px= 10 Gigabit port
Se
Figure 2-29: Lab 2.1: Management
lU
This figure shows the configuration for this lab. Your facilitator will assign you a pod
number. Record that number here.__________________________________________
a
rn
te
In
P
r H
Fo
Lab debrief
What useful display and show commands did you learn?
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
nl
O
What are you key insights? Did you learn anything new?
____________________________________________________________________
Se
lU
____________________________________________________________________
a
____________________________________________________________________
rn
te
____________________________________________________________________
In
____________________________________________________________________
P
H
___________________________________________________________________
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
What did you learn that you can apply in a real-world environment?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
___________________________________________________________________
nl
O
___________________________________________________________________
Se
a lU
rn
te
In
P
r H
Fo
Module 2 summary
In this module, you have learned how to:
Configure HP A-Series, HP E-Series, and Cisco switches so that they can be
automatically discovered by IMC
Define parameters to secure access and management of these switches
Enable LLDP to permit mutual link layer discovery
Record your key insights below.
_________________________________________________________________________
_________________________________________________________________________
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Learning check
Q1: Describe an HP A-Series switch’s support for LLDP and CDP.
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
Q2: Which parameters does a switch require in order for IMC to discover it?
Se
_________________________________________________________________________
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
H
Q3: You want to force management users for your Cisco and HP A-Series switches to
r
Fo
log in to the CLI using SSH. What steps must you complete on each type of switch?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Module 3 objectives
After completing this module, you will be able to:
Configure and verify VLANs on a multivendor network
Configure HP A-Series and E-Series switches for VLAN interoperability with Cisco
switches
Notes
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Rev. 11.12 3 –1
HP Networking Interoperability
Notes
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
_________________________________________________________________________
a lU
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
3 –2 Rev. 11.12
VLANs
Terminology
Switch Port
Cisco HP A-Series HP E-Series
Role
End nodes:
PCs, printers, and Access port Access port Untagged port
so on
Access port with Hybrid port Untagged in data
PC + IP Phone auxiliary VLAN VLAN; tagged in
(voice) or trunk port voice VLAN
Switch-to-switch
with multiple Trunk port Trunk port Tagged port
VLANs
Port channel Bridge aggregation
Link aggregation Trunk port
interface interface
y
nl
Figure 3-1: Terminology
O
On HP A-Series switches, access ports and trunk ports have similar definitions as they
Se
do on Cisco switches. However, by default, trunk ports on HP A-Series switches do
not carry any VLANs; they must be permitted.
lU
A hybrid port is a concept specific to HP A-Series switches: like trunk ports, a hybrid
port may be assigned to multiple VLANs. The VLANs can be tagged and untagged.
a
Note that the default VLAN on HP A-Series switches is equivalent to the native VLAN
In
on Cisco switches.
P
Access port
H
The following describes how traffic is handled when received and transmitted from
access ports on HP A-Series switches.
r
Fo
Rev. 11.12 3 –3
HP Networking Interoperability
Trunk port
The following describes how traffic is handled when received and transmitted from
trunk ports on HP A-Series switches.
Actions in the inbound direction
If the frame is untagged, check whether the default VLAN is permitted on
the port.
If the fame is permitted, tag the frame with the default VLAN tag.
If the frame is not permitted, drop the frame.
If frame is tagged:
Receive the frame if its VLAN is permitted on the port.
y
Drop the frame if its VLAN is not permitted on the port.
nl
Actions in the outbound direction
O
Remove the tag and send the frame if it carries the default VLAN tag and
the port is assigned to the default VLAN.
Se
Send the frame without removing the tag if its VLAN is carried on the port
lU
but is different from the default one.
Hybrid port
a
rn
The following describes how traffic is handled when received and transmitted from
trunk ports on HP A-Series switches.
te
the port.
H
3 –4 Rev. 11.12
VLANs
2
Trunk ports 47, 48
Native VLAN 99
Allowed VLANs 100, 200-203
1
VLAN creation:
Management 99 4
IP address 10.1.99.10/24 Voice port
Voice 100 Ports 25 - 46
Data 200-203
IP phone PC
PC
PC
3 Access port
Ports 1 – 24
y
Assigned to
nl
VLAN 200
O
Figure 3-2: VLAN configuration scenario
Se
This is a simple scenario to show an identical VLAN configuration on HP A-Series, E-
Series, and Cisco switches. The scenario demonstrates:
lU
Creating multiple VLANs, including a management VLAN for infrastructure
device management address, a voice VLAN for VoIP traffic, and data VLANs for
a
user traffic
rn
tagged ports)
In
them
H
Rev. 11.12 3 –5
HP Networking Interoperability
Trunk ports
Cisco(config)# interface range gigabit 0/47 - 48
Cisco(config-if-range)# switchport encapsulation dot1q
Cisco(config-if-range)# switchport mode trunk
Cisco(config-if-range)# switchport trunk native vlan 99
y
Cisco(config-if-range)# switchport trunk allowed vlan 1,100,200-203
nl
O
Figure 3-3: VLAN configuration on Cisco: VLAN creation and trunk ports
Se
To configure a trunk port on Cisco switches, you must specify dot1q encapsulation.
The native VLAN is 1 by default, and all VLANs are permitted by default.
a lU
rn
te
In
P
r H
Fo
3 –6 Rev. 11.12
VLANs
Voice ports
Cisco(config)# interface range gigabit 0/25 - 46
Cisco(config-if-range)# switchport mode access
Cisco(config-if-range)# switchport access vlan 200
Cisco(config-if-range)# switchport voice vlan 100
y
nl
The slide indicates how you configure a port as an access port in a VLAN. On ports
that connect to voice devices, you must configure the voice VLAN. You also configure
O
the access VLAN. The switch distinguishes the traffic from the phone, which it assigns
Se
to the voice VLAN, from the traffic from a workstation, which it assigns to the access
VLAN.
lU
Q1: How do you list VLANs?
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
Rev. 11.12 3 –7
HP Networking Interoperability
y
nl
Gi0/3 on 802.1q trunking 1
O
Port Vlans allowed on trunk
Gi0/1 1-4094
Se
Gi0/2 1-4094
Gi0/3 1-4094
lU
Port Vlans allowed and active in management domain
a
Gi0/1 1,10,20,30,40,100,200
rn
Gi0/2 1,10,20,30,40,100,200
te
Gi0/3 1,10,20,30,40,100,200
Port Vlans in spanning tree forwarding state and not pruned
In
Gi0/1 1,10,20,30,40,100,200
P
Gi0/2 1,10,20,30,40,100,200
H
Gi0/3 1,10,20,30,40,100,200
r
Fo
3 –8 Rev. 11.12
VLANs
y
nl
Capture VLANs Allowed: ALL
O
Protected: false
Unknown unicast blocked: disabled
Se
Unknown multicast blocked: disabled
Appliance trust: none
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 3 –9
HP Networking Interoperability
If a routing switch:
Cisco(config)# ip routing
Cisco(config)# int vlan 100
Cisco(config-if)# ip address 10.1.100.10 255.255.255.0
Cisco(config)# int vlan 200
Cisco(config-if)# ip address 10.1.200.10 255.255.255.0
Cisco(config)# int vlan 201
Cisco(config-if)# ip address 10.1.201.10 255.255.255.0
Cisco(config)# int vlan 202
y
Cisco(config-if)# ip address 10.1.202.10 255.255.255.0
nl
Cisco(config)# int vlan 203
Cisco(config-if)# ip address 10.1.203.10 255.255.255.0
O
Figure 3-5: VLAN routing on Cisco
Se
This slide shows an example routing configuration on a Cisco switch.
lU
To list IP interfaces and IP routes, use the following commands:
Cisco#sh ip int brief
a
rn
In most environments, you need to set up DHCP relay on IP interfaces to allow clients
in that VLAN to receive DHCP addresses from servers in another VLAN. The slide
y
nl
displays the correct commands.
O
To verify the DHCP relay setup, enter this command:
Cisco-A# show ip interface vlan <ID>
Se
The output for VLAN 100 in this example is:
lU
Vlan100 is up, line protocol is up
Internet address is 10.2.3.1/24
a
Trunk ports
[HP]interface gigabit 1/0/47
[HP-gigabitethernet1/0/47]port link-type trunk
[HP-gigabitethernet1/0/47]port trunk pvid vlan 99
[HP-gigabitethernet1/0/47]undo port trunk permit vlan 1
[HP-gigabitethernet1/0/47]port trunk permit vlan 99 to 100 200 to 203
Figure 3-7: VLAN configuration on HP A-Series: VLAN creation and trunk ports
y
nl
This slide shows how to create VLANs on HP A-Series switches.
O
When you create a trunk port on an HP A-Series switch, VLAN 1 is the only VLAN
enabled by default. All other VLANs have to be permitted as shown in the slide.
Se
a lU
rn
te
In
P
r H
Fo
Voice ports
[HP]port-group manual pc-phone-1
[HP-port-group-manual-pc-phone-1]group-member Gi 1/0/25 to Gi 1/0/46
[HP-port-group-manual-pc-phone-1]port link-type hybrid
[HP-port-group-manual-pc-phone-1]port hybrid vlan 200 untagged
[HP-port-group-manual-pc-phone-1]port hybrid vlan 100 tagged
[HP-port-group-manual-pc-phone-1]port hybrid pvid vlan 200
y
[HP-port-group-manual-pc-phone-1]undo port hybrid vlan 1
[HP-port-group-manual-pc-phone-1]voice vlan 100 enable
nl
O
Figure 3-8: VLAN configuration on HP A-Series: Access and voice ports
Se
You can define an access port in one of the following ways. This first method is from
the port:
lU
[HPA]interface gigabit 1/0/1
a
[HPA-gigabitethernet1/0/1] port link-type access
rn
The second method from specifying the access port is from the VLAN:
te
In
[HPA]vlan 200
[HPA-vlan200]port gigabitethernet 1/0/1 to gi 1/0/24
P
You need to configure ports that connect to voice devices as hybrid ports.
H
this mode, the switch identifies IP phones by their MAC addresses, which it detects in
Fo
y
Description: VLAN 0100
nl
Name: VLAN 0100
O
Tagged Ports:
Bridge-Aggregation1
Se
GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3
lU
GigabitEthernet1/0/4 GigabitEthernet1/0/5 GigabitEthernet1/0/12
Untagged Ports: none
a
rn
VLAN ID: 1
P
y
nl
GigabitEthernet1/0/4 GigabitEthernet1/0/5
O
Untagged Ports: none
VLAN ID: 20
Se
VLAN Type: static
Route Interface: not configured
lU
Description: VLAN 0020
a
Name: VLAN 0020
rn
Tagged Ports:
te
Bridge-Aggregation1
GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3
In
GigabitEthernet1/0/4 GigabitEthernet1/0/5
P
To display the status and type (trunk, access, hybrid) of all ports, enter:
r
Fo
To display all trunk ports and the permitted VLANs on each one, enter:
<HPA>display port trunk
Interface PVID VLAN passing
BAGG1 1 1, 10, 20, 30, 40, 99-105, 200-205, 300-306,
y
400-404, 488, 499
nl
GE1/0/1 1 1, 10, 20, 30, 40, 99-105, 200-205, 300-306,
O
400-404, 488, 499
GE1/0/2 1 1, 10, 20, 30, 40, 99-105, 200-203, 300-306
Se
GE1/0/3 1 1, 10, 20, 30, 40, 99-105, 200-203, 300-306
lU
GE1/0/4 1 1, 10, 20, 30, 40, 99-105, 200-205, 300-306,
400-404, 488, 499
a
Untagged:200
H
Untagged:200
Fo
If routing switch:
[HP] ip routing (enabled by default)
[HP] interface vlan 100
[HP-vlan-interface-100] ip address 10.1.100.10 24
[HP-vlan-interface-100] interface vlan 200
[HP-vlan-interface-200] ip address 10.1.200.10 24
[HP-vlan-interface-200] interface vlan 201
[HP-vlan-interface-201] ip address 10.1.201.10 24
y
[HP-vlan-interface-201] interface vlan 202
[HP-vlan-interface-202] ip address 10.1.202.10 24
nl
[HP-vlan-interface-202] interface vlan 203
[HP-vlan-interface-203] ip address 10.1.203.10 24
O
Figure 3-9: VLAN routing on HP A-Series
Se
This slide shows two example setups for IP routing on an A-Series switch. The first set
lU
of commands configures the management IP address and default gateway for a non-
routing switch.
a
The second set of commands configures a routing switch with IP addresses on each
rn
VLAN interface. The switch can then route between those VLANs as long as routing
is enabled.
te
To view information about the VLAN interfaces that have been assigned IP
In
addresses, enter:
P
(s): spoofing
Fo
Add DHCP server 10.1.1.100 and 101 into DHCP server group 1.
[HP] dhcp relay server-group 1 ip 10.1.1.100
[HP] dhcp relay server-group 1 ip 10.1.1.101
y
[HP] interface vlan-interface 200
nl
[HP-Vlan-interface200] dhcp select relay
[HP-Vlan-interface200] dhcp relay server-select 1
O
Figure 3-10: DHCP relay on HP A-Series
Se
To configure DHCP relay on HP A-Series switches, you must enable DHCP. Then
lU
create a DHCP server group and specify your servers. Finally, enable DHCP relay on
specific interfaces, indicating the DHCP server group.
a
To verify the VLANs on which you have enabled DHCP relay, enter this command:
rn
Vlan-interface100 1
H
Vlan-interface200 1
Vlan-interface201 1
r
Fo
To verify the IP addresses of the configured DHCP servers, enter this command:
[HPA] display dhcp relay server-group 1
Voice VLAN
ProCurve(config)# vlan 100
ProCurve(vlan-100)# voice vlan
ProCurve(vlan-100)# tagged all
y
Figure 3-11: VLAN configuration on HP E-Series
nl
On HP E-Series switches, you take a slightly different approach toward defining
O
VLANs. You do not define a port as a particular type. Instead, you specify exactly
Se
which VLANs are tagged or untagged on each port. Figure 3-11 shows an example
configuration for several different types of VLAN on an E-Series switch.
a lU
rn
te
In
P
r H
Fo
If not routing:
ProCurve(config)# ip default-gateway 10.1.99.1
If routing:
ProCurve(config)# ip routing
y
nl
Figure 3-12: VLAN routing on HP E-Series
O
On HP E-Series switches:
Se
The IP address is defined in the VLAN itself, playing the role of “int vlan“
IP routing is not enabled by default
lU
ProCurve(config)# ip routing
ProCurve(config)# ip udp-bcast-forward
y
nl
On HP E-Series switches, you configure DHCP relay by configuring helper addresses
O
in the VLANs that require this feature. You must also enable routing and UDP
broadcast forwarding (the second is enabled by default).
Se
To verify the configuration, enter this command:
lU
HP# show ip helper-address
IP Helper Addresses
rn
VLAN: 1
te
IP Helper Address
In
-----------------
VLAN: 100
P
IP Helper Address
H
-----------------
r
Fo
10.1.1.100
10.1.1.101
VLAN: 200
IP Helper Address
-----------------
10.1.1.100
10.1.1.101
VLAN: 201
IP Helper Address
-----------------
10.1.1.100
10.1.1.101
____________________________________________________________________
____________________________________________________________________
y
nl
____________________________________________________________________
O
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
____________________________________________________________________
In
P
____________________________________________________________________
H
____________________________________________________________________
r
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
VLAN creation and port pruning VLAN creation and port pruning
y
VTP roles: server, client, transparent GVRP roles: all switches are equal
nl
O
Figure 3-14: VTP versus GVRP
Se
This table compares Cisco’s VLAN Trunking Protocol (VTP) and the industry-standard
GARP VLAN Registration Protocol (GVRP). (GARP stands for Generic Attribute
lU
Registration Protocol.)
a
rn
te
In
P
r H
Fo
Figure 3-15 explains how GVRP and VTP function when they are implemented on the
same network. The protocols both function because their frames pass through devices
that do not understand those frames.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
GVRP operations p
2. Port 2 receives
Switch1 with static
advertisement
VLANs (VID= 1, 2, & 3). 4. A port is
of VIDs 1, 2, & 3 & becomes a
Port 1 is member of VIDs 1, statically configured
member of VIDs 1, 2, & 3.
2, & 3. to be a member of
3. Port 3 advertises VIDs 1,
1. Port 2 advertises VID 3.
2, & 3, but port 3 is NOT a
VIDs 1, 2, and 3.
member of VIDs 1, 2, & 3 at
this point.
1 2 3 4
y
6. Port 3 receives advertisement
8. Port 1 receives of VID 3 AND becomes
nl
5. Port 4 advertises
advertisement a member of VID 3. (Still not a VID 3.
of VID 3 member of VIDs 1 & 2.)
O
7. Port 2 advertises VID 3.
Se
Figure 3-16: GVRP operations
When a GVRP-aware switch port learns a VLAN ID (VID) through GVRP from another
lU
device, the switch begins advertising that VID out all of its ports except the port on
which the VID was learned.
a
rn
When GVRP is enabled on a switch, the VID for any static VLANs configured on the
switch is advertised (using Bridge Protocol Data Units [BPDUs]) out all ports,
In
A GVRP-aware port on another device that receives the advertisements over a link
H
can dynamically join the advertised VLAN. A dynamic VLAN (that is, a VLAN
learned through GVRP) is tagged on the port on which it was learned. Also, a GVRP-
r
Fo
enabled port can forward an advertisement for a VLAN it learned from other ports
on the same switch (internal source), but the forwarding port will not itself join that
VLAN until an advertisement for that VLAN is received through a link from another
device (external source) on that specific port
A GVRP-aware port receiving advertisements has these options:
If there is not already a static VLAN with the advertised VID on the receiving
port, then the port can dynamically create the VLAN and become a member.
If the switch already has a static VLAN assignment with the same VID as in the
advertisement and the port is configured to Normal (HP A-Series) or Auto (HP E-
series) for that VLAN, then the port will dynamically join the VLAN and begin
handling that VLAN’s traffic.
Ignore the advertisement for that VID.
Don’t participate in that VLAN.
Rev. 11.12 3 –25
HP Networking Interoperability
Note also that a port belonging to a tagged or untagged static VLAN has these
configurable options:
Send VLAN advertisements and also receive advertisements for VLANs on other
ports and dynamically join those VLANs.
Configuration on HP switches: Mode Auto on HP E-Series, Normal on HP A-
Series
Send VLAN advertisements, but ignore advertisements received from other ports.
Configuration on HP switches: Mode Block on HP E-Series, Fixed on HP A-
Series
Avoid GVRP participation by not sending advertisements and dropping any
advertisements received from other devices.
y
Configuration on HP switches: Mode Disable on HP E-Series, Forbidden on
nl
HP A-Series
O
Se
a lU
rn
te
In
P
r H
Fo
GVRP
– GVRP BPDUs go through Cisco switches and also switches that are not
GVRP aware.
– Requires VLAN 1.
– Trunk port dynamically becomes part of a VLAN when receiving GVRP
join.
– And if VLAN is created locally (that is static)
– If trunk does not enable VLAN, VLANs are not learned via GVRP
HP A-Series:
HP E-Series
Enable GVRP globally and on trunk ports
Enable GVRP globally
y
[HP-A] gvrp
HP-E(config)# gvrp
[HP-A] int gi 1/0/1
nl
[HP-A-gigabitethernet1/0/1] gvrp
O
Figure 3-17: GVRP
Se
When GVRP is enabled on a switch, the VID for any static VLANs configured on the
switch is advertised (using Bridge Protocol Data Units (BPDUs) out all ports,
lU
regardless of whether a port is up or assigned to any particular VLAN.
a
A GVRP-aware port on another device that receives the advertisements over a link
rn
can dynamically join the advertised VLAN. A dynamic VLAN (that is, a VLAN
learned through GVRP) is tagged on the port on which it was learned. Also, a GVRP-
te
enabled port can forward an advertisement for a VLAN it learned about from other
In
ports on the same switch (internal source), but the forwarding port will not itself join
that VLAN until an advertisement for that VLAN is received through a link from
P
On HP A-Series switches, you must enable GVRP on trunk ports. Also make sure all
VLANs are permitted on trunk ports to allow them to learn the GVRP VLAN. The HP
r
Fo
A-Series switch ports support the following modes for VLAN learning:
[HP-A-gigabitethernet1/0/1] gvrp registration normal
[HP-A-gigabitethernet1/0/1] gvrp registration forbidden
[HP-A-gigabitethernet1/0/1] gvrp registration fixed
y
access ports (default setting on HP A-Series)
nl
Figure 3-18: GVRP and VTP: Pro and cons
O
Figure 3-18 lists some of the pros and cons of using GVRP and VTP.
Se
Create VLANs automatically from one switch to all others:
lU
Pros: Automatic creation saves time and can reduce configuration errors.
Cons: VLANs are created everywhere; there is no control.
a
rn
If there are a lot of VLANs on the network, the VLAN limit on some
switches might be exceeded.
In
Delete VLANs:
P
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
3 Static VLANs
Static VLANs
10,20,30,40
10,20,30,40
50,60, 70,80
Trunk ports
Permitted VLANs: ALL
y
nl
What do you think of these three setups? With a
Cisco switch? With an HP switch?
O
Figure 3-19: Trunk and static VLANs: A best practice?
Se
In its best practices for LANs, Cisco recommends allowing only permitted VLANs on
lU
trunk ports, for two reasons.
The first is to reduce broadcast domain extension.
a
rn
The second is to reduce CPU demand. Because of VTP, a switch learns all
VLANs, creating one instance per VLAN in PVST, which is CPU intensive.
te
Is the best practice the same for HP switches? MSTP only uses one BPDU for all
In
instances, so the number of VLANs does not change CPU time for MSTP. Even if all
VLANs are allowed on trunk ports, only the frames of the configured VLANs will be
P
received and transmitted, so broadcast domains are not extended if VLANs are not
H
set on a device. If VLANs are not the same on both sides, as in case 3, broadcast
r
frames for VLANs 50, 60, 70 and 80 will be dropped when received by the right
Fo
switch.
Conclusion: if VLANs are not set dynamically on HP switches, the trunk ports can be
set with all VLANs permitted.
P1 P2 P1 P2
Uplinks
Untagged in VLAN 1,
Tagged in VLAN 11, 12 & 13
P1 P2
P2
HP-C P1 HP-E
A-Series E-Series
P3 P3
Server_1 Client_1
y
nl
Trunk 802.1q port Trunk/802.1q port
O
Connected Not Connected
To be configured
for later labs
Se
Figure 3-20: Configuring VLANs
lU
You will now complete Lab 3.1: Configuring VLANs. Use the space below to record
any instructions your facilitator gives you for this lab.
a
rn
________________________________________________________________________
te
________________________________________________________________________
In
P
________________________________________________________________________
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Lab debrief
What commands display ports status, port role (access, trunk, hybrid), VLANs, ports
in VLANS?
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
nl
____________________________________________________________________
O
____________________________________________________________________
___________________________________________________________________
te
___________________________________________________________________
In
P
___________________________________________________________________
r H
___________________________________________________________________
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
___________________________________________________________________
nl
O
___________________________________________________________________
Se
lU
What did you learn that can be applied in the field?
___________________________________________________________________
a
rn
___________________________________________________________________
te
In
___________________________________________________________________
P
___________________________________________________________________
r H
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Module 3 summary
In this module, you have learned how to configure VLANs, configure access, trunk
and voice ports, and compare VTP and GVRP. Write down any thoughts you may
have while your facilitator reviews the content of this module.
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
Se
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
_______________________________________________________________________
In
P
_______________________________________________________________________
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Learning check
Q1: What is a major difference between trunk ports on Cisco and HP A-Series?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
nl
O
___________________________________________________________________
Se
___________________________________________________________________
lU
___________________________________________________________________
a
rn
Q2: Can you remove VLAN 1 on trunk ports on HP switches? Explain your answer.
te
___________________________________________________________________
In
___________________________________________________________________
P
H
___________________________________________________________________
r
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Q3: Can you assign a VLAN to an access port with GVRP or VTP?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
___________________________________________________________________
nl
O
___________________________________________________________________
Se
___________________________________________________________________
lU
Q4: Would you enable all VLANs on trunk ports in a mixed environment with HP
a
___________________________________________________________________
te
In
___________________________________________________________________
P
___________________________________________________________________
r H
___________________________________________________________________
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
3 –36 Rev. 11.12
Implementing MSTP
on Cisco and HP Switches
Module 4
Module 4 objectives
After completing this module, you will be able to:
Explain key parameters in Multiple Spanning Tree Protocol (MSTP)
implementation and explain how MSTP differs from Cisco’s Per VLAN Spanning
Tree Plus (PVST+)
y
Given specific network environment requirements, differentiate between key
nl
design options and make the right choices when implementing MSTP to create a
redundant network
O
Configure Cisco and HP switches for MSTP interoperability
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 4 –1
HP Networking Interoperability
MSTP review
In this section of the module, you will review basic MSTP concepts such as MSTP
regions, load balancing, and VLAN setup in an MSTP environment. Use the space
below to record your thoughts as your facilitator asks you questions about your
experience in configuring MSTP.
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
_______________________________________________________________________
nl
O
_______________________________________________________________________
Se
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
_______________________________________________________________________
r H
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
4 –2 Rev. 11.12
Implementing MSTP on Cisco and HP Switches
MSTP regions—Review 1
Region Name = “Region1" Region Name = “Region1"
Revision # = 1 Revision # = 1
Instance 1 = VLANs 1, 12 Instance 1 = VLANs 1, 12
Instance 2 = VLANs 11, 13 Instance 2 = VLANs 11, 13
1. What MSTP
parameters must be set
on all switches to be in
MSTP Region
an MSTP Region?
y
Instance 2 = VLANs 11, 13 Instance 2 = VLAN 11, 13 13
nl
2. What are the default 3. What are valid reasons to put
MSTP Region parameters? switches in the same MSTP Region?
O
Figure 4-1: MSTP regions—Review 1
Se
You will now review Multiple Spanning Tree Protocol (MSTP) regions. Configuring the
lU
regions correctly is key to designing networks that include switches from different
vendors.
a
MSTP was defined by the IEEE 802.1s standard, which has been incorporated
te
into 802.1Q-2003.
In
Q1: What MSTP parameters must be set for all switches to be in the same MSTP
r
region?
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Rev. 11.12 4 –3
HP Networking Interoperability
Q3: Why would you want to put all switches within the same MSTP region?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
y
_____________________________________________________________________
nl
O
Se
a lU
rn
te
In
P
r H
Fo
4 –4 Rev. 11.12
Implementing MSTP on Cisco and HP Switches
MSTP regions—Review 2
Region Name = “Region1 " Region Name = “Region1 "
Revision # = 1 Revision # = 1
Instance 1 = VLANs 1, 12 Instance 1 = VLANs 1, 12
Instance 2 = VLANs 11, 13 Instance 2 = VLANs 11, 13
1. If there is a mistake
Region 1
in the switch‘s MSTP
configuration, what
happens?
Region 2
y
Instance 1 = VLANs 1, 12
Instance 2 = VLANs 11, 13
Instance 2 = VLAN 11 ,1313
nl
Figure 4-2: MSTP regions—Review 2
O
Q1: If there is a mistake in the switch’s MSTP configuration, what happens?
Se
_____________________________________________________________________
lU
_____________________________________________________________________
a
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
Q2: Besides mistakes in the region name or revision number, what conditions could
H
_____________________________________________________________________
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Rev. 11.12 4 –5
HP Networking Interoperability
MSTP BPDUs
RSTP BPDUs
Compatible
MSTP
Region
This switch could be:
• A Cisco Switch using Rapid
PVST+ or PVST+
CST (operates • A switch in RSTP/STP mode
y
like STP/RSTP) STP/RSTP
• A switch in another MSTP region
nl
(MSTP BPDUs used)
O
Figure 4-3: Which BPDUs are used?—Review 3
Se
Q1: Which Bridge Protocol Data Units (BPDUs) are used inside and outside the MSTP
region?
lU
_____________________________________________________________________
a
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
_____________________________________________________________________
r H
_____________________________________________________________________
Fo
_____________________________________________________________________
Note
MSTP is backward compatible with RSTP and STP. A STP- or RSTP-capable switch
can interpret the first part of the MSTP BPDU, which includes CIST parameters,
such as the IST root bridge ID, which are used for the CST root bridge election.
4 –6 Rev. 11.12
Implementing MSTP on Cisco and HP Switches
MSTP BPDUs—Review 4
1. Are MSTP BPDUs tagged?
2. Are they attached to a VLAN?
3. On a trunk port, is it required to set an untagged VLAN
for MSTP BPDUs?
4. What is the destination Mac address of an MSTP BPDU?
5. Does an MSTP BPDU carry information about all
instances?
y
CIST data IST data MSTI data
01:80:c2:00:00:00
nl
Figure 4-4: MSTP BPDUs—Review 4
O
Q1: Are MSTP BPDUs tagged? ______________________________________________
Se
Q2: Are MSTP BPDUs attached to a VLAN?
lU
_____________________________________________________________________
a
_____________________________________________________________________
rn
te
_____________________________________________________________________
In
_____________________________________________________________________
P
H
Q3: On a trunk port, is it required to set an untagged VLAN for MSTP BPDUs?
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Rev. 11.12 4 –7
HP Networking Interoperability
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
y
_____________________________________________________________________
nl
O
Note
Se
The switch will not be the BPDU’s destination when MSTP is disabled. In this
case, the MSTP BPDU will be an untagged frame and will be forwarded in the
untagged VLAN. This is true for both HP A-Series and E-Series switches.
lU
Q5: Does each MSTP BPDU include information about all instances? _____________
a
rn
MSTP was originally introduced in 802.1s, but was later added to the 802.1Q-2001
amendment. MSTP enhances RSTP, enabling switches to establish different spanning
In
tree topologies for different VLANs. Unlike PVST+ and Rapid PVST+, however, MSTP
P
does not create per-VLAN spanning trees. Instead, you assign VLANs to instances,
and MSTP creates per-instance spanning trees. In fact, MSTP is not VLAN aware in
H
that every link participates in every spanning tree instance (unless spanning tree is
r
disabled on it) even if that does not carry any VLANs that are in that instance.
Fo
MSTP BPDUs, which are always sent untagged, include information about all
instances, which means that the protocol sends the same number of BPDUs no matter
how many VLANs a link supports. The MSTP BPDU is backward compatible with
RSTP (and STP BPDU); it simply includes extra fields that contain the MSTP region
and instance information. The portion of the BPDU that is interpreted by RSTP/STP-
capable devices includes common internal spanning tree (CIST) parameters, which
mimic the parameters included by an RSTP switch. However, the parameters are for
the MSTP region’s IST. For example, the switch includes the IST root bridge ID.
The STP/RSTP and MSTP switches (as well as MSTP switches in different regions)
establish a single common spanning tree (CST), which is much like an RSTP topology.
In the CST, each MSTP region appears much like a single bridge.
4 –8 Rev. 11.12
Implementing MSTP on Cisco and HP Switches
RSTP
blocked port
MSTP BPDUs
RSTP BPDUs
Compatible
y
IST Instance root MSTP Region B
priority 4096
nl
IST setup is key for interoperability with other switches including Cisco
O
Figure 4-5: Common spanning tree—Review 5
Se
Q: Which MSTP parameters affect the spanning tree outside of the MSTP region?
lU
_____________________________________________________________________
a
rn
_____________________________________________________________________
te
_____________________________________________________________________
In
P
_____________________________________________________________________
H
_____________________________________________________________________
r
Fo
_____________________________________________________________________
IST parameters—in particular the ID (priority and MAC address) of the IST root—are
key to managing interoperability outside an MSTP region, particularly with switches
running PVST+ or Rapid PVST+.
The MSTP region’s IST acts like a single virtual switch in the Common Spanning Tree
(CST), which enables the interoperation of MSTP, STP, and RSTP. In general, the CST
consists of each MSTP region’s IST and the Single Spanning Tree (SST) domains
formed by STP and RSTP switches. The CST creates a single loop-free path between
all of the IST instances and all of the SST domains.
Rev. 11.12 4 –9
HP Networking Interoperability
IST instance
root secondary
root
y
nl
O
Figure 4-6: What setup is required to enable load balancing?—Review 6
Se
Q1: What setup is required to enable load balancing?
lU
_____________________________________________________________________
a
_____________________________________________________________________
rn
te
_____________________________________________________________________
In
_____________________________________________________________________
P
H
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
VLANs
1-4094 VLANs
11, 13
VLANs
2-11, VLANs VLANs
14-4094 1, 12 11, 13
y
nl
IST =“Internal Spanning-Tree”= MST Instance 0= Default Instance for VLANs
O
Figure 4-7: Mapping VLANs to MST instances—Review 7
Se
Q1: What happens to the MSTP configuration when VLANs are moved to an
instance?
lU
_____________________________________________________________________
a
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
_____________________________________________________________________
r H
_____________________________________________________________________
Fo
_____________________________________________________________________
VLAN 2,12
VLAN 2,12
y
- Root ports? VLAN setup.
nl
- Alternate ports? So is instance topology
O
Figure 4-8: Is MSTP “aware” of the VLAN setup?—Review 8
Se
Q1: Is MSTP “aware” of the VLAN setup? Explain your answer.
_____________________________________________________________________
a lU
_____________________________________________________________________
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
H
Q2: If all link costs are equal in each instance, which ports are root ports?
r
_____________________________________________________________________
Fo
_____________________________________________________________________
Q3: If all link costs are equal in each instance, which ports are alternate ports?
_____________________________________________________________________
_____________________________________________________________________
Remember that with MSTP, the port role is entirely independent of VLAN setup, as is
the topology in each instance.
y
multivendor network. Before you discuss best practices, your facilitator will ask you
nl
questions about how you configure VLANs on uplinks when MSTP is enabled on a
O
network. Use the space below to record anything you learn from this discussion.
_______________________________________________________________________
Se
lU
_______________________________________________________________________
a
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
MSTP instance 1
Setup #2 MSTP instance 1
Setup #1
secondary root secondary
root All VLANs root All VLANs root
y
Region name = “Region1"
nl
VLAN 10 VLAN 2,12 VLAN 2,12
Revision #= 1
Instance 1 = VLANs 1-10
O
Instance 2 = VLANs 11-20
Se
The goals of this discussion are to put what was learned in the MSTP review into
lU
action and to emphasize some differences between MSTP and Cisco PVST+.
Q1: What are the pros and cons of setup 1and setup 2?
a
rn
_____________________________________________________________________
te
_____________________________________________________________________
In
P
_____________________________________________________________________
H
_____________________________________________________________________
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
y
_____________________________________________________________________
nl
O
If you have experience configuring Cisco switches, you may think setup 2 is more
appropriate, since in PVST+ it would reduce PVST overhead. With MSTP, however,
Se
setup 2 will not reduce overhead.
An intermediary setup could be configuring trunk ports with only the needed VLANs
lU
on aggregation or core switches and configuring trunk ports with all VLANs on edge
switches. This setup can also lead to configuration errors.
a
rn
What about a reversed solution—configuring trunk ports with all VLANs permitted on
core switches and only the needed VLANs on edge switches? This setup would be
te
y
Figure 4-11: Instances and VLAN settings—Activity
nl
Q1: If VLAN 100 is set in instance 1, will this link forward traffic?
O
_____________________________________________________________________
Se
_____________________________________________________________________
a lU
Q2: How can you ensure that this link forwards traffic?
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
H
_____________________________________________________________________
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
MSTP setting—Activity
- Two links/VLANs separate two MSTP regions.
- IP traffic is routed between regions.
MSTP Region 1
Instance 1 VLAN 1-100
T1-T99
y
nl
MSTP Region 2
Instance 1 VLAN 101-200
O
Figure 4-12: MSTP setting—Activity
Se
The goal of this implementation is to limit the extension of the VLANs’ broadcast
lU
domains and also to split one MSTP region in two, creating two MSTP regions and a
simpler setup per region.
a
Q1: Is MSTP active on the links that carry routed traffic on VLANs 100 and 200?
rn
____________________________________
te
On Cisco switches, you would call these routed links. However, today there is no
strict concept of routed links on HP switches. In other words, you cannot set an IP
In
address on an interface to make it routed. You create a routed link by assigning the
P
physical interface to a unique VLAN reserved for it (100 and 200 in this example)
and assigning the VLAN an IP address.
H
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
y
_____________________________________________________________________
nl
O
_____________________________________________________________________
Se
_____________________________________________________________________
lU
_____________________________________________________________________
a
rn
te
In
P
r H
Fo
Switch_A Switch_B
y
Revision #= 1
Instance 1 = VLANs 1, 12
nl
Instance 2 = VLANs 11, 13
IST instance = VLANs 2-10, 14-4094
O
Figure 4-13: Adding a new VLAN on a switch implementing MSTP
_____________________________________________________________________
te
_____________________________________________________________________
In
P
_____________________________________________________________________
H
_____________________________________________________________________
r
Fo
MSTP BPDUs
Switch_C Switch_D
Region 2
y
Revision number = 1 Revision number = 1
nl
Instance 1 = VLANs 1 12 Instance 1 = VLANs 1 12
Instance 2 = VLANs 11 13 Instance 2 = VLANs 11 13 14
O
IST instance = VLANs 2 - 10 14 - 4094 IST instance = VLANs 2 - 10 15 - 4094
Se
Every time you add or delete a VLAN from an MST instance other than 0, it changes
lU
the mapping of the VLAN to instances, and then it changes the region of that switch.
Q1: What happens if you add VLAN 14 on switch D? (You learned on the previous
a
slide.)
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
_____________________________________________________________________
r H
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Note that the average failover timeout when moving from MSTP to RSTP may not be
longer than 1 to 3 seconds.
Q3: What can you do to limit the MSTP region changes?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
y
_____________________________________________________________________
nl
O
_____________________________________________________________________
Se
The following page presents two strategies.
a lU
rn
te
In
P
r H
Fo
Move newly
MSTP instance 2 MSTP instance 2 created VLANs
Every 6 months
VLANs 2001-4094 VLANs 101-200
y
VLANs 1-10 VLANs 200-4094
nl
O
Figure 4-15: Strategies to place VLANs in MSTP instances
Se
These two strategies are designed to reduce:
Failover due to changes in MSTP instances
lU
Configuration overhead due to adding and deleting VLANs from MST instances
a
Pros:
te
Cons:
H
You might find it complex to implement setups that do not use a range of
VLANs per instance.
Strategy 2: Do not move VLANs when they are created. Leave them in instance 0
and make all during the planning maintenance window.
Pros:
In this strategy, you can add VLANs and downtime is limited to once every
“n” months.
This strategy reduces the number of changes that need to be made at once.
This strategy does not require you to set up instances in advance.
Cons:
While setup requirements are minimized, this strategy still requires changes
and some failover time every “n” months.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
MSTP—Path costs
Default on HP Default on Default on HP
E-Series Cisco A-Series
y
Default Default
standard cost standard dot1t
nl
O
Figure 4-16: MSTP—Path costs
Se
Figure 4-16 shows the default path costs for HP A-Series, E-Series, and Cisco switches.
While the slide covers MSTP implementations, note that both RSTP and MSTP utilize
lU
the 20000 cost value.
On both HP E-Series switches and Cisco switches, MSTP implements the IEEE
a
PVST+/Rapid PVST+, the long option for spanning-tree path costs can change the
te
Another option for this command (stp pathcost-standard dot1t-1988) configures the
r
Fo
HP A-Series switches to use the costs in the STP 802.1D standard version. You might
select this option when you use the HP A-Series switches with Cisco switches that
implement PVST+ and do not support the long option for path cost calculation.
Configuring MSTP
MSTP review
MSTP design options
Configuring MSTP
On Cisco switches
On HP E-Series switches
On HP A-Series switches
y
nl
In this section, you will learn about the key differences in configuring MSTP on HP A-
O
Series, E-Series, and Cisco switches.
Se
a lU
rn
te
In
P
r H
Fo
3.
3 Set root and secondary root in each MST instance.
4.
4 Set edge and non-edge ports.
5.
5 Enable spanning-tree.
6 Connect the switches.
y
Figure 4-18: Configuring MSTP—Major steps
nl
O
This slide summarizes the major steps in configuring MSTP. As you configure MSTP,
keep in mind the following default settings:
Se
HP E-Series switches use MSTP as the default STP version, but it is not enabled by
default. When MSTP is manually enabled, all ports are auto-edge-ports by
lU
default. Auto-edge ports send and listen for BPDUs for three seconds. If they do
not receive any BPDUs, they become edge ports.
a
rn
Cisco uses Per VLAN Spanning Tree Plus (PVST+) as the default STP version, and
In
it is enabled by default. When you change the mode to MSTP, all ports are non-
edge ports by default.
P
r H
Fo
y
nl
– The pre-standard and standard commands look the same, so do not use
them to check for support.
O
Figure 4-19: IOS requirements for MSTP on Cisco
Se
Some Cisco switches, such as the 2900 XL and the others mentioned above, do not
support MSTP. On others, double check the IOS version.
lU
You must double check the IOS version because the commands will not tell you
a
whether your switch is capable of implementing MSTP. (They are the same as
rn
standard MSTP commands.) Pre-standard MSTP looks identical in the CLI but is not
compatible with 802.1s. It will use RSTP, however, to interoperate with the MSTP
te
switches.
In
P
r H
Fo
y
CiscoB(config)# spanning-tree mst 0 priority 4096
MSTP
nl
CiscoB(config)# spanning-tree mst 1 priority 4096
CiscoB(config)# spanning-tree mst 2 priority 0
O
!Enable PortFast on all access ports
Cisco(config)# spanning-tree portfast default
Se
Figure 4-20: Cisco and HP MSTP scenario: Cisco switch configurations
lU
The slide displays the commands for configuring the Cisco switches to implement
MSTP. Note the following aspects of the configuration:
a
You must set MSTP mode because it is not the default mode.
rn
You must also define the region parameters. In this example these are:
te
Revision number: 1
P
y
#Define edge ports using a port group
[Switch]port-group manual edge-1
MSTP
nl
[Switch-…] group-member Gi 1/0/1 to Gi 1/0/40
[Switch-…] port link-type access
O
[Switch-…] port access vlan 11
[Switch-…] stp edged-port enable
Se
Figure 4-21: Cisco and HP MSTP scenario: HP A-Series switch configurations
lU
As you learned earlier, on HP A-Series switches, the default path cost does not
adhere to the 802.1t-2001 standard. Unless you configure the dot1t standard in this
a
scenario, the alternate port will not be on the access layer side but rather on the
rn
secondary root side. This error arises because the legacy values of the HP A-Series
for MSTP default to lower ones than the standard values:
te
Fast-Ethernet:200
In
Gigabit: 20
P
10 Gig: 2
r H
Fo
y
MSTP
nl
O
Se
Figure 4-22: Cisco and HP MSTP scenario: HP E-Series switch configurations
Troubleshooting MSTP
Use the following guidelines for troubleshoot MSTP in a multivendor environment:
If a switch is the root in an instance when it should not be, and its priority is
correct, the switch probably belongs to another MSTP region.
Verify the MSTP configuration parameters.
If an edge switch can no longer forward traffic when its root port is down, verify
the VLAN configuration on the alternate port.
The alternate and root ports should carry the same VLANs (untagged or
tagged).
If MSTP does not converge quickly, check that uplinks are set as non-edge and
point-to-point.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
nl
Disable STP on routed links or when the VLAN topology prevents loops.
O
Se
a lU
rn
te
In
P
r H
Fo
MSTP IP addressing:
10.POD.VLAN.X/24
X=1 on Cisco-A
X=2 on Cisco-B
P1 P2 P1 P2 X=3 on HP-C
HP-C HP-E X=4 on HP-D
X=5 on HP-E
P3 P3 X=6 on HP-F
X=100 on Server_1
y
X=101 on Client_1
nl
Server_1 Client_1
O
You will now complete a lab in which you configure Cisco, HP A-Series, and HP E-
Se
Series switches to implement MSTP.
lU
Use the space below to record any instructions your facilitator gives you for this lab.
________________________________________________________________________
a
rn
________________________________________________________________________
te
In
________________________________________________________________________
P
________________________________________________________________________
r H
________________________________________________________________________
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Lab debrief
1. What are your key insights about MSTP?
a. Did you discover something new?
b. Did you discover something that surprised you?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
_______________________________________________________________________
nl
O
2. What were your greatest challenges?
Se
a. Did you learn something that helped you to address the challenges?
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
H
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Module 4 summary
In this module, you reviewed MSTP concepts such as regions, instances, and
interoperability with RSTP and STP. If you were more familiar with PVST+ when you
began the module you should now understand how MSTP operates in a slightly
different way.
You also learned the steps and commands for implementing MSTP on Cisco, HP A-
Series, and HP E-Series switches. You analyzed the problems that might occur if you
do not set up consistent path costs across the platforms and also studied several
scenarios and best practices for MSTP design. Finally, you learned a little about
troubleshooting MSTP in a multi-vendor environment.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Learning check
Q1: Is the MSTP region name case sensitive?
_________________________________________________________________________
Q2: Is MSTP aware of VLAN configuration? Explain your answer.
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
Q3: Which parameters are applied outside of an MSTP region?
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
Q4: Can a switch that implements STP be the root of the CST?
P
H
_________________________________________________________________________
Q5: How should you configure VLANs on uplink ports?
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
a lU
rn
te
In
P
r H
Fo
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
Module 5 objectives
After this module, you will be able to:
Explain the interoperability capabilities and limits of Cisco’s Per VLAN Spanning
Tree Plus protocol (PVST+) and Rapid PVST+ with Spanning Tree Protocol (STP),
Rapid Spanning Tree Protocol (RSTP), and Multiple Spanning Tree Protocol
(MSTP)
y
nl
Select an STP option to integrate HP switches and Cisco switches based on
customer constraints and the existing network
O
Configure STP on HP switches and PVST+ with Cisco switches for integration in a
Se
redundant network
a lU
rn
te
In
P
r H
Fo
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
_______________________________________________________________________
a lU
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
VLAN 1 VLAN 1
VLAN 11 VLAN 11
VLAN 12 VLAN 12
y
Standard Proprietary based on standard
nl
Single instance One STP instance per VLAN
One STP topology One STP topology per VLAN
O
Untagged BPDUs Tagged BPDUs per VLAN
Se
It is important to understand the key differences between STP/RSTP and
lU
PVST+/Rapid PVST+.
With STP and RSTP:
a
rn
Blocked ports are physically blocked, blocking all VLANs configured on that
port.
In
Standard BPDUs are sent untagged and are not attached to any VLAN.
P
The BPDUs are always sent no matter which VLANs are configured on
H
the link. They are untagged (even if the link has only a tagged
r
membership).
Fo
y
10 Gigabit: 2
nl
When you enter the global spanning tree pathcost method long
O
command, the switch uses RSTP and MSTP standard costs:
Se
Fast Ethernet: 200 000
Gigabit: 20 000
lU
10 Gigabit: 2000
a
rn
te
In
P
r H
Fo
VLAN 1 VLANs
VLAN 11 1,100
VLAN 12 VLAN
101-200
One STP topology per VLAN One STP Topology per instance
Proprietary Standard
y
Fast convergence with Rapid PVST+ Fast convergence included
nl
High overhead Reduced overhead
Config per VLAN Config per instance
O
PVST+ aware of VLAN topology MSTP not aware of VLAN topology
Se
Very often there are misconceptions about MSTP versus PVST+. MSTP is not the
lU
standard version of PVST+ or Rapid PVST+. Here are the key differences between
MSTP and PVST+:
a
MSTP
rn
y
port, and untagged when a VLAN untagged.
nl
Forwarding and reception of PVST BPDUs directly depends on a VLAN’s
O
existence on the link.
Se
The MAC address of a BPDU is a standard bridge multicast MAC address:
01:80:c2:00:00:0.
a lU
rn
te
In
P
r H
Fo
802.1w Untagged
IEEE Dest MAC:
RSTP 01:80:c2:00:00:00
y
IEEE Dest MAC: Cisco Dest MAC: Cisco Dest MAC:
Trunks
nl
01:80:c2:00:00:00 01:00:0c:cc:cc:cd 01:00:0c:cc:cc:cd
O
VLAN 1 may or may not be the native VLAN
Se
STP, RST, MSTP and PVST+ use different types of BPDUs. Understanding what BPDUs
lU
are generated by a switch and what received BPDUs are interpreted by a switch
helps manage STP interoperability.
a
Standard BPDUs
te
RSTP BPDUs are backward compatible with STP BPDUs, and MSTP BPDUs
are backward compatible with both. When a device that supports only
r
Fo
RSTP or STP receives an MSTP BPDU, it can interpret all of the BPDU except
the MSTP-specific data. The CIST data includes the ID for the region’s IST
root bridge, which is the ID for the region as a whole acting like a single
logical bridge.
There are three kinds of PVST+ Cisco BPDUs:
When VLAN 1 is allowed on a trunk, PVST+ sends standard STP BPDUs.
BPDUs carry the parameters set in VLAN 1.
Note that VLAN 1 does not need to be the native VLAN for standard
BPDUs to be sent. It only needs to be enabled.
In any case, the Cisco switch sends an untagged, standard BPDU.
If Rapid PVST+ is enabled, then RSTP BPDUs are sent instead of STP BPDUs.
In an untagged/native VLAN (if different than 1), PVST+ BPDUs with Cisco
MAC addresses are sent.
PVST+ BPDUs are only understood by switches running PVST+.
In tagged VLANs, PVST BPDUs are tagged and use Cisco MAC addresses.
PVST+ BPDUs are only understood by switches running PVST+.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
nl
Figure 5-4: Cisco PVST+: Which BPDUs are sent on trunk ports?
O
Standard BPDUs are sent if VLAN 1 is allowed on the trunk port. If VLAN 1 is not
allowed, no standard BPDUs are sent, and interoperability with standard-based
Se
switches cannot occur.
a lU
rn
te
In
P
r H
Fo
y
Which setup would you
nl
recommend for VoIP Ports?
O
Figure 5-5: Cisco PVST+: Which BPDUs are sent on access ports?
Se
On Cisco access ports, standard BPDUs are sent, which allows interoperability to
occur on access ports. However, if the port is a voice over IP (VoIP) port, and if a
lU
voice VLAN is defined on that port, no standard BPDUs are sent. This should not be
an issue as no switch should be connected on the access port.
a
rn
__________________________________________________________________
In
__________________________________________________________________
P
H
__________________________________________________________________
r
Fo
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
5 – 10 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
1) Cisco Switch
PVST+ Enabled Out of VLAN 1 BPDU Type:…. MAC @:…… Tagged/Untagged:….
Trunk Allowed VLANs:
1,10,20,30
Native VLAN 10 Out of VLAN 10 BPDU Type:…. MAC @:…… Tagged/Untagged:….
2) Cisco Switch
y
Rapid PVST+ Enabled Out of VLAN 10 BPDU Type:…. MAC @:…… Tagged/Untagged:….
Trunk Allowed VLANs:
nl
10,20,30
Native VLAN 10 Out of VLAN 20 BPDU Type:…. MAC @:…… Tagged/Untagged:….
O
Figure 5-6: Spanning tree BPDUs—Quiz 1
____________________________________________________________________
In
____________________________________________________________________
P
H
Q1-b: For Cisco Switch 1, what MAC address is used, standard, or Cisco?
r
____________________________________________________________________
Fo
____________________________________________________________________
____________________________________________________________________
Q1-c: Are the BPDUs that Cisco Switch 1 sends out tagged or untagged?
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
Rev. 11.12 5 – 11
HP Networking Interoperability
Q2-a: For Cisco Switch 2, what types of BPDUs are sent? (Choose from STP, RSTP,
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
Q2-b: For Cisco Switch 2, what MAC address is used, standard, or Cisco?
nl
____________________________________________________________________
O
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
____________________________________________________________________
In
P
Q2-c: Are the BPDUs that Cisco Switch 2 sends out tagged or untagged?
H
____________________________________________________________________
r
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
5 – 12 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
2- Cisco Switch
B BPDU type: RPVST+ MAC @: Cisco Untagged Rapid PVST+ Enabled
Trunk Allowed VLANs:
1,10,20,30
C BPDU type: STP MAC @: Std Untagged Native VLAN 10
3- HP Switch
D BPDU type: RSTP MAC @: Std Untagged
MSTP enabled
Trunk all VLANs allowed
y
E BPDU type: MSTP MAC @: Std
nl
4- HP Switch
Untagged
RSTP enabled
O
Access in VLAN 10
Se
Your goal for this activity is to learn standard and proprietary BPDUs are handled by
lU
Cisco and HP switches, preparing yourself for the interoperability scenarios that will
be presented later in this module.
a
Q1: For each BPDU in Figure 5-7, specify whether each switch will inspect, drop, or
rn
forward a received BPDU of that type. When you are finished, you should have a
te
total of 20 answers, but your instructor might assign you and your group to a
particular set of answers.
In
The table on the next page provides a space to enter your answers.
P
r H
Fo
Rev. 11.12 5 – 13
HP Networking Interoperability
y
nl
C
O
Se
a lU
D
rn
te
In
P
H
E
r
Fo
5 – 14 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
HP C
Are the PVST+ BPDUs
PVST+ BPDUs
MSTP transmitted by HP C ?
MSTP BPDUs
y
Compatible
RSTP BPDUs
nl
Figure 5-8: Which BPDUs are sent and interpreted?
O
Now you will see how interactivity between Cisco and HP switches affects port state.
Se
Here are some questions to consider:
lU
Q1: What BPDUs are sent by the Cisco switch and by the HP switch?
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 15
HP Networking Interoperability
Resulting topology
Rapid PVST+ Rapid PVST+
Root in VLAN 1 Secondary root in
VLAN 1
Trunk U1, T11, T12, T13
Cisco A Cisco B
RSTP BPDU
PVST+ BPDUs for
for VLAN 1
This port is blocked in response
VLAN 11, 12, 13 to BPDUs in VLAN 1.
y
Compatible
RSTP BPDUs
nl
Figure 5-9: Resulting topology
O
This is the final topology resulting from the switches’ configuration. Note that:
Se
The HP C switch sends MSTP BPDUs, and the Cisco switches send RSTP BPDUs,
but this does not cause an issue. The Cisco and HP switches establish a topology
lU
as if they were communicating using RSTP.
a
5 – 16 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
spanning-tree
Default to 802.1t- Default to 802.1D-
y
Enabling pathcost method
2001 standard* 1998 standard
nl
long
O
Figure 5-10: STP—Port cost differences
Se
STP and PVST+, as well as Rapid PVST+, use the 19/4/2 cost values defined by the
802.1D-1998 standard. RSTP and MSTP use the 802.1t-2001 standard. However, you
lU
can configure Cisco switches implementing PVST+/Rapid PVST+ (IOS 12.1 and later)
to use the long option (spanning-tree pathcost method long command).
a
rn
As you learned in the previous module, on the HP A-Series, the default type for path
cost is “legacy,” which is proprietary. In legacy mode, the port calculation is:
te
Gigabit = 20
P
10 Gig =2
H
To set the path costs to the 802.1t-2001 standard, on HP A-Series switches, enter the
r
Rev. 11.12 5 – 17
HP Networking Interoperability
PVST+ quiz
Q1: What is the cost of a gigabit link in PVST+?
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
y
nl
O
Q2: Why does Cisco recommend not allowing all VLANs on a trunk port when
running PVST+?
Se
_________________________________________________________________
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
_________________________________________________________________
In
P
_________________________________________________________________
r H
Q3: Does Rapid PVST+ implement the “uplinkfast,” or “backbonefast,” Cisco’s fast
Fo
STP feature?
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
5 – 18 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 5 – 19
HP Networking Interoperability
PVST+/STP interoperability—Scenario 1
Cisco switch runs PVST+ or Rapid PVST+
Cisco A Cisco B
blocked port
HP C
y
nl
Figure 5-11:PVST+/STP interoperability—Scenario 1
O
This scenario illustrates the insertion of an HP switch at the edge of an existing Cisco
Se
network.
Cisco switches are running PVST+ or Rapid PVST+.
lU
Cisco A is the root for all VLANS.
a
What topology is established in this scenario? (The next page presents the answer.)
In
P
r H
Fo
5 – 20 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
Cisco B Cisco B
Cisco A
Cisco A
Port is physically
blocked PVST+ BPDUs are
not transmitted
HP C HP C
PVST+ topology in VLANs 11, 12, 13
PVST+ BPDUs for all VLANs except VLAN 1
y
MSTP BPDUs
nl
Compatible
RSTP BPDUs
O
Figure 5-12: Scenario 1—VLAN topologies
Se
In VLAN 1, Cisco switches and the HP switch interact in RSTP or STP (the HP switch
lU
sends MSTP BPDUs, which are backward compatible with RSTP and STP). The
resulting topology is as shown in Figure 5-12. Note that on the HP access switch, the
blocked port is “physically” blocked. In other words, traffic for all VLANs is blocked
a
on the port.
rn
In other VLANs, PVST+ or Rapid PVST+ BPDUs, which use a Cisco multicast MAC
te
address, are forwarded by the HP switch, which does not examine their content but
In
treats them like any other frame. However, because the HP switch blocks one uplink,
the PVST+ BPDUs from one Cisco switch do not reach the other. From the viewpoint
P
of PVST+, Cisco A and B can only reach each other on the direct connection.
H
Even if the root and secondary root or set up to provide load balancing between
VLANs, the blocked port on HP C is the same for all VLANs.
You might be implementing HSRP such that the primary router for each VLAN
matches the root bridge for that VLAN. However, the HP switch blocks the same
link for all VLANs. Traffic that needs to be routed in the VLANs for which Cisco
B is the default router will have to cross the link between Cisco A and Cisco B.
This configuration is not as efficient as it could be, but it has no other
adverse consequences as long the link between Cisco A and B is able to
support the additional traffic load.
Rev. 11.12 5 – 21
HP Networking Interoperability
20 000 20 000
20 000 20 000
Uplink 1 Uplink 2
Uplink 1 Uplink 2
HP C HP C
y
Is the actual topology as it is
nl
shown here? Does this change the topology?
O
Figure 5-13: Considering STP port cost differences
Se
Here, the Gigabit cost is 20 000 on HP C and 4 on Cisco switches that run PVST+.
Q1: The picture shows the desired topology. Is the actual topology the desired one?
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r H
_________________________________________________________________
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
5 – 22 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
Cisco path cost method LONG Identify the root port and blocked
ports for B, C, and D.
Root
RP Cisco B
for VLAN 1 What do you conclude?
20 000 A-20 000
Cisco A
B- 20 000
C-20 000
20 000
RP
Take care when enabling path
D-4
RP G-20 000 cost method long on Cisco
E-4 F-20 000 aggregation switches.
y
method SHORT Legend:
nl
Port name-cost value
E.g. G-20 000
O
Figure 5-14: Considering STP port cost differences (cont.)
Se
What happens if you configure the Cisco switches to use the long path cost method,
which matches the HP switch’s MSTP/RSTP cost values? Are there consequences for
lU
Cisco switches already in the access layer?
Q1: Identify the root port and blocked ports for switches B, C, and D.
a
rn
_________________________________________________________________
te
_________________________________________________________________
In
P
_________________________________________________________________
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 23
HP Networking Interoperability
Cisco B configuration
y
spanning-tree mode rapid-pvst Blocked port
spanning-tree extend system-id HP C
nl
spanning-tree path cost method long
spanning-tree vlan 1-4094 priority 4096
STP, RSTP,
O
or MSTP
Se
Figure 5-15: Cisco and HP scenario 1: Cisco switch configurations
Your facilitator will not spend much time explaining configurations right now. This
lU
slide is here for your reference. You will have the opportunity to explore the
commands more thoroughly in this module’s lab.
a
rn
te
In
P
r H
Fo
5 – 24 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
MSTP
quit
HP A-Series C
y
stp enable
nl
Gi 1/0/1-44
O
Under what circumstances, would you
configure these settings?
Se
Figure 5-16: Cisco and HP scenario 1: HP A-Series switch configuration
lU
Q1: Is the MSTP region configuration required?
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
H
_________________________________________________________________
r
Fo
_________________________________________________________________
Q2: Under what circumstances, would you configure the MSTP region settings?
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 25
HP Networking Interoperability
Cisco A Cisco B
Blocked port
In the latest versions of current E-Series 47 48
software, MSTP is default.
With these configurations, what is the region HP C
MSTP
y
name?
nl
1 - 44
O
Figure 5-17: Cisco-HP scenario 1: HP E-Series switch configuration
Se
Q1: With these configurations, what is the region name?
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
_________________________________________________________________
In
P
_________________________________________________________________
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
5 – 26 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 5 – 27
HP Networking Interoperability
PVST+/STP interoperability—Scenario 2
PVST+ or Rapid-PVST+
Cisco C HP D
PVST+ or Rapid-PVST+ MSTP
y
nl
Figure 5-18: PVST+/STP interoperability—Scenario 2
O
In Scenario 2, you implement the load balancing that is already in effect in many
Cisco networks for the HP to Cisco links.
Se
Q1: Does traffic from Cisco C experience the PVST+ load balancing effect on uplinks
lU
to the aggregation layer?
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
5 – 28 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
blocked port
Topology in VLAN 1
Topology in VLANs 11, 12, 13
y
nl
MSTP BPDUs Compatible
STP or RSTP BPDUs Cisco PVST+ BPDUs for all VLANs except 1
O
Figure 5-19: Scenario 2—VLAN topologies
Se
In scenario 1, the MSTP/RSTP edge switch did not forward PVST+ BPDUs because
one uplink was physically blocked.
lU
In this scenario, you will change the configuration so that the blocked port is on the
secondary root instead of the HP switch at the access layer. This topology permits the
a
forwarding of PVST+ BPDUs to the Cisco switch as shown in the figure. From the
rn
Cisco switches’ point of view, it seems that the two core switches are connected by a
te
direct cable. Thus the secondary root for each VLAN blocks the link, causing different
In
Rev. 11.12 5 – 29
HP Networking Interoperability
47 48
y
nl
What are the pros and cons of each solution?
O
Figure 5-20: What setup is required in VLAN 1?
Se
How do you configure the switches so that the ports on the secondary root switches
are blocked? You must configure the VLAN 1 topology so that secondary root switch
lU
for VLAN 1 (Cisco B) blocks the port that connects to HP C. Therefore, the root path
cost of Cisco B must be higher than the root path cost of HP C.
a
rn
One way to configure the desired root path cost is to increase the path cost of Cisco
B to the root (on PO1) in VLAN 1. The second way is to reduce the path cost on the
te
_________________________________________________________________
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
5 – 30 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
20 000**
Decrease the cost for the
port channel.
y
nl
*These values are for the long path cost method.
*The default po1 cost is 10000.
O
Figure 5-21: Cisco view in other VLANs
Se
Now that the blocked port has moved from HP C to Cisco B, HP C will forward Cisco
PVST+ BPDUs. From the PVST+ or Rapid PVST+ point of view, the two aggregation
lU
switches seem to be connected together. Consequently, ports that lead to HP switches
may become the root port for the Cisco switches in various VLANs, blocking the
a
Q1: On Cisco B, what is the root port in VLANs 11 and13 if the cost is 20000?
te
_________________________________________________________________
In
_________________________________________________________________
P
H
_________________________________________________________________
r
Fo
_________________________________________________________________
Q2: How do you ensure that po1 is selected as the root port?
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 31
HP Networking Interoperability
Cisco B configuration 48
47
spanning-tree mode rapid-pvst
spanning-tree extend system-id HP C STP, RSTP,
spanning-tree path cost method long or MSTP
y
spanning-tree vlan 1,12 priority 4096 1 - 44
nl
spanning-tree vlan 11,13 priority 0
interface po 1
O
spanning-tree vlan 1 cost 30000 What is the setup for
spanning-tree vlan 11-13 cost 10000
HP C?
Se
Figure 5-22: Cisco and HP scenario 2: Cisco switch configurations
Pay attention to the cost configured for po1 on Cisco A and B in various VLANs. In
lU
VLAN 1, the cost is increased to 30000, and in other VLANs it is decreased to
10000. (If the Cisco switches were not using the long path cost method, the values
a
would be 5 and 3.) These configurations ensure that the proper ports forward and
rn
block traffic in each VLAN to implement load balancing and efficient use of the
te
connections.
In
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
5 – 32 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
Cisco C HP D
y
drawback of this setup?
nl
What do you suggest to resolve the problem?
If Cisco C implements Rapid PVST+, do the setup
O
requirements change?
Se
Figure 5-23: What about other Cisco switches in the access layer?
The goal of this page is to point out a drawback of the previous setup when there are
lU
also Cisco switches at the edge implementing PVST+ uplinkfast. This feature requires
one uplink (the root port) to be up, and the other one (the alternate port) to be
a
Q1: If Cisco C implements PVST+ uplinkfast, what is the drawback of the setup
te
_________________________________________________________________
P
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 33
HP Networking Interoperability
y
nl
Figure 5-24: What is the purpose of load balancing?
O
Q1: Name some good reasons to set up load balancing.
Se
_________________________________________________________________
lU
_________________________________________________________________
a
_________________________________________________________________
rn
te
_________________________________________________________________
In
P
_________________________________________________________________
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
5 – 34 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
y
_________________________________________________________________
nl
O
_________________________________________________________________
Se
_________________________________________________________________
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r H
_________________________________________________________________
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 35
HP Networking Interoperability
MSTP Region
P1 P2 Name: HP-Cisco
P2 P1 Revision: 1
HP-C HP-E
MSTP MST Instance 1: VLAN 12
P3 P3 MST Instance 2: VLAN 1,11,13
y
nl
Server_1 Client_1
O
Figure 5-25: Lab 5.1: PVST+/MSTP interoperability
You will now complete Lab 5.1: Configuring PVST+/MSTP interoperability, in which
Se
you practice configuring the scenarios covered in this module. Use the space below
to record any instructions your facilitator gives you for this lab.
lU
________________________________________________________________________
a
rn
________________________________________________________________________
te
In
________________________________________________________________________
P
________________________________________________________________________
r H
________________________________________________________________________
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
5 – 36 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
Lab debrief
– What did you find challenging?
– What do you think is the most important thing you learned
about PVST+-MSTP interoperability?
– Of what you learned in the lab, what will be the most useful
for you in the field?
y
nl
_________________________________________________________________
O
Se
_________________________________________________________________
lU
_________________________________________________________________
a
_________________________________________________________________
rn
te
_________________________________________________________________
In
_________________________________________________________________
P
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 37
HP Networking Interoperability
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
5 – 38 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
HP in aggregation—Scenario 3
How would you manage these
redundant connections?
HP A IRF HP B What are your
recommendations for setting up
IRF?
Link-
aggregation
HP A Cisco in access
Cisco C Cisco D
y
nl
Figure 5-27: HP in aggregation—Scenario 3
O
Q1: How would you manage the redundant connections in this scenario?
Se
_________________________________________________________________
lU
_________________________________________________________________
a
_________________________________________________________________
rn
te
_________________________________________________________________
In
_________________________________________________________________
P
H
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 39
HP Networking Interoperability
HP in aggregation—Scenario 3 (cont.)
Cisco E Cisco F
Cisco in core
Link-
aggregation
Cisco in access
y
Cisco C Cisco D
nl
Figure 5-28: HP in aggregation—Scenario 3 (cont.)
O
This slide shows a core layer. Note that both access and core switches can use link
Se
aggregation to connect to the two switches that compose the IRF. In this way, you can
create a redundant network without implementing STP of any type.
a lU
rn
te
In
P
r H
Fo
5 – 40 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
y
Cisco C
Cisco D Cisco E method is not enabled?
nl
Cisco in access
PVST+ BPDUs
O
Rapid PVST+ —path cost method long MSTP BPDUs
Compatible
RSTP BPDUs
Se
Figure 5-29: HP in aggregation—Scenario 3: With MSTP and PVST+
lU
Examine the scenario. Assume that in this network VLAN 1 is allowed on uplinks so
Cisco switches can send and receive standard BPDUs.
a
Q1: Which BPDUs are sent and received by Cisco switches in VLAN 1?
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 41
HP Networking Interoperability
Q3: If HP switches A and B are the roots in the CST, what are the root port and
alternate ports in VLAN 1 on Cisco switches?
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
y
nl
_________________________________________________________________
O
Q4: What happens if the long path cost method is not enabled?
Se
_________________________________________________________________
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r H
_________________________________________________________________
Fo
5 – 42 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
HP A HP B
If Cisco C has the lowest bridge ID,
what will the topology be in the
other VLANs from the Cisco
switches’ point of view?
1 2
2 1 2
1 For PVST+, the HP switches
do not exist. They are seen
y
Cisco C as a hub.
nl
Cisco D Cisco E
PVST+ BPDUs
Cisco in access
O
MSTP BPDUs
Rapid PVST+ —path-cost method long RSTP BPDUs
Compatible
Se
Figure 5-30: HP in aggregation—Scenario 3: With MSTP and PVST+ (cont.)
lU
Q1: Which BPDUs are sent and received by Cisco switches in other VLANs?
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r H
Fo
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 43
HP Networking Interoperability
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
_________________________________________________________________
Q3: Having exchanged these BPDUs, what topology do the switches create? Assume
that the Cisco switches are using their default priorities and that Cisco C has the
lowest MAC address.
_________________________________________________________________
y
nl
_________________________________________________________________
O
Se
_________________________________________________________________
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
_________________________________________________________________
In
P
_________________________________________________________________
H
_________________________________________________________________
r
Fo
_________________________________________________________________
_________________________________________________________________
5 – 44 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
HP in aggregation—Scenario 3: Configuration
HP in aggregation HP B
HP A
!Cisco Access configuration: MSTP
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree path cost method long
y
In VLANs 1-3
nl
In VLANS 4-6
O
Figure 5-31: HP in aggregation—Scenario 3: Configuration
The commands shown in the slide configure Cisco C for the scenario introduced in
Se
the previous slides. The commands would be similar for the other Cisco switches;
however, you would not change their priorities, or you would assign these switches
lU
different priorities.
a
The slide shows how you can set the path costs so that the switch load balances
rn
traffic over its two links rather that always selects the port with the lower ID:
te
Set the port cost to 10000 to have the uplink port become the root port (or
designated port on the root bridge).
In
Set the port cost to 30000 to have the uplink port become the alternate port.
P
Alternate which ports are set to 10000 and which are set to 30000 in different
H
VLANs.
r
This slide does not show the configuration for the HP switches, which are
Fo
implementing MSTP. Within the MSTP region, HP A is root bridge and VRRP master
on VLANs 1 to 3, and HP B is root bridge and VRRP master on VLANs 4 to 6. You
have seen similar configurations in other scenarios.
Rev. 11.12 5 – 45
HP Networking Interoperability
IP addressing
10.1.VLAN.X/24
•X=1 on Cisco A
•X=2 on Cisco B
•X=254 for Virtual IP
•X=3 on HP C
•X=4 on HP D
y
Rapid-PVST+
nl
Cisco A Cisco B
O
Figure 5-32: Lab 5.2: PVST+/MSTP interoperability: HP at the aggregation layer (Optional)
Se
In this lab, you practice configuring a scenario like the one that you have just
lU
examined. You will configure a network with HP A-Series switches at the aggregation
layer, implementing MSTP, and Cisco switches at the edge, implementing Rapid
a
PVST+.
rn
Use the space below to record any instructions your facilitator gives you for this lab.
te
________________________________________________________________________
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
5 – 46 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
Lab debrief
– What key things did you learn about configuring MSTP with
HP switches at the aggregation layer and Cisco at the
edge?
– What were your greatedst challenges?
– If you had to apply such a design at a customer site, what
to-do list would you create?
y
_________________________________________________________________
nl
O
_________________________________________________________________
Se
_________________________________________________________________
lU
_________________________________________________________________
a
rn
_________________________________________________________________
te
In
_________________________________________________________________
P
_________________________________________________________________
r H
_________________________________________________________________
Fo
_________________________________________________________________
_________________________________________________________________
Rev. 11.12 5 – 47
HP Networking Interoperability
Module 5 summary
– PVST+ or Rapid PVST+ do interoperate with standard STP
protocols. VLAN 1 setup is key.
– Load balancing can be obtained. This requires a careful
setup and understanding of the consequences.
– There are alternatives to enabling STP, such as disabling
STP, smart Link, and monitor link.
– Set your priorities between convergence speed, load-
balancing and ease of setup.
– Remember that a solution that is easy to set up is also easy
y
to maintain.
nl
Figure 5-34: Module 5 summary
O
In this module, you have been introduced to the concept of interoperability, and you
Se
reviewed three practical scenarios in which it was implemented. Record your
thoughts here while your facilitator reviews what was covered in this module.
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
____________________________________________________________________
In
P
____________________________________________________________________
H
____________________________________________________________________
r
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
5 – 48 Rev. 11.12
Interoperability Among PVST+, Rapid PVST+, and MSTP
Learning check
Q1: When does PVST+ interoperate with standard STP? And with RSTP? And with
MSTP?
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
nl
Q2: Does an HP switch “understand” (that is process and interpret) tagged PVST+
BPDUs? If not, does it drop them or forward them?
O
____________________________________________________________________
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
In
Q3: What is the default cost value in PVST+ and Rapid-PVST+ for a Gigabit port?
P
____________________________________________________________________
r H
____________________________________________________________________
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
Rev. 11.12 5 – 49
HP Networking Interoperability
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
5 – 50 Rev. 11.12
Redundancy Without STP
Module 6
Module 6 objectives
After completing this module, you will be able to:
Select and configure features to replace Spanning Tree Protocol (STP) in
redundant networks while maintaining interoperability
Disable STP on edge switches to integrate them into in a multivendor
environment
Configure smart link on HP A-Series switches
y
nl
Configure monitor link on HP A-Series switches
O
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 6 –1
HP Networking Interoperability
y
Figure 6-1: Reminder: With IRF, STP is unnecessary
nl
Q1: What are the key advantages of using IRF for redundancy?
O
___________________________________________________________________
Se
___________________________________________________________________
lU
___________________________________________________________________
a
rn
___________________________________________________________________
In
P
___________________________________________________________________
H
___________________________________________________________________
r
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
6 –2 Rev. 11.12
Redundancy Without STP
____________________________________________________________________
____________________________________________________________________
y
____________________________________________________________________
nl
O
____________________________________________________________________
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
In
____________________________________________________________________
P
____________________________________________________________________
r H
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
Rev. 11.12 6 –3
HP Networking Interoperability
Cisco B Cisco B
Cisco A Cisco A
y
HP C HP C
nl
Standard BPDUs are transmitted by HP C. PVST BPDUs are transmitted by HP C.
O
STP or RSTP BPDUs Cisco PVST BPDUs for all VLANs except 1
Figure 6-2: What happens when STP is disabled on the HP edge switch?
____________________________________________________________________
te
____________________________________________________________________
In
P
____________________________________________________________________
H
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
6 –4 Rev. 11.12
Redundancy Without STP
Cisco A Cisco B
Cisco A Cisco B
HP C
y
HP C
nl
Loop protection prevents local loops on edge ports and is
available on the HP E-Series only.
O
STP or RSTP BPDUs Cisco PVST BPDUs for all VLANs except 1
Se
Figure 6-3: What happens when STP is disabled on the HP edge switch? (cont.)
on the direct link or link-aggregation between them, and you should avoid having
rn
loop. Although you don’t want to enable STP on the edge switch, you can use loop
protection on an HP E-Series switch to prevent local loops.
In
Q1: How do you make sure the link between Cisco aggregation switches is the root
P
port?
H
_____________________________________________________________________
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Rev. 11.12 6 –5
HP Networking Interoperability
48
47
HP E-Series configuration
STP
HP C
no spanning-tree
loop-protect 1-44
Disabled
1 - 44
loop-protect disable-timer 300
y
How should you configure HP C?
nl
O
Figure 6-4: Configuring the HP switch to disable STP
To make po1 the root port on the Cisco switches, its cost is reduced to 10000 in all
Se
VLANs. Note that by default, the Cisco IOS sets the cost of po1 to10000. However,
this won’t be true if the interface is a Gigabit interface.
lU
Q1: How should you configure HP C?
a
_____________________________________________________________________
rn
te
_____________________________________________________________________
In
_____________________________________________________________________
P
H
_____________________________________________________________________
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
6 –6 Rev. 11.12
Redundancy Without STP
____________________________________________________________________
____________________________________________________________________
y
____________________________________________________________________
nl
O
____________________________________________________________________
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
In
____________________________________________________________________
P
____________________________________________________________________
r H
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
Rev. 11.12 6 –7
HP Networking Interoperability
y
nl
switches connected with redundant links to upstream switches. It supports link
redundancy and provides fast convergence.
O
A master link connects a switch to the rest of the network. The master link is active
Se
while a slave link is standby. If the master link fails, a slave port becomes active with
only a very short delay.
lU
To summarize, smart link features the following:
a
Sub-second convergence
te
Easy configuration
In
The master and slave roles can be shared among VLAN instances. The master role
can also be set to preempt the slave role if the master fails and then comes back up.
P
r H
Fo
6 –8 Rev. 11.12
Redundancy Without STP
# Configure preemption
y
[SwitchC-smlk-group1] preemption mode role
nl
O
Figure 6-6: Simple smart link configuration
Se
In this simple configuration, the role of the smart link ports is defined for all VLANs
(all instances). In the above configuration, port gig 1/0/1 is the master/active, and
lU
port gig 1/0/2 is the slave.
If the master fails, the slave takes over. If master comes up again, it will preempt the
a
slave.
rn
te
In
P
r H
Fo
Rev. 11.12 6 –9
HP Networking Interoperability
Instance 1 Instance 2
HP C HP C
# Create 2 instances
[SwitchC] vlan 1 to 200
[SwitchC] stp region-configuration
[SwitchC-mst-region] instance 1 vlan 1 to 100
[SwitchC-mst-region] instance 2 vlan 101 to 200
[SwitchC-mst-region] active region-configuration
y
[SwitchC-GigabitEthernet1/0/1] stp disable
nl
[SwitchC-GigabitEthernet1/0/1] port link-type trunk
[SwitchC-GigabitEthernet1/0/1] port trunk permit vlan all
O
Se
Figure 6-7: Smart link and load balancing
lU
This configuration is designed to make best use of both uplinks on the edge switch.
The master and slave roles can be configured per VLAN instance.
a
Instances are configured through MSTP, even though STP is not involved on the port
rn
in smart link. The idea is to synchronize the instances configuration with the setup of
virtual IPs (using Hot Standby Router Protocol [HSRP] or Virtual Router Redundancy
te
The uplink is set as master for the VLANs on which the HSRP owner is directly
P
y
Slave Master
[SwitchC-smlk-group1] port gigabitethernet 1/0/2 master Gi 1/0/1
nl
Gi 1/0/2
O
Figure 6-8: Smart link and load balancing (cont.)
Caution: If no control VLAN is specified for processing flush messages, the device
forwards the received flush messages directly without processing them.
Make sure that the receive control VLAN is the same as the transmit control
VLAN configured on the smart link device. If they are not the same, the
associated device will forward the received flush messages directly without any
processing.
Do not remove the control VLANs. Otherwise, flush messages cannot be sent
properly.
Make sure that the control VLANs are existing VLANs. You must assign the port
capable of receiving flush messages to the control VLANs.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
Member Role State Flush-count Last-flush-time
-------------------------------------------------------------
nl
GigabitEthernet1/0/2 MASTER ACTIVE 5 16:37:20 2010/02/21
GigabitEthernet1/0/1 SLAVE STANDBY 1 17:45:20 2010/02/21
O
Figure 6-9: Smart link status
Se
You can use the display smart-link command to view your smart link configuration.
lU
For example, you can see how many smart link groups are configured and which
links are the master and slave for each group.
a
_______________________________________________________________________
te
In
_______________________________________________________________________
P
_______________________________________________________________________
r H
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
____________________________________________________________________
nl
O
____________________________________________________________________
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
In
____________________________________________________________________
P
____________________________________________________________________
r H
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
NIC teaming
NLB, TLB…
y
Figure 6-10: Monitor link on HP A-Series switches
nl
O
Q1: In this architecture, is there a loop? Why or why not?
______________________________________________________________
Se
lU
______________________________________________________________
a
______________________________________________________________
rn
te
______________________________________________________________
P
______________________________________________________________
r H
______________________________________________________________
Fo
______________________________________________________________
______________________________________________________________
______________________________________________________________
y
Figure 6-11: Monitor link on HP A-Series switches (cont.)
nl
O
In this configuration, servers are connected to two switches. The two switches are
not connected together. Each server switch is connected with a single link to an
Se
upstream switch. Overall, this does not create a loop because servers don’t bridge
the traffic.
lU
The advantage of such a configuration is the ability to connect servers redundantly
to an existing network without the need to enable spanning-tree. If an uplink fails,
a
the server cannot sense it. Server traffic will then be lost.
rn
This is where the monitor link feature can help. With monitor link, the status of the
te
downlink ports is linked with the status of the uplink. If the uplink fails, then
In
downlinks are set to down. In return, this triggers the NIC teaming failover on the
servers.
P
r H
Fo
y
------------------------------------------
GigabitEthernet1/0/1 UPLINK DOWN
nl
GigabitEthernet1/0/2 DOWNLINK DOWN
GigabitEthernet1/0/3 DOWNLINK DOWN
O
Figure 6-12: Monitor link configuration
Se
Enabling monitor link is very easy. You must define a monitor link group. Then, you
must configure the uplink port (switch uplink) and downlink ports (server ports).
lU
To check the status of the monitor link group, use the display monitor-link command,
a
as shown in the figure. In this example, the output shows the uplink is down.
rn
te
In
P
r H
Fo
IP addressing:
10.POD.VLAN.X/24
X=1 on Cisco-A
X=2 on Cisco-B
X=3 on HP-C
X=4 on HP-D
P1 P2
P2 P1 X=5 on HP-E
HP-C HP-E
STP X=6 on HP-F
P3 disabled P3
X=100 on Server_1
PC1
X=101 on Client_1
PC2
y
nl
Server_1
PC& Client_1
PC2
O
Figure 6-13: Lab 6.1a: Redundancy without STP
Se
In this lab, you will configure the redundancy methods you have learned about in this
module. You will first disable STP on an edge switch and observe the effect this has
lU
on the STP network. The topology for this part of the lab is shown in Figure 6-13.
You will then configure smart link and monitor link on HP A-Series switches. Figures 6-
a
14 and 6-15 illustrate the topologies for these sections of the lab.
rn
Root Root
te
P1 P1
Cisco-A Cisco-B
P4 P3
P
P3 P4
r H
Fo
Smart Link
group 1 & 2
P1 P2
HP-C P2 P1 HP-E
HP-E
P3 P3
P3
Server_1 Client_1
Root Root
For VLANs 1,11,13 for VLANs 12
Rapid-PVST+
P1 P1
Cisco-A Cisco-B
P4 P3
P3 P4
Uplink
P1 P2
HP-C P2 P1 HP-E
P3 Downlink P3
y
nl
Server_1
PC1 Client_1
PC2
O
Figure 6-15: Lab 6.1c: Monitor link
Se
Use the space below to record any behavior you want to observe or test about these
redundancy methods. Refer back to this list as you complete the lab.
lU
________________________________________________________________________
a
rn
________________________________________________________________________
te
In
________________________________________________________________________
P
________________________________________________________________________
r H
________________________________________________________________________
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Lab debrief
– What did you learn in this “redundancy without STP” lab?
– What were your challenges?
– What do you think you will apply in the field?
____________________________________________________________________
y
nl
O
____________________________________________________________________
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
____________________________________________________________________
P
H
____________________________________________________________________
r
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
____________________________________________________________________
nl
O
____________________________________________________________________
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
In
____________________________________________________________________
P
____________________________________________________________________
r H
____________________________________________________________________
Fo
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
Module 6 summary
– Remember that a solution that is easy to set up is also easy
to maintain.
In this module, you have been introduced to ways to create network redundancy
without STP, including disabling STP on edge switches, and also using smart link and
monitor link. Record your thoughts here while your facilitator reviews what was
covered in this module.
_________________________________________________________________________
y
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Learning check
– With STP disabled on an HP switch:
• Does it forward or drop standard STP BPDUs?
• Can you load balance traffic?
• What can occur if STP is disabled at the edge?
y
Q1a: Does the switch forward or drop standard STP BPDUs?
nl
_____________________________________________________________________
O
Se
_____________________________________________________________________
lU
_____________________________________________________________________
a
_____________________________________________________________________
rn
te
_____________________________________________________________________
In
P
_____________________________________________________________________
r
Fo
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
y
nl
_____________________________________________________________________
O
_____________________________________________________________________
Se
lU
Q2b: What do you enable to get load balancing with smart link?
_____________________________________________________________________
a
rn
_____________________________________________________________________
te
In
_____________________________________________________________________
P
_____________________________________________________________________
r H
Fo
Q3: With monitor link, if the downlink goes down, does it trigger the uplink to switch
to down status?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Module 7 objectives
After completing this module, you will be able to:
Set up the features that can be used to stabilize Spanning Tree Protocol (STP) on
a LAN:
On edge ports--Bridge Protocol Data Unit (BPDU) guard, loop protect, and
Topology Change Notification (TCN) guard
On uplinks—UniDirectional Link Detection (UDLD), root guard, loop guard,
y
and BPDU filter
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 7 –1
HP Networking Interoperability
Blocked
gigabit link
Rogue switch
y
root bridge
nl
O
Figure 7-1: Spanning tree problems
Se
Figure 7-1 shows some of the factors that cause instability in spanning tree.
Hardening STP helps mitigate these problems.
a lU
rn
te
In
P
r H
Fo
7 –2 Rev. 11.12
Hardening STP
Hardening STP
BPDU filter: Filters BPDUs in
Tx/Rx on port without loop Loop guard:
(E.g. “routed” port) Prevents loop
situations when
edge switches stop
Root guard: Prevents the receiving BPDUs
insertion of a “fake” root from upstream
triggering an STP topology switches
change
Edge ports
BPDU guard: Prevents TCN guard: Prevents
network instability due to Loop protect: Prevents loops excessive TCNs from
y
switch insertion at the that occur on an external triggering MAC
nl
edge hubs or switches and are not address table aging
detected by STP
O
Figure 7-2: Hardening STP
Se
This is a short presentation of the features used to harden STP. The goal of this figure
lU
is to show where the different features function on the network.
Note that on HP E-Series switches, another application of BPDU filter may also be
a
Rev. 11.12 7 –3
HP Networking Interoperability
BPDU guard:
BPDU protection BPDU protection
On PortFast ports
— — Loop protection
TCN guard:
y
TC-BPDU guard TCN-guard
On PortFast ports
nl
O
Figure 7-3: Spanning tree hardening features
Figure 7-3 shows what spanning tree hardening features are called on Cisco, HP A
Se
and E-Series switches. Note that some features are not available for all switches.
a lU
rn
te
In
P
r H
Fo
7 –4 Rev. 11.12
Hardening STP
The STP hardening features such listed above are intended for edge ports.
In fact, on some platforms you can only enable these features on edge ports. For
y
example, on HP A-Series switches, you enable BPDU guard globally, and the feature
nl
takes effect on all edge ports. Similarly, on Cisco switches, you select PortFast ports,
O
and then enable the protection features for PortFast ports globally. (However, you
select the precise ports on which you want to enable these features on HP E-Series
Se
switches.)
For these reasons, before you begin implementing these features, you must carefully
lU
check your switches’ configurations and ensure that edge ports are defined as such.
a
rn
te
In
P
r H
Fo
Rev. 11.12 7 –5
HP Networking Interoperability
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
7 –6 Rev. 11.12
Hardening STP
Blocked port
y
transitions to
Switch C
nl
forwarding
(*) This can be prevented by loop guard
O
Figure 7-5: Why unidirectional links cause problems
Se
A unidirectional link, a link that transmits but does not receive (or vice versa) can
lU
occur in several circumstances, typically on a fiber optic connection:
One of the fibers fails
a
These types of problems can occur because physical layer protocols do not identify
the ends of the connection; the devices must simply assume that they are receiving
P
Unidirectional links can cause problems with STP because STP assumes that if a port
r
does not receive BPDUs, it has no connection with another switch or bridge.
Fo
However, with a unidirectional link, a device might be able transmit to another switch
or bridge but not to receive its BPDUs.
Examine an example. In the figure, Switch C has blocked its port to Switch B because
Switch A is root but Switch B has a lower ID than C. Then switch C’s receive link
goes down, and switch C no longer receives B’s BPDUs. Switch C therefore
transitions its port to forwarding state (designated), creating a loop.
Finding the origin of such a problem and troubleshooting it can sometimes be
difficult.
Rev. 11.12 7 –7
HP Networking Interoperability
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
7 –8 Rev. 11.12
Hardening STP
y
Unfortunately, none of the implementations interoperate, because none are standard
nl
and, in fact, a UDLD standard does not yet exist.
O
UDLD on Cisco and UDLD on HP E-Series do not interoperate.
Se
UDLD and DLDP (on HP A-Series) do not interoperate.
lU
a
rn
te
In
P
r H
Fo
Rev. 11.12 7 –9
HP Networking Interoperability
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
nl
Figure 7-7: BPDU guard = BPDU protection
O
BPDU protection (called BPDU guard on Cisco switches) shuts down a port when it
receives BPDU. Depending on the platform, you can configure the feature such that
Se
the port remains shut down until an administrator re-enables it, or you can have the
port recover after a set lockout period. This feature helps to protect your network from
lU
rogue switches and from rogue devices implementing STP exploits (for example,
attempting to become the root and force your network into an inefficient topology).
a
rn
However, BPDU protection is not enough to prevent switches from connecting on the
edge, as not all switches generate BPDUs. For example, unmanaged switches and
te
switches with STP disabled do not. Additional measures can be taken to prevent
In
Ensure that the port-security setup sets a list of the authorized MAC
r
addresses.
Fo
802.1X authentication.
Only authorized users or devices can connect to the network.
However, this feature requires an AAA infrastructure and careful setup.
Detecting switch connections at the edge may not be in itself a sufficient
reason to set 802.1X.
Loop protect can detect if loop conditions occur on the switch but does not
prevent the connection of a switch.
y
spanning tree
nl
packets
O
Figure 7-8: HP loop protect (HP E-Series)
Se
HP E-Series devices support loop protect, which detects loops introduced by devices
that do not support STP. Ports that implement loop protect send out packets. If another
lU
port receives that packet, the loop is detected. If the port that received the packet is
configured with the receiver-action send-disable option, the port that sent out the
a
packet is disabled.
rn
For example, you enable loop protect on the E-Series switch ports and set the
te
receiver-action send-disable option on them. When the E-Series switch sends a loop
protect packet out the port connected to the unmanaged switch shown below, the
In
packet moves over the loop, and returns on the port. Therefore, the switch disables
port 1, preventing the switch with the erroneous cabling from causing trouble
P
You can use loop protect in conjunction with BPDU protection on edge ports. Another
r
way to implement loop protect is to set it in conjunction with BPDU filter. Note that
Fo
Note
Do not confuse loop protect with the loop protection feature on HP A-Series
switches, which is equivalent to loop guard on Cisco.
TCN guard
– STP TCNs causes switches to age out their MAC address
forwarding tables in 15 seconds instead of 5 minutes.
– This helps switches learn the correct new ports for
forwarding traffic more quickly.
– But edge port status changes, which also generate TCNs,
cause unnecessary aging out and flooding.
– TCN guard (Cisco and HP E-Series) prevents TCNs from
being generated bases on edge port status changes.
– TC-BPDU guard (HP A-Series) prevents excessive flushing of
the tables in response to TCN floods.
y
nl
Figure 7-9: TCN guard
O
STP defines topology change notification (TCN) BPDU, which are intended to alert
other members of the spanning tree that the topology is changing, so they should
Se
rapidly age out their MAC forwarding table because they might now reach MAC
addresses on different ports.
lU
The switch that originates the TCN ages out its own table and forwards the frame
a
toward the root bridge. Each switch in the path to the root acknowledges the TCN,
rn
ages out its own table, and forwards the TCN toward the root bridge. The root
bridge does the same, but forwards the TCN to all devices in the spanning tree.
te
TCNs are useful when the topology has actually changed in a significant way.
In
However, switches also generate TCNs when edge ports change status—although
such changes do not truly necessitate all switches in the spanning tree flushing their
P
forwarding tables. The TCN will only cause the switches to flood traffic unnecessarily
H
TCN guard protects your network from such an occurrence and is available on Cisco
Fo
and HP E-Series switches. This feature prevents TCNs from being generated in
response to status changes on edge ports. You enable this feature on Cisco and HP
E-Series edge ports.
HP A-Series switches have a slightly different feature, TC-BPDU guard, which is
intended to guard against TCN floods implemented by hackers. The flood ties up the
switch’s resources as the switch flushes its addresses again and again, affecting
network stability. When you enable the TC-BPDU guard feature, which is a global
feature on the switch, you can set the maximum number of forwarding address
flushes that the switch can perform within a certain period of time after receiving the
first TCN. For TCNs received in excess of the limit, the switch only performs the
forwarding address entry flush after the time period expires. This feature prevents the
switch’s resources from being consumed.
BPDU filter—Disabling
p STP on individual ports
– By default, BPDUs are sent in all VLANs.
– BPDU filter disables the sending and receiving of
BPDUs on selected ports. It is useful for:
• Setting the boundary of your LAN when connecting to
another LAN (e.g. ISP)
• Ports that do not cause loops by the VLAN design
• “Routed” ports
• Disabling STP on a port when it is required by another
feature (e.g. smart link, RRPP, monitor link)
y
BPDUs, for example on the boundary of your LAN.
nl
Figure 7-10: BPDU filter—Disabling STP on individual ports
O
BPDU filter is very useful for setting the limit of your LAN, and for when you connect
Se
to VLAN and MSTP domains by routed links. When you connect a LAN to a
provider’s LAN, you can filter BPDUs (and PVST BPDUs on HP E-Series switches) to
lU
avoid STP interference from the provider’s switch.
Note that BPDU filter can also be set on edge ports combined with loop protect and
a
admin-edge on HP E-Series switches. It will filter BPDUs sent by rogue switches set at
rn
the edge and will play the role of BPDU guard and root guard, although without an
te
Enable BPDU guard on the PortFast port globally and set recovery time to seconds
Switch(config)# spanning-tree portfast bpduguard default
Cisco-A(config)# errdisable recovery cause bpduguard
Cisco-A(config)# errdisable recovery interval 30
On Cisco, TCN are not generated when ports are set in PortFast mode
y
Switch(config-if)# spanning-tree bpdufilter
nl
Figure 7-11: STP hardening on Cisco
O
As you see, on Cisco switches, you define PortFast on access ports. You then activate
Se
BPDU guard on the PortFast ports. With BPDU guard enabled on Cisco switches,
MSTP closes PortFast ports that receive BPDUs. The switch will automatically re-enable
lU
the port after the recovery interval. (If you do not set the interval, an administrator
must re-enable the port.)
a
rn
y
# Disable STP on the interface
nl
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] stp disable
O
# Ignore STP results in VLANs when loop does not exist in VLANs by design
[DeviceA] stp ignored vlan 100,200
Se
Figure 7-12: STP hardening on HP A-Series
On HP A-Series switches, MSTP will close these ports and notify the Network
lU
Management System (NMS) that the ports are closed. Only the network
administrator, or an automatic procedure set on the NMS, can restore the ports once
a
BPDU guard
Switch(eth-a1)# spanning-tree 1-44 bpdu-protection
Switch(config)# spanning-tree bpdu-protection-timeout 3600
Loop protect:
Switch(config)# loop- protect 1-46 receiver-action send-disable
Switch(config)# loop-protect disable-timer 3600
TCN guard
Switch(config)# spanning-tree 1-46 tcn-guard
y
Apply BPDU filter on the boundary of your LAN on the routed interface
Switch(config)# spanning-tree 46-47 bpdu-filter
nl
Apply PVST-Filter on boundary of your LAN
Switch(config)# spanning-tree 46-47 pvst-filter
O
Figure 7-13: STP hardening on HP E-Series
Se
The slide displays the commands for configuring the features discussed earlier on HP
lU
E-Series switches. As you see, you can set a timeout for BPDU protection, which
automatically re-enables the port the specified amount of time after the BPDU is
a
received. If you set the timeout to 0 (the default), the port is never re-enabled until an
rn
The slide also shows how to implement loop protect, TCN guard, and BPDU and
PVST BPDU filtering.
In
P
r H
Fo
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Root guard
– Root guard prevents a switch from taking the place of the
desired root bridge.
– Root guard is typically set:
• On edge ports (not needed if BPDU guard/protection is already set)
• On the switch-to-switch ports of the root and secondary root switches
− Except the links between roots
When root guard is enabled on a port, it cannot be selected as the root port even if
it receives superior STP BPDUs. The port is assigned an alternate port role and enters
y
nl
a blocking state if it receives superior STP BPDUs. (A superior BPDU contains
information about a root bridge with lower priority and/or a lower path cost to the
O
root bridge.) The superior BPDUs received on a root guard port are ignored. All other
BPDUs are accepted, and the external devices may belong to the spanning tree as
Se
long as they do not claim to be the root device.
lU
Typically, you enable this feature on switch-to-switch links on the root and secondary
root switches with the exception of the link between these two switches (which
a
You can also configure root guard on the edge ports of Cisco and HP E-Series
te
switches; however, BPDU guard provides the same protection and more, making root
guard redundant. On HP A-Series switches, you cannot implement root guard on
In
edge ports. The last feature enabled takes effect. You should usually choose defining
edge ports as edge ports, which can be protected by BPDU guard, in preference to
P
y
Figure 7-15: Spanning tree root guard configuration
nl
Here is a network configuration with root guard enabled. Remember that root guard
O
is represented by the pink dots.
Se
a lU
rn
te
In
P
r H
Fo
Loop guard
– Loop guard prevents loops due to STP BPDUs not being
forwarded
• E.g., a unidirectional link that does not transmit BPDUs
Unidirectional
link prevents
BPDU sending Loop guard
prevents this
situation
Port is set as
forwarding
And creates a
y
loop
nl
O
Figure 7-16: Loop guard
Se
By receiving BPDUs from the upstream device, a device can maintain the state of the
root port and blocked ports. However, due to link congestion or unidirectional link
lU
failures, these ports may fail to receive BPDUs from the upstream devices. In this case,
the downstream device will reselect the port roles: Those ports in forwarding state
a
that failed to receive upstream BPDUs will become designated ports, and the blocked
rn
ports will transition to the forwarding state, resulting in loops in the switched network.
te
The loop guard function can suppress the occurrence of such loops.
In
If a loop guard-enabled port fails to receive BPDUs from the upstream device, and if
that port takes part in the STP calculation, all the instances on the port will be set to,
P
and stay in, the discarding state. This will be true no matter what role the port plays.
H
y
Figure 7-17: Spanning tree loop guard configuration
nl
Here is a network configuration with loop guard enabled. Remember that loop guard
O
is represented by the stars.
Se
a lU
rn
te
In
P
r H
Fo
P3 P4 P3 P4
P2 MSTP Region
Name: HP-Cisco
MSTP Revision: 1
MST Instance 1: VLAN 12
MST Instance 2: VLAN 1,11,13
P1 P2 P2
P1
HP-C HP-E
P3 P3
y
nl
HP-D
O
Figure 7-18: Lab 7.1: Hardening STP
Se
You will now complete a lab in which you implement these STP hardening features
on Cisco and HP switches.
lU
Use the space below to record any instructions your facilitator gives you for this lab.
________________________________________________________________________
a
rn
________________________________________________________________________
te
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Lab debrief
What were your key insights into hardening STP?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
O
Did you discover anything new? If so, list this discovery below.
_________________________________________________________________________
Se
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
What will you apply in the field?
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Module 7 summary
In this module, you have been introduced to ways to harden the spanning tree
protocol to reduce instability. Record your thoughts here while your facilitator reviews
what was covered in this module.
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
y
nl
____________________________________________________________________
O
Se
____________________________________________________________________
lU
____________________________________________________________________
a
rn
____________________________________________________________________
te
____________________________________________________________________
In
P
____________________________________________________________________
r H
Fo
Learning check
Q1: What feature(s) prevent loops that can occur on edge ports?
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
y
nl
O
Q2: Are UDLD on Cisco and DLDP on HP-A Series switches interoperable?
Se
_______________________________________________________________
lU
_______________________________________________________________
a
rn
_______________________________________________________________
te
_______________________________________________________________
P
_______________________________________________________________
r H
_______________________________________________________________
Fo
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
y
Q6: What prevents loop in case of unidirectional links?
nl
_______________________________________________________________
O
_______________________________________________________________
Se
lU
_______________________________________________________________
a
_______________________________________________________________
rn
te
_______________________________________________________________
In
_______________________________________________________________
P
r H
Fo
Module 8 Objectives
After completing this module, you will be able to:
Identify and implement link aggregation methods that will interoperate between
Cisco and HP switches
Use link aggregation and the HP Intelligent Resilient Framework (IRF) to build a
redundant network architecture that integrates Cisco and HP switches
Configure link aggregation between Cisco switches and an HP IRF stack
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 8 –1
HP Networking Interoperability
Naming
y
Cisco: Ether or port channel
nl
HP E-Series: Trunk
HP A-Series: Bridge or link aggregation
Our convention
O
Figure 8-1: Link aggregation and interoperability
Se
Note the different naming conventions for link aggregation between HP and Cisco:
lU
Cisco: EtherChannel or port channel
HP A-Series: bridge or link aggregation
a
rn
HP E-Series: trunk
te
Be careful with HP E-Series naming; link trunking can be confused with VLAN
trunking. For the purposes of this training, the term “link aggregation” will be used.
In
P
r H
Fo
8 –2 Rev. 11.12
Link Aggregation
LACP-BPDUs
Switch MAC address, LACP key > Works if both
Static LACP sides agree
Static LACP
< Switch MAC address, LACP key
LACP-BPDUs
Switch MAC address, LACP key >
Dynamic LACP Set and works
Dynamic LACP if both sides agree
< Switch MAC address, LACP key
y
Active
Active
nl
Passive
O
Figure 8-2: Link aggregation modes
Se
Static link aggregation
In static link aggregation, there is no exchange of frames between the two switches.
lU
Each side manages its own link aggregation. Each side load balances outgoing
frames according to that platform’s rules. Each side accepts the incoming frames as
a
they are sent from the other side. Of course, neither side ever forwards incoming
rn
frames back out the other ports in the link aggregation group because the switch
te
Benefits: Static link aggregation is very interoperable. It can be used between all
vendors.
P
is correct For example, you wouldn’t be able to tell if the wrong ports were
connected. In an environment with many aggregated links, LACP gives you more
r
Fo
Rev. 11.12 8 –3
HP Networking Interoperability
y
nl
LACP supports hot-standby links. For example, out of ten lines, eight would be
actively used, and two lines would be in standby mode.
O
Benefits: Allows a link aggregation to be initiated by one side only. However,
Se
that requires the other side to be pre-set in passive mode. Most vendors do not
allow this pre-setting because it causes issues.
lU
Drawbacks: On HP E-Series switches, dynamic LACP trunks cannot be statically
assigned to a VLAN. VLAN assignments can be made only through GVRP.
a
rn
Interoperability usually works with dynamic LACP on both sides as long one side is
r
active. There are limitations on the HP E-Series for configuring the dynamic trunk
Fo
(Remember that dynamic trunk is the name for link aggregation on HP E-Series
switches.)
Other combinations include:
Static LACP and dynamic LACP (passive or active), which also works most of the
time
Static and static LACP, which do not usually work well together
Although a virtual port is created, the static LACP side requires the identity of the
remote side to be sent on all links to select the ports in link aggregation. One port
maybe selected but not the others.
8 –4 Rev. 11.12
Link Aggregation
y
Static LACP-Static LACP
nl
Figure 8-3: Link aggregation modes (cont.)
O
Depending on a switch’s platform, link aggregation modes will be called different
Se
names. Remember that the Static-Static and Static LACP-Static LACP are the
combinations you are recommended to use.
lU
Apart from modes, there are other common requirements for link aggregation to
work. The links in a link aggregation must:
a
rn
Use same speed, although they may use different media types
In
The maximum number of links that can comprise a link aggregation is usually eight,
r
Fo
but can be more or less, depending on the platform. The maximum number of link
aggregations per switch also varies on a per platform basis.
Rev. 11.12 8 –5
HP Networking Interoperability
y
nl
Load balancing does not play a role in interoperability; however, you should
O
understand how the traffic may be load balanced and the bandwidth may be used
on each platform. You should also understand the benefits of various types of load
Se
balancing.
For example, your network features a link aggregation between two switches, one of
lU
which connects to a server. Traffic destined to this server makes up a significant
portion of the link aggregation’s traffic, and you want to load balance it. The
a
destination MAC address and IP address (those of the server) are the same for all
rn
traffic. In addition, if the traffic is routed before crossing the link aggregation, the
te
source MAC address for all traffic is the same. In this case, the only way to load
In
balance the traffic is using the source IP addresses, which differ for each client.
However, if you are trying to load balance communications between two servers, the
P
source IP address will be the same for most traffic, and the only way to truly load
H
balance traffic would be to use a TCP or UDP port. This option is available on the
Comware OS and on HP A-Series switches.
r
Fo
8 –6 Rev. 11.12
Link Aggregation
Static or LACP
link aggregation
Distribution
HP A-Series IRF
Static or LACP
link aggregation
Access layer
y
Cisco
nl
O
Would you enable STP?
Se
Figure 8-5: IRF, link aggregation and interoperability: IRF in the distribution layer
lU
IRF stands for Intelligent Resilient Framing. With IRF, two (or N) switches act as one.
IRF is what is conventionally called true stacking. It is available on HP A-Series
a
A5800, A5500, and A5120 (10GbE models). With IRF, two switches can be
In
nine members.
H
vendors can connect to an IRF using link aggregation, eliminating the need for STP.
Q1: Would you enable STP?
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
Rev. 11.12 8 –7
HP Networking Interoperability
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
y
nl
______________________________________________________________________
O
______________________________________________________________________
Se
______________________________________________________________________
a lU
______________________________________________________________________
rn
te
______________________________________________________________________
In
______________________________________________________________________
P
H
______________________________________________________________________
r
Fo
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
8 –8 Rev. 11.12
Link Aggregation
L3 Cisco
Core
Static or LACP
Link Aggregation
L2
HP A-Series
Access layer
y
nl
O
Do you need to configure VRRP the distribution layer?
Se
Figure 8-6: IRF, link aggregation, and interoperability: IRF in the distribution and access layers
lU
Q1: Do you need to configure VRRP?
a
______________________________________________________________________
rn
te
______________________________________________________________________
In
______________________________________________________________________
P
H
______________________________________________________________________
r
Fo
______________________________________________________________________
______________________________________________________________________
Link aggregation becomes a way to integrate the different layers. In the above
design, IRF is put in the aggregation/distribution and access layer. The Cisco core
connects to the distribution layer via link aggregation.
Rev. 11.12 8 –9
HP Networking Interoperability
Core HP A-Series
Access layer
Cisco
y
stacking
nl
O
Would you enable STP?
Se
Figure 8-7: IRF, link aggregation, and interoperability: IRF in the core and distribution layers
lU
Again, link aggregation can integrate the different layers. In the above design, IRF is
a
put in the aggregation/distribution and core layers. The Cisco stack in access
rn
Note
Cisco suggests stacking on its Catalyst 6500 and Catalyst 3750 switches, as well
In
as others.
P
r H
Fo
y
channel-group 1 mode on
nl
interface GigabitEthernet 1/21
channel-group 1 mode on
O
Figure 8-8: Static link aggregation configuration
Se
This slide provides a quick comparison of the static link aggregation configuration on
each platform.
lU
Use the following commands to check the configuration:
a
On Cisco:
rn
On HP A-Series
In
On HP E-Series
H
y
channel-group 1 mode active
nl
interface GigabitEthernet 1/21
channel-group 1 mode active
O
Figure 8-9: Static LACP link aggregation configuration
Se
This slide provides a quick comparison of the LACP link aggregation configuration on
each platform.
lU
To check the configuration, use these commands:
a
On Cisco:
rn
On HP A-Series
In
On HP E-Series
H
y
Switchport trunk encapsulation dot1q
Switchport mode trunk
nl
Switchport trunk allowed vlan 1,11-13
O
Figure 8-10: VLAN trunking and link aggregation
Se
Q1: Do you have to set VLAN trunking on physical ports as well?
lU
______________________________________________________________________
a
______________________________________________________________________
rn
te
______________________________________________________________________
In
______________________________________________________________________
P
H
______________________________________________________________________
r
Fo
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
y
VLAN trunking has been set on link aggregation ports and not on physical
nl
ports.
O
If link aggregation still does not come up, try the following:
Se
Shut down and undo shut down of physical ports at the same time
lU
Repeat these operations in order:
1. Create link aggregation.
a
P3 P4 X=1 on Cisco-A
PO2
X=3 on IRF
y
P1 trk1 P2
nl
HP-E
O
P3
Se
Client_1
Use the space below to record any instructions your facilitator gives you for this lab.
te
________________________________________________________________________
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Lab debrief
Did you find any useful show and display commands during the lab?
______________________________________________________________
______________________________________________________________
______________________________________________________________
______________________________________________________________
______________________________________________________________
y
nl
O
What were the main things you learned about link aggregation?
______________________________________________________________
Se
lU
______________________________________________________________
a
______________________________________________________________
rn
te
______________________________________________________________
In
______________________________________________________________
P
H
______________________________________________________________
r
Fo
______________________________________________________________
______________________________________________________________
______________________________________________________________
______________________________________________________________
Did you learn anything that you will apply in the field?
______________________________________________________________
______________________________________________________________
______________________________________________________________
______________________________________________________________
______________________________________________________________
y
______________________________________________________________
nl
O
______________________________________________________________
Se
______________________________________________________________
lU
______________________________________________________________
a
rn
te
In
P
r H
Fo
Module 8 summary
In this module, you have learned about the benefits of using link aggregation, and
how when combined with IRF, it provides a redundant architecture without STP. Write
down any thoughts you may have while your facilitator reviews the content of this
module.
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
_______________________________________________________________________
nl
O
_______________________________________________________________________
Se
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
_______________________________________________________________________
r H
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Learning check
Q1: In what circumstances can you create an LACP link aggregation in which one
switch connects to two different switches?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
Q2: Can you create a link aggregation between a Cisco switch port in on mode and
an HP E-Series switch port in trunk mode?
O
_______________________________________________________________________
Se
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
In
Q3: Can you create a link aggregation between a Cisco switch in active mode and
P
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
Module 9 objectives
After completing this module, you will be able to:
Describe the differences and similarities between several virtual IP protocols,
including:
Cisco Hot Standby Router Protocol (HSRP)
Cisco Gateway Load Balancing Protocol (GBLP)
y
Industry-standard Virtual Router Redundancy Protocol (VRRP)
nl
Assess the advantages and disadvantages of virtual IP protocols as compared to
O
HP Intelligent Resilient Framework (IRF) solutions
Implement the appropriate protocol options such as:
Se
Preemption
lU
Preempt delay timer
a
Load-balancing
te
Rev. 11.12 9 –1
HP Networking Interoperability
y
nl
Use the space below to record your experience in implementing any of these
protocols.
O
NOTES
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
9 –2 Rev. 11.12
Virtual IP Protocols
Virtual IP concepts
– A group of routers share one Static route
10.0.0.0/8 -> VIP1
virtual IP address and one Router
virtual MAC address.
Virtual IP 2
– As far as endpoints are Virtual MAC 1
concerned, one router exists: Master Backup
• They
send an ARP request for the Backup
Master
MAC address of their gateway IP Virtual IP 1
Virtual MAC 1
address (the virtual IP address).
• They address all traffic to be routed to
the virtual MAC address at Layer 2. Client
y
IP: 10.POD.1.51
nl
GW IP: Virtual IP 1
GW MAC: Virtual Mac 1
O
Figure 9-1: Virtual IP concepts
Se
Examine the figure and discuss the questions on this and the next page. Reference
material is also included after the questions.
lU
Q1: List the virtual protocols with which you are familiar. State which are proprietary
and which are industry-standard protocols.
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Rev. 11.12 9 –3
HP Networking Interoperability
Q3: Do the endpoints that use the virtual IP as their default router need to be aware
of HSRP or VRRP?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Q4: What are the different roles of routers in HSRP and VRRP?
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
Q5: In what circumstances are the virtual IP and virtual MAC addresses used?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
9 –4 Rev. 11.12
Virtual IP Protocols
Q6: For which common protocols might the virtual IP protocols not provide
redundancy without interruption? Explain.
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
_________________________________________________________________________
a lU
_________________________________________________________________________
rn
te
Reference
In
A group of routers function as one virtual router by sharing one virtual IP address
and one virtual MAC address. Only one router actively performs packet forwarding
P
for local hosts while the other routers remain in backup mode. If the active router
H
fails, one of the backup routers will be elected as the new active router and assume
the ownership of the virtual IP and MAC addresses.
r
Fo
When a backup router assumes the role of master, it sends a gratuitous ARP, which is
a response for which there was no request. The gratuitous ARP updates the ARP table
of endpoints in the broadcast domain. The gratuitous ARP also updates the MAC
address table of switches within the broadcast domain, speeding the convergence.
Note that endpoints that use the virtual IP address as their default router IP do not
have to support or be compatible with the virtual IP protocol. These endpoints simply
send an ARP request for their default router’s IP address and receive in response the
group’s virtual MAC address. They can then use this address as the destination MAC
address for traffic that needs to be routed.
The virtual MAC address is owned by the master, but if the master fails, the new
master then owns the address. The endpoints continue to send traffic that needs to be
routed to the same virtual MAC address, so the failover is entirely transparent for the
client.
Rev. 11.12 9 –5
HP Networking Interoperability
Virtual IP quiz
– What is the difference between VRRP and HSRP?
– What is the difference between GLBP and HSRP?
– What message does a backup router usually send when it
becomes the master?
– What function does preemption serve?
– What function does preempt delay serve?
– What function does tracking serve?
y
nl
Take a quick pretest to assess what you know about virtual IP protocols. The rest of
O
this module will provide answers to any questions that you do not know.
Q1: What is the difference between VRRP and HSRP?
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
9 –6 Rev. 11.12
Virtual IP Protocols
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
In
Q3: What message does a backup router usually send when it becomes master?
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Rev. 11.12 9 –7
HP Networking Interoperability
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
Q5: What function does preempt delay serve?
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
9 –8 Rev. 11.12
Virtual IP Protocols
y
RFC
nl
RFC 2281 No RFC RFC 3768 RFC 3768
O
* Proprietary **available with IRF
HSRP and GLBP are Cisco proprietary. VRRP is interoperable with the exception of
rn
Authentication
In
Both HSRP and VRRP allow the partners (routers) to authenticate each other.
Authentication prevents a rogue router from posing as the master in a subnet and
P
the traffic.
r
Preempt delay
Fo
Load balancing
The load balancing function distributes traffic destined to a VLAN’s (or broadcast
domain’s) default gateway between multiple routers. GLBP and the HP A-Series load
balancing version of VRRP both support this feature. Both protocols are proprietary.
How is traffic load balanced? The single virtual IP address is associated with one
virtual MAC address per member. The master receives ARP requests and sends
replies that specify different virtual MAC addresses, taking turns among the different
virtual MAC addresses in order to distribute traffic among them. If one router in the
group fails, one of the other routers assumes the failed member’s virtual MAC
address as well as its own.
Rev. 11.12 9 –9
HP Networking Interoperability
Stateful NAT
If a router that implements a virtual IP protocol and NAT fails, the router’s table of
NAT sessions is usually lost.
With Cisco Stateful Failover of Network Address Translation (SNAT), routers
implementing HSRP can share the NAT session table between them.
VRRP does not support the sharing of NAT sessions. However, IRF on HP A-Series
devices can provide IP redundancy with the assurance that no NAT sessions are lost
when a single member fails.
y
Virtual MAC
nl
O
All of the virtual IP protocols use a similar virtual MAC address, in which the last
octet is defined by the group ID of the virtual router; however, the precise address
Se
varies among the protocols.
Remember that GLBP and VRRP load balancing mode use multiple virtual MAC
lU
addresses—one for each member router.
Multicast IP
a
rn
The table shows the multicast IP addresses, which the router members in the virtual
te
y
With IRF, multiple routing switches operate as one virtual switch. The switches do not
nl
need to use virtual IP protocols. Instead, all switches in the IRF group share all IP
O
addresses, MAC address tables, ARP caches, routing information, and NAT sessions
states. The traffic is fully load balanced between all routers in the IRF group.
Se
You will see several design cases in which IRF provides high availability and
lU
bandwidth with a simple implementation.
a
rn
te
In
P
r H
Fo
VRRP on Cisco
– VRRP is not widely implemented in IOS on Catalyst, but is
supported on Catalyst 4500, 4900 and 6500.
– VRRP is implemented in IOS on many routers—minimum
version 12.2 (X).
– Verify the necessary IOS version with the Cisco Feature
Navigator.
Although VRRP support is not widely supported in the Cisco product line, some Cisco
y
devices do support VRRP:
nl
7600 router family with IOS version 12.2(13)ZP4 or later
O
Catalyst 4500 family with IOS version 12.2(53)SG2 or later
Se
Catalyst 6000 with SUP2/MSFC2 and IOS version 12.2(18)SXF17a or later
Catalyst 6500 with VS-S720-10G/MSFC3 and IOS version 12.2(33)SXI3 or
lU
later
a
(To verify which IOS versions support VRRP, please consult the Cisco Navigator
rn
feature.)
te
In
P
r H
Fo
________________________________________________________________________
y
nl
________________________________________________________________________
O
________________________________________________________________________
Se
________________________________________________________________________
lU
________________________________________________________________________
a
________________________________________________________________________
rn
te
________________________________________________________________________
In
________________________________________________________________________
P
H
________________________________________________________________________
r
________________________________________________________________________
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
VIP1=10.1.1.1 VIP2=10.1.2.1
y
nl
Mx Master Bx
Backup
O
Figure 9-6: Default gateway redundancy with HSRP and VRRP
Se
Here you see the main use case for HSRP and VRRP: providing redundancy for the
default gateways of VLANs. Typically, a VLAN has one master and one backup
lU
router. The master owns the virtual IP address that the DHCP server distributes as the
VLAN’s default gateway.
a
Note that you should synchronize the roles between VRRP or HSRP and MSTP to
rn
ensure that the topology is used efficiently. As you see, the VRRP or HSRP master for
te
a particular VLAN is the MSTP root for the instance that includes that root.
In
P
r H
Fo
3
1
1
4
10.1.2.1
10.1.2.1
IRF
10.1.1.1
10.1.1.1
3
1
1
y
IP: 10.1.1.51/24
nl
Def GWY : 10.1.1.1
O
Figure 9-7: Default gateway redundancy with IRF
Se
With IRF, you do not need to configure a virtual IP protocol to ensure redundancy for
the default gateway; IRF itself ensures such redundancy and more.
lU
The IRF system acts as one single Layer 3 device. The master device or fabric
a
synchronized across the IRF system. The other member or members of the IRF group
store the routing status in real-time to ensure that the IRF group continues to function
te
IRF supports all unicast and multicast routing protocols and implements distributed
resilient routing:
P
H
Fo
y
When you combine several HP A-Series devices to form an IRF virtual device, the
nl
management and control planes of one of the devices becomes active while those of
O
the other devices stay in standby. However, every switch retains its active forwarding
planes, which the active management and control planes draw on as necessary.
Se
In other words, an IRF system acts like a modular switch with centralized
management and control planes and a distributed forwarding plane.
lU
Note
a
with a maximum of four SRPUs. Only one SRPU becomes active while the others
(including another on the same switch) stay in standby.
te
In
Consider ARP. In an IRF virtual device, ARP runs in a distributed manner but as if on
a single switch:
P
configuration.
r
Each device sends its ARP requests independently. But when a device receives
Fo
an ARP response packet, it transmits this packet to all devices through the IUC to
prevent other devices from sending the same ARP requests.
When the IRP virtual device receives an ARP request packet, the master responds
at once. The ARP request packet is broadcast, and it is automatically
synchronized to each device so that the entry can be learned by everyone.
However, each device ages its own ARP entry independently.
M1 B1
VIP1=10.1.1.1
y
nl
IP: 10.1.1.45/24 IP: 10.1.1.24/24
O
IP Def Gwy 10.1.1.1 IP Def Gwy: 10.1.1.1
MAC Def Gwy:000f-e2ff-0011 MAC Def Gwy: 000f-e2ff-0012
Se
Figure 9-8: Load balancing with GLBP and VRRP (HP A-Series devices)
In this use case, you need to implement load balancing. On HP A-Series devices,
lU
VRRP load balancing mode provides the necessary functionality. On Cisco devices,
GLBP provides load-balancing. However, this particular use case focuses on VRRP
a
When VRRP works in the standard protocol mode, only the master can forward
te
packets and the backups remain in a listening state. Although you can create
In
multiple VRRP groups to implement load balancing among multiple routers, this
solution would require endpoints in the VLAN to have different gateways,
P
When VRRP works in the load balancing mode, however, the group gains load
r
The virtual IP address is associated with multiple virtual MAC addresses, one for
each router in the VRRP group. The master allocates virtual MAC addresses to routers
in the VRRP group. It then replies to ARP requests (for the IPv4 network) or Neighbor
Discovery (ND) requests (for the IPv6 network) from different endpoints with different
virtual MAC addresses, using a load balancing algorithm. The backup routers,
however, do not reply to the ARP or ND requests.
In this way, each router in the group can forward packets. Because you only need to
create one VRRP group to implement load balancing among multiple routers, you
avoid the configuration issues but fully utilize your network resources rather than
leave backup routers in the idle state.
The VRRP load-balancing mode is based on the VRRP standard protocol mode, so
mechanisms, such as master election, preemption, and tracking functions, in the
standard protocol mode are also supported in the load-balancing mode.
IRF
10.1.1.1
y
IP Def Gwy: 10.1.1.1
nl
Figure 9-9: Load balancing with IRF
O
The IRF architecture itself provides load balancing between the Layer 3 switches.
Se
Unlike an MSTP/VRRP or PVST/HSRP architecture, it provides symmetric connections
between edge switches and the IRF, in which all links are used.
lU
As the figure shows, traffic between the edge and core switches is load balanced by
the algorithm applied on the aggregated link.
a
rn
When a packet arrives on a port on one of the IRF’s routing-switches, the packet is
forwarded locally because routing and switching are truly distributed among IRF
te
members and line card—as long as the destination is connected to a switch which is
In
IRF members. When forwarding the traffic to an aggregated link, the IRF virtual
H
device always chooses the closest link in the aggregation (preferably, directly
connected).
r
Fo
M2
M1 VIP2 M2 VIP2
VIP1 VIP1 M1
B2 B1
y
nl
O
Figure 9-10: Next hop router in static routes—Case 1
Se
In some environments, static routing is a convenient solution for routing between a
lU
WAN router or a firewall and a pair of routing switches. For example, the switches
might not support a common routing protocol, or the equipment might be managed
a
company.
te
You can use HSRP or VRRP to build redundancy into the static routes. Simply
configure the virtual IP address as the next hop IP address in the static routes to
In
Configuring the virtual IP address as the next hop in the static route provides more
H
redundancy than configuring two static routes that point to different real IP addresses.
Why? When you use real IP addresses, if the device that is the next hop for the
r
Fo
active route fails, the router must wait for the table to update. But with a single route
to the virtual IP address, the same route remains accurate if the master fails. The
backup simply takes ownership of the virtual IP address and the virtual MAC
address. As in the case of a failover for endpoints and their default gateway, the
router with the static route is not aware of the change.
For load-balancing purpose, you can create two static routes that point to two virtual
IP address.
M3 M4
M1 M2
VIP1 VIP2
B2 B1
y
nl
* Or GLBP or VRRP Load balancing
O
Figure 9-11: Next hop router in static routes—Case 2
Se
This example is similar to the previous one except that it features a pair of WAN
routers or firewalls. The two pairs of routers—the pair of routing switches and the
lU
pair of WAN routers—are not directly connected and use static routes to exchange IP
packets.
a
In this use model, you can build redundancy into the WAN routers as well as the
rn
routing switches, again by using a virtual IP protocol. The WAN routers share a
te
virtual IP address, which serves as the next hop for the default route set on the routing
switches. As in the previous example, the WAN routers have a static route to the
In
local network using the routing switch’s virtual IP address as the next hop.
P
If you create two virtual IP addresses and two static routes on each side, you can
H
Wan router M3 M4
or Firewall
B4 VIP3 VIP4 B3
y
nl
O
Figure 9-12: Next hop router in static routes with IRF
Se
In this example, the WAN routers only have one Ethernet interface that is connected
to the LAN. They are connected to an access switch, which is connected to the IRP
lU
with an aggregated link. This configuration provides the WAN router with symmetric
access to both IRF members.
a
Each WAN router could also be connected directly with a single interface to one of
rn
the IRF member. This configuration would still ensure redundancy but the IRP links
te
Each WAN router could also have two Ethernet interfaces and then form a port
channel or aggregated link to the IRF.
P
r H
Fo
Wan router
or Firewall
R R R
S2 S1 S2 S1
S2
S1 B1
M1 M1 M1
VIP1 VIP1 VIP2 VIP1
VIP2 M2 B2 M2 VIP2 M2
B2
y
B1
nl
O
Figure 9-13: Preemption and preempt delay
At time n, when the master is restored or rebooted, it could preempt the role of
rn
master. It may not be ready to route IP packets to remote networks because HSRP
and VRRP often converge much faster than routing protocols; even though the master
te
can route packets to directly connected networks immediately, it has not yet learned
In
routes via OSPF, RIP, or BGP. VRRP or HSRP usually converge faster than the routing
protocols.
P
The preempt delay setting solves this problem: it adds a delay time between when
H
the master comes back on line and when it preempts its role of master.
r
In the example, at time n+ preempt delay, the former master has waited for
Fo
convergence of its routing protocols, it can now preempt the role of master.
IP1
IP1 IP2
IP2
y
nl
O
Figure 9-14: No preempt delay needed with IRF
Se
Consider the previous scenario with IRF. In this example, the router is connected to
lU
the IRF with an aggregated link.
A link failure would only cause less bandwidth; Layer 2 and Layer 3 connectivity
a
would remain, protecting packets from being dropped. Even if an IRF member fails
rn
Because the IRF virtual device uses a single routing table, there is no need for the
In
router to delay resuming its role in the IRF virtual device when it reboots.
P
r H
Fo
WAN router
or Firewall
M1 M2
M2
B1
VIP1 VIP2 B1 VIP1 M1
B2 B2
VIP2 Priority 90
Priority 100 Priority 90 Priority 80
- 20
y
nl
Figure 9-15: Tracking interfaces with VRRP or HSRP
O
When the interface that the master router uses to connect to the WAN router or
Se
firewall goes down, the master loses its IP routes to remote IP networks.
lU
If the system uses routing protocols, the master can learn new routes to the remote
networks. Or the master might have a floating static route. In either case, however,
a
the next hop for new routes is typically a backup router in the VRRP group. The
rn
master has become an unnecessary hop for traffic destined to remote IP networks, so
routing traffic directly through the backup would be more efficient.
te
VRRP or HSRP tracking enables the router to lower its priority if a particular interface
In
goes down so that its priority becomes lower than that of a backup. The backup can
then preempt the role of master for the virtual IP.
P
H
In this typical case, tracking is usually set for VLANs. So that routers can preempt the
master role when necessary, you should usually configure preempt mode with
r
tracking. Note, however, that tracking is optional; sometimes you might decide that
Fo
M1 M2
M2
B1
VIP1 VIP2 B1 VIP1 M1
B2 B2
VIP2 Prior 90
Priority 105 Priority 90 Priority 85
- 2*10
y
nl
O
Figure 9-16: Tracking remote IP addresses
Se
A router’s access to remote IP networks may depend on a series of connections and
devices, including several routers, firewalls, and switches. Simply because the router’s
Internet-facing interface is up does not rule out a problem on another upstream
lU
device.
a
HSRP and VRRP on HP A-Series devices offer the ability to track connectivity to a
rn
remote IP address through a specific interface. (You must specify the interface;
otherwise, a router might not realize that its interface has gone down, and it is
te
You would typically choose an IP address on the Internet or other remote network—
for example, the IP address of:
P
H
Fo
Note
Make sure that the router can ping the IP address that you select and that there is
no firewall that can block the ping packets.
When a router detects that it cannot reach tracked IP address through the tracked
interface, the result is the same as in the simple tracked interface scenario.
In this example, the routers in the VRRP or HSRP group track two remote IP addresses;
thus they avoid relying on a single IP address (which might itself fail) to test an access
to remote networks. Failure of each node can lower priority—by 10 and by 15, for
example. However, only losing connectivity with both tracked addresses will truly
indicate a failure and lower the master’s priority enough to become lower than that
of the backup.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
IP3 IP4
0.0.0.0/0 -> IP3 pref 1 -> 100 0.0.0.0/0 -> IP 4 pref 10
y
nl
O
Figure 9-17: Tracking with IRF and NQA
Network Quality Analyzer (NQA) allows a switch or an IRF, as shown in the figure
Se
above, to track the status of a remote IP address. Based on connectivity to this
address, the router can change the preference of a static route. (On HP E-Series
lU
switches and Cisco switches, the preference is the administrative distance.)
a
In the examples illustrated above, each WAN router has two static routes: a primary
rn
route and a backup one with a lower preference (called a floating static route).
te
When the router fails to reach the tracked remote IP address, it increases the
preference of the main route (lower preference value is preferred). As a result, the
In
NOTES
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
standby 1 preempt
standby 1 tracking serial0
nl
O
Default HSRP priority is 100
Se
Figure 9-18: HSRP configuration example
This slide shows the commands for configuring HSRP and the HSRP options discussed
lU
earlier in this module on Cisco devices.
a
rn
te
In
P
r H
Fo
y
glbp 10 authentication md5 key-string s!a863
nl
glbp 10 ip 172.18.10.1
exit
O
Figure 9-19: GLBP configuration example
Se
These are the commands for configuring GLBP and the GLBP options discussed
lU
earlier on Cisco devices.
a
rn
te
In
P
r H
Fo
Virtual router ID
Preempt delay of 45 sec to allow OSPF
network to be in routing table
y
if not specified ip address 202.38.160.2 255.255.255.0
nl
vrrp vrid 1 virtual-ip 202.38.160.111
O
Figure 9-20: VRRP configuration example on HP A-Series
Se
These are the commands for configuring VRRP and the VRRP options discussed
earlier in this module on HP A-Series devices. For example, the preempt delay has
lU
been set to 45 seconds so that the router can identify its Open Shortest Path First
(OSPF) neighbors and update its routing table with OSPF routes.
a
rn
te
In
P
r H
Fo
y
nl
O
Figure 9-21: VRRP tracking remote IP on HP A-Series
Se
To configure tracking with VRRP on HP A-Series devices, you must set up NQA tests
and a track to bind the test to the VRRP priority reduction function.
lU
The specific commands are outlined in this figure and the one on the following page.
a
rn
te
In
P
r H
Fo
y
To finish the configuration, you specify the track in the VRRP configuration.
nl
In another example, you can configure two IP addresses for the router to track. If the
O
router loses contact with one of the addresses, it decreases its priority by 30 to 110,
which is still higher than the backup. If the router loses contact with the other
Se
address, it decreases its priority by 20—a different value from the first so that you
can look at the priority and instantly determine which IP addresses are accessible.
lU
Only if the router loses contact with both addresses does the priority decrease
enough for the backup to become master. This setup helps to reduce the false
a
1. First, define an NQA test. You need to specify the name of the administrative
In
user who creates the test and also assign the test a name.
[Switch] nqa entry admin pingtest1
P
2. Configure the test. In this example, the test sends echo requests to 10.1.1.1 every
H
200 ms, waiting for a 10 ms timeout. The test triggers a reaction when five
r
3. Define a second test. In this example, the second test sends echo requests to
10.2.2.2 every 200 ms, waiting for a 10 ms timeout and triggering reaction
when 5 probes failed
[Switch] nqa entry admin pingtest2
[Switch-nqa-admin- pingtest2] type icmp-echo
[Switch-nqa-admin- pingtest2-icmp-echo] destination ip 2.2.2.2
[Switch-nqa-admin- pingtest2-icmp-echo] frequency 200
[Switch-nqa-admin- pingtest2-icmp-echo] probe timeout 10
[Switch-nqa-admin- pingtest2-icmp-echo] reaction 1 checked-
element probe-fail threshold-type consecutive 5 action-type
trigger-only
4. Define tracks, which you use to link the NQA tests to applications such as static
routes or VRRP. The track specifies both the test and the reaction to monitor.
y
nl
[Switch] track 1 nqa entry admin pingtest1 reaction 1
O
[Switch] track 2 nqa entry admin pingtest2 reaction 1
Se
[Switch] nqa schedule admin pingtest1 start-time now lifetime
forever
lU
[Switch] nqa schedule admin pingtest1 start-time now lifetime
forever
a
rn
Note
If you want to stop a test, enter undo nqa schedule <admin-name> <test-name>.
te
6. Configure VRRP to base the priority on the track. In this example, the virtual IP is
P
172.21.1.10 and the priority is 140. As described earlier, you will configure a
slightly different reduction for the two tracks, and only the combined reductions
H
make the priority lower than the backup’s priority (90 compared to 100 on the
r
backup).
Fo
7. You can test the topology and configuration by activating debugging on the
switch.
<Switch> terminal debugging
<Switch> debugging nqa reaction
<Switch> debugging track
y
<Switch> display vrrp verbose
nl
IPv4 Standby Information:
O
Run Method : VIRTUAL-MAC
Se
Total number of virtual routers: 1
Interface : Vlan-interface201
lU
VRID : 1 Adver. Timer : 1
Admin Status : UP State : Master
a
Virtual IP : 172.21.1.10
H
Master IP : 172.21.1.2
The next example shows the debug output (debugging nqa reaction and debugging
track) when the router loses contact with one of the remote IP addresses.
<Switch1>
*May 2 21:37:19:385 2000 Switch1 TRACK/7/TRACK Debug: Receive the
notification that the status of NQA(admin-pingtest1) reaction(1)
has changed to 2.
Below is the output for the display vrrp verbose command when the router has lost
contact with one of the remote IP addresses. As you see, the priority has been
reduced, but the router is still master.
<Switch> display vrrp verbose
IPv4 Standby Information:
Run Method : VIRTUAL-MAC
Total number of virtual routers: 1
Interface : Vlan-interface201
y
nl
VRID : 1 Adver. Timer : 1
Admin Status : UP State : Master
O
Config Pri : 140 Run Pri : 110
Se
Preempt Mode : YES Delay Time : 0
Auth Type : NONE
lU
Track Object : 1 Pri Reduced : 30
Track Object : 2 Pri Reduced : 20
a
rn
Virtual IP : 172.21.1.10
Virtual MAC : 0000-5e00-0101
te
Master IP : 172.21.1.2
In
Here is the debugging output when the router’s link to the second tracked IP address
goes down:
P
H
has changed to 2.
Fo
Here is the output for the display VRRP verbose command after the link to the second
remote IP address goes down. As you see, the priority has been further reduced, and
the former backup router (which must be configured separately) is now master.
<Switch> display vrrp verbose
IPv4 Standby Information:
Run Method : VIRTUAL-MAC
Total number of virtual routers: 1
Interface : Vlan-interface201
VRID : 1 Adver. Timer : 1
Admin Status : UP State : Master
Config Pri : 140 Run Pri : 90
Preempt Mode : YES Delay Time : 0
y
nl
Auth Type : NONE
Track Object : 1 Pri Reduced : 30
O
Track Object : 2 Pri Reduced : 20
Se
Virtual IP : 172.21.1.10
Virtual MAC : 0000-5e00-0101
lU
Master IP : 172.21.1.3
a
rn
te
In
P
r H
Fo
y
Backup VRRP
backup
virtual-ip-address 10.1.1.1 255.255.255.0
router
nl
priority 100
enable
O
exit
exit
Se
Figure 9-23: VRRP configuration example on HP E-Series
These are the commands for configuring VRRP and the VRRP options discussed
lU
earlier on HP E-Series devices.
a
When VRRP functions in compliance with RFC 3768, only the owner of the virtual IP
te
address replies to pings (ICMP echo requests) to the virtual IP address. When you
enable the virtual IP ping feature is enabled, a backup router operating as the master
In
can respond to ping requests made to the virtual IP address. This makes it possible to
test the availability of the default gateway with ping. A non-owner and non-master
P
member of the VRRP group still drops all packets to the VIP.
r H
Fo
Cisco-A Cisco-B
HSRP IP addressing:
P1 P1
10.POD.VLAN.X/24
X=1 on Cisco-A
P3 P4 P3 P4 X=2 on Cisco-B
Trunks X=3 on HP-C
VLANs1, 11,
X=4 on HP-D
12, 13
X=5 on HP-E
P1 P2 P1 P2 X=6 on HP-F
X=100 on Server_1
X=DHCP on Client_1
P3 HP-E P3 HP-F
y
Edge Edge
VLAN 1 VLAN 12
nl
Server_1 Client_1
O
Figure 9-24: Lab 9.1: Configuring VRRP (Optional) Step 1
Se
This lab is optional. Complete it if your facilitator tells you to do so.
In this lab you will replace a Cisco aggregation switch that is using HSRP, a
lU
proprietary protocol, with an HP A-Series aggregation switch that is using VRRP, an
industry standard protocol.
a
rn
Figure 9-24 shows the lab configuration before the migration begins.
te
As you begin to add the first HP switch, your network will resemble Figure 9-25.
In
MSTP Region
Name: HP-Cisco
Revision: 1
P
Server_1 Client_1
Figure 9-26 shows your network as you add the second HP switch, finish
implementing VRRP, and migrate the access layer switches.
MSTP Region
Name: HP-Cisco
Revision: 1
MST Instance 1: VLAN 12
MST Instance 2: VLAN 1,11,13
y
Server_1
nl
Server_1 Client_1 Client_1
O
Finally, Figure 9-27 illustrates the topology after the migration is complete.
MSTP Region
Se
lU
Name: HP-Cisco
Revision: 1
MST Instance 1: VLAN 12
MST Instance 2: VLAN 1,11,13
a
rn
P1
P3 P3 P4 P2 P3 P2 P3
In
IP addressing: Trunks
10.POD.VLAN.X/24 VLANs 1, 11, 12, 13
X=1 on Cisco-A P1 P2
P
X=2 on Cisco-B P2 P1
X=3 on HP-C HP-E HP-F
H
X=4 on HP-D
X=5 on HP-E P3 P3
X=6 on HP-F
r
X=100 on Server_1
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Lab debrief
What were your key insights and discoveries about virtual IP protocols?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
O
_________________________________________________________________________
Se
Did you encounter any difficulties?
lU
_________________________________________________________________________
a
_________________________________________________________________________
te
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
Did any of your mistakes teach you something that you would like to you would like
te
to share?
In
_________________________________________________________________________
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Have you learned a practice that you will apply in the field?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
_________________________________________________________________________
nl
O
_________________________________________________________________________
Se
_________________________________________________________________________
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Module 9 summary
In this module, you have learned:
Differences between various virtual IP protocols and the options that they support
How to implement virtual IP protocols to support several different redundancy
situations, including a default gateway and a next hop in a static route
How virtual IP protocols compare with IRF
How to configure virtual IP protocols
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Learning check
As usual, the answers to these questions are given in the appendix. The answers to
the quiz that you took earlier are also included for your reference.
Q1: How does an IP endpoint learn its default gateway’s virtual IP and virtual MAC
addresses?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
Q2: Can a HP Layer 3 switch back up a Cisco Layer 3 switch using HSRP?
lU
_________________________________________________________________________
a
rn
_________________________________________________________________________
te
_________________________________________________________________________
In
P
_________________________________________________________________________
r H
_________________________________________________________________________
Fo
Q3: Can you use VRRP and HSRP in the same LAN?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Q4: What is the purpose of the preempt delay purpose? When would you set it?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
y
Q5: In what situations is load balancing desirable?
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
Q6: When a pair of core routing switches connect to a WAN router, is VRRP
r
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Module 10 objectives
Because OSPF is an open standard, Cisco and HP devices running this protocol
interoperate well. You simply need to know which version your devices run and
which versions support the features that you require. In particular, you should check
for the newer features such as BFD and graceful restart. Of course, you must also
know the process for implementing OSPF on both types of devices. This module
teaches you about setting up the key features in an HP and Cisco environment.
After completing this module, you will be able to:
y
Set up HP and Cisco devices as OSPF neighbors
nl
Configure OSPF’s BFD feature to support fast convergence and graceful restart
O
Se
Configure OSPF in a multi-area environment
Design an OSPF topology that is appropriate to your environment
lU
Rev. 11.12 10 –1
HP Networking Interoperability
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
10 –2 Rev. 11.12
Routing Using OSPF
IP: 10.1.2.2/30
IP: 10.1.2.4/24
OSPF Area 0
OSPF Area 0
y
Hello timer: 10 s R2 R3 Hello timer: 10 s
nl
Dead interval: 40 sec
Dead interval: 30 sec
Network Type=P2P
Network Type=Broadcast
O
Figure 10-1: OSPF Neighboring—Scenario 1-1
Se
Examine the figure and then answer this question:
lU
What conditions must two routers meet to become OSPF neighbors? For each
condition that you list, check that setting on the routers in this example. Circle any
a
________________________________________________________________________
te
In
________________________________________________________________________
P
________________________________________________________________________
r H
________________________________________________________________________
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Rev. 11.12 10 –3
HP Networking Interoperability
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
y
nl
________________________________________________________________________
O
________________________________________________________________________
Se
________________________________________________________________________
a lU
________________________________________________________________________
rn
te
________________________________________________________________________
In
Best practices
P
This scenario does not show the most highly recommended topology. It is
H
every other routing switch. The formula for determining the required number of
connections is: (N x (N-1))/2.
For example, with four routers, the number of required connections is 4x3/2 =
12/2 = 6. With six routers, the number is 6x5/2 = 15 connections.
Each link should support its own VLAN and subnet (one link = one VLAN = one
subnet).
If the routing switches do not have enough Ethernet interfaces, on the other hand,
you might have to connect them through a common Layer 2 switch—or preferably,
two Layer 2 switches for redundancy. In this case, you can implement BFD for faster
convergence.
10 –4 Rev. 11.12
Routing Using OSPF
y
OSPF Area 0
Priority 255 R2 R3
Priority 4
nl
O
Figure 10-2: OSPF DR election—Scenario 1-2
Se
Q1: How do devices in a multi-access (such as Broadcast) network determine which
lU
devices become DR and Backup DR (BDR)? What role does priority 0 play in this
process? What role do other priorities play?
a
________________________________________________________________________
rn
te
________________________________________________________________________
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Rev. 11.12 10 –5
HP Networking Interoperability
Q2: Can you determine which routers in this figure become DR and BDR?
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
y
Q3: How can you force two routers to become DR and BDR?
nl
________________________________________________________________________
O
________________________________________________________________________
Se
lU
________________________________________________________________________
a
________________________________________________________________________
rn
te
________________________________________________________________________
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
10 –6 Rev. 11.12
Routing Using OSPF
OSPF authentication
Will the two OSPF adjacencies work?
HP1 gi1/0/2 HP3
gi1/0/1 Vlan 20
Vlan 10 port gigabit 1/0/2
port gigabit 1/0/1 ospf 22
ospf 11 Area 10
Area 0 authentication-mode md5
authentication-mode simple network 10.6.0.2 0.0.0.0
network 192.168.1.1 0.0.0.0 interface vlan 20
interface vlan 10 ip address 10.6.0.2 24
ip address 192.168.1.1 24 ospf authentication-mode md5 1…
ospf authentication-mode simple… cipher cant_find
cipher very-secret
y
ip address 192.168.1.2 255.255.255.0 network 10.6.0.2 0.0.0.0 area 10
ip ospf authentication-key very-secret
nl
network 192.168.0.0 0.0.255.255 area 0
interface gigabitethernet 0/2 area 10 authentication message-digest
ip address 10.6.0.1 255.255.255.0 area 0 authentication
O
ip ospf message-digest-key 1 md5 cant_find
Se
Examine the figure and then answer these questions (note that there is a fifth question
lU
on the next page):
Q1: If you ignore the authentication settings, which routers become OSPF neighbors
a
________________________________________________________________________
te
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Rev. 11.12 10 –7
HP Networking Interoperability
Q3: On HP 1, the password is specified with the cipher keyword. What purpose
does this keyword serve?
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
y
nl
Q4: Do the authentication settings match between HP 3 and Cisco 2?
O
________________________________________________________________________
Se
________________________________________________________________________
lU
________________________________________________________________________
a
rn
________________________________________________________________________
te
In
________________________________________________________________________
P
Q5: What role does the key ID play (beyond being another matching setting)?
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
10 –8 Rev. 11.12
Routing Using OSPF
ospf 1
opaque-capability enable router ospf 1
graceful-restart ietf nsf ietf restart-interval 200
graceful-restart interval 120
HP 1 Cisco 2
Cisco 3 HP 4
y
nl
router ospf 1 ospf 1
nsf ietf restart-interval 200 opaque-capability enable
O
graceful-restart ietf
Se
What is the purpose of the configurations displayed in this slide?
lU
These routers are implementing OSPF graceful restart, which is defined in RFC 3623.
This feature allows you to restart OSPF processes without disturbing the OSPF
a
You would initiate a graceful restart whenever you need to restart an OSPF process
In
to clean out or update information. You will find this feature particularly useful when
P
a component fails (for example, a Route Processor [RP] has crashed and a backup RP
has taken over) or when you are performing a scheduled hitless software upgrade.
H
Rev. 11.12 10 –9
HP Networking Interoperability
After you enter the command, HP1 announces to all neighbors that it is going to
reload its OSPF processes. While it restarts, HP1 continues to forward packets based
on information in its routing table at the time that the restart initiated.
The other routers start their graceful restart timer. The default interval is 120 seconds,
but the routers in this example have a 200 second interval. These routers freeze their
Link State (LS) database and routing table during this interval.
After the interval expires (at which time HP 1 should have finished reloading its
y
processes), all routers synchronize their databases.
nl
O
Commands for enabling OSPF graceful restart
You must enter these commands on HP A-Series devices to enable graceful restart:
ospf 1
Se
lU
opaque-capability enable
graceful-restart ietf
a
router ospf 1
te
For more details on command syntax, refer to the configuration manual for your
device.
P
r H
Fo
HP 1 Cisco 3
y
nl
O
HP 2
Se
Examine the figure and consider the questions and answers below.
lU
Note
a
For this scenario, assume that HP2, which provides an alternate path to the same
rn
remote networks as HP1, has a similar BFD and OSPF configuration to HP1’s.
te
In this configuration, the three routers do not connect directly but instead through a
Layer 2 switch. When a router or an interface fails, the routers cannot immediately
P
detect the failure using the traditional OSPF hello and dead timers. BDF is another
H
interval that helps the routers detect the failure more quickly.
r
What BFD transmit timers will be negotiated between HP1 and Cisco3?
Fo
This scenario illustrates what can happen when two routers propose radically
different timers for BFD. Examine what happens step by step:
1. HP1 sends its request for the timers.
2. Cisco3 receives the packet and compares the requested RX interval of 150ms to
its own TX interval of 50ms. The requested RX interval is larger, so Cisco3
throttles back its own transmit frequency and sends BFD control packets at
150ms intervals.
3. Similarly, HP1 compares the Cisco’s requested RX interval of 50ms to its own
desired TX interval of 25ms. The requested RX interval is larger, so HP1 sends at
50ms intervals.
y
TX and RX = 50 or 100ms
nl
O
Detect-multiplier = 3 or 4
Routers also communicate the detect multiplier in BFD control packets, but they do not
Se
negotiate this setting. Therefore, it is possible to have different detect-timer values on
either side of the BFD session.
lU
What will happen if INT VLAN10 fails on HP1?
a
Once the BFD session and appropriate timers have been negotiated, the BFD peers
rn
send BFD control packets to each other at the negotiated intervals. (At least, BFD
te
As long as each BFD peer receives a BFD control packet within the detect-timer
H
period, the BFD session remains up and any routing protocol associated with BFD
maintains its adjacencies. If a BFD peer does not receive a control packet within the
r
detect interval, it informs any clients of that BFD session (that is, the routing protocols
Fo
associated with it) of the failure. Each routing protocol determines the appropriate
response to that information. Typically, it terminates the routing protocol peering
session with the failed router so that routers can reconverge, bypassing the failed
peer.
The preceding information brings up an important point: BFD simply detects liveness.
It does not-in itself-determine the correct reaction to a detected failure.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24
10.1.1.0/24
10.1.3.0/24
R2 .2
.3 R3
Area 1 What is R1 configuration when R1 is:
10.1.2.0/24 •Cisco
10.1.4.0/24 •HP A-Series
y
•HP E-Series
nl
O
Figure 10-6: OSPF area summarization—Scenario 2-1
Se
lU
Q1: What kind of OSPF router is R1?
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
lU
Q5: What are the key advantages of summarization?
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
_______________________________________________________________________
r H
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Q7: Why can you enable summarization on R1 and not on R2, R3, and R4?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Q8: What other tasks can you perform on an ABR related to area summarization?
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
lU
_______________________________________________________________________
a
Q9: Where can you see the results of the area summarization?
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
_______________________________________________________________________
r H
Fo
_______________________________________________________________________
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24
y
router-id 1.1.1.1
network 10.0.0.0 0.0.255.255 area? 0
nl
network 10.1.0.0 0.0.255.255 area? 1
area 0? range 10.0.0.0 255.255.0.0
O
area 1? range 10.1.0.0 255.255.0.0
Se
The figure above displays the network commands for enabling OSPF on interfaces
lU
on Router 1, a Cisco router acting as ABR, and placing those interfaces in an area.
The last two commands configure area summaries (or aggregated routes) that the
a
The commands are missing some keywords. Fill in the commands, using the figure for
te
information:
In
If you do not know the exact syntax, do not worry. You will learn it in a moment.
Fo
Also fill in the blanks to indicate how the ABR (R1) will summarize the routes.
R1 aggregates the routes in area 0 into a single route to ________________ and
advertises this route to routers in ____________.
R1 aggregates the routes in area 1 into a single route to ________________ and
advertises this route to routers in ____________.
This command would prevent the ABR from advertising networks within the
10.0.2.0/24 space.
How and why would you configure the ABR to send a default route to
routers in an area?
You must configure the area as a totally stubby area. In the Cisco IOS, the command
is:
area <ID> stub no-summary
Often an area at a branch office or other remote site connects only to an ABR in
y
area 0. The routers at the branch office do not require a detailed view of the
nl
networks at the main office. A default route is enough.
O
Se
a lU
rn
te
In
P
r H
Fo
R2 .2 ip address 10.1.1.1 24
.3 R3 interface vlan 12
ip address 10.1.3.1 24
Area 1
10.1.2.0/24 ospf 1 router-id 1.1.1.1
10.1.4.0/24 area? 0
description backbone area
y
network 10.0.0.0 16
abr-summary 10.0.0.0 16 ?
nl
? 1
area
description asian area
O
network 10.1.0.0 16
abr-summary 10.1.0.0 16 ?
Se
Figure 10-8: OSPF area summarization—Scenario 2-1-b
This scenario presents a similar situation to the previous one. However, the ABR is an
lU
HP A-Series switch. You configure this switch in a very similar manner to the Cisco
switches.
a
rn
The commands are missing some keywords. Fill in the commands, using the figure for
information:
te
_______________
P
______________
description asian area
network 10.1.0.0 0.0.255.255
abr-summary 10.1.0.0 _________________
Summarization
Inter-Area 10.1.0.0/16
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24
R1= HP A-Series
10.1.1.0/24 interface vlan 10
ip address 10.0.10.1 24
10.1.3.0/24 interface vlan 11
R2 .2 ip address 10.1.1.1 24
.3 R3 interface vlan 12
ip address 10.1.3.1 24
Area 1
10.1.2.0/24 ospf 1 router-id 1.1.1.1
10.1.4.0/24 area 0
description backbone area
network 10.0.0.0 0.0.255.255
abr-summary 10.0.0.0 16
area 1
y
description asian area
nl
network 10.1.0.0 0.0.255.255
14 Rev. 10.41 abr-summary 10.1.0.0 16
O
Figure 10-9: OSPF area summarization—Scenario 2-1-b
Se
Figure 10-9 shows the commands in full.
Pretend that you have established this configuration on R1. On which routers could
lU
you best verify the route summarization?
a
You would verify it on routers in a different area from the summarized route. That is,
rn
routers within area 1 receive the advertised summaries for area 0 and vice versa.
You should view the routing table on these routers to verify that they have received
te
The tables indicate the correct syntax on Cisco, HP A-Series, and HP E-Series
H
commands that you could use to verify summarization. Because the aggregation
creates a new Type 3 LSA, you can view the LSA database and look for the new LSA.
r
Cisco switches also create a route to null0 for the summarized network, so you can
Fo
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24 R1= HP E-Series
vlan 10
10.1.1.0/24 ip address 10.0.10.1/24
10.1.3.0/24 ip ospf area 0?
vlan 11
R2 .2 ip address 10.1.1.1/24
.3 R3 ip ospf area 1?
Area 1 vlan 12
ip address 10.1.3.1/24
10.1.2.0/24 ip ospf area 1?
10.1.4.0/24 ip routing
y
ip router-id 1.1.1.1
router ospf
nl
area 0
?
area 0 range 10.0.0.0/16
O
area 1
?
area 1 range 10.1.0.0/16
Se
Figure 10-10: OSPF area summarization—Scenario 2-1-c
This scenario presents the same topology as the previous two, but an HP E-Series
lU
switch is the ABR. Try to fill in the blanks in the configuration:
a
vlan 10
rn
ip address 10.0.10.1/24
te
vlan 11
ip address 10.1.1.1/24
P
vlan 12
r
ip address 10.1.3.1/24
Fo
ip ospf area 1
ip routing
ip router-id 1.1.1.1
router ospf
area 0
area 0 range 10.0.0.0/16
area 1
area 1 range 10.1.0.0/16
Summarization
Inter-Area 10.1.0.0/16
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24 R1= HP E-Series
vlan 10
10.1.1.0/24 ip address 10.0.10.1 24
10.1.3.0/24 ip ospf area 0
vlan 11
R2 .2 ip address 10.1.1.1 24
.3 R3 ip ospf area 1
Area 1 vlan 12
ip address 10.1.3.1 24
10.1.2.0/24 ip ospf area 1
10.1.4.0/24 ip routing
ip router-id 1.1.1.1
router ospf
y
area 0
area 0 range 10.0.0.0/16
nl
area 1
area 1 range 10.1.0.0/16
O
Figure 10-11: OSPF area summarization—Scenario 2-1-c
Se
Figure 10-11 shows the commands in full.
a lU
rn
te
In
P
r H
Fo
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24
10.1.1.0/24
10.1.3.0/24
R2 .2
.3 R3
Area 1 What are the IP subnets in the routing
10.1.2.0/24 tables of R1, R4, R2 and R3?
10.1.4.0/24 What is the type for each route?
y
nl
O
Figure 10-12: OSPF area summarization—Scenario 2-2
Se
The figure displays an OSPF topology in which R1 is an ABR that advertises route
summaries 10.0.0.0/16 and 10.1.0.0/16 for areas 0 and 1.
lU
You should now be able to predict the result of this configuration. For each router, fill
in the routing table:
a
For Type, indicate the type of route using the Cisco abbreviations:
In
C = Connected networks
P
Note
All OSPF networks except external ones are indicated by: 0_ASE.
To see the type on HP A-series routers, you must enter display ospf routing-table.
R2 Routing Table
IP network Next hop Type
y
nl
R3 Routing Table
O
IP network Next hop Type
Se
a lU
rn
te
In
P
r H
Fo
R4 Routing Table
IP network Next hop Type
y
nl
O
Assume that R1 is a Cisco router.
R1 Routing Table
IP network Next hop
Se
Type
a lU
rn
te
In
P
r H
Fo
R1 Area 0 R4
10.0.0.0/16
.4
.1
10.0.10.0/24
10.1.1.0/24
10.1.3.0/24
R2 .2
.3 R3
Area 1 What command can you use on R2 and R3
10.1.2.0/24 to avoid an OSPF neighboring on LANs
10.1.4.0/24 10.1.2.0/24 and 10.1.4.0/24?
y
nl
O
Figure 10-13: OSPF passive interface—Scenario 2-3
Se
Examine the topology displayed in the figure. Assume that you want to prevent R2
and R3 from becoming OSPF neighbors with any routers in their locally connected
lU
networks, 10.1.2.0/24 and 10.1.4.0/24. How could you do so?
You can simply prevent the routers from sending OSPF packets on these interfaces by
a
Note
te
Use cases
H
You can implement the passive interface feature on any LAN in which your router
r
Fo
should not have any OSPF neighbors. A typical use case is a network with two
routing switches connected to the same VLANs. Instead of making the routers OSPF
neighbors on all IP interfaces (VLANs), you can simply make them neighbors on two
or three IP interfaces. Then you configure OSPF on all other interfaces (so these
networks are advertises) but configure them as passive interfaces.
Can you think of other use cases?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
R1 Area 0 R4
10.0.0.0/16
.4
.1 R3= Cisco
10.0.10.0/24
interface gigabit 0/1
10.1.1.0/24 ip address 10.1.4.3 255.255.255.0
10.1.3.0/24 router ospf 1
passive-interface gigabitethernet 0/1
R2 .2
.3 R3 R3= HP A-series
Area 1 interface vlan-interface 14
ip address 10.1.4.3 24
10.1.2.0/24
10.1.4.0/24 ospf 1
silent-interface vlan-interface 14
y
R3= HP A-series
nl
vlan 14
O
ip address 10.1.4.3/24
ip ospf area 1
21 Rev. 10.41 ip ospf passive
Se
Figure 10-14: OSPF passive interface—Scenario 2-3-a
lU
The figure displays the commands for configuring OSPF passive interfaces.
To verify which interfaces are passive, enter this command on Cisco and HP E-Series
a
devices:
rn
On Cisco and HP A-Series devices, you can alternatively enable the passive interface
P
feature globally (all OSPF interfaces are passive). Then you can enable individual
H
interfaces as active OSPF interfaces. This configuration option for the example in the
r
router ospf 1
passive-interface all
no passive-interface gigabit 0/2
On HP A-Series devices, this configuration option for the example in the figure would
be as follows:
ospf1
silent-interface all
undo silent-interface Vlan-interface1
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
R2 .2 .5 R5
.3 R3
10.1.2.0/24
What is R2 configuration
10.1.3.0/24
when R2 is:
•Cisco
y
• Redistribute (import) static and direct •HP A-Series
nl
routes •HP E-Series
• Summarize the redistributed routes
O
• Make the cost increment as advertised
23 Rev. 10.41
Se
Figure 10-15: OSPF redistribution—Scenario 3-1
Examine the figure above. R2, which is part of the OSPF system, is connected to R3,
lU
which is not. In a moment, you will discuss how to advertise the 10.1.10.0/24 and
10.1.3.0/24 in OSPF using redistribution:
a
rn
Configure the cost for the redistributed routes to increment as they are advertised
First, however, discuss why you would implement route redistribution.
P
Q1: Why would you redistribute routes to directly connected networks instead of
H
_______________________________________________________________________
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
_______________________________________________________________________
nl
O
Q3: Which type of OSPF LSA is created for the redistributed route?
_______________________________________________________________________
Se
lU
_______________________________________________________________________
a
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
R1 Area 0 R4
.4
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
.3 R3
10.1.2.0/24
10.1.3.0/24
R2= Cisco
y
ip route 10.1.3.0 255.255.255.0 10.1.10.3
router ospf 1
nl
network 10.1.1.0 0.0.0.255 area 1
?
redistribute ?
static metric 10 metric-type 1 subnets
O
?
redistribute ?
connected metric 10 metric-type 1 subnets
?
summary-address 10.1.2.0 255.255.254.0
Se
Figure 10-16: OSPF redistribution—Scenario 3-1-a
You will discuss the answers as a class, and the correct answers are also listed at
rn
Q1: Fill in the blanks to show the proper configuration for R2 when it is a Cisco
In
router. R2 must:
Redistribute static and connected routes
P
Configure the cost for the redistributed routes to increment as they are advertised
r
Fo
Q2: What command can you enter to verify that the Cisco R2 has properly
redistributed (or imported) the routes?
_______________________________________________________________________
Q3: What command can you enter to verify that the routes to the external networks
have been summarized?
_______________________________________________________________________
Q4: This configuration sets metric type 1 for the redistributed routes. What purpose
does this configuration serve, and how could you change the metric type?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
_______________________________________________________________________
nl
O
_______________________________________________________________________
Se
_______________________________________________________________________
a lU
rn
te
In
P
r H
Fo
R1 Area 0 R4
.4
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
.3 R3
10.1.2.0/24
R2= HP A-Series
ip route-static 10.1.3.0 24 10.1.10.3
10.1.3.0/24 ospf 1
area 1
y
network 10.1.1.0 0.0.0.255
?
import-route static cost 10 type 1
nl
import-route direct cost 10 type 1
?
asbr-summary 10.1.2.0 23
O
Figure 10-17: OSPF redistribution—Scenario 3-1-b
Se
Examine the figure and answer these questions.
lU
Note
You will discuss the answers as a class, and the correct answers are also listed at
a
Q1: Fill in the blanks to show the proper configuration for R2 when it is an HP A-
te
Configure the cost for the redistributed routes to increment as they are advertised
r
ospf 1
area 1
network 10.1.1.0 0.0.255.255
___________ static cost 10 type 1
___________ direct cost 10 type 1
asbr-summary 10.1.2.0 ______
Q2: This configuration sets metric type 1 for the redistributed routes. What purpose
does this configuration serve? Why might you select type 1 rather than type 2?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
_______________________________________________________________________
a lU
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
R1 Area 0 R4
.4
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
.3 R3
10.1.2.0/24 R2= HP A-Series
ip route 10.1.3.0/24 10.1.10.3
vlan 10
10.1.3.0/24 ip address 10.1.1.2/24
ip ospf area 1
y
Router ospf
area 1
nl
?
redistribute connected
?
redistribute static
O
default-metric 20
metric-type 1
Se
Figure 10-18: OSPF redistribution—Scenario 3-1-c
lU
Fill in the blanks to show the proper configuration for R2 when it is an HP E-Series
device. R2 must:
a
Configure the cost for the redistributed routes to increment as they are advertised
te
In
Note
HP E-Series devices do not support summarization for
P
vlan 10
ip address 10.1.1.2/24
ip ospf area 1
Router ospf
area 1
______________ connected
______________ static
default-metric 20
metric-type 1
Note
You will discuss the answers as a class, and the correct answers are also listed at
the end of this scenario.
R2 .2 .5 R5
.3 R3
10.1.2.0/24
y
nl
Figure 10-19: OSPF redistribution—Scenario 3-2
O
You now understand how R2 redistributes the external routes. You will now turn to
Se
another part of the network: area 2.
In this scenario, you want to hide networks outside of area 2 to routers within area 2.
lU
R5 does not need to store the complexities of the network topology because it has
only one connection to the rest of the network. (Perhaps R5 is a router at a branch
a
functionally equivalent to many routes through the same forwarding interface and
much more efficient.
te
To hide the non-area 2 networks in this way, you must define the area type. Typically,
In
you would define the area as a totally stubby area. The ABR for a totally stubby area
P
You could also configure the area as a totally stubby NSSA, which allows routers
r
Fo
within the area to redistribute routes themselves, providing more flexibility for the
configuration.
R1 Area 0 R4
.4 0.0.0.0/0
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
R4=Cisco
router ospf 1
network 10.0.0.0 0.0.255.255 area 0
network.310.2.0.0
R3 0.0.255.255 area 2
10.1.2.0/24 area 2 stub no-summary
or
area 2 nssa no-summary
area 10.1.3.0/24
R5=Cisco
2 default-information originate
router ospf 1
y
network 10.2.0.0 0.0.255.255 area 2
nl
area 2 stub
or
area 2 nssa
O
Figure 10-20: OSPF redistribution—Scenario 3-2-a
Se
As you learned, to configure the ABR to generate the default route for the area (and
filter out other inter-area LSAs), you can define the area as either a totally stubby
lU
area or a totally NSSA area.
a
The figure displays the configuration on a Cisco device that is acting as ABR (R4).
rn
On a Cisco device that is an internal router in the totally stubby area or NSSA, you
P
enter either:
H
The area type must match the type on the internal router and the ABR. However, you
do not specify the no-summary option on the internal router. Only the ABR—or
ABRs—require that option to tell them to generate the default route.
Note that, when you disable summaries for a stubby area, the ABR automatically
generates a default route. However, you must use the area <ID> default-information
originate command to generate this route for an NSSA, which does not receive it by
default. (This enables the NSSA to use its own default route if it has an external
connection.)
R1 Area 0 R4
.4 0.0.0.0/0
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
ospf 1 R4=HP A-series
area 2
.3 10.2.0.0
network R3 0.0.255.255
10.1.2.0/24 stub no-summary
or
area 2
10.1.3.0/24
network 10.2.0.0 16
nssa no-summary default-route-advertise
R5=HP A-Series
y
ospf 1
nl
area 2
network 10.2.0.0 0.0.255.255
O
stub
or
nssa
Se
Figure 10-21: OSPF redistribution—Scenario 3-2-b
lU
The figure displays the correct configuration for this scenario when the ABR (R4) and
internal router in the stubby area (R5) are HP A-Series devices. As you see it is quite
a
similar to the Cisco configuration. Again, note that the generation of the default route
rn
is not automatic for the NSSA; you must add the default-route-advertise option.
te
In
P
r H
Fo
R1 Area 0 R4
.4 0.0.0.0/0
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 R4=HP E-series .5 R5
router ospf
area 2 stub 10 no-summary
.3 or
R3area 2 nssa 10 no-summary
10.1.2.0/24
y
area 2 stub 10
or
nl
area 2 nssa 10
O
Figure 10-22: OSPF redistribution—Scenario 3-2-c
Se
Here you see the configuration for the ABR (R4) and internal stub router (R5) when
they are HP E-Series devices. The main difference in the configuration is that the ABR
lU
automatically generates a default route for both stubby areas and NSSAs whenever
you specify the no-summary option.
a
rn
te
In
P
r H
Fo
R2 .2 .5 R5
.3 R3
10.1.2.0/24
y
Figure 10-23: OSPF redistribution—Scenario 3-3
nl
O
You should now be able to predict the result of this configuration. For R4 and R5, fill
in the routing table:
Se
Routes to directly connected networks
lU
Routes discovered through OSPF (remember to consider redistributed routes,
summarized routes, and default routes)
a
For Type, indicate the type of route using the Cisco abbreviations:
rn
C = Connected networks
te
R4 Routing Table
IP network Next hop Type
R5 Routing Table
IP network Next hop Type
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
R3 R4
10.1.N.0/24 10.2.N.0/24
R2
.2
y
nl
10.1.N.0/24
1 2
O
10.1.N.0/24
Se
The figure represents two OSPF domains with two ASBRs that are implementing two
lU
OSPF processes and redistributing routes from one process to another. This scenario
is completely different from a single OSPF domain with two areas but one OSPF
process.
a
rn
Use cases
te
Why might you configure two OSPF domains rather than two areas within a single
In
domain? In a large and complicated network, you might have several reasons:
You want to filter networks between the two regions. Redistributing routes
P
between two domains offers filtering capabilities that are not possible into an
H
OSPF domain:
r
Within an area, you cannot filter routes because all routers in the area must
Fo
Two corporate networks with separate OSPF domains have now merged under
one administration.
Your network has complexities that do not fit within the OSPF area design
constraints.
OSPF imposes a network design with Area 0 as the backbone area. All other
areas must connect to Area 0, which in same large networks results in a very
large area 0 without any filtering capabilities. In an environment such as this,
you can create multiple OSPF domains (or a hierarchy of OSPF domains), which
offers more flexibility for the topology and more filtering capabilities.
Note
The multiple domain topology can introduce some issues. For example, the ASBR
will flood Type 5 LSAs throughout the remote domain every time Type 1 and 2
LSAs indicate a change in its local area. Thus, instability in one domain can lead
y
nl
to a constant injection and withdrawal of Type 5 LSAs in the other domain.
Many companies with complex topologies and extensive filtering requirements
O
prefer to establish multiple OSPF domains that connect through BGP. Such a
deployment provides a great deal of control and flexibility. In addition, inter-
Se
OSPF domain communications must pass through BGP. Because BGP provides
dampening, the instability in one domain will be less visible to other domains.
a lU
rn
te
In
P
r H
Fo
10.1.N.0/24
10.1.N.0/24
2 and R2:
R3 R4
10.1.N.0/24 10.2.N.0/24 1 • Learn 10.1.N.0/24 as an
internal route in OSPF1
2
• Learn 10.1.N.0/24 as an
R2 2 external route in OSPF 2
1
10.1.N.0/24
.2
y
Figure 10-25: OSPF redistribution—Scenario 4-1 implications
nl
A scenario such as this, in which two ASBRs run two OSPF processes and redistribute
O
routes between them, introduces some concerns. (The same concerns would not
apply if you had only one ASBR running two OSPF processes.)
Consider what happens with 10.1.N.0/24, a domain 1 network. First, R1 and R2
Se
lU
learn a route to this network as an internal route in OSPF process 1. Then the routers
redistribute the internal route from OSPF process 1 to OSPF process 2. OSPF process
a
2 learns the route as a route to an external network. Because you have two ASBRs,
rn
the routers advertise the external routes to each other in OSPF process 2.
What happens then?
te
words, an external route to the network from OSPF process 2 is competing with an
P
On each router, OSPF must now choose between the routes. It has rules for doing so,
but they might not lead to the desired result:
r
Fo
Thus OSPF might not be able to choose between the routes correctly. On Cisco
devices, if two processes propose routes to the same network with the same
administrative distance, the first process to execute the Shortest Path First algorithm
wins. This process places its route into the routing-table (although if the forwarding
interface for that route goes down, the other process can place its route). In short,
you cannot reliably predict which route OSPF will select.
Note
Some earlier software versions might behave differently. Refer to your devices’
documentation for their functionality.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
10.1.3.0/24 10.1.2.2 O
nl
10.2.1.0/24 10.1.2.2 O E2
10.2.3.0/24 10.1.2.2 O E2
O
Figure 10- 26: OSPF redirection—Scenario 4-1 implications (cont.)
Se
Here you see what might happen in the scenario that you have been examining.
R1 has selected the external route to network 10.2.3.0/24 known by OSPF process
lU
2. The next hop for this route is R2 because R1 received the Type 5 LSA with this
route from R2. Similarly, R2 has selected the external route to 10.2.3.0/24 with R1
a
as the next hop. The routers have a routing loop that will prevent traffic from reaching
rn
its destination.
te
Although OSPF might select the internal route from the original process, you cannot
In
rely on that.
P
r H
Fo
R2
y
nl
You will now learn how to configure this scenario. You will see the commands for
O
Cisco devices and for HP A-Series devices. (HP E-Series devices do not support
multiple OSPF processes.)
Se
a lU
rn
te
In
P
r H
Fo
Redistribute:
•OSPF 2 in OSPF 1
R4 •OSPF 1 in OSPF 2
R3
10.1.N.0/24 10.2.N.0/24
R2 R1= Cisco
router ospf 1
network 10.1.0.0 0.0.255.255 area 0
redistribute ospf 2 subnets
router ospf 2
network 10.2.0.0 0.0.255.255 area 0
y
redistribute ospf 1 subnets
nl
Figure 10-27: OSPF redistribution—Scenario 4-1-a
O
The figure shows the commands for redistributing OSFP process 2 in OSPF process 1
Se
and vice versa. The subnets option is required on Cisco when you need to
redistribute the non-classful IPv4 networks (Class A, B, C). If you do not include this
lU
option, routes to subnets within the classful network are not redistributed.
Important
a
routing loops. You will learn the commands for preventing the loops a bit later.
te
In
P
r H
Fo
Redistribute:
•OSPF 2 in OSPF 1
R4 •OSPF 1 in OSPF 2
R3
10.1.N.0/24 10.2.N.0/24
R1= HP A-Series
ospf 1 router-id 1.1.1.1
area 0
R2
network 10.1.0.0 16
import-route ospf 2
y
import-route ospf 1
nl
Figure 10-28: OSPF redistribution—Scenario 4-1-b
O
Here you see the configuration for the same router in the same scenario when the
Se
router is an HP A-Series device. lU
a
rn
te
In
P
r H
Fo
OSPF 1 OSPF 2
R1
ospf 1
R4
R1= HP A-Series
R3 area 0
10.1.N.0/24 10.2.N.0/24
network 10.1.0.0 0.0.255.255
import-route ospf 2 cost 1000 type 1
preference ase 200
ospf 2 R2
area 0
network 10.2.0.0 0.0.255.255
import-route ospf 1 cost 1000 type 1
y
preference ase 200
nl
What is the effect of changing
O
preference/administrative distance of
external networks?
Se
Figure 10-29: OSPF redistribution—Scenario 4-1-c
lU
The slide displays commands that you can enter on an HP A-Series device to avoid
the routing loop issues you learned about earlier. (The commands for Cisco are listed
a
As you learned earlier, OSPF can use administrative distance to choose between
In
routes learned by different processes. Here you have configured external networks
that are redistributed into OSPF to have a higher administrative distance than the
P
default.
H
10.1.N.0/24 from OSPF process 1 into OSPF process 2. They now advertise the
Fo
y
nl
This solution only resolves routing loops for routes that are internal to one of the OSPF
domains. It is possible that both ASBRs receive external routes to the same subnets
O
from other redistribution points. In this case, routing loops can still occur when the
ASBRs advertise the same routes to each other over the other OSPF process. Because
Se
the routes in both processes are external, they have the same administrative distance,
and OSPF cannot select between them.
lU
You can attempt to resolve that problem by configuring different administrative
a
would only solve the problem for routes that are originally distributed into the domain
with the lower administrative distance. To ensure that a particular route is always
te
advertised with a lower administrative distance in the proper domain, you would
In
You could also attempt to configure the more reliable redistribution points to
H
advertise external routes with a lower administrative distance than that used by the
r
ASBRs running two OSPF processes. In that case, these ASBRs would prefer external
Fo
routes that they receive from the original, more reliable distribution points to the
routes that they redistribute into the other process and receive from each other.
y
10.2.N.0/24
nl
10.1.N.0/24
O
Figure 10-30: OSPF redistribution—Scenario 4-2
Se
Whenever two routers redistribute routes between OSPF processes, they might
redistribute the route received from one process back into that process again,
lU
potentially creating a routing loop. This scenario presents one of the best solutions:
filters that remove particular routes from redistribution.
a
Typically, when configuring redistribution from one process to another, you would
rn
filter out the routes that should originate, as far as OSPF is concerned, in the
te
destination process (these routes might be internal or external). For example, when
In
Typically, you create filters that map to ACLs or prefix lists, each of which lists all
H
networks in a particular OSPF domain. The drawback of this method is that you
r
For a more dynamic setup, switches can automatically mark routes as associated
with a domain. When you set up the redistribution of routes into that domain,
you configure the filters based on the tag.
y
router ospf 2
nl
redistribute ospf 1 subnet route-map ospf1-only
distance ospf external 200
O
10.2.N.0/24
route-map ospf2-only permit 10
10.1.N.0/24
match ip address 11
Se
access-list 11 permit 10.1.0.0 0.0.255.255
lU
Figure 10-31: OSPF redistribution and filtering: Scenario 4-2-a
First examine the Cisco commands for one method of filtering routes that belong to a
a
specific domain out of the routes redistributed back into the domain.
rn
You specify a route map with the redistribution command. The route map is
te
associated with an ACL that selects the networks that are part of the OSPF domain to
In
previous scenario. Why is this command still necessary when you have configured
H
filtering? Remember: the filtering prevents routes that belong to one OSPF process
r
from being redistributed back into that process. The raised administrative distance
Fo
deals with routes that have been properly redistributed into another process but
should not be preferred to the original routes on the router running both processes.
You must configure both a filter and a raised administrative distance.
10.1.N.0/24
OSPF
10.2.N.0/24
OSPF 2 R1= HP A-Series
ospf1 1
…
import-route R1
ospf 2 route-policy ospf2-only
preference ase 200
quit
acl number 2002
rule permit source 10.2.0.0 0.0.255.255
rule deny source any
R3
route-policy
R4
ospf2-only permit node 10
10.1.N.0/24 if-match acl 2002 10.2.N.0/24
ospf 2
… R2
import-route ospf 1 route-policy ospf1-only
y
preference ase 200
nl
quit
acl number 2001
rule permit source10.2.N.0/24
10.1.0.0 0.0.255.255
O
rule deny source any
10.1.N.0/24
route-policy ospf1-only permit node 10
if-match acl 2001
Se
Figure 10-32: OSPF redistribution and filtering—Scenario 4-2-b
lU
The figure displays the commands to configure similar filters on HP A-Series devices.
a
These devices also allow you to associate the filters with prefix lists instead of ACLs.
rn
In another option, you can configure filter policies instead of router policy filters. Use
filter policies when you only need to apply filtering to the redistribution command.
te
Use route policies when you need to apply filters and potentially other actions.
In
The sections below give the commands for the alternate configurations for your
reference.
P
H
ospf 1
Fo
…
import-route ospf 2 route-policy filter_ospf1
preference ase 200
quit
ip ip-prefix n1 permit 10.1.0.0 16 greater-equal 16 less-equal 30
route-policy filter_ospf1 permit node 10
if-match ip-prefix n1
ospf 2
…
import-route ospf 1 route-policy filter_ospf2
preference ase 200
quit
ip ip-prefix n2 permit 10.2.0.0 16 greater-equal 16 less-equal 30
route-policy filter_ospf2 permit node 10
if-match ip-prefix n2
y
filter-policy 2001 export
nl
preference ase 200
O
quit
acl number 2001
Se
rule permit source 10.1.0.0 0.0.255.255
lU
rule deny source any
a
rn
ospf 2
te
…
In
quit
H
R1= Cisco
router ospf 1
R3 redistribute ospf 2R4subnet tag 22 route-map filter_ospf1
10.1.N.0/24 distance ospf external 10.2.N.0/24
200
!
route-map filter_ospf1 deny 10
match tag 11
R2 filter_ospf1 permit 20
route-map
router ospf 2
redistribute ospf 1 subnet tag 11 route-map filter_ospf2
y
distance ospf external 200
10.2.N.0/24
nl
!
10.1.N.0/24
route-map filter_ospf2 deny 10
match tag 22
O
route-map filter_ospf2 permit 20
Se
Figure 10-33: OSPF redistribution and filtering—Scenario 4-2-c
In this configuration, you filter routes based on a tag. The configuration relies on
lU
several components:
a
When you configure redistribution from OSPF process 1 to process 2 (the bottom
rn
box in the figure), you configure the router to tag the redistributed routes as
belonging to process 1 (tag 11).
te
You also configure a route map filter that denies routes with that tag but permits
In
When you configure redistribution from OSPF process 2 to OSPF process 1, you
H
specify the route map filter that denies all routes marked with process 1’s tag
(11).
r
Fo
You follow the same steps to filter routes redistributed from OSPF process 1 to process
2. Thus each redistribute command specifies a tag and a route map filter.
This method does not necessarily solve all problems. For example, each domain
might have another ASBR, which redistribute some of the same routes. The external
routes received from these ASBRs will not be tagged, and so they will be
redistributed to the other domain. You might need to configure prefix-based
administrative distances as discussed earlier.
y
import-route ospf 1 tag 11 route-policy filter_ospf2
preference ase 200
nl
quit 10.2.N.0/24
10.1.N.0/24
route-policy filter_ospf2 deny node 10
O
if-match tag 22
route-policy filter_ospf2 permit node 20
Se
Figure 10-34: OSPF redistribution and filtering—Scenario 4-2-d
lU
You can also configure filtering based on tags on HP A-Series switches. The
configuration is very similar to the Cisco configuration.
a
rn
te
In
P
r H
Fo
BGP
R1 R2
0.0.0.0/0 0.0.0.0/0 Both R1 and R2 use OSPF
to inject a default route
into corporate network
OSPF
R3 Area 0 R4
y
nl
Figure 10-35: OSP default route injection—Scenario 5
O
In this scenario, R1 and R2 are connected to the Internet and use BGP to
communicate with the ISP routers. (They could also have a static default route to the
Se
Internet for a similar scenario.)
Both routers inject a default route into the OSPF network.
a lU
rn
te
In
P
r H
Fo
10.1.N.0/24
If the cost of IP OSPF
OSPF
interfaces is 10, which
Area 0
R3 R4 default route will R3 and R4
add to their routing tables?
y
default-route advertise always cost 100 type 1
R2 = Cisco
nl
50 ospf
router Rev. 10.41
1
network 10.1.0.0 0.0.255.255 area 0
O
default-information originate metric 100 metric-type 1
Se
This figure presents a scenario in which R1 (an HP A-Series router) and R2 (a Cisco
lU
router) both
What is the metric for the default routes advertised by R1 and R2? What is the
a
Both the Cisco and the HP A-Series devices have commands that define the default
te
cost (metric) and default metric type for routes advertised by OSPF. The figure shows
In
the commands that configure these settings for default routes injected into OSPF:
Metric (cost) = 100
P
H
Metric type = 1
Refer to the section at the end of the notes for this slide to see more commands for
r
Fo
changing these settings as well as the default settings when the commands are not
defined.
Continue to examine the configuration shown in the figure. If the cost on IP OSPF
interfaces is 10, which default route will R3 and R4 add to their routing table?
In this configuration, both R1 and R2 inject the default route with metric 100 and
metric type 1. Metric type 1 means that each router interface that advertises the route
will increment the cost.
Trace the routes from R1 and R2 to R3:
When R3 receives the default route set by R1, its cost will be 100+10 =110.
When R3 receives the default route set by R2, its cost will be 100+10 + 10
=120.
R3 will select the route from R1 as the route through the closest router. The default
route from R2 will serve as a backup in case R1 or the link to R1 fails; however, the
backup route is not part of the active routing table.
Also trace the routes from R1 and R2 to R4:
When R3 receives the default route set by R1, its cost will be 100+10 + 10
=120.
When R4 receives the default route set by R2, its cost will be 100+10 =110.
Thus R4 will add the route from R2 to its routing table; the route from R1 serves a
backup.
In conclusion, when the redistributed route uses metric type 1, other OSPF routers can
choose the route with the least cost.
y
Additional reference
nl
On Cisco devices, you can specify the default metric and metric type for redistributed
O
routes when you enter the redistribute commands. Similarly, you specify the default
metric and metric type for a default route injected into an NSSA or totally stubby
Se
area when you enter the default-information or area commands.
lU
On HP A-Series devices, the commands for changing the default metric and metric
type are:
a
But you can also override those commands for particular redistributed routes or route
summaries configured for areas.
In
If you have not configured these commands, the default settings are:
P
On Cisco devices:
H
y
default-route advertise always cost 100 type 2
nl
router ospf 1 R2 = Cisco
auto-cost reference-bandwidth 10000
O
network 10.1.0.0 0.0.255.255 area 0
default-information originate metric 100 metric-type 2
Se
Figure 10-37: OSPF redistribution and filtering—Scenario 5-2
lU
Now consider the same scenario except that the injected default routes use type 2
metrics. In this case, which default routes to R3 and R4 add to their routing table.
a
First examine R3. Both R1 and R2 assign the same cost (100) to the default route, so
rn
R3 cannot choose between the routes based on cost. Therefore, R3 selects the default
route from the ASBR to which it has the lowest cost path.
te
10000/1000). R3’s path cost to R1 is 10 and its path cost to R2 is 20. Therefore, R1
P
Similarly, R4 receives both default routes with the same cost. R4’s path cost to R1 is
20 and to R2, 10. Therefore, R4 selects the default route from R2.
r
Fo
Again, both R3 and R4 can use the non-selected route as a backup, which is added
to the routing table if they can no longer reach the next-hop router in the selected
route.
In conclusion, when routers inject default routes with type 2 metrics, other routers
choose the default route of the closest ASBR (which is often the same route that would
be selected with type 1 metrics).
P3
VLAN 101
HP-E
P1
VLAN 100 Area 1
P3
Cisco-B OSPF Router-Id:
POD.X.X.X
VLAN 2 P1 P2
VLAN 3
IP addressing:
P1 P1
HP-C Area 0 Cisco-A 10.POD.VLAN.X/24
P2 P2 X=1 on Cisco-A
X=2 on Cisco-B
VLAN 4
X=3 on HP-C
VLAN 5 X=4 on HP-D
P1 P2
X=5 on HP-E
y
HP-D X=6 on HP-F
X=100 on Server_1
nl
P3 X=101 on Client_1
VLAN 200 P1 Area 2
O
HP-F P3
Client_1
VLAN 201
Se
Figure 10-38: Lab 10.1: Configuring OSPF areas
lU
Server_1
P3
a
VLAN 101
rn
HP-E
P1
VLAN 100
te
P3
OSPF1 Area 0
Cisco-B
OSPF Router-Id:
In
POD.X.X.X
P1 P2
VLAN 2 VLAN 3
IP addressing:
P
P1
P1
HP-C Cisco-A 10.POD.VLAN.X/24
H
P2 X=1 on Cisco-A
P2
X=2 on Cisco-B
VLAN 4
X=3 on HP-C
r
X=5 on HP-E
X=6 on HP-F
OSPF2 HP-D
Area 0 X=100 on Server_1
P3 X=101 on Client_1
VLAN 200 P1
HP-F P3
Client_1
VLAN 201
You will now complete two labs. In the first lab, illustrated in Figure 10-38, you
establish a multi-area OSPF system, in which a Cisco switch is one ABR and a HP A-
Series switch is another ABR.
In the second lab, illustrated in Figure 10-39, you configure redistribution of routes
from one OSPF AS to another. In this lab, a Cisco switch is one ASBR and an HP A-
Series switch is another ASBR.
You can proceed directly from one lab to the next at your own pace.
10 –62 Rev. 11.12
Routing Using OSPF
Use the space below to record any instructions your facilitator gives you for
these labs.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
y
nl
________________________________________________________________________
O
________________________________________________________________________
Se
________________________________________________________________________
a lU
________________________________________________________________________
rn
te
________________________________________________________________________
In
________________________________________________________________________
P
H
________________________________________________________________________
r
Fo
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Lab debrief
Did you find useful show and display commands?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
O
_______________________________________________________________________
Se
_______________________________________________________________________
lU
What are your key insights about OSPF? Have you discovered something new?
a
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
Se
_______________________________________________________________________
a lU
What practical discoveries do you plan to apply in the field?
rn
_______________________________________________________________________
te
In
_______________________________________________________________________
P
_______________________________________________________________________
r H
_______________________________________________________________________
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Module 10 summary
In this module, you have learned how to:
Configure OSPF routing on HP and Cisco switches
Enable OSPF’s BFD and graceful restart features
Configure areas and summarization
Configure redistribution and filtering
Generate default routes to inject into OSPF
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Learning check
Q1: What parameters must match for OSPF neighbors?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
O
_______________________________________________________________________
Se
Q2: What purpose does BFD serve in OSPF?
lU
_______________________________________________________________________
a
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
Q3: Which type of area conceals the networks in all other areas from routers within
that area?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Q4: What options can you set when you redistribute routes into OSPF?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
Q5: Why would you tag IP routes when you redistribute them?
nl
_______________________________________________________________________
O
_______________________________________________________________________
Se
lU
_______________________________________________________________________
a
_______________________________________________________________________
rn
te
_______________________________________________________________________
In
_______________________________________________________________________
P
H
_______________________________________________________________________
r
Fo
Q6: When you implement graceful restart, do all routers need to be aware of the
graceful restart feature?
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
_______________________________________________________________________
nl
O
_______________________________________________________________________
Se
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
Q8: How can you set up one router as the main router and the other router as a
te
_______________________________________________________________________
P
_______________________________________________________________________
r H
_______________________________________________________________________
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
Module 11 objectives
After completing this module, you will be able to configure network address
translation (NAT) to:
Connect users with private addresses to the Internet
Allow external access to internal servers with private addresses
Interconnect networks with overlapping addresses
NOTES
y
nl
_________________________________________________________________________
O
_________________________________________________________________________
Se
lU
_________________________________________________________________________
a
_________________________________________________________________________
rn
te
_________________________________________________________________________
In
_________________________________________________________________________
P
H
_________________________________________________________________________
r
Fo
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Rev. 11.12 11 –1
HP Networking Interoperability
y
Note
nl
NAT support is very limited on HP E-Series devices, so this module will cover
NAT for Cisco and the HP A-Series devices. NAT is supported on most HP and
O
Cisco routers, but only on a limited number of switches. If working with a switch,
be sure to verify that it supports NAT.
Se
a lU
rn
te
In
P
r H
Fo
11 –2 Rev. 11.12
Network Address Translation
10.1.1.18
10.1.0.0/16
S=15.6.7.8 :2001 D=X
S=10.1.1.18 :1031 D=X
S=15.6.7.8 :2002 D=Y
10.1.7.13 S=15.6.7.8 :2003 D=Z
S=10.1.7.13 :1028 D=Y 15.6.7.8
Internet
10.1.8.22
S=10.1.8.22 :1027 D=Z
y
Intranet
nl
O
Figure 11-1: NAT and Internet access—Scenario 1
Se
Dynamic NAT or NAPT is a variation of NAT. Because it allows multiple internal
addresses to be mapped to the same public IP address, it is called many-to-one NAT
or address multiplexing. NAPT is based on both the IP address and the port number.
lU
With NAPT, multiple IP source addresses are translated to the same public IP
address, but each NAT session is assigned a unique source port.
a
rn
translated by either:
In
Selecting the IP address from pool of IP addresses, which might contain one or
several IP addresses
r
Fo
NAPT has enabled companies to better utilize their IP address resources, providing
many internal devices access to the external network at the same time using only one
or a few public IP addresses.
Rev. 11.12 11 –3
HP Networking Interoperability
y
or
nl
ip nat inside source list 10 pool pool-corp123 overload
ip nat pool pool-corp123 15.6.7.8 15.6.7.8 prefix 30
O
Figure 11-2: NAT and internet access—Scenario 1a
Se
Figure 11-2 shows the Cisco commands for configuring NAT for this scenario.
a lU
rn
te
In
P
r H
Fo
11 –4 Rev. 11.12
Network Address Translation
R1= HP A -Series
interface vlan-interface 100
ip address 10.1.1.254 24
OR
interface vlan-interface 200 interface vlan-interface 200
ip address 15.6.7.8 30 ip address 15.6.7.8 30
nat outbound 2001 nat outbound 2001 address-group 1
quit
nat address-group 1 15.6.7.8 15.6.7.8
acl number 2001
y
rule permit source 10.1.0.0 0.0.255.255
nl
rule deny
O
Figure 11-3: NAT and Internet access—Scenario 1-b
Se
These are the commands for configuring NAT on an HP A-Series switch in a similar
scenario.
lU
NAPT configuration on the HP A-Series switch
a
The IP address to be translated, 10.1.0.0/16, is defined by the ACL. You can set the
rn
You must then configure outbound NAT on the interface on which the traffic to
P
be translated is forwarded after being routed. When you do, you specify the
H
address group:
r
To the IP address of the interface to which you apply outbound NAT (this option
is called easy IP):
[Device] interface vlan-interface 200
[Device-Vlan-interface200] ip address 15.6.7.8 30
[Device-Vlan-interface200] nat outbound 2001
Note
By default, the IP NAT outbound setting is NAPT or PAT (many-to-one NAT). To
specify one-to-one NAT, you should add no-pat to the command:
nat outbound 2001 address-group1 no-pat
Rev. 11.12 11 –5
HP Networking Interoperability
y
For user connections not covered in the connection limit policy, the global
nl
configurations take effect.
O
Follow these steps to configure this option:
Se
1. Configure a connection limit policy. In this example, the policy limits user
connections from 10.1.10.100. Set the upper and lower limits to 1000 and 200
lU
respectively.
[HP-A] acl number 2002
a
rn
[HP-A-acl-basic-2002] quit
In
[HP-A-connection-limit-policy-1] quit
r
11 –6 Rev. 11.12
Network Address Translation
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Rev. 11.12 11 –7
HP Networking Interoperability
S=Z D=10.1.103:80
y
Intranet
nl
Figure 11-4: Internal servers and NAT—Scenario 2
O
This scenario features static destination NAT, which you must sometimes use with
Se
dynamic source NAT.
Dynamic source NAT hides the internal network structure, including the identities of
lU
internal hosts. However, in practice, external hosts often need to access internal hosts
such as Web or FTP servers. Destination NAT enables them to do so.
a
rn
With this form of NAT, you can deploy an internal server easily and flexibly. For
instance, you can use 15.6.7.1 as the Web server’s external address and 15.6.7.2 as
te
the FTP server’s external address. You can even use an address like 15.6.7.3:8080
In
address in the packet to the private IP address of the internal server. When a
H
response packet from the internal server arrives, NAT translates the source address (a
r
private IP address) of the packet into a public IP addresses mapped to the same
Fo
11 –8 Rev. 11.12
Network Address Translation
R1= Cisco
interface gigabitethernet 1/1
ip address 10.1.1.254 255.255.255.0
ip nat inside
y
ip nat inside source static tcp 10.1.1.101 21 15.6.7.1 21
nl
ip nat inside source static tcp 10.1.1.102 80 15.6.7.2 80
ip nat inside source static tcp 10.1.1.103 25 15.6.7.3 25
O
Figure 11-5: Internal servers and NAT—Scenario 2a
Se
These commands show how a Cisco device can implement static destination NAT
with optional port forwarding to a different private destination. On Cisco switches,
lU
you must specify ip nat inside on the interface that faces the private network and ip
nat outside on the interface that faces the Internet. Then, instead of setting up
a
destination NAT for outside traffic, you set up static source NAT entries for inside
rn
traffic. The device automatically implements destination NAT for the reverse traffic on
the interface enabled for outside NAT.
te
Rev. 11.12 11 –9
HP Networking Interoperability
R1= HP A -Series
interface vlan-interface 100
ip address 10.1.1.254 24
y
nl
Figure 11-6: Internal servers and NAT—Scenario 2b
O
This slide shows the same NAT configuration on an HP A-Series device. Notice that
Se
the NAT commands are configured on the VLAN interface that faces the Internet. (If
you were configuring NAT on an HP A-Series router, you would configure the NAT
commands on the routed physical interface.)
lU
You indicate that you are configuring static destination NAT by using the nat server
a
command shown in the slide. As you see, you specify the publically known IP
rn
address for the global address and the server’s actual IP address for the inside
address.
te
The HP A-Series devices automatically implement source NAT for the reverse traffic
In
S=Z D=15.6.7.8:8080
Intranet
y
Internet
nl
O
Figure 11-7: Internal servers and NAT—Scenario 3
IP NAT port forwarding is typically used in small networks or small divisions of larger
Se
networks when only one public IP is available. The IP address of the router facing the
Internet becomes the “Internet interface.”
lU
When a packet intended for an internal server arrives, NAT translates the destination
a
address in the packet to the private IP address of the Internet interface of the router.
rn
When a response packet from the internal server arrives, NAT translates the source
address (a private IP address) of the packet into a public IP addresses mapped to the
te
10.1.3.140
10.1.0.0/16
DNS request for DNS response
www.corp123.com 15.6.7.8
DNS response DNS server
10.1.1.101 15.6.7.8:21
15.6.7.8:80
15.6.7.8:25 Internet
www.corp123.com 15.6.7.8:8080
10.1.1.101
y
Intranet
nl
O
Figure 11-8: Internal servers and NAT—Scenario 3a
Se
Internal server
Very often servers get their IP addresses from an external DNS server that belongs to
lU
an Internet Service Provider (ISP) or to another company.
a
DNS mapping
rn
You can specify an external IP address and port number for an internal server on the
te
public network interface of a NAT gateway, so that external users can access the
internal server using its domain name or pubic IP address.
In
An internal host may want to access an internal server on the same private network
P
by using its domain name, while the DNS server is located on the public network.
H
Typically, the DNS server will reply with the public address of the internal server to
the host. However, without relevant processing of the NAT device, the host cannot
r
access the internal server using its domain name. In this case, the DNS mapping
Fo
R1= Cisco
interface gigabitethernet 1/1 interface gigabitethernet 1/2
ip address 10.1.1.254 255.255.255.0 ip address 15.6.7.8 255.255.255.252
ip nat inside ip nat outside
y
ip nat outside source static tcp 10.1.1.101 21 15.6.7.8 21
nl
ip nat outside source static tcp 10.1.1.102 80 15.6.7.8 80
ip nat outside source static tcp 10.1.1.103 25 15.6.7.8 25
O
ip nat outside source static tcp 10.1.1.104 80 15.6.7.8 8080
Se
The ip nat inside source command creates a translation, if necessary. It
lU
translates:
The source IP address for packets going from inside to outside
a
rn
In the above configuration, the ip nat inside source static tcp 10.1.1.101 21 15.6.7.8 21
r
command translates the source IP in packets coming from server 10.1.1.101:21 to the
Fo
public IP address 15.6.7.8:21 when the packets are transmitted from inside (intranet)
to outside (internet).
The ip nat outside source static tcp 10.1.1.101 21 15.6.7.8 21 command translates the
source IP in packets coming from server 10.1.1.101:21 to the public IP address
15.6.7.8:21 when packets are transmitted from inside (intranet) to outside (internet).
In this case the ip nat outside command is not used to translate packets but only to
translate the embedded IP address into a DNS response.
y
Quit
nl
nat dns-map domain ftp.corp123.com protocol tcp ip 15.6.7.8 port ftp
nat dns-map domain www.corp123.com protocol tcp ip 15.6.7.8 port www
nat dns-map domain www2.corp123.com protocol tcp ip 15.6.7.8 port 8080
O
nat dns-map domain smtp.corp123.com protocol tcp ip 15.6.7.8 port 25
Se
Figure 11-10: Internal servers and NAT—Scenario 3c
With DNS mapping, an internal host can access an internal server on the same
lU
private network by using the domain name of the internal server when the DNS
server resides on the Internet.
a
rn
Use the nat dns-map command to map the domain name to the public network
information of an internal server.
te
Use the undo nat dns-map command to remove a DNS mapping. Currently, the
In
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Overlapping networks—Scenario 4
10.1/16 10.1/16
S 10.111.3.18
1 S 10.1.3.18 D 10.222.2.200 S 10.111.3.18
D 10.222.2.200 D 10.1.2.200
y
nl
Figure 11-11: Overlapping networks—Scenario 4
O
When two networks are merged, they may have overlapping IP subnets.
Se
Consequently, the two networks cannot be joined without causing IP address
conflicts. Rather than changing IP addressing, companies may want to use NAT
lU
translate IP addresses so that each network appears to be unique.
In the above figure, Network 1 and 2 have the same IP subnet 10.1.0.0/16. With
a
10.1.2.200 in its own network.) The server IP address may be provided by the DNS
P
response and translated by NAT if the DNS server is in Network 2. Or the server’s
address in Network 2 can already be assigned a “NATed” address in the local
H
DNS.
r
Fo
If each side has its own DNS server, NAT can also translate the DNS response when
sent to the other network.
For example, if a server account corp123.com with IP 10.1.1.100 is in Network 1,
when the DNS on Network 1 side responds to the DNS request coming from
Network 2, the IP address 10.1.1.100 will be translated by R1 to 10.111.1.100. So
server account corp123.com will appear to Network 2 with the IP address
10.111.1.100.
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Overlapping networks—Scenario
pp g 4a
10.1/16 translated into 10.11/16
10.1/16 10.1/16
S 10.222.4.77
S 10.222.4.77 D=10.111.1.100 S 10.1.4.77 2
D=10.1.1.100 D=10.111.1.100
1 S 10.1.1.100 S 10.111.1.100
D=10.222.4.77 S 10.111.1.100 D=10.1.4.77
D=10.222.4.77
y
As seen by Network2 : As seen by Network 1:
10.222/16
nl
10.111/16
10.1/16 translated into
10.222/16
O
Figure 11-12: Overlapping networks—Scenario 4a
Se
In the example above, node 10.1.4.77 in Network 2 tries to reach a server in
lU
Network 1, which it sees as 10.111.1.100 (the server is really 10.1.1.100 in its own
Network 1). The server’s IP address may be provided by the DNS response and
a
and forwarded to R1. When a packet is routed by R1, the destination 10.111.1.100 is
NATed to 10.1.1.100 and forwarded in Network 1.
In
P
r H
Fo
Overlapping networks—Scenario 4b
As seen by Network 1:
10.1/16 10.222/16
R1 R2
Network1 Network2 1
As seen by Network2 : 10.1/16
10.111/16
Gig 1/0/1 Gig 1/0/2 Int vlan 100 Int vlan 200
10.1.1.254 10.3.1.1/24 10.3.1.2/24 10.1.1.2
y
nl
R1-Cisco(config)#ip route 10.222.0.0 255.255.0.0 10.3.1.2
O
R2-HP(config)#ip route-static 10.111.0.0 255.255.0.0 10.3.1.1
Se
For Network1 to send a packet to Network 2, R1 needs to have a route to
lU
10.222/16, which is the IP subnet of Network 2 as it seen by Network1.
Symmetrically, R2 needs to have a route to 10.111/16, which is the IP subnet of
a
Overlapping networks—Scenario 4c
As seen by Network 1:
10.1/16 10.222/16
R1 R2
Network 1 Network 2 1
As seen by Network 2 : 10.1/16
10.111/16 Gig 1/1 Gig 1/2 Gig 1/2
10.1.1.254 10.3.1.1 10.3.1.2
y
nl
ip nat inside source static network 10.1.0.0 10.111.0.0 /16
ip nat outside source static network 10.1.0.0 10.111.0.0 /16
O
Figure 11-14: Overlapping networks—Scenario 4c
Se
This slide shows the configuration of R1 in the example network.
On Cisco devices, the command ip nat inside source static network 10.1.0.0
lU
10.111.0.0 /16 translates all source addresses on the inside interface 10.1 into 10.111,
keeping the node part instead of selecting IP addresses from a pool.
a
rn
The command ip nat outside source static network 10.1.0.0 10.111.0.0 /16 translates
all source addresses embedded in the DNS entry coming from outside (for example
te
Let’s say Network1 has a domain name of corp1.com, and Network 2’s domain
name is corp2.com. Each side has its own DNS server. You will have to configure the
P
DNS server in Network1so that the corp2.com domain is translated by the DNS
H
server in Network 2. The IP address you will have to provide will be the NATed
address of the DNS server in Network 1. In other words, if the real IP of the DNS
r
Fo
y
ip nat inside source static network 10.1.0.0 10.222.0.0 /16
nl
ip nat outside source static network 10.1.0.0 10.222.0.0 /16
O
Se
a lU
rn
te
In
P
r H
Fo
Overlapping networks—Scenario
g 4d
As seen by Network 1:
10.1/16 10.222/16
R1 R2
Network1 Network2 1
As seen by Network2 : 10.1/16
10.111/16
Int vlan 100 Int vlan 200 Int vlan 100
Int vlan 200
10.1.1.254 10.3.1.1 10.1.10.254
10.3.1.2
interface vlan-interface 100
ip address 10.1.1.254 24 R1= HP A -Series
interface vlan-interface 200
ip address 10.3.1.1 30
nat outbound 2001 address-group 1 no-pat
y
rule permit source 10.1.0.0 0.0.255.255
nl
rule deny
nat address-group 1 10.111.0.1 10.111.254.254
O
Figure 11-15: Overlapping networks—Scenario 4d
device.
P
ip address 10.1.10.254 24
Fo
Module 11 summary
In this module, you have learned how to configure NAT for various practical
scenarios. Write down any thoughts you may have while your facilitator reviews the
content of this module.
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
y
nl
_______________________________________________________________________
O
Se
_______________________________________________________________________
lU
_______________________________________________________________________
a
rn
_______________________________________________________________________
te
_______________________________________________________________________
In
P
_______________________________________________________________________
H
_______________________________________________________________________
r
Fo
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
Learning check
Q1: What is the difference between dynamic NAT and NAPT?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
nl
O
___________________________________________________________________
Se
___________________________________________________________________
lU
___________________________________________________________________
a
rn
Q2: What is required to access (from the outside) an internal server set with a
private address?
te
___________________________________________________________________
In
P
___________________________________________________________________
r H
___________________________________________________________________
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
11 –24 Rev. 11.12
Network Address Translation
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
___________________________________________________________________
nl
O
___________________________________________________________________
Se
___________________________________________________________________
lU
Q4: In what situation would you use static NAT?
a
___________________________________________________________________
rn
te
___________________________________________________________________
In
___________________________________________________________________
P
H
___________________________________________________________________
r
Fo
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
Module 2
Activity and discussion question answers
Management scenario 1
Q: What minimal switch parameters should you configure to allow discovery by
IMC?
A: The switch must be configured with:
y
System name, or hostname (all switches have a name by default)
nl
O
SNMP communities
Se
Although open Telnet access is not necessary for IMC to discover the device, it can
be helpful to enable Telnet access so that you can easily access and configure the
lU
switch.
a
A: The source interface specifies the source for traps, which is useful when the switch,
In
typically a routing switch, has multiple IP interfaces. Such a switch could send traps
from a different source address from the one at which IMC discovered it, causing the
P
trap to be misidentified.
H
y
nl
Cisco# terminal monitor
O
Management scenario 2a—Cisco (cont.)
Se
Q: How will admin123 login to the switch?
A: This user will use SSH to access the switch and will be prompted to enter:
lU
-Username
a
-Password
rn
This user will access the switch as a level 15 privilege user at the enable level. The
te
user does not need to enter a command to move to the enable level.
In
y
Management scenario 2b—HP A-Series (cont.)
nl
Q1: Is there any drawback to disabling Telnet?
O
A1: When troubleshooting or configuring the network, it is convenient to access one
Se
switch from another. If no SSH client exists on a switch’s platform (as with HP E-
Series), you cannot establish an SSH session between switches. (SSH is supported by
lU
the HP A-Series switches.)
Q2: Is the user privilege level 3 command required?
a
rn
A2: No. This command provides a default user privilege level for users connecting
via telnet. However the privilege for authenticated is the privilege level associated
te
with their user parameters. It overwrites the level define in user-interface. If not
In
available on Cisco?
A4: Service-type, which defines how users can communicate with the switch
Q5: What is the meaning of “cipher“ in “password cipher verysecret”?
A5: It means password will be encrypted during configuration
y
You can use a <search-text> value with –a or –r to further filter your search.
nl
Management scenario 2c—HP E-Series (cont.)
O
Q: On what port do you want to disable snmp trap link up/down?
Se
A: Disable traps link up/down on ports that are not key such as access-layer ports
but leave the trap active for uplink ports.
lU
Learning check answers
a
rn
enable LLDP, it is enabled on all ports by default. CDP is intended for use with Cisco
In
IP phones. When used with a switch neighbor, the A-Series switch does not send
CDP frames. However, CDP transmits and receives frames when used with an IP
P
phone.
H
Q2: Which parameters does a switch require in order for IMC to discover it?
r
Fo
Module 3
Activity and discussion question answers
y
VLAN configuration on Cisco: Access and voice ports
nl
O
Q1: How do you list VLANs?
Se
A1: The command is show vlans.
Q1: What is a major difference between trunk ports on Cisco and HP A-Series?
r
Fo
A1: On Cisco switches, all VLANs are allowed on trunk ports. On HP A-Series
switches, only VLAN 1 is enabled by default. On HP E-series switches, VLANs have
to be assigned one by one.
Q2: Can you remove VLAN 1 on trunk ports on HP switches?
A2: Unlike on Cisco switches, VLAN 1 only plays the role of default VLAN on HP
switches. If a port is not specifically assigned to a VLAN, it is assigned to VLAN 1.In
most cases it does not play a role in L2 protocols such as LLDP, STP, and LACP.
BPDUs for these protocols are sent anyway, as untagged frames, and are not
attached to any specific VLAN since their destination is a switch. If the switch is
disabled for the protocol, it will recognize the frames as untagged and will attach it
to the native VLAN or untagged on a trunk.
Q3: Can you assign a VLAN to an access port with GVRP or VTP?
A3: VTP and GVRP only dynamically assign VLANs to trunk ports.
Rev 11.12 A–5
Q4: Would you enable all VLANs on trunk ports in a mixed environment with HP
and Cisco switches?
A4: The main issue with assigning all VLANs on trunk ports is that it extends the
broadcast domain VLANs to the overall LAN. That will not be an issue if not all
VLANs are created on all switches; it happens in the case of dynamic learning with
VTP and GVRP. With static configuration, the learning can be better controlled and
then all VLANs can be permitted on trunk ports.
Module 4
Activity and discussion question answers
MSTP regions—Review 1
y
Q1: What MSTP parameters must be set consistently on all switches for them to be in
nl
the same MSTP region?
O
A1: The region name (case sensitive), the revision number, and the mapping between
instances and VLANs must match EXACTLY.
Se
Q2: What are the default MSTP parameters?
lU
A2: Region name: MAC address of the switch; revision number: 0; mapping of
instance to VLAN: all VLANs in instance 0.
a
Q3: Why would you want all switches to be in the same MSTP region?
rn
A3: The main reason for placing all switches in the same region is to get load
te
balancing on uplinks on a per-instance basis. If you are not worried about load-
In
balancing because you have enough network bandwidth, you might also put all
switches in the same region to keep the configuration consistent.
P
MSTP regions—Review 2
H
A1: When region parameters do not match between switches, each switch becomes
its own region, and they interoperate in the common spanning tree, which functions
like RSTP.
Q2: Besides mistakes in the region name or revision number, what conditions could
result in switches being in different regions?
A2: The following situations result in switches being in different regions:
When MSTP is enabled on a switch but MSTP parameters have not been
configured, the region name is by default the MAC address of the switch. This
can be a valid setup if the load balancing effect between instances is not
desired.
The VLAN mapping to instances do not match—a situation that occurs if VLANs
are added or deleted and have not been mapped to an instance in advance. A
best practice is to set the mapping in advance to avoid this situation.
Rev 11.12 A–6
Which BPDUs are used?—Review 3
Q1: Which Bridge Protocol Data Units (BPDUs) are used inside and outside the MSTP
region?
A1: The MSTP switches send these BPDUs:
Inside the MSTP region, switches send MSTP BPDUs.
Outside the MSTP region, the MSTP-capable switches also send MSTP BPDUs.
Switches that are capable only of RSTP or STP can interpret the first part of the
MSTP BPDUs, which is backward compatible with these protocols.
MSTP BPDUs—Review 4
Q1: Are MSTP BPDUs tagged?
A1: No, they are untagged. This is very different from PVST. Note that RSTP and STP
y
nl
BPDUs are also untagged.
O
Q2: Are MSTP BPDUs attached to a VLAN?
A2: Absolutely not. The MSTP BPDUs are non-VLAN specific, and an untagged VLAN
Se
may or may not exist on the link over which MSPT BPDUs are sent.
lU
Q3: On a trunk port, is it required to set an untagged VLAN for MSTP BPDUs?
A3: No. MSTP BPDUs, as well as RSTP and STP BPDUs, will be sent on the link
a
A4: 01:80:c2:00:00:00 is a bridge MAC address. The switch is the destination for
In
Q5: Does each MSTP BPDU carry information about all instances?
H
A5: Yes. Switches outside of the MSTP region will only use the CIST parameters,
which are included in the STP/RSTP backward-compatible portion of the BPDU, but
r
Fo
y
nl
Q1: What happens to the MSTP configuration when VLANs are moved to an
O
instance?
Se
A1: By default all VLANs are assigned to instance 0 (the IST instance). When a
VLAN is assigned to an MST instance X, that VLAN is removed from instance 0.
lU
Is MSTP “aware” of the VLAN setup—Review 8
Q1: Is MSTP “aware” of the VLANs setup?
a
rn
A1: No. This is a key difference between Cisco PVST+ and MSTP. When creating the
spanning tree topology, MSTP is does consider which VLANs are supported on
te
which links. If a port must be blocked in instance X, then all VLANs in instance X that
In
Q2: If all link costs are equal in each instance, which ports are root ports?
H
A2: The root ports are ports that lead to the shortest path to the root bridge. If two
paths are the same, the port that leads to the switch with the higher priority (lower
r
Fo
value) is preferred. If two ports lead to the same switch, the tie is broken by the port
ID.
Q3: If all link costs are equal in each instance, which ports are alternate ports?
A3: The alternate ports are uplinks other than the root ports. Note that on edge
switches with more than two uplinks, only one port per-instance can be the alternate
port. The alternate port is then the second-best port in the selection process.
y
nl
There are some nuances to this point: if VLAN X is not created on a switch,
broadcasts in VLAN X will simply be dropped before being checked. In other words,
O
if VLANs are not defined on a switch, then this does not extend the VLAN to the
Se
switch trunk port.
Unlike PVST+, this setup does not create overhead on the CPU due to BPDUs
lU
because MSTP does not require one BPDU per VLAN or instance.
Conclusion: Setup of trunk with all permitted VLANs is simple and does not create
a
overhead.
rn
In Setup 2, only VLANs defined on the edge are permitted on the trunk.
te
Pros:
In
Cons:
r
Fo
Because the topology is instance based, you can create a dedicated instance to
VLAN 100 with both switches at the end of the link being the root and
secondary root.
y
nl
Pros of this solution:
O
Easy to setup
Se
Cons of this solution:
You must create this instance on all switches in the MSTP region, which
lU
is not scalable. If multiple links in the datacenter require this setup for
keepalives, it will require setup of many instances. In addition to being
a
You can include this link in an existing instance, and then change the
In
cost to make sure the root port of the instance is on that link. Note that
all other VLANs of the instance should be defined on that link as well.
P
If instance 0 does not contain any of your “active VLANs,” you may
H
leave VLAN 100 on that link in instance 0 and change only the cost
setup for instance 0.
r
Fo
Why dedicate a link for keepalives? Why not make that VLAN
dedicated to keepalives part of the other uplinks and of an existing
instance? That would drastically simplify instance setup. A simpler and
safer solution is to remove that dedicated link.
MSTP setting—Activity
Q1: Is MSTP active on the links that carry routed traffic on VLANs 100 and 200?
A1: Yes, MSTP is active on all links once spanning tree is enabled (MSTP is the
default version for spanning tree). Those ports are boundary ports for both MSTP
regions.
Rev 11.12 A – 10
Q2: Which link is blocked? Why?
A2: Because each end of the links in VLAN 100 and VLAN 200 belongs to a
different region, the switches interoperate as if using RSTP. If the root switch of the
CST is the root in region 1, then the root port will be the port in region 2 on the
VLAN 100 link. The blocked port will be on the VLAN 200 link on the secondary
root of region 2. The decision about which link to block simply depends on the cost
of the path to the root switch.
Q3: How do you keep both links active?
A3: The simplest solution is to disable STP on both “routed links.” You could create
one unique MSTP region with separate dedicated instances for VLANs 100 and 200
and set a different root for each instance on either side of the link. However, this
design is rather more complicated than simply disabling STP.
y
Adding a new VLAN on a switch implementing MSTP
nl
Q1: What happens if you add VLAN 14 on switch D?
O
A1: Because VLAN 14 is already in an instance (instance 0, by default and in this
Se
example), no change will be made to the MSTP configuration, and it should not
affect the MSTP.
lU
In general, creating a VLAN does not modify the instances. It is adding or removing
a VLAN from an instance that modifies the parameters of the MSTP region,
a
potentially causing the switch to be removed from other switches’ MSTP region.
rn
A1: The answer is the same as the answer on the previous slide; the MSTP topology
P
A1: The switch will be removed from the region that A, B and C belong to and will
Fo
be placed in its own region. Switch D will interact with the other switches in RSTP. To
put the switch back in the same region, you will have to update all the other switches.
Q3: What can you do to limit the MSTP region changes?
A3: A possible suggestion is leaving new VLANs in instance 0 until a scheduled
time. You can then move the VLANs to new instances on all switches at the same
time.
Rev 11.12 A – 11
Learning check answers
Q1: Is the MSTP region name case sensitive?
A1: Yes, it is.
Q2: Is MSTP aware of VLAN configuration? Explain your answer.
A2: No. MSTP BPDUs are sent untagged no matter what VLAN configuration is on
link. In addition, a link is blocked or not blocked simply based on the lowest path
cost to the instance root switch without regard to which VLANs are enabled on the
links.
Q3: Which parameters are applied outside of an MSTP region?
A3: The parameters applied in the CST are the parameters set in each region’s IST
instance/instance 0. The region’s bridge ID is the ID of the IST root bridge.
y
nl
Q4: Can a switch that implements STP be the root of the CST?
O
A4: Yes.
Q5: How should you configure VLANs on uplink ports?
Se
A5: There is no specific correct setup for uplinks. You can configure either all VLANs
lU
or only allowed VLANs; either configuration can work well. The choice has no
impact on the way MSTP operates. However, you need to be careful to specify
a
VLANs on all ports that might have to carry traffic in case a link fails and the
rn
topology changes.
In addition, you should remember that Cisco uplink ports must be trunk ports and not
te
access ports.
In
A6: Yes they do interoperate. Cisco switches send standard untagged RSTP BPDUs
on access ports or on trunks that allow VLAN 1. The HP switch implementing MSTP
r
Fo
Module 5
Activity and discussion question answers
Cisco PVST+: Which BPDUs are sent on access ports?
Q1: Which setup would you recommend for Voice over IP (VoIP) ports?
A1: Because VoIP ports do not send BPDUs, you might need to protect against loops
in case a standard switch is connected to such a port. You can either define the port
as a trunk instead of a VoIP port, or you can define it as a VoIP port and set BPDU
guard on it.
Rev 11.12 A – 12
Spanning tree BPDUs—Quiz 1
Q1-a: For Cisco Switch 1, what types of BPDUs are sent? (Choose from STP, RSTP,
MSTP, PVST+, Rapid PVST)
A1-a: VLAN 1 sends out STP BPDUs. VLANs 10, 20 and 30 send out PVSTP BPDUs.
Q1-b: For Cisco Switch 1, what MAC address is used, standard, or Cisco?
A1-b: VLAN 1 uses a standard MAC address (01:80:c2:00:00:00). VLANs 10, 20
and 30 use a Cisco MAC address (01:00:0c:cc:cc:cd).
Q1-c: Are the BPDUs that Cisco Switch 1 sends out tagged or untagged?
A1-c: VLAN 1 frames are untagged, as all are standard STP frames. Frames are
tagged in VLAN 10.
Q2-a: For Cisco Switch 2, what types of BPDUs are sent? (Choose from STP, RSTP,
y
MSTP, PVST+, Rapid PVST)
nl
A2-a: VLAN 10 sends out PVST+ BPDUs. VLANs 20 and 30 send out PVSTP BPDUs.
O
Q2-b: For Cisco Switch 2, what MAC address is used, standard, or Cisco?
Se
A2-b: All VLANs use a Cisco MAC address (01:00:0c:cc:cc:cd).
lU
Q2-c: Are the BPDUs that Cisco Switch 2 sends out tagged or untagged?
A2-c: VLAN 10 frames are untagged. VLAN 20 frames are tagged.
a
rn
Q1: For each BPDU in Figure 6-7, specify whether each switch will inspect, drop, or
forward a received BPDU of that type.
In
BPDU A:
P
Cisco switch 1 inspects BPDU A and sends the same type of BPDU.
H
Cisco switch 2 inspects BPDU A and falls back to sending PVST+ BPDU.
r
Fo
Rev 11.12 A – 13
BPDU B:
Cisco switch 1 inspects BPDU B and sends a PVST+ BPDU, forcing the other
side to fall back to this type.
Cisco switch 2 inspects BPDU B and sends the same type of BPDU.
HP switch 3 forwards BPDU B without inspecting it because the BPDU does
not have a MAC address that the switch recognizes for STP BPDU. For its
part, the switch sends untagged MSTP BPDUs.
HP switch 4 forwards BPDU B without inspecting it because the BPDU does
not have a MAC address that the switch recognizes for STP BPDU. For its
part, the switch sends untagged RSTP BPDUs.
BPDU C:
y
Cisco switch 1 drops BPDU C because VLAN 1 is not allowed on this port.
nl
This switch does not send standard STP BPDUs either.
O
Cisco switch 2 inspects BPDU C because VLAN 1 is allowed on this port.
For its part, it sends untagged RSTP BPDUs.
Se
HP switch 3 inspects BPDU C and sends an MSTP BPDU, which is backward
lU
compatible with STP.
HP switch 4 inspects BPDU C and sends an RSTP BPDU, which is backward
a
BPDU D:
te
Cisco switch 1 drops BPDU D because VLAN 1 is not allowed on this port.
In
y
However, as uplink 2 is blocked, they will not be forwarded on that port. Cisco B will
nl
not receive any PVST BPDUs on that port.
O
PVST+ quiz
Se
Q1: What is the cost of a gigabit link in PVST+?
A1: The cost is 4 for a Gigabit link, 19 for Fast Ethernet, and 2 for10 Gig. Note that
lU
the costs are the same in Rapid PVST+. To be aligned with standard RSTP and MSTP
(Gig: 20 000), you must use the spanning-tree pathcost method long command.
a
rn
Q2: Why does Cisco recommend not allowing all VLANs on a trunk port when
running PVST+?
te
A2: If trunks are configured with all VLANs permitted, then PVST is going to run as
In
many STP instances as there are VLANs created on the switch, even if that switch
does not contain any edge ports in that VLAN. Cisco recommends only allowing
P
VLANs that exist on the switch onto the trunk in order to reduce the CPU overhead
H
due to BPDU per VLAN. Note that in MSTP this overhead does not exist.
r
Q3: Does Rapid PVST+ implement the “uplinkfast,” or “backbonefast,” Cisco’s fast
Fo
STP feature?
A3: No, Rapid PVST+ implements the fast convergent and imbedded mechanisms of
RSTP.
Rev 11.12 A – 15
Q2: Does setting the path cost method on the Cisco switches to long change the
topology?
A2: When you configure this option on the Cisco switches, all costs in this scenario
are now 20 000.
The root path cost for HP C will be 20 000 on uplink 1 and 20 000 + 20
000= 40 000 on uplink 2.
Therefore, the root port is uplink 1, and the alternate port is uplink 2.
The topology is the same as in the previous case.
y
nl
Switch Cisco B: The root port in VLAN 1 is A (shortest root path cost).
O
Switch Cisco C: The root port in VLAN 1 is D (shortest root path cost).
Se
Switch Cisco B: The root port in VLAN 1 is F (shortest root path cost).
A1-b: The blocked ports are:
lU
Switch Cisco B: The blocked port in VLAN 1 is B.
a
Why? Because the root path cost of Cisco B is higher than the root
rn
A2: If the Cisco aggregation switches use the long option for path cost calculation
r
method, and if the Cisco edge switches do not support this method (because of an
Fo
old firmware version, for example), the secondary root switch, rather that the access
layer switch, might have the alternate (blocked) port. Cisco uplinkfast requires that
the root port and alternate ports be on the access switch, so this feature would not
work when access layer switches did not support the long path-cost calculation
method.
Rev 11.12 A – 16
Q2: Under what circumstances, would you configure the MSTP region settings?
A2: If you plan to convert Cisco switches to MSTP later, it makes sense to enter the
right configuration on the HP switches now.
PVST+/STP interoperability—Scenario 2
Q1: Does traffic from Cisco C experience the PVST+ load balancing effect on uplinks
to the aggregation layer?
y
nl
A1: Yes. Cisco C’s root port is different for different VLANs, so it forwards traffic over
different links in those VLANs.
O
Q2: Does traffic from HP Switch D experience this effect?
Se
A2: With the configuration left as it is, the HP switch’s traffic does not experience the
load balancing effect. The blocked port blocks traffic in all ports, so one link carries
lU
all traffic.
a
The drawback of this setup is the added burden on the link between Cisco A and
rn
Cisco B. In order for VLAN 12 and 13 traffic to reach the default gateway that
resides on Cisco B, the traffic has to cross the link between Cisco A and B.
te
A3: Yes. (The rest of the scenario taught you how; see the next questions and
P
answers.)
H
A1: Increase the cost of PO1 in VLAN 1 on Cisco B to be greater than the root path
cost of HP C. Then, if the root path cost of HP C is 20000, for example, choose 30
000 on PO1 on Cisco B in VLAN 1. Note that it is a per VLAN cost setup. If you do
not specify the spanning-tree pathcost method long command, the default cost would
be 4 and you would increase the value to 5.
The pro of this solution is in setting this cost once, which will work for all HP
edge switches.
The con is if there are Cisco switches at the edge, it is also going to move the
blocked port in VLAN 1 to the secondary root switch, which prevents uplinkfast
from working. See the discussion 2 slides from here for more detail.
Rev 11.12 A – 17
Q2: What can you do on HP C to get the same result?
A2: Simply change the path cost of uplink 47 to make HP C have a lower cost path
to the root than Cisco B. For example, change the uplink cost value to 3 or 10 000,
which is lower than the root path cost of Cisco B, which is either 4 or 20 000
(depending on which path cost method the Cisco switch is using).
The pro of this solution is that you do not change the path cast on the secondary
root, which ensures the correct topology for any Cisco switches at the access
layer.
The con is the setup has to be done on all HP switches in the edge.
y
A1: Gig 1/1 and po1 will have a root path cost of 20000. If there are more HP
nl
switches on the edge with an equivalent setup, there will be even more ports. In that
O
case, the port with the lower neighbor port ID will “win.” It could be Gig 1/1. This
would not be a good situation as po1 would be blocked in those VLANs. With as
Se
much traffic that has to flow between Cisco A and Cisco B, this is not a desired
result.
lU
Q2: How do you ensure that po1 is selected the root port?
a
A2: By decreasing the cost of po1 to a value lower than the root path cost of uplink
rn
to the access switches (the cost of Gig1/1). If you specify the spanning-tree pathcost
method long command, you would have to set the cost of po1 to10000, as the cost
te
of Gig1/1 would be 20000. If you did not enter this command, you would set the
In
spanning tree and defining the edge ports. The setup would be the same as that in
scenario 1.
Rev 11.12 A – 18
Q2: What setup do you suggest to resolve this issue?
A2: Change the port cost on the HP access switch rather than on the Cisco
aggregation switch.
Q3: If Cisco C implements Rapid PVST+, do the setup requirements change?
A3: When Cisco D implements Rapid PVST+, it has fast convergence without the
need for uplinkfast. Therefore, having the alternate port on the secondary root switch
has fewer consequences. You could choose to change the port cost on the Cisco
aggregation switch instead of the HP access switches.
y
You can load balance the routing function between aggregation switches.
nl
O
The customer might want you to implement load balancing.
Cisco emphasizes load balancing as a good use of uplinks in their training.
Se
Q2: What might be some reasons to not set up load balancing?
lU
A2: Load balancing can be more complicated to set up.
Load balancing can lead to asymmetric routing situations, which can cause
a
You can resolve this problem by raising the MAC address timeout
values to match the ARP timeout (for example, set both to one hour).
P
H
Load balancing routing might slow network traffic because more traffic
needs to traverse the link between the core devices, which adds hops. In
r
addition, load balancing increases the number of ARP requests for each
Fo
conversation.
Instead of always deciding to use load balancing, you should carefully consider
whether load balancing is required.
Most customers find a psychological appeal in load balancing, but the
benefits are not always worth the added complexity.
Because both switches are in use instead of being one active and one
standing by, customers feel that they are maximizing their resources.
However, load balancing is only truly required if you cannot obtain the
necessary bandwidth or performance from one switch.
Rev 11.12 A – 19
Load balancing is also perceived as a “safe” thing to do. Customers
often believe that even if they do not fully use the resources of one
switch, load balancing traffic cannot cause any harm. But this is not
always true, as indicated above; you should think through why load
balancing would be better in this particular environment.
However, if customers have been educated one way, it might not be easy to
change their minds.
You might need to give them some proof. For example, demonstrate
how much of the uplink bandwidth is used. End nodes typically use less
than 10 percent of Gigabit bandwidth. In data centers, however, end
nodes would often use more.
y
Q1: How would you manage the redundant connections in this scenario?
nl
A1: IRF provides an easy way to integrate Cisco access switches without requiring
O
STP between Cisco and HP switches. Link aggregation –static or LACP based- can be
implemented.
Se
Q2: What are your recommendations for setting up IRF?
lU
A2: Recommendations include:
a
Add a second 10 Gigabit link for IRF redundancy and to avoid splitting the
rn
Enable IRF Mode, define the IRF member number (1 and 2 here) and the roles of
master and slave (by means of IRF priority), and set the IRF ports.
In
Set link aggregation from Cisco access switches to the two HP switches that are
H
Rev 11.12 A – 20
Q3: If HP A and B are root and secondary root in the CST, what are the root port
and alternate ports in VLAN1 on Cisco switches?
A3: The root ports are the ports that connect to the HP A, which is the root in the IST.
Assuming that the links have equal bandwidth, each link has the same path cost
(because the Cisco switches are using the long option for path cost method).
Therefore, the path to the neighbor with the higher priority, in this case HP B for each
Cisco switch, is preferred. Thus the Cisco switches block their ports that connect to
HP B.
Q4: What happens if the long path cost method is not enabled?
A4: If the Cisco switches do not use the long path cost method, their ports have a
lower path cost than the HP B switch ports. Therefore, the HP B switch would block
the ports that connect to the Cisco switches rather than the opposite.
y
HP at the aggregation layer—Scenario 3: With MSTP and PVST+
nl
Q1: Which BPDUs are sent and received by Cisco switches in other VLANs?
O
A1: The Cisco switches send PVST BPDUs that are tagged for those VLANs.
Se
Q2: How do the HP switches handle the PVST BPDUs?
lU
A2: HP switches forward the tagged PVST BPDUs like any other frame without
processing them. From the point of view of PVST+, the HP switches do not exist. They
a
Q3 Having exchanged these BPDUs, what topology do the switches create? Assume
that the Cisco switches are using their default priorities and that Cisco C has the
te
A3: The Cisco switches that implement PVST elect one root per-VLAN (besides VLAN
P
1, in which, as determined in the previous slide, the HP switch was elected root). The
switch with the lowest bridge ID in each VLAN is elected.
H
Often, as in this example, the access layer switches use the default priority. Therefore,
r
Fo
the switch with the lowest MAC address is the root for all VLANs besides VLAN 1 in
PVST+.
Because, as far as PVST+ is concerned, the Cisco switches connect as if through a
hub, the topology is slightly unusual:
Cisco C, the root bridge, has only one designated port, which is the port with
the lower ID. The other port is a backup port, which is blocked. Typically, all
ports on the root bridge are designated.
On the other switches, one port is the root port (the one that connects to Cisco C
with the lowest ID). The other port is blocked. (This behavior is more usual.)
Rev 11.12 A – 21
Learning check answers
Q1: When does PVST+ interoperate with standard STP? And with RSTP? And with
MSTP?
A1: PVST+ interoperates on access ports because these ports send standard STP
BPDUs—except if a voice VLAN is activated. On trunks, it interoperates if VLAN 1 is
allowed on the trunk. PVST+ also interoperates with switches in RSTP or MSTP,
because those protocols are backward compatible with STP.
Q2: Does an HP switch “understand” tagged PVST+ BPDUs? If not, does it drop them
or forward them?
A2: No, an HP switch does not understand Cisco tagged PVST BPDUs. An HP switch
will not be the destination of the Cisco multicast MAC address. The HP switch
forwards tagged PVST BPDUs.
y
nl
Q3: What is the default cost value in PVST+ and Rapid-PVST+ for a Gigabit port?
O
A3: 4. If path cost method long is enabled then value is 20 000.
Q4: What STP protocol is a proprietary Cisco protocol based on 802.1w
Se
mechanisms?
lU
A4: Rapid-PVST+.
Module 6
a
rn
Q1: What are the key advantages of using IRF for redundancy?
P
A1: There is no need to implement STP. Logically, this solution looks like a single
H
star topology.
r
Fo
Rev 11.12 A – 22
Q3: What STP setup would you recommend?
A3: STP can be enabled globally. In addition, you should always define a root
bridge. If you have an IRF stack, it should be the root bridge.
You may choose to disable STP on uplinks. You can enable loop guard or loop
protection on the edge ports of switches that support this feature (Cisco or HP E-
Series). Loop guard provides additional protection in case a poorly configured
device does not forward the BPDUs and, therefore, fails to recognize loops.
y
nl
address, so all BPDUs are forwarded. Everything looks as if the two aggregation
switches were connected directly together by a simple link. HP switches are
O
“transparent.” Loops between switches are solved by running PVST+ on Cisco
switches. While disabling STP on a device is unconventional, it may work perfectly
Se
when you integrate HP switches into an existing Cisco network.
lU
Q2: What is the resulting topology?
A2: Cisco A and Cisco B send and receive BPDUs from each other. It is like two
a
switches connected together by multiple links. In this specific topology, one link is up
rn
(the designated port on the root side and the root port on the other side).Other links
te
Note that the link between Cisco A and B is active only if:
It has shortest path cost. This is not true if all link s are the same. If the link is a
P
1 or 1000 for two 10 GbE links (2 or 2000 for one 10 GbE link)
All port costs are equal, if the link is in front of the port with the lowest port ID.
Rev 11.12 A – 23
Q2: What will happen if an uplink fails?
A2: If an uplink fails, the server cannot sense it. Server traffic will then be lost.
Q3: When might it be appropriate to use this architecture?
A3: The advantage of such a configuration is the ability to connect servers
redundantly to an existing network without the need to enable spanning-tree.
Whenever you don’t want to interact with the customer’s configuration, this design
can fit very well.
y
nl
Q1b: Can you load balance traffic?
O
A1b: Yes, load balancing is provided by PVST+ or MSTP on aggregation switches.
Se
Q1c: What can occur if STP is disabled at the edge?
A1c: Local loops. With HP E-Series switch, you can enable loop-protection to prevent
lU
local loops.
Q2a: What is required to enable the smart link feature?
a
rn
A2a: An edge switch connected to an upstream network with two uplinks. STP must
be disabled on the two uplinks.
te
Q2b: What do you enable to get load balancing with smart link?
In
A2b: You create MSTP instances, create two smart link groups, and associate each
P
Module 7
r
Fo
Rev 11.12 A – 24
Q3: Would you set root guard on edge ports?
A3: You can, but this feature is redundant when BPDU guard is enabled. In addition,
on HP A-Series switches, root guard cannot be implemented on edge ports. The last
feature enabled takes effect. You should usually choose defining edge ports as edge
ports, which can be protected by BPDU guard, in preference to enabling root guard
on them.
It is usually recommended to configure root guard on the ports of aggregation
switches that lead to edge switches.
Q4: Would you set BPDU filter on edge ports?
A4: You can. This feature filters any BPDUs on the edge port, which would block
BPDU attacks on the edge. BPDU filter also prevents another switch being inserted
into the network and pretending to be the root. However, BPDU filter does not stop
y
the switch –sending BPDU from connecting like BPDU guard but only filters the BPDU.
nl
Q5: Would you set BPDU guard on uplinks?
O
A5: No, as this is where you would want your switch to interact with others to form
Se
the STP.
Q6: What prevents loop in case of unidirectional links?
lU
A6: Loop guard or UDLD. If you cannot configure UDLD (perhaps because you are
connecting two different platforms), then you can configure loop guard on an edge
a
switch. With loop guard, when the switch does not receive BPDUs from an upstream
rn
switch on its root or alternate port, the switch recognizes the abnormal situation and
te
Module 8
P
Rev 11.12 A – 25
IRF, link aggregation and interoperability: IRF in the distribution and access
layers
Q1: Do you need to configure VRRP?
A1: An IRF acts as a single L2 and L3 switch. There is no need for VRRP because the
IP addresses and the IP forwarding table are fully distributed on IRF members. The IP
forwarding plane is fully managed by line cards hardware based on the FIB table
that is loaded from the master switch. On the control plane, the routing table (RIB) is
set by the master switch using local networks, static routes and routing protocols.
y
There is no need to configure individual ports.
nl
Learning check answers
O
Q1: In what circumstances can you create an LACP link aggregation in which one
Se
switch connects to two different switches?
lU
A1: When switches are set in a stack such as with HP A-Series IRF or Cisco VSS.
Q2: Can you create a link aggregation between a Cisco switch port in on mode and
a
Q3: Can you create a link aggregation between a Cisco switch in active mode and
In
Module 9
r
Fo
Rev 11.12 A – 26
Q2: What is the purpose of implementing HSRP and VRRP?
A2: Redundancy for the default gateway is the most well-known and commonly used
function. You can also use HSRP or VRRP to provide redundancy for the next hop in
static routes.
Q3: Do the endpoints that use the virtual IP as their default router need to be aware
of HSRP or VRRP?
A3: No. Devices for which the virtual IP address is the default router act just as they
would if their default router were not implementing a Virtual IP protocol. When they
need their traffic to be routed, they set the virtual MAC address, which they receive in
response to their ARP requests, as the destination MAC address for the Layer 2
Ethernet frames.
Q4: What are the different roles of routers in HSRP and VRRP?
y
A4: The master router owns the virtual IP address and virtual MAC address. It routes
nl
traffic for endpoints for which the virtual IP address is the default router; it also routes
O
traffic for devices with state routes in which the virtual IP address is the next hop. The
backup routers monitor whether the master is up, and if the master fails, one of them
Se
becomes the new master.
Q5: In what circumstances are the virtual IP and virtual MAC addresses used?
lU
A5: Usually devices do not send traffic to the virtual IP at Layer 3. Devices can ping
a
this address, and SNMP devices can contact the address. Endpoints for which the
rn
virtual IP is the default gateway, and routers for which the virtual IP is the next hop,
address frames with packets to be routed to the virtual MAC address.
te
Q6: For which common protocols might the virtual IP protocols not provide
In
unless the routers also implement state sharing between them. For example, NAT and
IP Security (IPsec) (a virtual private network, or VPN, protocol) are stateful functions.
r
Fo
When two routers share a virtual IP address that is configured as a gateway for an
IPsec VPN tunnel, they do not naturally share the states of the other’s IPsec (and
Internet Key Exchange, or IKE) SAs. Therefore, if the master router fails, the remote
endpoints of any active tunnels must establish new security associations (SAs) with the
new master.
Similarly, the routers implementing the virtual IP protocol do not share a NAT
translation table. If the master router fails, the NAT sessions are lost and must be
reestablished.
Rev 11.12 A – 27
Virtual IP quiz answers
Q1: What is the difference between VRRP and HSRP?
A1: Both VRRP and HSRP provide the same functionality; however, some differences
exist:
VRRP is standard based while HSRP is proprietary.
In HSRP, the owner and standby routers exchange frames. In VRRP, the master
router sends VRRP frames to backup routers, but the backup routers are silent.
However, in enhanced forms of VRRP that implement more functions that those
required by the standard, such as the VRRP load balancing function supported
by HP A-Series switches, both master and backup exchange frames.
The timers are different. The HSRP default hello time is 5 seconds and the hold
time is three times the hello time. The VRRP default hello time is 1 second, but
y
nl
the hold time is also three times the hello time.
O
HSRP uses the Cisco virtual MAC address of 00-00-0c-07-AC-XX while VRRP
uses 00-00-5E-00-01-XX. In both, XX is the group ID.
Se
Q2: What is the difference between GLBP and HSRP?
lU
A2: The main difference is that GLBP allows the load balancing of traffic among the
master and standby routers while in HSRP (and VRRP) the standby routers do not help
a
handle traffic. With GLBP, the single virtual IP address is associated with one virtual
rn
MAC address per GLBP member. The master receives ARP requests and sends replies
that specify different virtual MAC addresses, taking turns among the different virtual
te
Note that HP A-Series devices support a VRRP load balancing function which is very
similar to GLBP. However VRRP load balancing is a proprietary implementation of
P
Q3: What message does a backup router usually send when it becomes master?
r
Fo
A3: When the backup router becomes the master, it owns the virtual IP address and
the virtual MAC address. It usually sends a gratuitous ARP (ARP response without a
request in which the source MAC is the virtual MAC) that:
Updates the ARP cache of the endpoints in the broadcast domain (usually not
necessary as the virtual MAC is not changed
Updates the MAC address table of switches
Rev 11.12 A – 28
Q4: What function does preemption serve?
A4: Preemption allows the router with the higher priority for a given virtual IP to
preempt the role of master when booted or rebooted; that is, the router can take the
role away from another device. Preemption based on priority is particularly useful for
synching HSRP/VRRP master roles with STP roles so that the network makes best use
of the STP topology. Preemption is also useful when a tracking situation occurs, in
which the master decreases its priority and the backup router gains a higher priority.
Preemption allows the backup to become the new master.
Q6: What function does the preempt delay serve?
A6: When a router preempts the master role, it may not be ready to route IP packets
to remote networks because HSRP and VRRP often converge much faster than routing
protocols; even though the master can route packets to directly connected networks
immediately, it has not yet learned routes via OSPF, RIP, or BGP.
y
nl
With the preempt delay, it waits until it is ready before preempting its master role.
O
Preempt delay is not enabled by default; you must remember to set it to a value
greater than the time required for routing protocol convergence in your environment.
Q7: What function does tracking serve?
Se
lU
A7: If the master router loses an interface connection, it might lose connectivity with
other routers that are next hops in its routes to remote networks. The master will lose
a
Tracking enables the router to lower its priority if a particular interface goes down so
te
that its priority becomes lower than that of a backup router. The backup router
becomes the new master, and traffic can reach its destination.
In
Note that sometimes when the master loses one interface connection, routing
P
protocols converge and provide different routes to the remote networks. In this case,
H
tracking might not be necessary. However, it might still be useful because often the
backup route is through the backup router in the VRRP/HSRP protocol. The backup
r
Fo
partner might as well become the master so that the traffic is routed through it
directly.
An enhanced version of tracking, which is available with HSRP and VRRP on HP A-
Series devices, allows routers to tracking a remote IP address (for example, an
address on Internet) rather than an interface. This feature tests the router’s overall
connectivity more completely.
Rev 11.12 A – 29
Learning check answers
Q1: How does an IP endpoint learn the Virtual Router’s virtual IP and virtual MAC
addresses?
A1: It learns the virtual IP address from its default gateway IP address either through
DHCP or a manual configuration. The endpoint learns the virtual MAC address by
sending an ARP request for the virtual IP. The master responds to the request with the
virtual MAC address, which the endpoint can then use to send Layer 2 frames to its
default gateway.
Q2: Can a HP Layer 3 switch back up a Cisco Layer 3 switch using HSRP?
A2: No. For the HP switch to back up the Cisco switch, the Cisco switch would need
to implement VRRP, which is quite rare in the field as most Cisco devices implement
HSRP.
y
nl
Q3: Can you use VRRP and HSRP in the same LAN?
O
A3: As long as the two implementations do not use the same virtual IP address, you
can. For example, two HP routing switches implement VRRP, and two Cisco WAN
Se
routers implement HSRP. Both virtual IP groups have a static route in which the next
hop is the other group’s virtual IP.
lU
The IP endpoints do not pose a concern because they are not aware of either
protocol. They only need to send ARP requests for their default gateway as always.
a
rn
Q4: What is the purpose of the preempt delay purpose? When would you set it?
te
A4: When a master preempts its role, it may not be ready to route IP packets to
remote networks. With the preempt delay, it waits until it is ready before preempting
In
Preempt delay is not enabled by default. You should enable it whenever the master
H
uses routing protocols, setting the delay to a value that is greater than the time for
routing protocol convergence.
r
Fo
Rev 11.12 A – 30
Module 10
Activity and discussion question answers
OSPF neighboring—Scenario 1-1
Q1: What conditions must two routers meet to become OSPF neighbors? For each
condition that you list, check that setting on the routers in this example. Circle any
incorrect settings and replace them with the correct setting.
A1: For two routers to become OSPF neighbors, they must meet the following
conditions on the communicating IP interfaces:
Same IP subnet
A subnet contained within a larger subnet also applied. For example, R2 has a
y
/30 IP address within the space of the other routers’ /24 subnet. It can still
nl
become those routers’ neighbor.
O
Same OSPF area
Se
In this example, all routers have their IP interfaces in area 0 except R3. (Circle
that setting on R3 and change it to area 0.)
lU
Same timers
a
All of the routers except R4 are using the default Hello and Dead interval timers:
rn
Hello = 10 seconds
te
On Ethernet interfaces, the default setting is Broadcast. All of the routers in this
r
Fo
example are using this setting except R2, which is set to Point to Point (P2P).
(Circle that setting on R2 and change it to Broadcast.)
The network type depends on the Layer 2 protocol:
Ethernet interfaces—As mentioned, the default setting is Broadcast, which
indicates that Layer 2 network includes broadcast traffic. You can also
configure Ethernet interfaces as P2P, which indicates that the network
includes only two devices connected on a single routed Ethernet interface.
The P2P setting speeds convergence because the routers do not need to
elect a designated router.
Rev 11.12 A – 31
Layer2 networks such as ATM and Frame Relay, provide more options for
the type:
P2P
Non Broadcast Multi Access (NBMA)
Point to Multipoint in Multicast (P2MP)
Unicast (P2PM In Unicast)
Same authentication method and password
None of these routers implement authentication, so all of them meet this
condition.
y
Q1: How do devices in a multi-access (such as Broadcast) network determine which
nl
devices become DR and Backup DR (BDR)? What role does priority 0 play in this
O
process? What role do other priorities play?
A1: The OSPF router that starts its processes first becomes the DR. The router that
Se
starts second becomes the BDR. However, if a router’s priority is set to 0, it does not
participate to the elections. So, more precisely, the first OSPF router to start that does
lU
not have priority 0 is the DR.
Other priorities only affect the process if an election must occur:
a
rn
More than one router starts its OSPF processes at the same time. In this case, the
router with the highest priority value becomes DR, and the router with the second
te
highest priority becomes BDR. In this example, those would be R2 and R4,
In
respectively. But it is relatively rare for multiple routers to start their processes at
once. Usually routers start one at a time as they are configured and brought up.
P
The DR’s or BDR’s connection (Layer 1/Layer 2) goes down or goes down and
H
then comes back up. In this case, an election begins when all routers are
r
already running their OSPF processes when the election starts. They use
Fo
Rev 11.12 A – 32
OSPF authentication—Scenario 1-3
Q1: If you ignore the authentication settings, which routers become OSPF neighbors
and on which subnets and areas?
A1: Cisco 2 and HP 1 are neighbors on IP subnet 192.168.1.0/24 and area 0.
Cisco 2 and HP 3 similarly become neighbors on IP subnet 10.6.0.0/24 and area
10.
Q2: Do the authentication settings match between HP 1 and Cisco 2?
A2: Yes. Both sides use the simple password authentication method and the same
password, “very-secret.” Note that authentication method must be enabled for the
Area, but the specific settings are configured on a per-interface basis.
Q3: On HP 1, the password is specified with the cipher keyword. What purpose
y
does this keyword serve?
nl
A3: This keyword encrypts the password in the configuration to protect it from
O
unauthorized detection. However, it does not encrypt the password when HP 1
transmits it on the LAN. (Use the plain keyword to display the password in plaintext
Se
in the configuration.)
lU
Q4: Do the authentication settings match between HP 3 and Cisco 2?
A4: Yes. Both sides use the md5 password authentication method and the same
a
Q5: What role does the key ID play (beyond being another matching setting)?
te
A5: The key ID helps you to rotate passwords. As with any password, it is best
In
practice to change OSPF MD5 passwords on a regular basis. However, if you start
by changing the password on one router, this router loses its neighbor relationships.
P
Instead, you should create the new password with a new key ID without removing the
H
first key. After you have configured the new password on every router, you can
remove the old password.
r
Fo
Rev 11.12 A – 33
Q4: Why would you configure an area range?
A4: Configuring the area range reduces the size of the LSA table for devices in other
areas that receive the Summary LSAs, thus simplifying these devices’ routing tables.
Configuring the area range also reduces the number of LSA updates exchanged in
an OSPF network.
For example, you can include several remote sites in one area. If IP subnetting is
configured appropriately, you can then summarize all the remote sites’ networks in
one short list of IP networks.
Q5: What are the key advantages of summarization?
A5: Summarization simplifies the routing table because one area is seen as one
network.
In addition, by generating a default route (summarization of the rest of the network),
y
an ABR hides the rest of the network from routers in areas that do not need this
nl
information (totally stubby areas and NSSA totally stubby areas).
O
Q6: Does summarization have some disadvantages?
Se
A6: With summarization, you lose granularity. On a router in an area that receives a
summary for other areas, you cannot see when an individual network in another
lU
area loses connectivity. You would typically have to access the ABR to see this
information.
a
You can only summarize Type 1 and Type 2 LSAs. Routes to external networks (Type
rn
5 and Type 7 LSAs) are summarized by the ASBR and are not included with the Type
te
3 LSAs (except the default route advertised in totally stubby areas and NSSA totally
stubby areas).
In
Q7: Why can you enable summarization on R1 and not on R2, R3, and R4?
P
A7: Because R2, R3, and R4 are not ABRs and cannot generate Type 3 LSAs.
H
Q8: What other tasks can you perform on an ABR related to area summarization?
r
Fo
A8: You can filter some networks or blocks of network so that they are not seen in
other areas. You can generate a default route and advertise only that route in
selected non-backbone areas (totally stubby areas and NSSA totally stubby areas),
hiding unnecessary complexity from routers in the stub areas.
Q9: Where can you see the results of the area summarization?
A9: You see the results on routers in different areas from the one that is summarized.
On R4, you can check the summarization of area 1 (10.1.0.0/16). On Router R2 and
R3, the summarization of area 0 (10.0.0.0/16) is visible. On the ABR, you might also
see a summary to null 0 interface.
Rev 11.12 A – 34
OSPF area summarization: Scenario 2-1-a
The commands are missing some keywords. Fill in the commands, using the figure for
information:
network 10.0.0.0 0.0.255.255 area 0
network 10.1.0.0 0.0.255.255 area 1
area 0 range 10.0.0.0 255.255.0.0
area 1 range 10.1.0.0 255.255.0.0
Also fill in the blanks to indicate how the ABR (R1) will summarize the routes:
R1 aggregates the routes in area 0 into a single route to 10.0.0.0/16 and advertises
this route to routers in area 1.
R1 aggregates the routes in area 1 into a single route to 10.1.0.0/16 and advertises
y
this route to routers in area 0
nl
OSPF area summarization: Scenario 2-2
O
Q1: For each router, fill in the routing table:
Se
Routes to directly connected networks
lU
Routes discovered through OSPF, remembering to consider the summaries
For Type, indicate the type of route using the Cisco abbreviations.
a
Rev 11.12 A – 35
OSPF redistribution—Scenario 3-1
Q1: Why would you redistribute routes to directly connected networks instead of
configuring those networks as OSPF networks?
A1: First, you might not be able to (or you might not want to) establish OSPF
neighboring with other routers on the network. For example, these routers might
belong to another company or to an ISP. A firewall might block OSPF
communications, or the connection might be over an IPsec VPN that does not support
OSPF communications.
You could configure the network as a passive interface OSPF network; however, often
redistribution provides a simpler configuration. For example, when two routing
switches are connected to more than 50 VLANs, you can redistribute connected with
fewer commands than enabling OSPF on all 50 VLANs.
y
In addition, redistributing the networks allows the router to aggregate them into fewer
nl
routes, which can be crucial to simplifying the routing table on other routers.
O
Q2: What conditions must be met on a router for it to redistribute routes?
Se
A2: For a router to redistribute a route, that route must be active in the routing table.
The connected interface must be up for a connected route, or the forwarding
lU
interface must be up for a remote router. In addition, the router’s OSPF area must not
be stub or totally stubby.
a
Q3: Which type of OSPF LSA is created for the redistributed route?
rn
A3: External network LSAs are created: Type 5 LSAs or, in an NSSA, Type 7 LSAs.
te
A4: Redistributed routes are always advertised as external networks. These networks
P
In addition, routers in stub and totally stub areas cannot receive advertisements for
the external networks created by route redistribution. (However, typically they do not
need these specific routes.)
Rev 11.12 A – 36
y
nl
Q2: What command can you enter to verify that the Cisco R2 has properly
O
redistributed (or imported) the routes?
Se
A2: show ip ospf database external
Q3: What command can you enter to verify that the routes to the external networks
lU
have been summarized?
a
A3: You can enter show ip route on R1 to verify that this router received the
rn
summarized route. On Cisco switches, the router that summarizes the route (R2 in this
example) also creates a route for the summarized networks with null as the
te
forwarding interface. You can enter show ip route on R2 to look for that route.
In
Q4: This configuration sets metric type 1 for the redistributed routes. What purpose
does this configuration serve, and how could you change the metric type?
P
H
A4: This configuration indicates that routers will increment the cost for the
redistributed (external) route as it is advertised. You can change the metric type with
r
these commands:
Fo
Router ospf 1
redistribute connected metric-type 2 subnets
Rev 11.12 A – 37
R1 Area 0 R4
.4
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
.3 R3
10.1.2.0/24
R2= HP A-Series
ip route-static 10.1.3.0 24 10.1.10.3
10.1.3.0/24 ospf 1
area 1
network 10.1.1.0 24
import-route static cost 10 type 1
import-route direct cost 10 type 1
y
asbr-summary 10.1.2.0 23
nl
Q2: This configuration sets metric type 1 for the redistributed routes. What purpose
O
does this configuration serve? Why might you select type 1 rather than type 2?
Se
A2: Metric type 1 means that the cost for the route is incremented as it is advertised.
With type 2, the redistributed (external) route is assigned an initial cost that never
lU
changes.
The type does not matter if only one path exists for the route. If multiple paths for a
a
specific network exist, then using type 1 metrics for redistributed routes to that
rn
network enables routers to select the shortest path. If you use type 2, the cost is equal
te
for all paths. (However, routers will still select the path through the closest ASBR that
redistributed the route.)
In
Q1: Fill in the blanks to show the proper configuration for R2 when it is a HP E-Series
H
router.
r
Fo
Rev 11.12 A – 38
R1 Area 0 R4
.4
.1
10.0.10.0/24
10.1.1.0/24 Area 2
10.2.1.0/24
Area 1
R2 .2 .5 R5
.3 R3
10.1.2.0/24 R2= HP A-Series
ip route 10.1.3.0/24 10.1.10.3
vlan 10
10.1.3.0/24 ip address 10.1.1.2/24
ip ospf area 1
Router ospf
area 1
redistribute connected
redistribute static
y
default-metric 20
nl
29 Rev. 10.41 metric-type 1
O
OSPF redistribution—Scenario 3-3
Q1: For R4 and R5, fill in the routing table:
Routes to directly connected networks
Se
lU
Routes discovered through OSPF (remember to consider redistributed routes,
summarized routes, and default routes)
a
rn
For Type, indicate the type of route using the Cisco abbreviations.
A1: The figure below displays the answers for the activity.
te
In
R1 Area 0 R4
P
.4 0.0.0.0/0
.1
10.0.10.0/24
H
10.1.1.0/24 Area 2
R4 1 10.2.1.0/24
Area
r
10.0.10.0/24 0.0.0.0 C
R2 .2 10.1.2.0/23 10.0.10.1 O E1 .5 R5
10.1.1.0/24 10.0.10.1 O IA
10.2.1.0/24 0.0.0.0 C
.3 R3
10.1.2.0/24
Rev 11.12 A – 39
Learning check answers
Q1: What parameters must match for OSPF neighbors?
A1: These parameters must match:
IP subnet
Hello and dead timers
Area ID
Area type (such as stub or NSSA)
Network type
Q2: What purpose does BFD serve in OSPF?
A2: BFD speeds convergence to millisecond level. It enables routers to detect failures
y
when they are connected to same network but cannot sense the failure of the other
nl
routers’ interfaces directly. That is, they are connected through a Layer 2 switch.
O
Q3: Which type of area conceals the networks in all other areas from routers within
Se
that area?
A3: This is a totally stubby area (a stub or NSSA area with the no-summary
lU
configured on the ABR). This type of area receives a single default route instead of
all Type 3 LSAs (inter-area route summarizations) and External Type 5 LSAs.
a
Q4: What options can you set when you redistribute routes into OSPF?
rn
A4: You can change the metric and the metric type (1 or 2). You can tag the routes.
te
Q5: Why would you tag IP routes when you redistribute them?
P
A5: Tagging a route marks (or “colors” it) so that you later select it for actions such
H
Module 11
r
Fo
Rev 11.12 A – 40
Q2: What is required to access (from the outside) an internal server set with a
private address?
A2: A NAT setting is required that is going to translate the packets coming from
Internet clients: the few destination IP ports will be translated to an internal
destination IP port that defines the service on the server. When the DNS server is
outside and some inside nodes want to access the server, NAT translation of the
DNS payload can also be enabled.
Q3: What is the benefit of such a configuration?
A3: NAT and forwarding to the inside is restricted to the IP and ports for which NAT
has been defined.
Q4: In what situation would you use static NAT?
A4: Static NAT is used for accessing servers that are set with their private address
y
and for overlapping networks.
nl
O
Se
a lU
rn
te
In
P
r H
Fo
Rev 11.12 A – 41
PAGE INTENTIONALLY LEFT BLANK
y
nl
O
Se
lU
a
rn
te
In
P
r H
Fo
Rev 11.12 A – 42
PAGE INTENTIONALLY LEFT BLANK
y
nl
O
Se
a lU
rn
te
In
P
r H
Fo
y
nl
O
Se
a lU
rn
te
In
P
rH
Fo