3550 SCG
3550 SCG
3550 SCG
MRL
1
2
3
4
5
6
7
8
Buffer size
10
20
30
40
50
60
70
80
6
5
1
2
7
* MRL = Minimum-reserve level
20-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Understanding QoS
Packet Modification
A packet is classified, policed, and queued to provide QoS. Packet modifications can occur during this
process:
For IP packets, classification involves assigning a DSCP to the packet. However, the packet is not
modified at this stage; only an indication of the assigned DSCP is carried along. The reason for this
is that QoS classification and ACL lookup occur in parallel, and it is possible that the ACL specifies
that the packet should be denied and logged. In this situation, the packet is forwarded with its
original DSCP to the CPU, where it is again processed through ACL software. However, route
lookup is performed based on classified DSCPs.
For non-IP packets, classification involves assigning an internal DSCP to the packet, but because
there is no DSCP in the non-IP packet, no overwrite occurs. Instead, the internal DSCP is translated
to the CoS and is used both for queueing and scheduling decisions and for writing the CoS priority
value in the tag if the packet is being sent on either an ISL or 802.1Q trunk port. Because the CoS
priority is written in the tag, Catalyst 3500 series XL switches that use the 802.1P priority can
interoperate with the QoS implementation on the Catalyst 3550 switches.
During policing, IP and non-IP packets can have another DSCP assigned to them (if they are out of
profile and the policer specifies a markdown DSCP). Once again, the DSCP in the packet is not
modified, but an indication of the marked-down value is carried along. For IP packets, the packet
modification occurs at a later stage; for non-IP packets the DSCP is converted to CoS and used for
queueing and scheduling decisions.
20-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring QoS
Before configuring QoS, you must have a thorough understanding of these items:
The types of applications used and the traffic patterns on your network.
Traffic characteristics and needs of your network. Is the traffic bursty? Do you need to reserve
bandwidth for voice and video streams?
Bandwidth requirements and speed of the network.
Location of congestion points in the network.
This section describes how to configure QoS on your switch. It contains this configuration information:
Default QoS Configuration, page 20-18
Enabling QoS Globally, page 20-21
Configuring Classification Using Port Trust States, page 20-21
Configuring a QoS Policy, page 20-26
Configuring DSCP Maps, page 20-39
Configuring Egress Queues on Gigabit-Capable Ethernet Ports, page 20-44
Configuring Egress Queues on 10/100 Ethernet Ports, page 20-51
Default QoS Configuration
Table 20-1 shows the default QoS configuration when QoS is disabled.
When QoS is disabled, there is no concept of trusted or untrusted ports because the packets are not
modified (the CoS, DSCP, and IP precedence values in the packet are not changed).
Table 20-2 shows the default QoS parameters without any further configuration when QoS is enabled.
Table20-1 Default QoS Parameters when QoS is Disabled
Port
Type
QoS
State
Egress traffic
(DSCP and CoS
Value) Queue
Queue
Weights
Tail-drop
Thresholds
CoS Mapping
to Queue
Gigabit-capable
Ethernet ports
Disabled Pass through. All of the queue
RAM is allocated to
queue 1 (no expedite
queue).
100%, 100%
WRED is
disabled.
All CoS
values map to
queue 1.
10/100 Ethernet
ports
Disabled Pass through. Each of the eight
minimum-reserve
levels have a buffer
size of 100 packets.
The queue selects
the level.
All CoS
values map to
queue 1.
20-19
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
The default port CoS value is 0.
The default port trust state on all ports is untrusted.
No policy maps are configured.
No policers are configured.
The default CoS-to-DSCP map is shown in Table 20-3 on page 20-39.
The default IP-precedence-to-DSCP map is shown in Table 20-4 on page 20-40.
The default DSCP-to-CoS map is shown in Table 20-5 on page 20-42.
The default DSCP-to-DSCP-mutation map is a null map, which maps an incoming DSCP value to the
same DSCP value.
The default policed-DSCP map is a null map, which maps an incoming DSCP value to the same DSCP
value (no markdown).
The default DSCP-to-switch-priority map maps DSCPs 0 to 15 to priority 0, DSCPs 16 to 31 to
priority 1, DSCPs 32 to 47 to priority 2, and DSCPs 48 to 63 to priority 3.
Table20-2 Default QoS Parameters when QoS is Enabled
Port
Type
QoS
State
Egress traffic
(DSCP and CoS
Value) Queue
Queue
Weights
Tail-drop
Thresholds
CoS Mapping
to Queue
Gigabit-capable
Ethernet ports
Enabled
(no
policing)
DSCP=0
CoS=0
(0 means
best-effort
delivery.)
Four queues are
available (no
expedite queue).
Each queue has
the same weight.
100%, 100%
WRED is
disabled.
0, 1: queue 1
2, 3: queue 2
4, 5: queue 3
6, 7: queue 4
10/100 Ethernet
ports
Enabled
(no
policing)
DSCP=0
CoS=0
(0 means
best-effort
delivery.)
Each of the eight
minimum-reserve
levels have a buffer
size of 100 packets.
The queue selects
the level.
Each queue has
the same weight.
0, 1: queue 1
2, 3: queue 2
4, 5: queue 3
6, 7: queue 4
20-20
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuration Guidelines
Before beginning the QoS configuration, you should be aware of this information:
If you have EtherChannel ports configured on your switch, you must configure QoS classification,
policing, mapping, and queueing on the individual physical ports that comprise the EtherChannel.
You must decide whether the QoS configuration should match on all ports in the EtherChannel.
You configure QoS only on physical ports; there is no support for it on the VLAN or switch virtual
interface level.
It is not possible to match IP fragments against configured IP extended ACLs to enforce QoS. IP
fragments are sent as best-effort. IP fragments are denoted by fields in the IP header.
You can match IP options against configured IP extended ACLs to enforce QoS. These packets are
sent to the CPU and processed by software. IP options are denoted by fields in the IP header.
Control traffic (such as spanning-tree bridge protocol data units [BPDUs] and routing update
packets) received by the switch are subject to all ingress QoS processing.
You must disable the IEEE 802.3X flowcontrol on all ports before enabling QoS on the switch. To
disable it, use the flowcontrol receive off and flowcontrol send off interface configuration
commands.
Only one ACL per class map and only one match class-map configuration command per class map
are supported. The ACL can have multiple access control entries, which are commands that match
fields against the contents of the packet.
Use only the match ip dscp dscp-list class-map configuration command in a policy map that is
attached to an egress interface.
Policy maps with ACL classification in the egress direction are not supported and cannot be attached
to an interface by using the service-policy output policy-map-name interface configuration
command. Policy maps containing set or trust policy-map class configuration commands cannot be
attached to an egress interface; instead, you can use the police policy-map class configuration
command to mark down (reduce) the DSCP value at the egress interface.
You can create an aggregate policer that is shared by multiple traffic classes within the same policy
map. However, you cannot use the aggregate policer across different policy maps or interfaces.
20-21
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Enabling QoS Globally
By default, QoS is disabled on the switch, which means that the switch offers best-effort service to each
packet regardless of the packet contents or size. All CoS values map to egress queue 1 with both tail-drop
thresholds set to 100 percent of the total queue size for Gigabit-capable Ethernet ports. On 10/100
Ethernet ports, all CoS values map to egress queue 1, which uses minimum-reserve level 1 and can hold
up to 100 packets. When the buffer is full, packets are dropped.
Beginning in privileged EXEC mode, follow these steps to enable QoS:
After QoS is enabled, the default settings are as shown in Table 20-1 on page 20-18.
To disable QoS, use the no mls qos global configuration command.
Configuring Classification Using Port Trust States
This section describes how to classify incoming traffic by using port trust states. It contains this
configuration information:
Configuring the Trust State on Ports within the QoS Domain, page 20-22
Configuring the CoS Value for an Interface, page 20-24
Configuring the DSCP Trust State on a Port Bordering Another QoS Domain, page 20-25
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface range port-range Enter interface configuration mode, and execute a command
on multiple interfaces.
You can define up to five interface ranges with a single
command, with each range separated by a comma.
All interfaces in a range must be the same type; that is, all Fast
Ethernet ports or all Gigabit Ethernet ports.
Step3 flowcontrol receive off
flowcontrol send off
Disable flowcontrol on all interfaces.
Step4 exit Return to global configuration mode.
Step5 mls qos Enable QoS globally.
Step6 end Return to privileged EXEC mode.
Step7 show mls qos Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-22
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the Trust State on Ports within the QoS Domain
Packets entering a QoS domain are classified at the edge of the QoS domain. When the packets are
classified at the edge, the switch port within the QoS domain can be configured to one of the trusted
states because there is no need to classify the packets at every switch within the QoS domain.
Figure 20-8 shows a sample network topology.
Figure20-8 Port Trusted States within the QoS Domain
4
6
9
8
1
Catalyst
3550-12T switch
Trunk
Trusted interface
Classification
of traffic
performed here
Catalyst 3550
wiring closet
20-23
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Beginning in privileged EXEC mode, follow these steps to configure the port to trust the classification
of the traffic that it receives:
To return a port to its untrusted state, use the no mls qos trust interface configuration command.
For information on how to change the default CoS value, see the Configuring the CoS Value for an
Interface section on page 20-24. For information on how to configure the CoS-to-DSCP map, see the
Configuring the CoS-to-DSCP Map section on page 20-39.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS globally.
Step3 interface interface-id Enter interface configuration mode, and specify the interface to be
trusted.
Valid interfaces include physical interfaces.
Step4 mls qos trust {cos | dscp | ip-precedence} Configure the port trust state.
By default, the port is not trusted.
The keywords have these meanings:
cosClassifies ingress packets with the packet CoS values. For
untagged packets, the port default CoS value is used. The default
port CoS value is 0.
dscpClassifies ingress packets with packet DSCP values. For
non-IP packets, the packet CoS value is used if the packet is
tagged; for untagged packets, the default port CoS is used.
Internally, the switch maps the CoS value to a DSCP value by
using the CoS-to-DSCP map.
ip-precedenceClassifies ingress packets with the packet
IP-precedence values. For non-IP packets, the packet CoS value
is used if the packet is tagged; for untagged packets, the default
port CoS is used. Internally, the switch maps the CoS value to a
DSCP value by using the CoS-to-DSCP map.
Use the cos keyword setting if your network is composed of Ethernet
LANs, Catalyst 3500 XL and 2900 XL switches, and has no more
than two types of traffic. Recall that on Catalyst 3500 XL and 2900
XL switches, CoS configures each transmit port with a
normal-priority transmit queue and a high-priority transmit queue.
Use the dscp or ip-precedence keyword if your network is not
composed of only Ethernet LANs and if you are familiar with
sophisticated QoS features and implementations.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-24
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the CoS Value for an Interface
QoS assigns the CoS value specified with the mls qos cos interface configuration command to untagged
frames received on trusted and untrusted ports.
Beginning in privileged EXEC mode, follow these steps to define the default CoS value of a port or to
assign the default CoS to all incoming packets on the port:
To return to the default setting, use the no mls qos cos {default-cos | override} interface configuration
command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS globally.
Step3 interface interface-id Enter interface configuration mode, and specify the interface to be trusted.
Valid interfaces include physical interfaces.
Step4 mls qos cos {default-cos | override} Configure the default CoS value for the port.
For default-cos, specify a default CoS value to be assigned to a port. If
the port is CoS trusted and packets are untagged, the default CoS value
becomes the CoS value for the packet. The CoS range is 0 to 7. The
default is 0.
Use the override keyword to override the previously configured trust
state of the incoming packets and to apply the default port CoS value to
all incoming packets. By default, CoS override is disabled.
Use the override keyword when all incoming packets on certain ports
deserve higher or lower priority than packets entering from other ports.
Even if a port was previously set to trust DSCP, CoS, or IP precedence,
this command overrides the previously configured trust state, and all
the incoming CoS values are assigned the default CoS value configured
with this command. If an incoming packet is tagged, the CoS value of
the packet is modified with the default CoS of the port at the ingress
port.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-25
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the DSCP Trust State on a Port Bordering Another QoS Domain
If you are administering two separate QoS domains between which you want to implement QoS features
for IP traffic, you can configure the switch ports bordering the domains to a DSCP-trusted state as shown
in Figure 20-9. Then the receiving port accepts the DSCP-trusted value and avoids the classification
stage of QoS. If the two domains use different DSCP values, you can configure the
DSCP-to-DSCP-mutation map to translate a set of DSCP values to match the definition in the other
domain.
Figure20-9 DSCP-Trusted State on a Port Bordering Another QoS Domain
Beginning in privileged EXEC mode, follow these steps to configure the DSCP-trusted state on a port
and modify the DSCP-to-DSCP-mutation map. To ensure a consistent mapping strategy across both QoS
domains, you must perform this procedure on the ports in both domains:
4
6
9
8
2
Catalyst
3550-12T switch
Catalyst
3550-12T switch
QoS Domain 1 QoS Domain 2
Set interface to the DSCP-trusted state.
Configure the DSCP-to-DSCP-mutation map.
IP traffic
Gigabit
Ethernet
0/3
Gigabit
Ethernet
0/3
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 mls qos map dscp-mutation
dscp-mutation-name in-dscp to out-dscp
Modify the DSCP-to-DSCP-mutation map.
The default DSCP-to-DSCP-mutation map is a null map, which maps
an incoming DSCP value to the same DSCP value.
For dscp-mutation-name, enter the mutation map name. You can
create more than one map by specifying a new name.
For in-dscp, enter up to eight DSCP values separated by spaces.
Then enter the to keyword.
For out-dscp, enter up to eight DSCP values separated by spaces.
The DSCP range is 0 to 63.
Step4 interface interface-id Enter interface configuration mode, and specify the interface to be
trusted.
Valid interfaces include physical interfaces.
Step5 mls qos trust dscp Configure the ingress port as a DSCP-trusted port.
20-26
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To return a port to its non-trusted state, use the no mls qos trust interface configuration command. To
return to the default DSCP-to-DSCP-mutation map values, use the no mls qos map dscp-mutation
dscp-mutation-map-name global configuration command.
This example shows how to configure Gigabit Ethernet port 0/2 to the DSCP-trusted state and to modify
the DSCP-to-DSCP-mutation map (named gi0/2-mutation) so that incoming DSCP values 10 to 13 are
mapped to DSCP values 30 to 33:
Switch# configure terminal
Switch(config)# mls qos map dscp-mutation gi0/2-mutation 10 11 12 13 to 30 31 32 33
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# mls qos trust dscp
Switch(config-if)# mls qos dscp-mutation gi0/2-mutation
Switch(config-if)# end
Configuring a QoS Policy
Configuring a QoS policy typically requires classifying traffic into classes, configuring policies applied
to those traffic classes, and attaching policies to interfaces.
For background information, see the Classification section on page 20-4 and the Policing and
Marking section on page 20-8.
This section contains this configuration information:
Classifying Traffic by Using ACLs, page 20-27
Classifying Traffic by Using Class Maps, page 20-30
Classifying, Policing, and Marking Traffic by Using Policy Maps, page 20-32
Classifying, Policing, and Marking Traffic by Using Aggregate Policers, page 20-37
Step6 mls qos dscp-mutation
dscp-mutation-name
Apply the map to the specified ingress DSCP-trusted port.
You can apply the map to different Gigabit-capable Ethernet ports.
However, on 10/100 Ethernet ports, you can attach only one
DSCP-to-DSCP-mutation map to a group of twelve ports. For example,
Fast Ethernet ports 0/1 to 0/12 are a group, Fast Ethernet ports 0/13 to
0/24 are a group, Gigabit Ethernet 0/1 is a group, and Gigabit Ethernet
0/2 is a group. When applying a mutation map to any port in a group,
all ports in the same group are automatically configured with the same
map.
Step7 end Return to privileged EXEC mode.
Step8 show mls qos maps dscp-mutation Verify your entries.
Step9 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-27
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Classifying Traffic by Using ACLs
You can classify IP traffic by using IP standard or IP extended ACLs; you can classify non-IP traffic by
using Layer 2 MAC ACLs.
Beginning in privileged EXEC mode, follow these steps to create an IP standard ACL for IP traffic:
To delete an access list, use the no access-list access-list-number global configuration command.
This example shows how to allow access for only those hosts on the three specified networks. The
wildcard bits apply to the host portions of the network addresses. Any host with a source address that
does not match the access list statements is rejected.
Switch(config)# access-list 1 permit 192.5.255.0 0.0.0.255
Switch(config)# access-list 1 permit 128.88.0.0 0.0.255.255
Switch(config)# access-list 1 permit 36.0.0.0 0.0.0.255
! (Note: all other access implicitly denied)
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
Create an IP standard ACL, repeating the command as many times as
necessary.
For access-list-number, enter the access list number. The range is
1 to 99 and 1300 to 1999.
Use the permit keyword to permit a certain type of traffic if the
conditions are matched. Use the deny keyword to deny a certain
type of traffic if conditions are matched.
For source, enter the network or host from which the packet is
being sent. You can use the any keyword as an abbreviation for
0.0.0.0 255.255.255.255.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Note When creating an access list, remember that, by default, the end
of the access list contains an implicit deny statement for
everything if it did not find a match before reaching the end.
Step4 end Return to privileged EXEC mode.
Step5 show access-lists Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-28
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Beginning in privileged EXEC mode, follow these steps to create an IP extended ACL for IP traffic:
To delete an access list, use the no access-list access-list-number global configuration command.
This example shows how to create an ACL that permits IP traffic from any source to any destination that
has the DSCP value set to 32:
Switch(config)# access-list 100 permit ip any any dscp 32
This example shows how to create an ACL that permits IP traffic from a source host at 10.1.1.1 to a
destination host at 10.1.1.2 with a precedence value of 5:
Switch(config)# access-list 100 permit ip host 10.1.1.1 host 10.1.1.2 precedence 5
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 access-list access-list-number {deny |
permit} protocol source source-wildcard
destination destination-wildcard
Create an IP extended ACL, repeating the command as many times as
necessary.
For access-list-number, enter the access list number. The range is
100 to 199 and 2000 to 2699.
Use the permit keyword to permit a certain type of traffic if the
conditions are matched. Use the deny keyword to deny a certain
type of traffic if conditions are matched.
For protocol, enter the name or number of an IP protocol. Use the
question mark (?) to see a list of available protocol keywords.
For source, enter the network or host from which the packet is
being sent. You specify this by using dotted decimal notation, by
using the any keyword as an abbreviation for source 0.0.0.0
source-wildcard 255.255.255.255, or by using the host keyword
for source 0.0.0.0.
For source-wildcard, enter the wildcard bits by placing ones in the
bit positions that you want to ignore. You specify the wildcard by
using dotted decimal notation, by using the any keyword as an
abbreviation for source 0.0.0.0 source-wildcard 255.255.255.255,
or by using the host keyword for source 0.0.0.0.
For destination, enter the network or host to which the packet is
being sent. You have the same options for specifying the
destination and destination-wildcard as those described by source
and source-wildcard.
Note When creating an access list, remember that, by default, the end
of the access list contains an implicit deny statement for
everything if it did not find a match before reaching the end.
Step4 end Return to privileged EXEC mode.
Step5 show access-lists Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-29
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This example shows how to create an ACL that permits PIM traffic from any source to a destination
group address of 224.0.0.2 with a DSCP set to 32:
Switch(config)# access-list 102 permit pim any 224.0.0.2 dscp 32
Beginning in privileged EXEC mode, follow these steps to create a Layer 2 MAC ACL for non-IP traffic:
To delete an access list, use the no mac access-list extended access-list-name global configuration
command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 mac access-list extended name Create a Layer 2 MAC ACL by specifying the name of the list.
After entering this command, the mode changes to extended MAC
ACL configuration.
Step4 {permit | deny} {host src-MAC-addr mask |
any | host dst-MAC-addr | dst-MAC-addr
mask} [type mask]
Specify the type of traffic to permit or deny if the conditions are
matched, entering the command as many times as necessary.
For src-MAC-addr, enter the MAC address of the host from
which the packet is being sent. You specify this by using the
hexadecimal format (H.H.H), by using the any keyword as an
abbreviation for source 0.0.0, source-wildcard 255.255.255, or
by using the host keyword for source 0.0.0.
For mask, enter the wildcard bits by placing ones in the bit
positions that you want to ignore.
For dst-MAC-addr, enter the MAC address of the host to which
the packet is being sent. You specify this by using the
hexadecimal format (H.H.H), by using the any keyword as an
abbreviation for source 0.0.0, source-wildcard 255.255.255, or
by using the host keyword for source 0.0.0.
(Optional) For type mask, specify the Ethertype number of a
packet with Ethernet II or SNAP encapsulation to identify the
protocol of the packet. For type, the range is from 0 to 65535,
typically specified in hexadecimal. For mask, enter the dont
care bits applied to the Ethertype before testing for a match.
Note When creating an access list, remember that, by default, the
end of the access list contains an implicit deny statement for
everything if it did not find a match before reaching the end.
Step5 end Return to privileged EXEC mode.
Step6 show access-lists [access-list-number |
access-list-name]
Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-30
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This example shows how to create a Layer 2 MAC ACL with two permit statements. The first statement
allows traffic from the host with MAC address 0001.0000.0001 to the host with MAC
address 0002.0000.0001. The second statement allows only Ethertype XNS-IDP traffic from the host
with MAC address 0001.0000.0002 to the host with MAC address 0002.0000.0002.
Switch(config)# mac access-list extended maclist1
Switch(config-ext-macl)# permit 0001.0000.0001 0.0.0 0002.0000.0001 0.0.0
Switch(config-ext-macl)# permit 0001.0000.0002 0.0.0 0002.0000.0002 0.0.0 xns-idp
! (Note: all other access implicitly denied)
Classifying Traffic by Using Class Maps
You use the class-map global configuration command to isolate a specific traffic flow (or class) from
all other traffic and to name it. The class map defines the criteria to use to match against a specific traffic
flow to further classify it. Match statements can include criterion such as an ACL, IP precedence values,
or DSCP values. The match criterion is defined with one match statement entered within the class-map
configuration mode.
Note You can also create class-maps during policy map creation by using the class policy-map
configuration command. For more information, see the Classifying, Policing, and Marking Traffic
by Using Policy Maps section on page 20-32.
Beginning in privileged EXEC mode, follow these steps to create a class map and to define the match
criterion to classify traffic:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
or
access-list access-list-number {deny |
permit} protocol source [source-wildcard]
destination [destination-wildcard]
or
mac access-list extended name
{permit | deny} {host src-MAC-addr mask
| any | host dst-MAC-addr | dst-MAC-addr
mask} [type mask]
Create an IP standard or extended ACL for IP traffic or a Layer 2 MAC
ACL for non-IP traffic, repeating the command as many times as
necessary.
For more information, see the Classifying Traffic by Using ACLs
section on page 20-27.
Note When creating an access list, remember that, by default, the
end of the access list contains an implicit deny statement for
everything if it did not find a match before reaching the end.
20-31
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To delete an existing class map, use the no class-map class-map-name [match-all | match-any] global
configuration command. To remove a match criterion, use the no match {access-group
acl-index-or-name | ip dscp | ip precedence} class-map configuration command.
This example shows how to configure the class map called class1. The class1 has one match criterion,
which is access list 103. It permits traffic from any host to any destination that matches a DSCP value
of 10.
Switch(config)# access-list 103 permit any any dscp 10
Switch(config)# class-map class1
Switch(config-cmap)# match access-group 103
Switch(config-cmap)# end
Switch#
Step4 class-map class-map-name [match-all |
match-any]
Create a class map, and enter class-map configuration mode.
By default, no class maps are defined.
For class-map-name, specify the name of the class map.
(Optional) Use the match-all keyword to perform a logical-AND
of all matching statements under this class map. All match criteria
in the class map must be matched.
(Optional) Use the match-any keyword to perform a logical-OR
of all matching statements under this class map. One or more
match criteria must be matched.
If neither the match-all or match-any keyword is specified, the
default is match-all.
Note Because only one match command per class map is supported,
the match-all and match-any keywords function the same.
Step5 match {access-group acl-index-or-name |
ip dscp dscp-list | ip precedence
ip-precedence-list}
Define the match criterion to classify traffic.
By default, no match criterion is supported.
Only one match criterion per class map is supported, and only one ACL
per class map is supported.
For access-group acl-index-or-name, specify the number or name
of the ACL created in Step 3.
For ip dscp dscp-list, enter a list of up to eight IP DSCP values to
match against incoming packets. Separate each value with a space.
The range is 0 to 63.
For ip precedence ip-precedence-list, enter a list of up to eight
IP-precedence values to match against incoming packets. Separate
each value with a space. The range is 0 to 7.
Note You can use the match ip dscp dscp-list class-map
configuration command only in a policy map that is attached to
an egress interface.
Step6 end Return to privileged EXEC mode.
Step7 show class-map Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-32
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This example shows how to create a class map called class2, which matches incoming traffic with DSCP
values of 10, 11, and 12.
Switch(config)# class-map class2
Switch(config-cmap)# match ip dscp 10 11 12
Switch(config-cmap)# end
Switch#
This example shows how to create a class map called class3, which matches incoming traffic with
IP-precedence values of 5, 6, and 7:
Switch(config)# class-map class3
Switch(config-cmap)# match ip precedence 5 6 7
Switch(config-cmap)# end
Switch#
Classifying, Policing, and Marking Traffic by Using Policy Maps
A policy map specifies which traffic class to act on. Actions can include trusting the CoS, DSCP, or IP
precedence values in the traffic class; setting a specific DSCP or IP precedence value in the traffic class;
and specifying the traffic bandwidth limitations for each matched traffic class (policer) and the action to
take when the traffic is out of profile (marking).
A policy map also has these characteristics:
A policy map can contain multiple class statements, each with different match criteria and policers.
A separate policy-map class can exist for each type of traffic received through an interface.
A policy-map trust state supersedes an interface trust state.
You can attach only one policy map per interface per direction.
Beginning in privileged EXEC mode, follow these steps to create a policy map:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
or
access-list access-list-number {deny |
permit} protocol source [source-wildcard]
destination [destination-wildcard]
or
mac access-list extended access-list name
{permit | deny} {source-MAC-addr mask |
any | host} {destination-MAC-addr mask |
any | host} [ethertype]
Create an IP standard or extended ACL for IP traffic or a Layer 2 MAC
ACL for non-IP traffic, repeating the command as many times as
necessary.
For more information, see the Classifying Traffic by Using ACLs
section on page 20-27.
Note When creating an access list, remember that, by default, the end
of the access list contains an implicit deny statement for
everything if it did not find a match before reaching the end.
20-33
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Step4 policy-map policy-map-name Create a policy map by entering the policy map name, and enter
policy-map configuration mode.
By default, no policy maps are defined.
The default behavior of a policy map is to set the DSCP to 0 if the
packet is an IP packet and to set the CoS to 0 if the packet is tagged. No
policing is performed.
Step5 class class-map-name [access-group
acl-index-or-name | dscp dscp-list |
precedence ip-precedence-list]
Define a traffic classification, and enter policy-map class configuration
mode.
By default, no policy map class-maps are defined.
If a traffic class has already been defined by using the class-map global
configuration command, specify its name for class-map-name in this
command.
To define a class map that uses an access list to filter traffic or that
matches traffic to the specified DSCP or IP precedence values, use one
of these keywords:
For access-group acl-index-or-name, specify the number or name of
the ACL created in Step 3.
For dscp dscp-list, specify a list of up to eight IP DSCP values to
be matched against incoming packets. Separate each value with a
space. The range is 0 to 63.
For precedence ip-precedence-list, specify a list of up to eight
IP-precedence values to be matched against incoming packets.
Separate each value with a space. The range is 0 to 7.
Command Purpose
20-34
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Step6 trust [cos | dscp | ip-precedence] Configure the trust state, which selects the value that QoS uses as the
source of the internal DSCP value.
Note This command is mutually exclusive with the set command
within the same policy map. If you enter the trust command,
then skip Step 7.
By default, the port is not trusted. If no keyword is specified when the
command is entered, the default is dscp.
The keywords have these meanings:
cosQoS derives the internal DSCP value by using the received
or default port CoS value and the CoS-to-DSCP map.
dscpQoS derives the internal DSCP value by using the DSCP
value from the ingress packet. For non-IP packets that are tagged,
QoS derives the internal DSCP value by using the received CoS
value; for non-IP packets that are untagged, QoS derives the
internal DSCP value by using the default port CoS value. In either
case, the internal DSCP value is derived from the CoS-to-DSCP
map.
ip-precedenceQoS derives the internal DSCP value by using the
IP precedence value from the ingress packet and the
IP-precedence-to-DSCP map. For non-IP packets that are tagged,
QoS derives the internal DSCP value by using the received CoS
value; for non-IP packets that are untagged, QoS derives the
internal DSCP value by using the default port CoS value. In either
case, the internal DSCP value is derived from the CoS-to-DSCP
map.
For more information, see the Configuring the CoS-to-DSCP Map
section on page 20-39.
Step7 set {ip dscp new-dscp | ip precedence
new-precedence}
Classify IP traffic by setting a new value in the packet.
For ip dscp new-dscp, enter a new DSCP value to be assigned to
the classified traffic. The range is 0 to 63.
For ip precedence new-precedence, enter a new IP-precedence
value to be assigned to the classified traffic. The range is 0 to 7.
Command Purpose
20-35
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To delete an existing policy map, use the no policy-map policy-map-name global configuration
command. To delete an existing class map, use the no class class-map-name policy-map configuration
command. To return to the default trust state, use the no trust [cos | dscp | ip-precedence] policy-map
configuration command. To remove an assigned DSCP or IP precedence value, use the no set {ip dscp
new-dscp | ip precedence new-precedence} policy-map configuration command. To remove an existing
policer, use the no police rate-bps burst-byte [exceed-action {drop | policed-dscp-transmit}]
policy-map configuration command. To remove the policy map and interface association, use the no
service-policy {input policy-map-name | output policy-map-name} interface configuration command.
Step8 police rate-bps burst-byte [exceed-action
{drop | policed-dscp-transmit}]
Define a policer for the classified traffic.
You can configure up to 128 policers on ingress Gigabit-capable
Ethernet ports, up to 8 policers on ingress 10/100 Ethernet ports, and
up to 8 policers on egress ports.
For rate-bps, specify average traffic rate in bits per second (bps).
The range is 8000 to 2000000000.
For burst-byte, specify the normal burst size in bytes. The range is
8000 to 512000000.
(Optional) Specify the action to take when the rates are exceeded.
Use the exceed-action drop keywords to drop the packet. Use the
exceed-action policed-dscp-transmit keywords to mark down the
DSCP value (by using the policed-DSCP map) and send the packet.
For more information, see the Configuring the Policed-DSCP
Map section on page 20-41.
Step9 exit Return to policy map configuration mode.
Step10 exit Return to global configuration mode.
Step11 interface interface-id Enter interface configuration mode, and specify the interface to attach
to the policy map.
Valid interfaces include physical interfaces.
Step12 service-policy {input policy-map-name |
output policy-map-name}
Apply a policy map to the input or output of a particular interface.
Only one policy map per interface per direction is supported.
Use input policy-map-name to apply the specified policy-map to
the input of an interface.
Use output policy-map-name to apply the specified policy-map to
the output of an interface.
Note Policy maps that contain set or trust policy-map class
configuration commands or that have ACL classification
cannot be attached to an output interface.
Step13 end Return to privileged EXEC mode.
Step14 show policy-map [policy-map-name [class
class-name]]
Verify your entries.
Step15 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-36
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This example shows how to create a policy map and attach it to an ingress interface. In the configuration,
the IP standard ACL permits traffic from network 10.1.0.0. For traffic matching this classification, the
DSCP value in the incoming packet is trusted. If the matched traffic exceeds an average traffic rate
of 48000 bps and a normal burst size of 8000 bytes, its DSCP is marked down (based on the
policed-DSCP map) and sent:
Switch(config)# access-list 1 permit 10.1.0.0 0.0.255.255
Switch(config)# class-map ipclass1
Switch(config-cmap)# match access-group 1
Switch(config-cmap)# exit
Switch(config)# policy-map flow1t
Switch(config-pmap)# class ipclass1
Switch(config-pmap-c)# trust dscp
Switch(config-pmap-c)# police 48000 8000 exceed-action policed-dscp-transmit
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input flow1t
This example shows how to create a policy map and attach it to an ingress interface. In the configuration,
the IP extended ACL permits Transmission Control Protocol (TCP) traffic with an IP precedence of 4
from any host destined for the host at 224.0.0.5. For traffic matching this classification, the DSCP value
in the incoming packet is set to 63.
Switch(config)# access-list 104 permit tcp any host 224.0.0.5 precedence 4
Switch(config)# policy-map ip104
Switch(config-pmap)# class ipclass104 access-group 104
Switch(config-pmap-c)# set ip dscp 63
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input ip104
This example shows how to create a Layer 2 MAC ACL with two permit statements and attach it to an
ingress interface. The first permit statement allows traffic from the host with MAC
address 0001.0000.0001 destined for the host with MAC address 0002.0000.0001. The second permit
statement allows only Ethertype XNS-IDP traffic from the host with MAC address 0001.0000.0002
destined for the host with MAC address 0002.0000.0002.
Switch(config)# mac access-list extended maclist1
Switch(config-ext-mac)# permit 0001.0000.0001 0.0.0 0002.0000.0001 0.0.0
Switch(config-ext-mac)# permit 0001.0000.0002 0.0.0 0002.0000.0002 0.0.0 xns-idp
Switch(config-ext-mac)# exit
Switch(config)# mac access-list extended maclist2
Switch(config-ext-mac)# permit 0001.0000.0003 0.0.0 0002.0000.0003 0.0.0
Switch(config-ext-mac)# permit 0001.0000.0004 0.0.0 0002.0000.0004 0.0.0 aarp
Switch(config-ext-mac)# exit
Switch(config)# class-map macclass1
Switch(config-cmap)# match access-group maclist1
Switch(config-cmap)# exit
Switch(config)# policy-map macpolicy1
Switch(config-pmap)# class macclass1
Switch(config-pmap-c)# set ip dscp 63
Switch(config-pmap-c)# exit
Switch(config-pmap)# class macclass2 maclist2
Switch(config-pmap-c)# set ip dscp 45
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# mls qos trust cos
Switch(config-if)# service-policy input macpolicy1
20-37
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Classifying, Policing, and Marking Traffic by Using Aggregate Policers
By using an aggregate policer, you can create a policer that is shared by multiple traffic classes within
the same policy map. However, you cannot use the aggregate policer across different policy maps or
interfaces.
Beginning in privileged EXEC mode, follow these steps to create an aggregate policer:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 mls qos aggregate-police
aggregate-policer-name rate-bps
burst-byte exceed-action {drop |
policed-dscp-transmit}
Define the policer parameters that can be applied to multiple traffic
classes within the same policy map.
By default, no aggregate policer is defined.
You can configure up to 128 policers on ingress Gigabit-capable
Ethernet ports, up to 8 policers on ingress 10/100 Ethernet ports, and
up to 8 policers on egress ports.
For aggregate-policer-name, specify the name of the aggregate
policer.
For rate-bps, specify average traffic rate in bits per second (bps).
The range is 8000 to 2000000000.
For burst-byte, specify the normal burst size in bytes. The range is
8000 to 512000000.
(Optional) Specify the action to take when the rates are exceeded.
Use the exceed-action drop keywords to drop the packet. Use the
exceed-action policed-dscp-transmit keywords to mark down the
DSCP value (by using the policed-DSCP map) and send the packet.
For more information, see the Configuring the Policed-DSCP
Map section on page 20-41.
Step4 class-map class-map-name [match-all |
match-any]
Create a class map to classify traffic as necessary. For more
information, see the Classifying Traffic by Using Class Maps section
on page 20-30.
Step5 policy-map policy-map-name Create a policy map by entering the policy map name, and enter
policy-map configuration mode.
For more information, see the Classifying, Policing, and Marking
Traffic by Using Policy Maps section on page 20-32.
Step6 class class-map-name [access-group
acl-index-or-name | dscp dscp-list |
precedence ip-precedence-list]
Define a traffic classification, and enter policy-map class configuration
mode.
For more information, see the Classifying, Policing, and Marking
Traffic by Using Policy Maps section on page 20-32.
Step7 police aggregate aggregate-policer-name Apply an aggregate policer to multiple classes in the same policy map.
For aggregate-policer-name, enter the name specified in Step 3.
Step8 exit Return to global configuration mode.
20-38
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To remove the specified aggregate policer from a policy map, use the no police aggregate
aggregate-policer-name policy map configuration mode. To delete an aggregate policer and its
parameters, use the no mls qos aggregate-policer aggregate-policer-name global configuration
command.
This example shows how to create an aggregate policer and attach it to multiple classes within a policy
map. In the configuration, the IP ACLs permit traffic from network 10.1.0.0 and from host 11.3.1.1. For
traffic coming from network 10.1.0.0, the DSCP in the incoming packets is trusted. For traffic coming
from host 11.3.1.1, the DSCP in the packet is changed to 56. The traffic rate from the 10.1.0.0 network
and from host 11.3.1.1 is policed. If the traffic exceeds an average rate of 48000 bps and a normal burst
size of 8000 bytes, its DSCP is marked down (based on the policed-DSCP map) and sent. The policy
map is attached to an ingress interface.
Switch(config)# access-list 1 permit 10.1.0.0 0.0.255.255
Switch(config)# access-list 2 permit 11.3.1.1
Switch(config)# mls qos aggregate-police transmit1 48000 8000 exceed-action
policed-dscp-transmit
Switch(config)# policy-map aggflow1
Switch(config-pmap)# class ipclass1 access-group 1
Switch(config-pmap-c)# trust dscp
Switch(config-pmap-c)# police aggregate transmit1
Switch(config-pmap-c)# exit
Switch(config-pmap)# class ipclass2 access-group 2
Switch(config-pmap-c)# set ip dscp 56
Switch(config-pmap-c)# police aggregate transmit1
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input aggflow1
Switch(config-if)# exit
Step9 interface interface-id Enter interface configuration mode, and specify the interface to attach
to the policy map.
Valid interfaces include physical interfaces.
Step10 service-policy {input policy-map-name |
output policy-map-name}
Apply a policy map to the input or output of a particular interface.
Only one policy map per interface per direction is supported.
Use input policy-map-name to apply the specified policy-map to
the input of an interface.
Use output policy-map-name to apply the specified policy-map to
the output of an interface. Policy maps that contain set or trust
policy-map class configuration commands or that have ACL
classification cannot be attached to an egress interface.
Step11 end Return to privileged EXEC mode.
Step12 show mls qos aggregate-policer
[aggregate-policer-name]
Verify your entries.
Step13 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-39
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring DSCP Maps
This section describes how to configure the DSCP maps. It contains this configuration information:
Configuring the CoS-to-DSCP Map, page 20-39
Configuring the IP-Precedence-to-DSCP Map, page 20-40
Configuring the Policed-DSCP Map, page 20-41
Configuring the DSCP-to-CoS Map, page 20-42
Configuring the DSCP-to-DSCP-Mutation Map, page 20-43
All the maps, except the DSCP-to-DSCP-mutation map, are globally defined and are applied to all
ports.You can have multiple DSCP-to-DSCP-mutation maps and apply them to different Gigabit-capable
Ethernet ports. However, on 10/100 Ethernet ports, you can attach only one DSCP-to-DSCP-mutation
map to a group of twelve ports.
Configuring the CoS-to-DSCP Map
You use the CoS-to-DSCP map to map CoS values in incoming packets to a DSCP value that QoS uses
internally to represent the priority of the traffic.
Table 20-3 shows the default CoS-to-DSCP map.
If these values are not appropriate for your network, you need to modify them.
Beginning in privileged EXEC mode, follow these steps to modify the CoS-to-DSCP map:
To return to the default map, use the no mls qos cos-dscp global configuration command.
Table20-3 Default CoS-to-DSCP Map
CoS value 0 1 2 3 4 5 6 7
DSCP value 0 8 16 24 32 40 48 56
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos map cos-dscp dscp1...dscp8 Modify the CoS-to-DSCP map.
For dscp1...dscp8, enter 8 DSCP values that correspond to CoS values 0
to 7. Separate each DSCP value with a space.
The DSCP range is 0 to 63.
Step3 end Return to privileged EXEC mode.
Step4 show mls qos maps cos-dscp Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-40
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This example shows how to modify and display the CoS-to-DSCP map:
Switch# configure terminal
Switch(config)# mls qos map cos-dscp 10 15 20 25 30 35 40 45
Switch(config)# end
Switch# show mls qos maps cos-dscp
Cos-dscp map:
cos: 0 1 2 3 4 5 6 7
--------------------------------
dscp: 10 15 20 25 30 35 40 45
Configuring the IP-Precedence-to-DSCP Map
You use the IP-precedence-to-DSCP map to map IP precedence values in incoming packets to a DSCP
value that QoS uses internally to represent the priority of the traffic.
Table 20-4 shows the default IP-precedence-to-DSCP map:
If these values are not appropriate for your network, you need to modify them.
Beginning in privileged EXEC mode, follow these steps to modify the IP-precedence-to-DSCP map:
To return to the default map, use the no mls qos ip-prec-dscp global configuration command.
This example shows how to modify and display the IP-precedence-to-DSCP map:
Switch# configure terminal
Switch(config)# mls qos map ip-prec-dscp 10 15 20 25 30 35 40 45
Switch(config)# end
Switch# show mls qos maps ip-prec-dscp
IpPrecedence-dscp map:
ipprec: 0 1 2 3 4 5 6 7
--------------------------------
dscp: 10 15 20 25 30 35 40 45
Table20-4 Default IP-Precedence-to-DSCP Map
IP precedence value 0 1 2 3 4 5 6 7
DSCP value 0 8 16 24 32 40 48 56
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos map ip-prec-dscp
dscp1...dscp8
Modify the IP-precedence-to-DSCP map.
For dscp1...dscp8, enter 8 DSCP values that correspond to the IP
precedence values 0 to 7. Separate each DSCP value with a space.
The DSCP range is 0 to 63.
Step3 end Return to privileged EXEC mode.
Step4 show mls qos maps ip-prec-dscp Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-41
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the Policed-DSCP Map
You use the policed-DSCP map to mark down a DSCP value to a new value as the result of a policing
and marking action.
The default policed-DSCP map is a null map, which maps an incoming DSCP value to the same DSCP
value.
Beginning in privileged EXEC mode, follow these steps to modify the policed-DSCP map:
To return to the default map, use the no mls qos policed-dscp global configuration command.
This example shows how to map DSCP 50 to 57 to a marked-down DSCP value of 0:
Switch# configure terminal
Switch(config)# mls qos map policed-dscp 50 51 52 53 54 55 56 57 to 0
Switch(config)# end
Switch# show mls qos maps policed-dscp
Policed-dscp map:
d1 : d2 0 1 2 3 4 5 6 7 8 9
---------------------------------------
0 : 00 01 02 03 04 05 06 07 08 09
1 : 10 11 12 13 14 15 16 17 18 19
2 : 20 21 22 23 24 25 26 27 28 29
3 : 30 31 32 33 34 35 36 37 38 39
4 : 40 41 42 43 44 45 46 47 48 49
5 : 00 00 00 00 00 00 00 00 58 59
6 : 60 61 62 63
Note In this policed-DSCP map, the marked-down DSCP values are shown in the body of the matrix. The
d1 column specifies the most-significant digit of the original DSCP; the d2 row specifies the
least-significant digit of the original DSCP. The intersection of the d1 and d2 values provides the
marked-down value. For example, an original DSCP value of 53 corresponds to a marked-down
DSCP value of 0.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos map policed-dscp dscp-list to
mark-down-dscp
Modify the policed-DSCP map.
For dscp-list, enter up to 8 DSCP values separated by spaces. Then
enter the to keyword.
For mark-down-dscp, enter the corresponding policed (marked down)
DSCP value.
Step3 end Return to privileged EXEC mode.
Step4 show mls qos maps policed-dscp Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-42
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the DSCP-to-CoS Map
You use the DSCP-to-CoS map to generate a CoS value, which is used to select one of the four egress
queues.
Table 20-5 shows the default DSCP-to-CoS map.
If these values are not appropriate for your network, you need to modify them.
Beginning in privileged EXEC mode, follow these steps to modify the DSCP-to-CoS map:
To return to the default map, use the no mls qos dscp-cos global configuration command.
This example shows how to map DSCP values 0, 8, 16, 24, 32, 40, 48, and 50 to CoS value 0 and to
display the map:
Switch# configure terminal
Switch(config)# mls qos map dscp-cos 0 8 16 24 32 40 48 50 to 0
Switch(config)# end
Switch# show mls qos maps dscp-cos
Dscp-cos map:
d1 : d2 0 1 2 3 4 5 6 7 8 9
---------------------------------------
0 : 00 00 00 00 00 00 00 00 00 01
1 : 01 01 01 01 01 01 00 02 02 02
2 : 02 02 02 02 00 03 03 03 03 03
3 : 03 03 00 04 04 04 04 04 04 04
4 : 00 05 05 05 05 05 05 05 00 06
5 : 00 06 06 06 06 06 07 07 07 07
6 : 07 07 07 07
Note In the above DSCP-to-CoS map, the CoS values are shown in the body of the matrix. The d1 column
specifies the most-significant digit of the DSCP; the d2 row specifies the least-significant digit of the
DSCP. The intersection of the d1 and d2 values provides the CoS value. For example, in the
DSCP-to-CoS map, a DSCP value of 08 corresponds to a CoS value of 0.
Table20-5 Default DSCP-to-CoS Map
DSCP value 07 815 1623 2431 3239 4047 4855 5663
CoS value 0 1 2 3 4 5 6 7
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos map dscp-cos dscp-list to cos Modify the DSCP-to-CoS map.
For dscp-list, enter up to 8 DSCP values separated by spaces. Then
enter the to keyword.
For cos, enter the CoS value to which the DSCP values correspond.
The DSCP range is 0 to 63; the CoS range is 0 to 7.
Step3 end Return to privileged EXEC mode.
Step4 show mls qos maps dscp-to-cos Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-43
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the DSCP-to-DSCP-Mutation Map
You apply the DSCP-to-DSCP-mutation map to a port at the boundary of a QoS administrative domain.
If the two domains have different DSCP definitions between them, you use the DSCP-to-DSCP-mutation
map to translate a set of DSCP values to match the definition of the other domain.
The default DSCP-to-DSCP-mutation map is a null map, which maps an incoming DSCP value to the
same DSCP value.
Beginning in privileged EXEC mode, follow these steps to modify the DSCP-to-DSCP-mutation map:
To return to the default map, use the no mls qos dscp-mutation dscp-mutation-name global
configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos map dscp-mutation
dscp-mutation-name in-dscp to out-dscp
Modify the DSCP-to-DSCP-mutation map.
For dscp-mutation-name, enter the mutation map name. You can
create more than one map by specifying a new name.
For in-dscp, enter up to 8 DSCP values separated by spaces. Then
enter the to keyword.
For out-dscp, enter up to 8 DSCP values separated by spaces.
The DSCP range is 0 to 63.
Step3 interface interface-id Enter interface configuration mode, and specify the interface to which
to attach the map.
Valid interfaces include physical interfaces.
Step4 mls qos trust dscp Configure the ingress port as a DSCP-trusted port.
Step5 mls qos dscp-mutation
dscp-mutation-name
Apply the map to the specified ingress DSCP-trusted port.
For dscp-mutation-name, enter the mutation map name specified in
Step 2.
You can apply the map to different Gigabit-capable Ethernet ports.
However, on 10/100 Ethernet ports, you can attach only one
DSCP-to-DSCP-mutation map to a group of twelve ports. For example,
Fast Ethernet ports 0/1 to 0/12 are a group, Fast Ethernet ports 0/13 to
0/24 are a group, Gigabit Ethernet port 0/1 is a group, and Gigabit
Ethernet port 0/2 is a group. When applying a mutation map to any port
in a group, all ports in the same group are automatically configured
with the same map.
Step6 end Return to privileged EXEC mode.
Step7 show mls qos maps dscp-mutation Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-44
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This example shows how to define the DSCP-to-DSCP-mutation map. All the entries that are not
explicitly configured are not modified (remains as specified in the null map):
Switch# configure terminal
Switch(config)# mls qos map dscp-mutation mutation1 1 2 3 4 5 6 7 to 0
Switch(config)# mls qos map dscp-mutation mutation1 8 9 10 11 12 13 to 10
Switch(config)# mls qos map dscp-mutation mutation1 20 21 22 to 20
Switch(config)# mls qos map dscp-mutation mutation1 30 31 32 33 34 to 30
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# mls qos trust dscp
Switch(config-if)# mls qos dscp-mutation mutation1
Switch(config-if)# end
Switch# show mls qos maps dscp-mutation mutation1
Dscp-dscp mutation map:
mutation1:
d1 : d2 0 1 2 3 4 5 6 7 8 9
---------------------------------------
0 : 00 00 00 00 00 00 00 00 10 10
1 : 10 10 10 10 14 15 16 17 18 19
2 : 20 20 20 23 24 25 26 27 28 29
3 : 30 30 30 30 30 35 36 37 38 39
4 : 40 41 42 43 44 45 46 47 48 49
5 : 50 51 52 53 54 55 56 57 58 59
6 : 60 61 62 63
Note In the above DSCP-to-DSCP-mutation map, the mutated values are shown in the body of the matrix.
The d1 column specifies the most-significant digit of the original DSCP; the d2 row specifies the
least-significant digit of the original DSCP. The intersection of the d1 and d2 values provides the
mutated value. For example, a DSCP value of 12 corresponds to a mutated value of 10.
Configuring Egress Queues on Gigabit-Capable Ethernet Ports
This section describes how to configure the egress queues on Gigabit-capable Ethernet ports. For
information on configuring 10/100 Ethernet ports, see Configuring Egress Queues on 10/100 Ethernet
Ports section on page 20-51.
Depending on the complexity of your network and your QoS solution, you might need to perform all of
the tasks in the next sections. You will need to make decisions about these characteristics:
Which packets are assigned (by CoS value) to each queue?
How much of the available buffer space (limit) is allotted to each queue?
What drop percentage thresholds apply to each queue and which DSCP values map to each
threshold?
Is one of the queues the expedite (high-priority) egress queue?
How much of the available bandwidth is allotted to each queue?
This section contains this configuration information:
Mapping CoS Values to Select Egress Queues, page 20-45
Configuring the Egress Queue Size Ratios, page 20-46
Configuring Tail-Drop Threshold Percentages, page 20-47
Configuring WRED Drop Thresholds Percentages, page 20-48
Configuring the Egress Expedite Queue, page 20-50
Allocating Bandwidth among Egress Queues, page 20-50
20-45
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Mapping CoS Values to Select Egress Queues
Beginning in privileged EXEC mode, follow these steps to map CoS ingress values to select one of the
egress queues:
To return the default CoS-to-egress-queue map, use the no wrr-queue cos-map [queue-id] interface
configuration command.
This example shows how to map CoS values 6 and 7 to queue 1, 4 and 5 to queue 2, 2 and 3 to queue 3,
0 and 1 to queue 4.
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# wrr-queue cos-map 1 6 7
Switch(config-if)# wrr-queue cos-map 2 4 5
Switch(config-if)# wrr-queue cos-map 3 2 3
Switch(config-if)# wrr-queue cos-map 4 0 1
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress
Gigabit-capable Ethernet interface.
Step4 wrr-queue cos-map queue-id cos1 ... cos8 Map assigned CoS values to select one of the egress queues.
The default map has these values:
CoS value 0, 1 selects queue 1.
CoS value 2, 3 selects queue 2.
CoS value 4, 5 selects queue 3.
CoS value 6, 7 selects queue 4.
For queue-id, specify the ID of the egress queue. The range is 1 to
4, where 4 can be configured as the expedite queue. For more
information, see the Configuring the Egress Expedite Queue
section on page 20-50.
For cos1 ... cos8, specify the CoS values that select a queue. Enter
up to eight CoS values. Separate each value with a space. The
range is 0 to 7.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface queueing Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-46
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the Egress Queue Size Ratios
Beginning in privileged EXEC mode, follow these steps to configure the egress queue size ratios:
To return to the default weights, use the no wrr-queue queue-limit interface configuration command.
This example shows how to configure the size ratio of the four queues. The ratio of the size allocated
for each queue is 1/10, 2/10, 3/10, and 4/10 to queue 1, 2, 3, and 4. (Queue 4 is four times larger than
queue 1, twice as large as queue 2, and 1.33 times as large as queue 3.)
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# wrr-queue queue-limit 1 2 3 4
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress
Gigabit-capable Ethernet interface.
Step4 wrr-queue queue-limit weight1 weight2
weight3 weight4
Configure the egress queue size ratios.
The defaults weights are 25 (1/4 of the buffer size is allocated to each
queue).
For weight1, weight2, weight3, and weight4, specify a weight from 1
to 100. Separate each value with a space.
The relative size difference in the numbers indicates the relative
differences in the queue sizes.
The port enters a halt mode when this command is issued.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface buffers Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-47
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring Tail-Drop Threshold Percentages
Tail drop is the default congestion-avoidance technique on Gigabit-capable Ethernet ports. With tail
drop, packets are queued until the thresholds are exceeded. For example, all packets with DSCPs
assigned to the first threshold are dropped until the threshold is no longer exceeded. However, packets
assigned to a second threshold continue to be queued and sent as long as the second threshold is not
exceeded.
You modify the DSCP-to-threshold map to determine which DSCPs are mapped to which threshold ID
by using the wrr-queue dscp-map interface configuration command. By default, all DSCPs are mapped
to threshold 1, and when this threshold is exceeded, all the packets are dropped.
If you use tail-drop thresholds, you cannot use WRED, and vice versa.
Beginning in privileged EXEC mode, follow these steps to configure the tail-drop threshold percentage
values on Gigabit-capable Ethernet ports:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress
Gigabit-capable Ethernet interface.
Step4 wrr-queue threshold queue-id
threshold-percentage1
threshold-percentage2
Configure tail-drop threshold percentages on each egress queue.
The default threshold is 100 percent for thresholds 1 and 2.
For queue-id, specify the ID of the egress queue. The range is 1
to 4.
For threshold-percentage1 threshold-percentage2, specify the
tail-drop threshold percentage values. Separate each value with a
space. The range is 1 to 100.
Step5 exit Return to global configuration mode.
Step6 interface interface-id Enter interface configuration mode, and specify the ingress
Gigabit-capable Ethernet interface.
Step7 wrr-queue dscp-map threshold-id dscp1
... dscp8
Map DSCP values to the tail-drop thresholds of the egress queues.
By default, all DSCP values are mapped to threshold 1.
For threshold-id, specify the threshold ID of the queue. The range
is 1 to 2.
For dscp1 ... dscp8, specify the DSCP values that are mapped to the
threshold ID. Enter up to eight DSCP values per command.
Separate each value with a space. The range is 0 to 63.
Step8 end Return to privileged EXEC mode.
Step9 show running-config
or
show mls qos interface interface-id
queueing
Verify the DSCP-to-threshold map.
Step10 show mls qos interface buffers Verify the thresholds.
Step11 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-48
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To return to the default thresholds, use the no wrr-queue threshold queue-id interface configuration
command. To return to the default DSCP-to-threshold map, use the no wrr-queue dscp-map
[threshold-id] interface configuration command.
This example shows how to configure the tail-drop queue threshold values for queue 1 to 10 percent
and 100 percent, for queue 2 to 40 percent and 100 percent, for queue 3 to 60 percent and 100 percent,
and for queue 4 to 80 percent and 100 percent on the egress interface (Gigabit Ethernet 0/1). The ingress
interface (Gigabit Ethernet 0/2) is configured to trust the DSCP in the incoming packets, to map
DSCPs 0, 8, 16, 24, 32, 40, 48, and 56 to threshold 1, and to map DSCPs 10, 20, 30, 40, 50, and 60 to
threshold 2:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# wrr-queue threshold 1 10 100
Switch(config-if)# wrr-queue threshold 2 40 100
Switch(config-if)# wrr-queue threshold 3 60 100
Switch(config-if)# wrr-queue threshold 4 80 100
Switch(config-if)# exit
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# mls qos trust dscp
Switch(config-if)# wrr-queue dscp-map 1 0 8 16 24 32 40 48 56
Switch(config-if)# wrr-queue dscp-map 2 10 20 30 40 50 60
As a result of this configuration, when queue 1 is filled above 10 percent, packets with DSCPs 0, 8, 16,
24, 32, 40, 48, and 56 are dropped. The same packets are dropped when queue 2 is filled above 40
percent, queue 3 above 60 percent, and queue 4 above 80 percent. When the second threshold (100
percent) is exceeded, all queues drop packets with DSCPs 10, 20, 30, 40, 50, and 60.
Configuring WRED Drop Thresholds Percentages
WRED reduces the chances of tail drop by selectively dropping packets when the output interface begins
to show signs of congestion. By dropping some packets early rather than waiting until the queue is full,
WRED avoids dropping large numbers of packets at once.
All packets with DSCPs assigned to the first threshold are randomly dropped when the first threshold is
exceeded. However, packets with DSCPs assigned to the second threshold continue to be queued and
sent as long as the second threshold is not exceeded. Each threshold percentage represents where WRED
starts to randomly drop packets. By default, WRED is disabled.
Beginning in privileged EXEC mode, follow these steps to configure the WRED drop threshold
percentage values on Gigabit-capable Ethernet ports:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress
Gigabit-capable Ethernet interface.
20-49
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To disable WRED, use the no wrr random-detect max-threshold [queue-id] interface configuration
command. To return to the default DSCP-to-threshold map, use the no wrr-queue dscp-map
[threshold-id] interface configuration command.
This example shows how to configure the WRED queue threshold values for queue 1 to 50 percent
and 100 percent, for queue 2 to 70 percent and 100 percent, for queue 3 to 50 percent and 100 percent,
and for queue 4 to 70 percent and 100 percent on the egress interface (Gigabit Ethernet 0/1). The ingress
interface (Gigabit Ethernet 0/2) is configured to trust the DSCP in the incoming packets, to map DSCPs
0, 8, 16, 24, 32, 40, 48, and 56 to threshold 1, and to map DSCPs 10, 20, 30, 40, 50, and 60 to threshold 2.
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# wrr-queue random-detect max-threshold 1 50 100
Switch(config-if)# wrr-queue random-detect max-threshold 2 70 100
Switch(config-if)# wrr-queue random-detect max-threshold 3 50 100
Switch(config-if)# wrr-queue random-detect max-threshold 4 70 100
Switch(config-if)# exit
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# mls qos trust dscp
Switch(config-if)# wrr-queue dscp-map 1 0 8 16 24 32 40 48 56
Switch(config-if)# wrr-queue dscp-map 2 10 20 30 40 50 60
As a result of this configuration, when the queues 1 and 3 are filled above 50 percent, packets with
DSCPs 0, 8, 16, 24, 32, 40, 48, and 56 are randomly dropped. The same packets are randomly dropped
when queues 2 and 4 are filled above 70 percent. When the second threshold (100 percent) is exceeded,
all queues randomly drop packets with DSCPs 10, 20, 30, 40, 50, and 60.
Step4 wrr-queue random-detect
max-threshold queue-id
threshold-percentage1
threshold-percentage2
Configure WRED drop threshold percentages on each egress queue.
The default, WRED is disabled, and no thresholds are configured.
For queue-id, specify the ID of the egress queue. The range is 1
to 4, where queue 4 can be configured as the expedite queue. For
more information, see the Configuring the Egress Expedite
Queue section on page 20-50.
For threshold-percentage1 threshold-percentage2, specify the
threshold percentage values. Separate each value with a space. The
range is 1 to 100.
Step5 exit Return to global configuration mode.
Step6 interface interface-id Enter interface configuration mode, and specify the ingress
Gigabit-capable Ethernet interface.
Step7 wrr-queue dscp-map threshold-id dscp1
... dscp8
Map DSCP values to the WRED drop thresholds of the egress queues.
By default, all DSCP values are mapped to threshold 1.
For threshold-id, specify the threshold ID of the queue. The range
is 1 to 2.
For dscp1 ... dscp8, specify the DSCP values that are mapped to the
threshold ID. Enter up to eight DSCP values per command.
Separate each value with a space. The range is 0 to 63.
Step8 show running-config Verify the DSCP-to-threshold map.
Step9 show mls qos interface buffers Verify the thresholds.
Step10 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-50
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the Egress Expedite Queue
You can ensure that certain packets have priority over all others by queuing them in the egress expedite
queue. This queue is serviced until it is empty and before the other queues are serviced.
Beginning in privileged EXEC mode, follow these steps to enable the egress expedite queue:
To disable the egress expedite queue, use the no priority-queue out interface configuration command.
Allocating Bandwidth among Egress Queues
You need to specify how much of the available bandwidth is allocated to each queue. The ratio of the
weights is the ratio of frequency in which the WRR scheduler drops packets from each queue.
Beginning in privileged EXEC mode, follow these steps to allocate bandwidth to each queue:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress
Gigabit-capable Ethernet interface.
Step4 priority-queue out Enable the egress expedite queue, which is disabled by default.
When you configure this command, the WRR weight and queue size
ratios are affected because there is one fewer queue participating in
WRR. This means that weight4 in the wrr-queue bandwidth command
is ignored (not used in the ratio calculation).
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress
Gigabit-capable Ethernet interface.
20-51
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To return to the default bandwidth setting, use the no wrr-queue bandwidth interface configuration
command.
This example shows how to configure the weight ratio of the WRR scheduler running on the egress
queues. In this example, four queues are used (no expedite queue), and the ratio of the bandwidth
allocated for each queue is 1/(1+2+3+4), 2/(1+2+3+4), 3/(1+2+3+4), and 4/(1+2+3+4), which is 1/10,
1/5, 3/10, and 2/5 for queues 1, 2, 3, and 4.
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# wrr-queue bandwidth 1 2 3 4
Configuring Egress Queues on 10/100 Ethernet Ports
This section describes how to configure the egress queues on 10/100 Ethernet ports. For information on
configuring Gigabit-capable Ethernet ports, see the Configuring Egress Queues on Gigabit-Capable
Ethernet Ports section on page 20-44.
Depending on the complexity of your network and your QoS solution, you might need to perform all of
the tasks in the next sections. You will need to make decisions about these characteristics:
Which packets are assigned (by CoS value) to each queue?
How much of the available buffer space is allotted to each queue?
Is one of the queues the expedite (high-priority) egress queue?
How much of the available bandwidth is allotted to each queue?
Step4 wrr-queue bandwidth weight1 weight2
weight3 weight4
Assign WRR weights to the egress queues.
By default, all the weights are set to 25 (1/4 of the bandwidth is allocated
to each queue).
For weight1 weight2 weight3 weight4, enter the ratio, which determines
the ratio of the frequency in which the WRR scheduler drops packets.
Separate each value with a space. The range is 0 to 65536.
All four queues participate in the WRR unless the expedite queue
(queue 4) is enabled, in which case weight4 is ignored (not used in the
ratio calculation). The expedite queue is a strict-priority queue, and it
is serviced until empty before the other queues are serviced.
A weight of 0 means no bandwidth is allocated for that queue, and the
available bandwidth is shared among the remaining queues.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface queueing Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-52
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
This section contains this configuration information:
Mapping CoS Values to Select Egress Queues, page 20-52
Configuring the Minimum-Reserve Levels, page 20-53
Configuring the Egress Expedite Queue, page 20-54
Allocating Bandwidth among Egress Queues, page 20-54
Mapping CoS Values to Select Egress Queues
Beginning in privileged EXEC mode, follow these steps to map CoS ingress values to select one of the
egress queues:
To return to the default CoS-to-egress-queue map, use the no wrr-queue cos-map [queue-id] interface
configuration command.
This example shows how to map CoS values 6 and 7 to queue 1, 4 and 5 to queue 2, 2 and 3 to queue 3,
and 0 and 1 to queue 4.
Switch(config)# interface fastethernet0/1
Switch(config-if)# wrr-queue cos-map 1 6 7
Switch(config-if)# wrr-queue cos-map 2 4 5
Switch(config-if)# wrr-queue cos-map 3 2 3
Switch(config-if)# wrr-queue cos-map 4 0 1
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress 10/100
Ethernet interface.
Step4 wrr-queue cos-map queue-id cos1 ... cos8 Map assigned CoS values to select one of the egress queues.
Theses are the default map values:
CoS value 0, 1 selects queue 1.
CoS value 2, 3 selects queue 2.
CoS value 4, 5 selects queue 3.
CoS value 6, 7 selects queue 4.
For queue-id, specify the ID of the egress queue. The range is 1
to 4, where 4 can be configured as the expedite queue. For more
information, see the Configuring the Egress Expedite Queue
section on page 20-54.
For cos1 ... cos8, specify the CoS values that select a queue. Enter
up to eight CoS values. Separate each value with a space. The
range is 0 to 7.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface queueing Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-53
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the Minimum-Reserve Levels
You can configure the buffer size of the minimum-reserve levels on all 10/100 ports and assign the
minimum-reserve level to an egress queue on a 10/100 Ethernet port.
Beginning in privileged EXEC mode, follow these steps to configure the egress queue sizes:
To return to the default minimum-reserve buffer size, use the no mls qos min-reserve min-reserve-level
global configuration command. To return to the default queue selection of the minimum-reserve level,
use the no wrr-queue min-reserve queue-id interface configuration command.
This example shows how to configure minimum-reserve level 5 to 20 packets and to assign
minimum-reserve level 5 to egress queue 1 on the Fast Ethernet 0/1 interface 0/1:
Switch(config)# mls qos min-reserve 5 20
Switch(config)# interface fastethernet0/1
Switch(config-if)# wrr-queue min-reserve 1 5
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 mls qos min-reserve min-reserve-level
min-reserve-buffersize
Configure the buffer size of the minimum-reserve level, if necessary,
for all the 10/100 Ethernet ports.
By default, the buffer size for all eight minimum-reserve levels is set
to 100 packets.
For min-reserve-level, specify the minimum-reserve level number.
The range is 1 to 8.
For min-reserve-buffersize, specify the buffer size. The range is 10
to 170 packets.
Step4 interface interface-id Enter interface configuration mode, and specify the egress 10/100
Ethernet interface.
Step5 wrr-queue min-reserve queue-id
min-reserve-level
Assign a minimum-reserve level number to a particular egress queue.
By default, queue 1 selects minimum-reserve level 1, queue 2 selects
minimum-reserve level 2, queue 3 selects minimum-reserve level 3,
and queue 4 selects minimum-reserve level 4.
For queue-id, specify the ID of the egress queue. The range is 1
to 4, where 4 can be configured as the expedite queue. For more
information, see the Configuring the Egress Expedite Queue
section on page 20-54.
For min-reserve-level, specify the minimum-reserve level
configured in Step 3.
Step6 end Return to privileged EXEC mode.
Step7 show mls qos interface buffers Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
20-54
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
Configuring the Egress Expedite Queue
You can ensure that certain packets have priority over all others by queuing them in the egress expedite
queue. This queue is serviced until it is empty and before the other queues are serviced.
Beginning in privileged EXEC mode, follow these steps to enable the egress expedite queue:
To disable the egress expedite queue, use the no priority-queue out interface configuration command.
Allocating Bandwidth among Egress Queues
You need to specify how much of the available bandwidth is allocated to each queue. The ratio of the
weights is the ratio of frequency in which the WRR scheduler drops packets from each queue.
Beginning in privileged EXEC mode, follow these steps to allocate bandwidth to each queue:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress 10/100
Ethernet interface.
Step4 priority-queue out Enable the egress expedite queue, which is disabled by default.
When you configure this command, the WRR weight is affected
because there is one fewer queue participating in WRR. This means that
weight4 in the wrr-queue bandwidth command is ignored (not used in
the ratio calculation).
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface interface-id Enter interface configuration mode, and specify the egress 10/100
Ethernet interface.
20-55
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Configuring QoS
To return to the default bandwidth setting, use the no wrr-queue bandwidth interface configuration
command.
This example shows how to configure the weight ratio of the WRR scheduler running on the egress
queues. In this example, four queues are used (no expedite queue), and the ratio of the bandwidth
allocated for each queue is 1/(1+2+3+4), 2/(1+2+3+4), 3/(1+2+3+4), and 4/(1+2+3+4), which is 1/10,
2/10, 3/10, and 4/10 for queues 1, 2, 3, and 4.
Switch(config)# interface fastethernet0/1
Switch(config-if)# wrr-queue bandwidth 1 2 3 4
Step4 wrr-queue bandwidth weight1 weight2
weight3 weight4
Assign WRR weights to the egress queues.
By default, all the weights are set to 25 (1/4 of the bandwidth is allocated
to each queue).
For weight1 weight2 weight3 weight4, enter the ratio, which determines
the ratio of the frequency in which the WRR scheduler drops packets.
Separate each value with a space. The range is 0 to 65536.
All four queues participate in the WRR unless the expedite queue
(queue 4) is enabled, in which case weight4 is ignored (not used in the
ratio calculation). The expedite queue is a strict-priority queue, and it
is serviced until empty before the other queues are serviced.
A weight of 0 means no bandwidth is allocated for that queue, and the
available bandwidth is shared among the remaining queues.
Step5 end Return to privileged EXEC mode.
Step6 show mls qos interface queueing Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-56
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
Displaying QoS Information
Displaying QoS Information
To display the current QoS information, use one or more of the privileged EXEC commands in
Table 20-6:
QoS Configuration Examples
This section provides a QoS migration path to help you quickly implement QoS features based on your
existing network and planned changes to your network, as shown in Figure 20-10. It contains this
information:
QoS Configuration for the Common Wiring Closet, page 20-57
QoS Configuration for the Intelligent Wiring Closet, page 20-58
QoS Configuration for the Distribution Layer, page 20-59
Table20-6 Commands for Displaying QoS Information
Command Purpose
show class-map [class-map-name] Display QoS class maps, which define the match criteria to
classify traffic.
show policy-map [policy-map-name [class class-name] |
[interface interface-id]
Display QoS policy maps, which define classification criteria for
incoming traffic.
show mls qos aggregate-policer
[aggregate-policer-name]
Display the aggregate policer configuration.
show mls qos maps [cos-dscp | dscp-cos | dscp-mutation
| ip-prec-dscp | policed-dscp]
Display QoS mapping information. Maps are used to generate an
internal DSCP value, which represents the priority of the traffic.
show mls qos interface [interface-id] [buffers | policers |
queueing | statistics]
Display QoS information at the interface level, including the
configuration of the egress queues and the CoS-to-egress-queue
map, which interfaces have configured policers, and ingress and
egress statistics (including the number of bytes dropped).
1
1. You can define up to 16 DSCP values for which byte or packet statistics are gathered by hardware by using the mls qos monitor {bytes | dscp dscp1 ...
dscp8 | packets} interface configuration command and the show mls qos interface statistics privileged EXEC command.
20-57
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
QoS Configuration Examples
Figure20-10QoS Configuration Example Network
QoS Configuration for the Common Wiring Closet
The common wiring closet in Figure 20-10 consists of existing Catalyst 3500 XL and 2900 XL switches.
These switches are running IOS release 12.0(5)XP or later, which supports the QoS-based IEEE 802.1P
CoS values. QoS classifies frames by assigning priority-indexed CoS values to them and gives
preference to higher-priority traffic.
Recall that on the Catalyst 3500 XL and 2900 XL switches, you can classify untagged (native) Ethernet
frames at the ingress ports by setting a default CoS priority (switchport priority default
default-priority-id interface configuration command) for each port. For ISL or IEEE 802.1Q frames with
tag information, the priority value from the header frame is used. On the Catalyst 3524-PWR XL
and 3548 XL switches, you can override this priority with the default value by using the switchport
priority default override interface configuration command. For Catalyst 3500 XL, 2950, other 2900
XL models that do not have the override feature, the Catalyst 3550-12T switch at the distribution layer
can override the 802.1P CoS value by using the mls qos cos override interface configuration command.
Cisco router
Existing wiring closet
Catalyst 2900 and 3500 XL
switches
Intelligent wiring closet
Catalyst 3550 switches
To Internet
Catalyst 3550-12G switch
Gigabit Ethernet 0/5
Gigabit Ethernet 0/2
Gigabit
Ethernet
0/2
Gigabit
Ethernet
0/1
Trunk
link
Gigabit Ethernet 0/1
Trunk
link
End
stations
Video server
172.20.10.16
5
1
2
9
0
20-58
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
QoS Configuration Examples
For the Catalyst 3500 XL and 2900 XL switches, CoS configures each egress port with a normal-priority
transmit queue and a high-priority transmit queue, depending on the frame tag or the port information.
Frames in the normal-priority queue are forwarded only after frames in the high-priority queue are
forwarded. Frames that have 802.1P CoS values of 0 to 3 are placed in the normal-priority transmit
queue whereas frames with CoS values of 4 to 7 are placed in the expedite (high-priority) queue.
QoS Configuration for the Intelligent Wiring Closet
The intelligent wiring closet in Figure 20-10 is composed of Catalyst 3550 multilayer switches. One of
the switches is connected to a video server, which has an IP address of 172.20.10.16.
The object of this example is to prioritize the video traffic over all other traffic. To do so, a DSCP of 56
is assigned to the video traffic. This traffic is stored in the expedite queue (queue 4), which is serviced
until empty before the other queues are serviced. The appropriate CoS value selects queue 4 in the
CoS-to-egress-queue map.
Beginning in privileged EXEC mode, follow these steps to configure the switch to prioritize video
packets over all other traffic:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list 1 permit 172.20.10.16 Define an IP standard ACL, and permit traffic from the video
server at 172.20.10.16.
Step3 class-map videoclass Create a class map called videoclass, and enter class-map
configuration mode.
Step4 match access-group 1 Define the match criterion by matching the traffic specified by
access list 1.
Step5 exit Return to global configuration mode.
Step6 policy-map videopolicy Create a policy map called videopolicy, and enter policy-map
configuration mode.
Step7 class videoclass Specify the class on which to act, and enter policy-map class
configuration mode.
Step8 set ip dscp 56 For traffic matching ACL 1, set the DSCP of incoming packets
to 56.
Step9 police 5000000 2000000 exceed-action drop Define a policer for the classified video traffic to drop traffic that
exceeds 5-Mbps average traffic rate with a 2-MB burst size.
Step10 exit Return to policy-map configuration mode.
Step11 exit Return to global configuration mode.
Step12 interface gigabitethernet0/1 Enter interface configuration mode, and specify the ingress
interface.
Step13 service-policy input videopolicy Apply the policy to the ingress interface.
Step14 exit Return to global configuration mode.
Step15 interface gigabitethernet0/2 Enter interface configuration mode, and specify the egress
interface (to configure the queues).
Step16 priority-queue out Enable the expedite queue.
20-59
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
QoS Configuration Examples
QoS Configuration for the Distribution Layer
This example focuses on the configuration steps for the Catalyst 3550-12G multilayer switch at the
distribution layer (see Figure 20-10). Because the classification was performed by the switches at the
edge of the network, fewer classification steps are needed at the distribution layer switch.
For the connection to the common wiring closet, Gigabit Ethernet interface 0/1 on the multilayer switch
is configured to trust the received CoS value. In this situation, the default CoS-to-DSCP map on the
multilayer switch is sufficient. For information on the default map settings, see the Configuring the
CoS-to-DSCP Map section on page 20-39.
For the connection to the intelligent wiring closet, Gigabit Ethernet interface 0/2 on the multilayer
switch is configured to trust the received DSCP value. The DSCP-to-threshold map also needs to be
configured on this ingress interface so that on the egress interface, WRED can provide congestion
avoidance control. By default, all DSCP values are mapped to threshold 1.
You need to configure several of the switch maps from their default settings. The object of the
configuration is to have only DSCP value 56 sent to the expedite queue (queue 4). The default
CoS-to-egress-queue map is sufficient; however, you need to configure the DSCP-to-CoS map so that
DSCP values 57 to 63 map to CoS 5.
For the egress interface, Gigabit Ethernet interface 0/5, WRR weights need to be configured by using
the wrr-queue bandwidth interface configuration command. WRED needs to be enabled and the
threshold percentages configured for each queue. The bandwidth allocated to each queue must be
configured to determine the ratio of the frequency at which packets are dropped from the queue.
Beginning in privileged EXEC mode, follow these steps to configure the multilayer switch at the
distribution layer:
Step17 wrr-queue cos-map 4 6 7 Configure the CoS-to-egress-queue map so that CoS values 6
and 7 select queue 4 (this is the default setting).
Because the default DSCP-to-CoS map has DSCP values 56 to 63
mapped to CoS value 7, the matched traffic that is set to DSCP 56
goes to the queue 4, the priority queue.
Step18 end Return to privileged EXEC mode.
Step19 show class-map videoclass
show policy-map videopolicy
show mls qos maps [cos-dscp | dscp-cos]
show mls qos interface queueing
Verify your entries.
Step20 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos Enable QoS on the switch.
Step3 interface gigabitethernet0/1 Enter interface configuration mode, and specify the ingress interface that
is connected to the common wiring closet.
Step4 mls qos trust cos Classify incoming packets on this port by using the packet CoS value.
20-60
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
QoS Configuration Examples
Step5 switchport mode trunk Configure this port as a trunk port.
Step6 exit Return to global configuration mode.
Step7 interface gigabitethernet0/2 Enter interface configuration mode, and specify the ingress interface
connected to the intelligent wiring closet.
Step8 mls qos trust dscp Classify incoming packets on this port by using the packet DSCP value.
Step9 wrr-queue dscp-map threshold-id
dscp1 ... dscp8
Map the ingress DSCP values to the WRED thresholds of the egress
queues.
In the default DSCP-to-threshold map, all DSCP values are mapped to
threshold 1.
For threshold-id, specify the threshold ID of the queue. The range is
1 to 2.
For dscp1 ... dscp8, specify the DSCP values that are mapped to a
threshold ID. Enter up to eight DSCP values per command. Separate
each value with a space. The DSCP range is 0 to 63.
Step10 switchport mode trunk Configure this port as a trunk port.
Step11 exit Return to global configuration mode.
Step12 mls qos map dscp-cos dscp-list to cos Modify the DSCP-to-CoS map. You can enter up to eight DSCP values
separated by spaces in the DSCP-to-CoS map.
For example, to map DSCP values 57 to 63 to CoS 5, enter:
mls qos map dscp-cos 57 58 59 60 61 62 63 to 5
Step13 interface gigabitethernet0/5 Enter interface configuration mode, and specify the egress interface to
configure.
Step14 priority-queue out Enable the expedite queue.
Step15 wrr-queue bandwidth weight1 weight2
weight3 weight4
Configure WRR weights to the egress queues to determine the ratio of the
frequency at which packets are dropped. Separate each value with a space.
The weight range is 0 to 65536.
In this example, to configure the weights so that queue 4 is serviced more
frequently than the other queues, enter:
wrr-queue bandwidth 1 2 3 4
Because the expedite queue is enabled, only the first three weights are
used in the ratio calculation.
Step16 wrr-queue random-detect
max-threshold queue-id
threshold-percentage1
threshold-percentage2
Enable WRED and assign two WRED threshold values to an egress queue
of a Gigabit-capable Ethernet port.
For queue-id, the range is 1 to 4.
For threshold-percentage1 threshold-percentage2, the range is 1 to
100 percent.
In this example, to configure the thresholds, enter:
wrr-queue random-detect max-threshold 1 20 100
wrr-queue random-detect max-threshold 2 40 100
wrr-queue random-detect max-threshold 3 60 100
wrr-queue random-detect max-threshold 4 80 100
Command Purpose
20-61
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
QoS Configuration Examples
Step17 end Return to privileged EXEC mode.
Step18 show mls qos interface
and
show interfaces
Verify your entries.
Step19 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
20-62
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter20 Configuring QoS
QoS Configuration Examples
C H A P T E R
21-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
21
Configuring EtherChannel
This chapter describes how to configure EtherChannel on Layer 2 and Layer 3 interfaces. To configure
Layer 3 interfaces, you must have the enhanced multilayer software image (EMI) installed on your
switch. All Catalyst 3550 Gigabit Ethernet switches ship with the EMI installed. Catalyst 3550 Fast
Ethernet switches can be shipped with either the standard multilayer software image (SMI) or EMI
pre-installed. You can order the Enhanced Multilayer Software Image Upgrade kit to upgrade
Catalyst 3550 Fast Ethernet switches from the SMI to the EMI.
Note For complete syntax and usage information for the commands used in this chapter, refer to the
Catalyst 3550 Multilayer Switch Command Reference for this release.
This chapter consists of these sections:
Understanding Port-Channel Interfaces, page 21-2
Configuring EtherChannel, page 21-7
Displaying EtherChannel and PAgP Status, page 21-16
Understanding EtherChannel
EtherChannel consists of individual Fast Ethernet or Gigabit Ethernet links bundled into a single logical
link as shown in Figure 21-1. The EtherChannel provides full-duplex bandwidth up to 800 Mbps (Fast
EtherChannel) or 8 Gbps (Gigabit EtherChannel) between your switch and another switch or host.
Each EtherChannel can consist of up to eight compatibly configured Ethernet interfaces. All interfaces
in each EtherChannel must be the same speed, and all must be configured as either Layer 2 or Layer 3
interfaces.
Note The network device to which your switch is connected can impose its own limits on the number of
interfaces in the EtherChannel. For Catalyst 3550 switches, the number of EtherChannels is limited
to the number of ports of the same type.
If a link within an EtherChannel fails, traffic previously carried over that failed link changes to the
remaining links within the EtherChannel. A trap is sent for a failure, identifying the switch, the
EtherChannel, and the failed link. Inbound broadcast and multicast packets on one link in an
EtherChannel are blocked from returning on any other link of the EtherChannel.
21-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Understanding EtherChannel
Figure21-1 Typical EtherChannel Configuration
Understanding Port-Channel Interfaces
You create an EtherChannel for Layer 2 interfaces differently from Layer 3 interfaces. Both
configurations involve logical interfaces.
With Layer 3 interfaces, you manually create the logical interface by using the interface
port-channel global configuration command.
With Layer 2 interfaces, the logical interface is dynamically created.
With both Layer 3 and 2 interfaces, you manually assign an interface to the EtherChannel by using
the channel-group interface configuration command. This command binds the physical and logical
ports together as shown in Figure 21-2.
Each EtherChannel has a logical port-channel interface numbered from 1 to 64. The channel groups are
also numbered from 1 to 64.
Catalyst 8500, 6000,
5500, or 4000
series switch
Catalyst 3550-12T
switch
Gigabit EtherChannel
Catalyst 3550-12T
switch
Workstations
10/100
Switched
links
4
3
2
6
7
Catalyst 3550-12T
switch
Workstations
10/100
Switched
links
1000BASE-X 1000BASE-X
21-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Understanding EtherChannel
Figure21-2 Relationship of Physical Ports, Logical Port Channels, and Channel Groups
After you configure an EtherChannel, configuration changes applied to the port-channel interface apply
to all the physical interfaces assigned to the port-channel interface. Configuration changes applied to the
physical interface affect only the interface where you apply the configuration. To change the parameters
of all ports in an EtherChannel, apply configuration commands to the port-channel interface, for
example, Spanning Tree Protocol (STP) commands or commands to configure a Layer 2 EtherChannel
as a trunk.
Understanding the Port Aggregation Protocol
The Port Aggregation Protocol (PAgP) facilitates the automatic creation of EtherChannels by
exchanging packets between Ethernet interfaces. By using PAgP, the switch learns the identity of
partners capable of supporting PAgP and learns the capabilities of each interface. It then dynamically
groups similarly configured interfaces into a single logical link (channel or aggregate port); these
interfaces are grouped based on hardware, administrative, and port parameter constraints. For example,
PAgP groups the interfaces with the same speed, duplex mode, native VLAN, VLAN range, and trunking
status and type. After grouping the links into an EtherChannel, PAgP adds the group to the spanning tree
as a single switch port.
MODE
SYSTEM
RPS
STATUS
UTIL
DUPLX SPEED
2
1
1
Catalyst 3550
2
3
4
5
6
7
8
9
10
Logical
port-channel
Channel-group
binding
Logical
port-channel
4
5
1
4
4
10/100/1000 ports
Physical
ports
GBIC module slots
21-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Understanding EtherChannel
PAgP Modes
Table 21-1 shows the user-configurable EtherChannel modes for the channel-group interface
configuration command: on, auto, and desirable. Switch interfaces exchange PAgP packets only with
partner interfaces configured in the auto or desirable modes; interfaces configured in the on mode do
not exchange PAgP packets.
Both the auto and desirable modes allow interfaces to negotiate with partner interfaces to determine if
they can form an EtherChannel based on criteria such as interface speed and, for Layer 2 EtherChannels,
trunking state and VLAN numbers.
Interfaces can form an EtherChannel when they are in different PAgP modes as long as the modes are
compatible. For example:
An interface in desirable mode can form an EtherChannel with another interface that is in desirable
or auto mode.
An interface in auto mode can form an EtherChannel with another interface in desirable mode.
An interface in auto mode cannot form an EtherChannel with another interface that is also in auto
mode because neither interface starts PAgP negotiation.
An interface in the on mode that is added to a port channel is forced to have the same characteristics as
the already existing on mode interfaces in the channel.
Caution You should exercise care when setting the mode to on (manual configuration). All ports configured
in the on mode are bundled in the same group and are forced to have similar characteristics. If the
group is misconfigured, packet loss or STP loops might occur.
If your switch is connected to a partner that is PAgP-capable, you can configure the switch interface for
nonsilent operation by using the non-silent keyword. If you do not specify non-silent with the auto or
desirable mode, silent mode is assumed.
The silent mode is used when the switch is connected to a device that is not PAgP-capable and seldom,
if ever, sends packets. An example of a silent partner is a file server or a packet analyzer that is not
generating traffic. In this case, running PAgP on a physical port connected to a silent partner prevents
that switch port from ever becoming operational; however, the silent setting allows PAgP to operate, to
attach the interface to a channel group, and to use the interface for transmission.
Table21-1 EtherChannel Modes
Mode Description
auto Places an interface into a passive negotiating state, in which the interface responds to PAgP
packets it receives but does not start PAgP packet negotiation. This setting minimizes the
transmission of PAgP packets and is the default.
desirable Places an interface into an active negotiating state, in which the interface starts
negotiations with other interfaces by sending PAgP packets.
on Forces the interface to channel without PAgP. With the on mode, a usable EtherChannel
exists only when an interface group in the on mode is connected to another interface group
in the on mode.
21-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Understanding EtherChannel
Physical Learners and Aggregate-Port Learners
Network devices are classified as PAgP physical learners or aggregate-port learners. A device is a
physical learner if it learns addresses by physical ports and directs transmissions based on that
knowledge. A device is an aggregate-port learner if it learns addresses by aggregate (logical) ports.
When a device and its partner are both aggregate-port learners, they learn the address on the logical
port-channel. The device sends packets to the source by using any of the interfaces in the EtherChannel.
With aggregate-port learning, it is not important on which physical port the packet arrives.
PAgP cannot automatically detect when the partner device is a physical learner and the local device is
an aggregate-port learner. Therefore, you must manually set the learning method on the local device or
source-based distribution by using the pagp learn-method interface configuration command. With
source-based distribution, any given source MAC address is always sent on the same physical port. You
can also configure a single interface within the group for all transmissions and use other interfaces for
hot standby. The unused interfaces in the group can be swapped into operation in just a few seconds if
the selected single interface loses hardware-signal detection. You can configure which interface is
always selected for packet transmission by changing its priority by using the pagp port-priority
interface configuration command. The higher the priority, the more likely that the port will be selected.
PAgP Interaction with Other Features
The Dynamic Trunking Protocol (DTP) and Cisco Discovery Protocol (CDP) send and receive packets
over the physical interfaces in the EtherChannel. Trunk ports send and receive PAgP protocol data units
(PDUs) on the lowest numbered VLAN.
STP sends packets over the first interface in the EtherChannel.
The MAC address of a Layer 3 EtherChannel is the MAC address of the first interface in the
port-channel.
PAgP sends and receives PAgP PDUs only from interfaces that are up and have PAgP enabled for the
auto or desirable mode.
Understanding Load Balancing and Forwarding Methods
EtherChannel balances the traffic load across the links in a channel by reducing part of the binary pattern
formed from the addresses in the frame to a numerical value that selects one of the links in the channel.
EtherChannel load balancing can use either source-MAC or destination-MAC address forwarding.
With source-MAC address forwarding, when packets are forwarded to an EtherChannel, they are
distributed across the ports in the channel based on the source-MAC address of the incoming packet.
Therefore, to provide load balancing, packets from different hosts use different ports in the channel, but
packets from the same host use the same port in the channel (and the MAC address learned by the switch
does not change).
When source-MAC address forwarding is used, load distribution based on the source and destination IP
address is also enabled for routed IP traffic. All routed IP traffic chooses a port based on the source and
destination IP address. Packets between two IP hosts always use the same port in the channel, and traffic
between any other pair of hosts can use a different port in the channel.
With destination-MAC address forwarding, when packets are forwarded to an EtherChannel, they are
distributed across the ports in the channel based on the destination hosts MAC address of the incoming
packet. Therefore, packets to the same destination are forwarded over the same port, and packets to a
different destination are sent on a different port in the channel. You configure the load balancing and
forwarding method by using the port-channel load-balance global configuration command.
21-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Understanding EtherChannel
In Figure 21-3, an EtherChannel of four workstations communicates with a router. Because the router is
a single-MAC-address device, source-based forwarding on the switch EtherChannel ensures that the
switch uses all available bandwidth to the router. The router is configured for destination-based
forwarding because the large number of workstations ensures that the traffic is evenly distributed from
the router EtherChannel.
Use the option that provides the greatest variety in your configuration. For example, if the traffic on a
channel is going only to a single MAC address, using the destination-MAC address always chooses the
same link in the channel; using source addresses or IP addresses might result in better load balancing.
Figure21-3 Load Distribution and Forwarding Methods
4
6
9
7
3
Cisco router
with destination-based
forwarding enabled
EtherChannel
Catalyst 3550 switch
with source-based
forwarding enabled
21-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
Configuring EtherChannel
This section describes these configurations for EtherChannel on Layer 2 and Layer 3 interfaces:
Default EtherChannel Configuration, page 21-7
EtherChannel Configuration Guidelines, page 21-8
Configuring Layer 2 EtherChannels, page 21-9
Configuring Layer 3 EtherChannels, page 21-11
Configuring EtherChannel Load Balancing, page 21-13
Configuring the PAgP Learn Method and Priority, page 21-14
Note Make sure that the interfaces are correctly configured (see the EtherChannel Configuration
Guidelines section on page 21-8).
Note After you configure an EtherChannel, configuration changes applied to the port-channel interface
apply to all the physical interfaces assigned to the port-channel interface, and configuration changes
applied to the physical interface affect only the interface where you apply the configuration.
Default EtherChannel Configuration
Table 21-2 shows the default EtherChannel configuration.
Table21-2 Default EtherChannel Configuration
Feature Default Setting
Channel groups None assigned.
Layer 3 port-channel logical interface None defined.
PAgP mode Auto and silent (The interface is in a passive negotiating
state; it responds to PAgP packets it receives but does not
start PAgP packet negotiation. PAgP is enabled only if a
PAgP device is detected.)
PAgP learn method Aggregate-port learning on all interfaces.
PAgP priority 128 on all interfaces.
Load balancing Load distribution on the switch is based on the
source-MAC address of the incoming packet. Load
distribution based on the source and destination IP
address is also enabled for routed IP traffic.
21-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
EtherChannel Configuration Guidelines
If improperly configured, some EtherChannel interfaces are automatically disabled to avoid network
loops and other problems. Follow these guidelines to avoid configuration problems:
Each EtherChannel can have up to eight compatibly configured Ethernet interfaces.
Note Do not configure a GigaStack GBIC port as part of an EtherChannel.
Configure all interfaces in an EtherChannel to operate at the same speeds and duplex modes.
Enable all interfaces in an EtherChannel. An interface in an EtherChannel disabled by using the
shutdown interface configuration command is treated as a link failure, and its traffic is transferred
to one of the remaining interfaces in the EtherChannel.
When a group is first created, all ports follow the parameters set for the first port to be added to the
group. If you change the configuration of one of these parameters, you must also make the changes
to all ports in the group:
Allowed-VLAN list
STP path cost for each VLAN
STP port priority for each VLAN
STP Port Fast setting
An EtherChannel does not form if one of the interfaces is a Switch Port Analyzer (SPAN) destination
port.
A port that belongs to an EtherChannel port group cannot be configured as a secure port.
Before enabling 802.1X on the port, you must first remove it from the EtherChannel. If you try to
enable 802.1X on an EtherChannel or on an active port in an EtherChannel, an error message
appears, and 802.1X is not enabled. If you enable 802.1X on a not-yet active port of an
EtherChannel, the port does not join the EtherChannel.
For Layer 2 EtherChannels:
Assign all interfaces in the EtherChannel to the same VLAN, or configure them as trunks.
Interfaces with different native VLANs cannot form an EtherChannel.
If you configure an EtherChannel from trunk interfaces, verify that the trunking mode (ISL or
802.1Q) is the same on all the trunks. Inconsistent trunk modes on EtherChannel interfaces can
have unexpected results.
An EtherChannel supports the same allowed range of VLANs on all the interfaces in a trunking
Layer 2 EtherChannel. If the allowed range of VLANs is not the same, the interfaces do not
form an EtherChannel even when PAgP is set to the auto or desirable mode.
Interfaces with different STP path costs can form an EtherChannel as long they are otherwise
compatibly configured. Setting different STP path costs does not, by itself, make interfaces
incompatible for the formation of an EtherChannel.
For Layer 3 EtherChannels, assign the Layer 3 address to the port-channel logical interface, not to
the physical interfaces in the channel.
21-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
Configuring Layer2 EtherChannels
You configure Layer 2 EtherChannels by configuring the Ethernet interfaces with the channel-group
interface configuration command, which creates the port-channel logical interface.
Note Layer 2 interfaces must be connected and functioning for IOS to create port-channel interfaces for
Layer 2 EtherChannels.
Beginning in privileged EXEC mode, follow these steps to assign a Layer 2 Ethernet interface to a
Layer 2 EtherChannel:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify a physical
interface to configure.
Valid interfaces include physical interfaces.
Up to eight interfaces of the same type and speed can be
configured for the same group.
Step3 switchport mode {access | trunk}
switchport access vlan vlan-id
Assign all interfaces as static-access ports in the same VLAN, or
configure them as trunks.
If you configure the interface as a static-access port, assign it to
only one VLAN. The range is 1 to 1005.
21-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
To remove an interface from the EtherChannel group, use the no channel-group interface configuration
command.
This example shows how to assign Gigabit Ethernet interfaces 0/4 and 0/5 as static-access ports in
VLAN 10 to channel 5 with PAgP mode desirable:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/4 -5
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode desirable
Switch(config-if-range)# end
Note For information about the range keyword, see the Configuring a Range of Interfaces section on
page 8-9.
Step4 channel-group channel-group-number mode
{auto [non-silent] | desirable [non-silent] | on}
Assign the interface to a channel group, and specify the PAgP
mode. The default mode is auto silent.
For channel-group-number, the range is 1 to 64. Each
EtherChannel can have of up to eight compatibly configured
Ethernet interfaces.
For mode, select one of these keywords:
autoEnables PAgP only if a PAgP device is detected. It
places an interface into a passive negotiating state, in which
the interface responds to PAgP packets it receives but does
not start PAgP packet negotiation.
desirableUnconditionally enables PAgP. It places an
interface into an active negotiating state, in which the
interface starts negotiations with other interfaces by sending
PAgP packets.
onForces the interface to channel without PAgP. With the
on mode, a usable EtherChannel exists only when an
interface group in the on mode is connected to another
interface group in the on mode.
non-silentIf your switch is connected to a partner that is
PAgP-capable, you can configure the switch interface for
nonsilent operation. You can configure an interface with the
non-silent keyword for use with the auto or desirable
mode. If you do not specify non-silent with the auto or
desirable mode, silent is assumed. The silent setting is for
connections to file servers or packet analyzers; this setting
allows PAgP to operate, to attach the interface to a channel
group, and to use the interface for transmission.
For information on compatible PAgP modes for the switch and its
partner, see the PAgP Modes section on page 21-4.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
21-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
Configuring Layer3 EtherChannels
To configure Layer 3 EtherChannels, you create the port-channel logical interface and then put the
Ethernet interfaces into the port-channel as described in the next two sections.
Creating Port-Channel Logical Interfaces
Note To move an IP address from a physical interface to an EtherChannel, you must delete the IP address
from the physical interface before configuring it on the port-channel interface.
Beginning in privileged EXEC mode, follow these steps to create a port-channel interface for a Layer 3
EtherChannel:
To remove the port-channel, use the no interface port-channel port-channel-number global
configuration command.
This example shows how to create the logical port channel (5) and assign 172.10.20.10 as its IP address:
Switch# configure terminal
Switch(config)# interface port-channel 5
Switch(config-if)# no switchport
Switch(config-if)# ip address 172.10.20.10 255.255.255.0
Switch(config-if)# end
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface port-channel port-channel-number Enter interface configuration mode, and create the
port-channel logical interface.
For port-channel-number, the range is 1 to 64.
Step3 no switchport Put the interface into Layer 3 mode.
You must have the EMI installed to use this command.
Step4 ip address ip-address mask Assign an IP address and subnet mask to the EtherChannel.
Step5 end Return to privileged EXEC mode.
Step6 show etherchannel channel-group-number detail Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Step8 Assign an Ethernet interface to the Layer 3 EtherChannel.
For more information, see the Configuring the Physical
Interfaces section on page 21-12.
21-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
Configuring the Physical Interfaces
Beginning in privileged EXEC mode, follow these steps to assign an Ethernet interface to a Layer 3
EtherChannel:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify a physical
interface to configure.
Valid interfaces include physical interfaces.
Up to eight interfaces of the same type and speed can be
configured for the same group.
Step3 no ip address Ensure that there is no IP address assigned to the physical
interface.
Step4 channel-group channel-group-number mode
{auto [non-silent] | desirable [non-silent] | on}
Assign the interface to a channel group, and specify the PAgP
mode (the default mode is auto silent).
For channel-group-number, the range is 1 to 64. This number
must be the same as the port-channel-number (logical port)
configured in the Creating Port-Channel Logical Interfaces
section on page 21-11.
Each EtherChannel can consist of up to eight compatibly
configured Ethernet interfaces.
For mode, select one of these keywords:
autoEnables PAgP only if a PAgP device is detected. It
places an interface into a passive negotiating state, in which
the interface responds to PAgP packets it receives but does
not start PAgP packet negotiation.
desirableUnconditionally enables PAgP. It places an
interface into an active negotiating state, in which the
interface starts negotiations with other interfaces by sending
PAgP packets.
onForces the interface to channel without PAgP. With the
on mode, a usable EtherChannel exists only when an
interface group in the on mode is connected to another
interface group in the on mode.
non-silentIf your switch is connected to a partner that is
PAgP capable, you can configure the switch interface for
nonsilent operation. You can configure an interface with the
non-silent keyword for use with the auto or desirable mode.
If you do not specify non-silent with the auto or desirable
mode, silent is assumed. The silent setting is for connections
to file servers or packet analyzers; this setting allows PAgP
to operate, to attach the interface to a channel group, and to
use the interface for transmission.
For information on compatible PAgP modes for the switch and its
partner, see the PAgP Modes section on page 21-4.
21-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
To remove an interface from the EtherChannel group, use the no channel-group interface configuration
command.
This example shows how to assign Gigabit Ethernet interfaces 0/4 and 0/5 to channel 5 with PAgP mode
desirable:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/4 -5
Switch(config-if-range)# no ip address
Switch(config-if-range)# channel-group 5 mode desirable
Switch(config-if-range)# end
Note For information about the range keyword, see the Configuring a Range of Interfaces section on
page 8-9.
Configuring EtherChannel Load Balancing
This section describes how to configure EtherChannel load balancing by using source-based or
destination-based forwarding methods. For more information, see the Understanding Load Balancing
and Forwarding Methods section on page 21-5.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
21-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
Beginning in privileged EXEC mode, follow these steps to configure EtherChannel load balancing:
To return EtherChannel load balancing to the default configuration, use the no port-channel
load-balance global configuration command.
Configuring the PAgP Learn Method and Priority
Network devices are classified as PAgP physical learners or aggregate-port learners. A device is a
physical learner if it learns addresses by physical ports and directs transmissions based on that
knowledge. A device is an aggregate-port learner if it learns addresses by aggregate ports.
For compatibility with Catalyst 1900 series switches, configure the PAgP learning method on the
Catalyst 3550 switches to learn source-MAC addresses on the physical port. The switch then sends
packets to the Catalyst 1900 switch using the same interface in the EtherChannel from which it learned
the source address.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 port-channel load-balance {dst-mac | src-mac} Configure an EtherChannel load-balancing method.
The default is src-mac.
Select one of these keywords to determine the load-distribution
method:
dst-macLoad distribution is based on the destination-host
MAC address of the incoming packet. Packets to the same
destination are sent on the same port, but packets to different
destinations are sent on different ports in the channel.
src-macLoad distribution is based on the source-MAC
address of the incoming packet. Packets from different hosts
use different ports in the channel, but packets from the same
host use the same port in the channel.
When src-mac is used, load distribution based on the source
and destination IP address is also enabled. For all IP traffic
being routed, the switch chooses a port for transmission
based on the source and destination IP address. Packets
between two IP hosts always use the same port for packet
transmission, but packets between any other pair of hosts
might use a different transmission port.
Step3 end Return to privileged EXEC mode.
Step4 show etherchannel load-balance Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
21-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Configuring EtherChannel
Note The Catalyst 3550 supports address learning only on aggregate ports even though the physical-port
keyword is provided in the CLI. The pagp learn-method command and the pagp port-priority
command have no effect on the switch hardware, but they are required for PAgP interoperability with
devices that only support address learning by physical ports, such as the Catalyst 1900 switch.
When the link partner to the Catalyst 3550 switch is a physical learner, we recommend that you
configure the switch as a physical-port learner by using the pagp learn-method physical-port
interface configuration command and to set the load-distribution method based on the source MAC
address by using the port-channel load-balance src-mac global configuration command. Use the
pagp learn-method command only in this situation.
Beginning in privileged EXEC mode, follow these steps to configure your switch as a PAgP
physical-port learner and to adjust the priority so that the same port in the bundle is selected for sending
packets:
To return the priority to its default setting, use the no pagp port-priority interface configuration
command. To return the learning method to its default setting, use the no pagp learn-method interface
configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface for
transmission.
Step3 pagp learn-method physical-port Select the PAgP learning method.
By default, aggregation-port learning is selected, which means
the switch sends packets to the source by using any of the
interfaces in the EtherChannel. With aggregate-port learning, it
is not important on which physical port the packet arrives.
Select physical-port to connect with another switch that is a
physical learner. Make sure to configure the port-channel
load-balance global configuration command to src-mac as
described in the Configuring EtherChannel Load Balancing
section on page 21-13.
The learning method must be configured the same at both ends
of the link.
Step4 pagp port-priority priority Assign a priority so that the selected interface is chosen for
packet transmission.
For priority, the range is 0 to 255. The default is 128. The higher
the priority, the more likely that the interface will be used for
PAgP transmission.
Step5 end Return to privileged EXEC mode.
Step6 show running-config
or
show pagp channel-group-number internal
Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
21-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter21 Configuring EtherChannel
Displaying EtherChannel and PAgP Status
Displaying EtherChannel and PAgP Status
You can use the privileged EXEC commands described in Table 21-3 to display EtherChannel and PAgP
status information:
For detailed information about the fields in the displays, refer to the Catalyst 3550 Multilayer Switch
Command Reference for this release.
Table21-3 Commands for Displaying EtherChannel and PAgP Status
Command Description
show etherchannel [channel-group-number] {brief |
detail | load-balance | port | port-channel | summary}
Displays EtherChannel information in a brief, detailed, and
one-line summary form. Also displays the load-balance or
frame-distribution scheme, port, and port-channel information.
show pagp [channel-group-number] {counters |
internal | neighbor}
1
1. You can clear PAgP channel-group information and traffic filters by using the clear pagp {channel-group-number | counters} privileged EXEC
command.
Displays PAgP information such as traffic information, the
internal PAgP configuration, and neighbor information.
C H A P T E R
22-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
22
Configuring IP Unicast Routing
This chapter describes how to configure IP unicast routing on your multilayer switch. To use this feature,
you must have the enhanced multilayer software image installed on your switch. All Catalyst 3550
Gigabit Ethernet switches ship with the enhanced multilayer software image (EMI) installed. Catalyst 3550
Fast Ethernet switches can be shipped with either the standard multilayer software image (SMI) or EMI
pre-installed. You can order the Enhanced Multilayer Software Image Upgrade kit to upgrade Catalyst 3550
Fast Ethernet switches from the SMI to the EMI.
Note For more detailed IP unicast configuration information, refer to the Cisco IOS IP and IP Routing
Configuration Guide for Release 12.1. For complete syntax and usage information for the commands
used in this chapter, refer to the Cisco IOS IP and IP Routing Command Reference for Release 12.1.
This chapter consists of these sections:
Understanding Routing, page 22-2
Steps for Configuring Routing, page 22-3
Configuring IP Addressing, page 22-4
Enabling IP Routing, page 22-24
Configuring RIP, page 22-25
Configuring IGRP, page 22-30
Configuring OSPF, page 22-35
Configuring EIGRP, page 22-46
Configuring Protocol-Independent Features, page 22-53
Monitoring and Maintaining the IP Network, page 22-64
Note When configuring routing parameters on the switch, to allocate system resources to maximize the
number of unicast routes allowed, you can use the sdm prefer routing global configuration
command to set the Switch Database Management feature to the routing template. For more
information on the SDM templates, see the Optimizing System Resources for User-Selected
Features section on page 6-57.
22-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Understanding Routing
Understanding Routing
Network devices in different VLANs cannot communicate with one another without a Layer 3 device
(router) to route traffic between the VLANs. Routers can perform routing in three different ways:
By using default routing
By using preprogrammed static routes for the traffic
By dynamically calculating routes by using a routing protocol
Default routing refers to sending traffic with a destination unknown to the router to a default outlet
or destination.
Static routing forwards packets from predetermined ports through a single path into and out of a network.
Static routing is secure and uses little bandwidth, but does not automatically respond to changes in the
network, such as link failures, and therefore, might result in unreachable destinations. As networks grow,
static routing becomes a labor-intensive liability.
Dynamic routing protocols are used by routers to dynamically calculate the best route for forwarding
traffic. There are two types of dynamic routing protocols:
Routers using distance-vector protocols maintain routing tables with distance values of networked
resources, and periodically pass these tables to their neighbors. Distance-vector protocols use one
or a series of metrics for calculating the best routes. These protocols are easy to configure and use.
Routers using link-state protocols maintain a complex database of network topology, based on the
exchange of link-state advertisements (LSAs) between routers. LSAs are triggered by an event in
the network, which speeds up the convergence time or time required to respond to these changes.
Link-state protocols respond quickly to topology changes, but require greater bandwidth and more
resources than distance-vector protocols.
Distance-vector protocols supported by the Catalyst 3550 switch are Routing Information Protocol
(RIP), which uses a single distance metric (cost) to determine the best path, and Interior Gateway
Routing Protocol (IGRP), which uses a series of metrics. The switch also supports the Open Shortest
Path First (OSPF) link-state protocol and Enhanced IGRP (EIGRP), which adds some link-state routing
features to traditional IGRP to improve efficiency.
In some network environments, VLANs are associated with individual networks or subnetworks. In an
IP network, each subnetwork is mapped to an individual VLAN. Configuring VLANs helps control the
size of the broadcast domain and keeps local traffic local. However, when an end station in one VLAN
needs to communicate with an end station in another VLAN, inter-VLAN communication is required.
This communication is supported by inter-VLAN routing. You configure one or more routers to route
traffic to the appropriate destination VLAN.
Figure 22-1 shows a basic routing topology. Switch A is in VLAN 10, and Switch B is in VLAN 20. The
router has an interface in each VLAN.
Figure22-1 Routing Topology Example
1
8
0
7
1
A
B
C
Host
Host
Host
Switch A Switch B
VLAN 10 VLAN 20
ISL Trunks
22-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Steps for Configuring Routing
When Host A in VLAN 10 needs to communicate with Host B in VLAN 10, it sends a packet addressed
to that host. Switch A forwards the packet directly to Host B, without sending it to the router.
When Host A sends a packet to Host C in VLAN 20, Switch A forwards the packet to the router, which
receives the traffic on the VLAN 10 interface. The router checks the routing table, determines the correct
outgoing interface, and forwards the packet on the VLAN 20 interface to Switch B. Switch B receives
the packet and forwards it to Host C.
Steps for Configuring Routing
By default, IP routing is disabled on the Catalyst 3550 switch, and you must enable it before routing can
take place. For detailed IP routing configuration information, refer to the Cisco IOS IP and IP Routing
Configuration Guide for Release 12.1.
In the following procedures, the specified interface must be one of these Layer 3 interfaces:
A routed port: a physical port configured as a Layer 3 port by using the no switchport interface
configuration command.
A switch virtual interface (SVI): a VLAN interface created by using the interface vlan vlan_id
global configuration command and by default a Layer 3 interface.
An EtherChannel port channel in Layer 3 mode: a port-channel logical interface created by using
the interface port-channel port-channel-number global configuration command and binding the
Ethernet interface into the channel group. For more information, see the Configuring Layer 3
EtherChannels section on page 21-11.
Note A Layer 3 switch can have an IP address assigned to each routed port and SVI. The number of routed
ports and SVIs that you can configure is not limited by software. However, the interrelationship
between this number and the number and volume of features being implemented might have an
impact on CPU utilization because of hardware limitations. For more information about feature
combinations, see the Optimizing System Resources for User-Selected Features section on
page 6-57.
All Layer 3 interfaces must have IP addresses assigned to them. See the Assigning IP Addresses to
Network Interfaces section on page 22-5.
Configuring routing consists of several main procedures:
To support VLAN interfaces, create and configure VLANs on the switch, and assign VLAN
membership to Layer 2 interfaces. For more information, see Chapter 9, Creating and Maintaining
VLANs.
Configure Layer 3 interfaces.
Enable IP routing on the switch.
Assign IP addresses to the Layer 3 interfaces.
Enable selected routing protocols on the switch.
Configure routing protocol parameters (optional).
22-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Configuring IP Addressing
A required task for configuring IP routing is to assign IP addresses to Layer 3 network interfaces to
enable the interfaces and allow communication with the hosts on those interfaces that use IP. These
sections describe how to configure various IP addressing features. Assigning IP addresses to the
interface is required; the other procedures are optional.
Default Addressing Configuration, page 22-4
Assigning IP Addresses to Network Interfaces, page 22-5
Configuring Address Resolution Methods, page 22-10
Routing Assistance When IP Routing is Disabled, page 22-14
Configuring Broadcast Packet Handling, page 22-17
Monitoring and Maintaining IP Addressing, page 22-21
Default Addressing Configuration
Table 22-1 shows the default addressing configuration.
Table22-1 Default Addressing Configuration
Feature Default Setting
IP address None defined.
ARP No permanent entries in the Address Resolution Protocol (ARP) cache.
Encapsulation: Standard Ethernet-style ARP.
Timeout: 14400 seconds (4 hours).
IP broadcast address 255.255.255.255 (all ones).
IP classless routing Enabled.
IP default gateway Disabled.
IP directed broadcast Disabled (all IP directed broadcasts are dropped).
IP domain Domain list: No domain names defined.
Domain lookup: Enabled.
Domain name: Enabled.
IP forward-protocol If a helper address is defined or User Datagram Protocol (UDP) flooding is
configured, UDP forwarding is enabled on default ports.
Any-local-broadcast: Disabled.
Spanning Tree Protocol (STP): Disabled.
Turbo-flood: Disabled.
IP helper address Disabled.
IP host Disabled.
22-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Assigning IP Addresses to Network Interfaces
An IP address identifies a location to which IP packets can be sent. Some IP addresses are reserved for
special uses and cannot be used for host, subnet, or network addresses. Table 22-2 lists ranges of IP
addresses and shows which are reserved and which are available for use. RFC 1166, Internet Numbers,
contains the official description of IP addresses.
An interface can have one primary IP address. A mask identifies the bits that denote the network number
in an IP address. When you use the mask to subnet a network, the mask is referred to as a subnet mask.
To receive an assigned network number, contact your Internet service provider.
IRDP Disabled.
Defaults when enabled:
Broadcast IRDP advertisements.
Maximum interval between advertisements: 600 seconds.
Minimum interval between advertisements: 0.75 times max interval
Preference: 0.
IP proxy ARP Enabled.
IP routing Disabled.
IP subnet-zero Disabled.
Table22-1 Default Addressing Configuration (continued)
Feature Default Setting
Table22-2 Reserved and Available IP Addresses
Class Address or Range Status
A 0.0.0.0
1.0.0.0 to 126.0.0.0
127.0.0.0
Reserved
Available
Reserved
B 128.0.0.0 to 191.254.0.0
191.255.0.0
Available
Reserved
C 192.0.0.0
192.0.1.0 to 223.255.254
223.255.255.0
Reserved
Available
Reserved
D 224.0.0.0 to 239.255.255.255 Multicast group addresses
E 240.0.0.0 to 255.255.255.254
255.255.255.255
Reserved
Broadcast
22-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Beginning in privileged EXEC mode, follow these steps to assign an IP address and a network mask to
a Layer 3 interface:
Use the no ip address interface configuration command to remove an IP address or to disable IP
processing.
This example shows how to configure an IP address on Gigabit Ethernet interface 0/10:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet0/10
Switch(config-if)# no switchport
Switch(config-if)# ip address 10.1.2.3 255.255.0.0
Switch(config-if)# no shutdown
Switch(config-if)# end
Switch#
This is an example of output from the show interfaces privileged EXEC command for Gigabit Ethernet
interface 0/10, displaying the interface IP address configuration and status:
Switch# show interfaces gigabitethernet0/10
GigabitEthernet0/10 is up, line protocol is down
Hardware is Gigabit Ethernet, address is 0002.4b29.7100 (bia 0002.4b29.7100)
Internet address is 10.1.2.3/16
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:42, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
Step3 no switchport Remove the interface from Layer 2 configuration mode (if it is a
physical interface).
Step4 ip address ip-address subnet-mask Configure the IP address and IP subnet mask.
Step5 no shutdown Enable the interface.
Step6 end Return to privileged EXEC mode.
Step7 show interfaces [interface-id]
show ip interface [interface-id]
show running-config interface [interface-id]
Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
This is an example of output from the show ip interface privileged EXEC command for Gigabit Ethernet
interface 0/10, displaying the detailed IP configuration and status:
Switch# show ip interface gigabitethernet0/10
GigabitEthernet0/10 is up, line protocol is down
Internet address is 10.1.2.3/16
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is enabled
IP multicast distributed fast switching is disabled
IP route-cache flags are Fast
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled
This is an example of output from the show running-config privileged EXEC command for of Gigabit
Ethernet interface 0/10 to display the interface IP address configuration:
Switch# show running-config interface gigabitethernet0/10
Building configuration...
Current configuration : 189 bytes
!
interface GigabitEthernet0/10
description CubeB
no switchport
ip address 10.1.2.3 255.255.0.0
ip access-group 23 in
ip access-group stan1 out
ip pim sparse-dense-mode
ip cgmp
end
22-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Use of Subnet Zero
Subnetting with a subnet address of zero is strongly discouraged because of the problems that can arise
if a network and a subnet have the same addresses. For example, if network 131.108.0.0 is subnetted as
255.255.255.0, subnet zero would be written as 131.108.0.0, which is the same as the network address.
You can use the all ones subnet (131.108.255.0) and even though it is discouraged, you can enable the
use of subnet zero if you need the entire subnet space for your IP address.
Beginning in privileged EXEC mode, follow these steps to enable subnet zero:
Use the no ip subnet-zero global configuration command to restore the default and disable the use of
subnet zero.
This is an example of partial output from the show running-config privileged EXEC command used to
verify IP subnet zero setting.
Switch# show running-config
Building configuration...
Current configuration : 7454 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Perdido1
!
!
<output truncated>
ip subnet-zero
ip routing
no ip domain-lookup
ip domain-name a,b,c
ip name-server 12.10.13.14
<output truncated>
Classless Routing
By default, classless routing behavior is enabled on the switch when it is configured to route. With
classless routing, if a router receives packets for a subnet of a network with no default route, the router
forwards the packet to the best supernet route. A supernet consists of contiguous blocks of Class C
address spaces used to simulate a single, larger address space and is designed to relieve the pressure on
the rapidly depleting Class B address space.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip subnet-zero Enable the use of subnet zero for interface addresses and routing
updates.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
22-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
In Figure 22-2, classless routing is enabled. When the host sends a packet to 120.20.4.1, instead of
discarding the packet, the router forwards it to the best supernet route. If you disable classless routing
and a router receives packets destined for a subnet of a network with no network default route, the router
discards the packet.
Figure22-2 IP Classless Routing
In Figure 22-3, the router in network 128.20.0.0 is connected to subnets 128.20.1.0, 128.20.2.0, and
128.20.3.0. If the host sends a packet to 120.20.4.1, because there is no network default route, the router
discards the packet.
Figure22-3 No IP Classless Routing
To prevent the switch from forwarding packets destined for unrecognized subnets to the best supernet
route possible, you can disable classless routing behavior.
Host
128.20.1.0
128.20.2.0
128.20.3.0
128.20.4.1
128.0.0.0/8
128.20.4.1
IP classless
4
5
7
4
9
128.20.0.0
Host
128.20.1.0
128.20.2.0
128.20.3.0
128.20.4.1
128.0.0.0/8
128.20.4.1
Bit bucket
4
5
7
4
8
128.20.0.0
22-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Beginning in privileged EXEC mode, follow these steps to disable classless routing:
To restore the default and have the switch forward packets destined for a subnet of a network with no
network default route to the best supernet route possible, use the ip classless global configuration
command.
Configuring Address Resolution Methods
You can control interface-specific handling of IP by using address resolution. A device using IP can have
both a local address or MAC address, which uniquely defines the device on its local segment or LAN,
and a network address, which identifies the network to which the device belongs. The local address or
MAC address is known as a data link address because it is contained in the data link layer (Layer 2)
section of the packet header and is read by data link (Layer 2) devices. To communicate with a device
on Ethernet, the software must determine the MAC address of the device. The process of determining
the MAC address from an IP address is called address resolution. The process of determining the IP
address from the MAC address is called reverse address resolution.
The switch can use these forms of address resolution:
Address Resolution Protocol (ARP) is used to associate IP address with MAC addresses. Taking an
IP address as input, ARP determines the associated MAC address and then stores the IP
address/MAC address association in an ARP cache for rapid retrieval. Then the IP datagram is
encapsulated in a link-layer frame and sent over the network. Encapsulation of IP datagrams and
ARP requests or replies on IEEE 802 networks other than Ethernet is specified by the Subnetwork
Access Protocol (SNAP).
Proxy ARP helps hosts with no routing tables determine the MAC addresses of hosts on other
networks or subnets. If the switch (router) receives an ARP request for a host that is not on the same
interface as the ARP request sender, and if the router has all of its routes to the host through other
interfaces, it generates a proxy ARP packet giving its own local data link address. The host that sent
the ARP request then sends its packets to the router, which forwards them to the intended host.
Catalyst 3550 switches also use the Reverse Address Resolution Protocol (RARP), which functions the
same as ARP does, except that the RARP packets request an IP address instead of a local MAC address.
Using RARP requires a RARP server on the same network segment as the router interface. Use the ip
rarp-server address interface configuration command to identify the server.
For more information on RARP, refer to the Cisco IOS Configuration Fundamentals Configuration
Guide for Release 12.1.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 no ip classless Disable classless routing behavior.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
22-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
You can perform these tasks to configure address resolution:
Define a Static ARP Cache, page 22-11
Set ARP Encapsulation, page 22-12
Enable Proxy ARP, page 22-13
Define a Static ARP Cache
ARP and other address resolution protocols provide dynamic mapping between IP addresses and MAC
addresses. Because most hosts support dynamic address resolution, you usually do not need to specify
static ARP cache entries. If you must define a static ARP cache entry, you can do so globally, which
installs a permanent entry in the ARP cache that the switch uses to translate IP addresses into MAC
addresses. Optionally, you can also specify that the switch respond to ARP requests as if it were the
owner of the specified IP address. If you do not want the ARP entry to be permanent, you can specify a
timeout period for the ARP entry.
Beginning in privileged EXEC mode, follow these steps to provide static mapping between IP addresses
and MAC addresses:
To remove an entry from the ARP cache, use the no arp ip-address hardware-address type global
configuration command. To remove all nonstatic entries from the ARP cache, use the clear arp-cache
privileged EXEC command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 arp ip-address hardware-address type Globally associate an IP address with a MAC (hardware) address
in the ARP cache, and specify encapsulation type as one of
these:
arpaARP encapsulation for Ethernet interfaces
snapSubnetwork Address Protocol encapsulation for
Token Ring and FDDI interfaces
sapHPs ARP type
Step3 arp ip-address hardware-address type [alias] (Optional) Specify that the switch respond to ARP requests as if
it were the owner of the specified IP address.
Step4 interface interface-id Enter interface configuration mode, and specify the interface to
configure.
Step5 arp timeout seconds (Optional) Set the length of time an ARP cache entry will stay in
the cache. The default is 14400 seconds (4 hours). The range is
0 to 2147483 seconds.
Step6 end Return to privileged EXEC mode.
Step7 show interfaces [interface-id] Verify the type of ARP and the timeout value used on all
interfaces or a specific interface.
Step8 show arp
or
show ip arp
View the contents of the ARP cache.
Step9 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
This is an example of output from the show arp privileged EXEC command.
Switch# show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.1.2.3 - 0002.4b29.2e00 ARPA GigabitEthernet0/10
Internet 172.20.136.9 120 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.250.42 149 0030.19c6.54e1 ARPA Vlan1
Internet 120.20.30.1 - 0002.4b29.2e00 ARPA Vlan27
Internet 172.20.139.152 101 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.139.130 205 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.141.225 186 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.135.204 169 0002.4b29.4400 ARPA Vlan1
Internet 172.20.135.202 - 0002.4b29.2e00 ARPA Vlan1
Internet 172.20.135.197 172 0002.4b28.ce80 ARPA Vlan1
Internet 172.20.135.196 156 0002.4b28.ce00 ARPA Vlan1
Note For the Catalyst 3550 switch, the output from the show arp privileged EXEC command and the show
ip arp privileged EXEC command are usually the same.
Set ARP Encapsulation
By default, Ethernet ARP encapsulation (represented by the arpa keyword) is enabled on an IP interface.
You can change the encapsulation methods to SNAP if required by your network.
Beginning in privileged EXEC mode, follow these steps to specify the ARP encapsulation type:
To disable an encapsulation type, use the no arp arpa or no arp snap interface configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
Step3 arp {arpa | snap} Specify the ARP encapsulation method:
arpaAddress Resolution Protocol
snapSubnetwork Address Protocol
Step4 end Return to privileged EXEC mode.
Step5 show interfaces [interface-id] Verify ARP encapsulation configuration on all interfaces or
the specified interface.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
This is an example of output from the show interfaces interface-id privileged EXEC command
displaying ARP encapsulation.
Switch# show interfaces gigabitethernet0/10
GigabitEthernet0/10 is up, line protocol is up
Hardware is Gigabit Ethernet, address is 0002.4b29.2e00 (bia 0002
Internet address is 40.5.121.10/24
MTU 1500 bytes, BW 100000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:04, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
30745 packets output, 3432096 bytes, 0 underruns
0 output errors, 0 collisions, 6 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Enable Proxy ARP
By default, the switch uses proxy ARP to help hosts determine MAC addresses of hosts on other
networks or subnets.
Beginning in privileged EXEC mode, follow these steps to enable proxy ARP if it has been disabled:
To disable proxy ARP on the interface, use the no ip proxy-arp interface configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
Step3 ip proxy-arp Enable proxy ARP on the interface.
Step4 end Return to privileged EXEC mode.
Step5 show ip interface [interface-id] Verify the configuration on the interface or all interfaces.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
This is an example of output form the show ip interface privileged EXEC command for Gigabit Ethernet
interface 0/3, where proxy ARP is enabled.
Switch# show ip interface gigabitethernet0/3
GigabitEthernet0/3 is up, line protocol is down
Internet address is 10.1.3.59/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Multicast reserved groups joined: 224.0.0.1 224.0.0.2
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP CEF switching is enabled
IP CEF Fast switching turbo vector
IP multicast fast switching is enabled
IP multicast distributed fast switching is disabled
IP route-cache flags are Fast, CEF
Router Discovery is enabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled
Routing Assistance When IP Routing is Disabled
These mechanisms allow the switch to learn about routes to other networks when it does not have IP
routing enabled:
Proxy ARP, page 22-14
Default Gateway, page 22-15
ICMP Router Discovery Protocol (IRDP), page 22-15
Proxy ARP
Proxy ARP, the most common method for learning about other routes, enables an Ethernet host with no
routing information to communicate with hosts on other networks or subnets. The host assumes that all
hosts are on the same local Ethernet and that they can use ARP to determine their MAC addresses. If a
switch receives an ARP request for a host that is not on the same network as the sender, the switch
evaluates whether it has the best route to that host. If it does, it sends an ARP reply packet with its own
22-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Ethernet MAC address, and the host that sent the request sends the packet to the switch, which forwards
it to the intended host. Proxy ARP treats all networks as if they are local and performs ARP requests for
every IP address.
Proxy ARP is enabled by default. To enable it after it has been disabled, see the Enable Proxy ARP
section on page 22-13. Proxy ARP works as long as other routers support it.
Default Gateway
Another method for locating routes is to define a default router or default gateway. All nonlocal packets
are sent to this router, which either routes them appropriately or sends an IP Control Message Protocol
(ICMP) redirect message back, defining which local router the host should use. The switch caches the
redirect messages and forwards each packet as efficiently as possible. A limitation of this method is that
there is no means of detecting when the default router has gone down or is unavailable.
Beginning in privileged EXEC mode, follow these steps to define a default gateway (router) when IP
routing is disabled:
Use the no ip default-gateway global configuration command to disable this function.
This example shows how to set and verify a default gateway:
Switch(config)# ip default-gateway 10.1.5.59
Switch(config)# end
Switch# show ip redirect
Default gateway is 10.1.5.59
Host Gateway Last Use Total Uses Interface
ICMP redirect cache is empty
ICMP Router Discovery Protocol (IRDP)
Router discovery allows the switch to dynamically learn about routes to other networks using IRDP.
IRDP allows hosts to locate routers. When operating as a client, the switch generates router discovery
packets. When operating as a host, the switch receives router discovery packets. The switch can also
listen to Routing Information Protocol (RIP) and Interior Gateway Routing Protocol (IGRP) routing
updates and use this information to infer locations of routers. The switch does not actually store the
routing tables sent by routing devices; it merely keeps track of which systems are sending the data. The
advantage of using IRDP is that it allows each router to specify both a priority and the time after which
a device is assumed to be down if no further packets are received.
Each device discovered becomes a candidate for the default router, and a new highest-priority router is
selected when a higher priority router is discovered, when the current default router is declared down,
or when a TCP connection is about to time out because of excessive retransmissions.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip default-gateway ip-address Set up a default gateway (router).
Step3 end Return to privileged EXEC mode.
Step4 show ip redirects Display the address of the default gateway router to verify the
setting.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
The only required task for IRDP routing on an interface is to enable IRDP processing on that interface.
When enabled, the default parameters apply. You can optionally change any of these parameters.
Beginning in privileged EXEC mode, follow these steps to enable and configure IRDP on an interface:
If you change the maxadvertinterval value, the holdtime and minadvertinterval values also change,
so it is important to first change the maxadvertinterval value, before manually changing either the
holdtime or minadvertinterval values.
Use the no ip irdp interface configuration command to disable IRDP routing.
This is an example of output from the show ip irdp privileged EXEC command that shows that IRDP
routing is enabled on Gigabit Ethernet interface 0/3:
Switch# show ip irdp
Vlan1 has router discovery disabled
Vlan2 has router discovery disabled
GigabitEthernet0/1 has router discovery disabled
GigabitEthernet0/2 has router discovery disabled
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3 interface to
configure.
Step3 ip irdp Enable IRDP processing on the interface.
Step4 ip irdp multicast (Optional) Send IRDP advertisements to the multicast address
(224.0.0.1) instead of IP broadcasts.
Note This command allows for compatibility with Sun Microsystems
Solaris, which requires IRDP packets to be sent out as multicasts.
Many implementations cannot receive these multicasts; ensure
end-host ability before using this command.
Step5 ip irdp holdtime seconds (Optional) Set the IRDP period for which advertisements are valid. The
default is three times the maxadvertinterval value. It must be greater
than maxadvertinterval and cannot be greater than 9000 seconds. If you
change the maxadvertinterval value, this value also changes.
Step6 ip irdp maxadvertinterval seconds (Optional) Set the IRDP maximum interval between advertisements. The
default is 600 seconds.
Step7 ip irdp minadvertinterval seconds (Optional) Set the IRDP minimum interval between advertisements. The
default is 0.75 times the maxadvertinterval. If you change the
maxadvertinterval, this value changes to the new default (0.75 of
maxadvertinterval).
Step8 ip irdp preference number (Optional) Set a device IRDP preference level. The allowed range is 2
31
to 2
31
. The default is 0. A higher value increases the router preference
level.
Step9 ip irdp address address [number] (Optional) Specify an IRDP address and preference to proxy-advertise.
Step10 end Return to privileged EXEC mode.
Step11 show ip irdp Verify settings by displaying IRDP values.
Step12 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
GigabitEthernet0/3 has router discovery enabled
Advertisements will occur between every 450 and 600 seconds.
Advertisements are sent with broadcasts.
Advertisements are valid for 1800 seconds.
Default preference will be 0.
GigabitEthernet0/4 has router discovery disabled
Port-channel1 has router discovery disabled
Configuring Broadcast Packet Handling
After configuring an IP interface address, you can choose to enable routing and configure one or more
routing protocols, or you can configure the way the switch responds to network broadcasts. A broadcast
is a data packet destined for all hosts on a physical network. The switch supports two kinds of
broadcasting:
A directed broadcast packet is sent to a specific network or series of networks. A directed broadcast
address includes the network or subnet fields.
A flooded broadcast packet is sent to every network.
Note You can also limit broadcast, unicast, and multicast traffic on Layer 2 interfaces by using the
switchport broadcast, switchport unicast, and switchport multicast interface configuration
commands. For more information, see Chapter 12, Configuring Port-Based Traffic Control.
Routers provide some protection from broadcast storms by limiting their extent to the local cable.
Bridges (including intelligent bridges), because they are Layer 2 devices, forward broadcasts to all
network segments, thus propagating broadcast storms. The best solution to the broadcast storm problem
is to use a single broadcast address scheme on a network. In most modern IP implementations, you can
set the address to be used as the broadcast address. Many implementations, including the one in the
Catalyst 3550 switch, support several addressing schemes for forwarding broadcast messages.
Perform the tasks in these sections to enable these schemes:
Enabling Directed Broadcast-to-Physical Broadcast Translation, page 22-17
Forwarding UDP Broadcast Packets and Protocols, page 22-18
Establishing an IP Broadcast Address, page 22-20
Flooding IP Broadcasts, page 22-20
Enabling Directed Broadcast-to-Physical Broadcast Translation
By default, IP directed broadcasts are dropped; they are not forwarded. Dropping IP-directed broadcasts
makes routers less susceptible to denial-of-service attacks.
You can enable forwarding of IP-directed broadcasts on an interface where the broadcast becomes a
physical (MAC-layer) broadcast. Only those protocols configured by using the ip forward-protocol
global configuration command are forwarded.
You can specify an access list to control which broadcasts are forwarded. When an access list is
specified, only those IP packets permitted by the access list are eligible to be translated from directed
broadcasts to physical broadcasts. For more information on access lists, see Chapter 19, Configuring
Network Security with ACLs.
22-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Beginning in privileged EXEC mode, follow these steps to enable forwarding of IP-directed broadcasts
on an interface:
Use the no ip directed-broadcast interface configuration command to disable translation of directed
broadcast to physical broadcasts. Use the no ip forward-protocol global configuration command to
remove a protocol or port.
Forwarding UDP Broadcast Packets and Protocols
User Datagram Protocol (UDP) is an IP host-to-host layer protocol, as is TCP. UDP provides a
low-overhead, connectionless session between two end systems and does not provide for
acknowledgment of received datagrams. Network hosts occasionally use UDP broadcasts to determine
address, configuration, and name information. If such a host is on a network segment that does not
include a server, UDP broadcasts are normally not forwarded. You can remedy this situation by
configuring an interface on a router to forward certain classes of broadcasts to a helper address. You can
use more than one helper address per interface.
You can specify a UDP destination port to control which UDP services are forwarded. You can specify
multiple UDP protocols. You can also specify the Network Disk (ND) protocol, which is used by older
diskless Sun workstations and the network security protocol SDNS.
By default, both UDP and ND forwarding are enabled if a helper address has been defined for an
interface. The description for the ip forward-protocol interface configuration command in the Cisco
IOS IP and IP Routing Command Reference for Release 12.1 lists the ports that are forwarded by default
if you do not specify any UDP ports.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to
configure.
Step3 ip directed-broadcast [access-list-number] Enable directed broadcast-to-physical broadcast translation on the
interface. You can include an access list to control which broadcasts
are forwarded. When an access list is specified, only IP packets
permitted by the access list are eligible to be translated.
Step4 exit Return to global configuration mode.
Step5 ip forward-protocol {udp [port] | nd | sdns} Specify which protocols and ports the router forwards when
forwarding broadcast packets.
udpForward UPD datagrams.
port: (Optional) Destination port that controls which UDP
services are forwarded.
ndForward ND datagrams.
sdnsForward SDNS datagrams
Step6 end Return to privileged EXEC mode.
Step7 show ip interface [interface-id]
or
show running-config
Verify the configuration on the interface or all interfaces.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-19
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
If you do not specify any UDP ports when you configure the forwarding of UDP broadcasts, you are
configuring the router to act as a BOOTP forwarding agent. BOOTP packets carry Dynamic Host
Configuration Protocol (DHCP) information.
Beginning in privileged EXEC mode, follow these steps to enable forwarding UDP broadcast packets
on an interface and specify the destination address:
Use the no ip helper-address interface configuration command to disable the forwarding of broadcast
packets to specific addresses. Use the no ip forward-protocol global configuration command to remove
a protocol or port.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3 interface
to configure.
Step3 ip helper-address address Enable forwarding and specify the destination address for forwarding
UDP broadcast packets, including BOOTP.
Step4 exit Return to global configuration mode.
Step5 ip forward-protocol {udp [port] | nd | sdns} Specify which protocols the router forwards when forwarding
broadcast packets.
udpForward UDP datagrams.
port: (Optional) Destination port that controls which UDP
services are forwarded.
ndForward ND datagrams.
sdnsForward SDNS datagrams
Step6 end Return to privileged EXEC mode.
Step7 show ip interface [interface-id]
or
show running-config
Verify the configuration on the interface or all interfaces.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-20
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Establishing an IP Broadcast Address
The most popular IP broadcast address (and the default) is an address consisting of all ones
(255.255.255.255). However, the switch can be configured to generate any form of IP broadcast address.
Beginning in privileged EXEC mode, follow these steps to set the IP broadcast address on an interface:
To restore the default IP broadcast address, use the no ip broadcast-address interface configuration
command.
Flooding IP Broadcasts
You can allow IP broadcasts to be flooded throughout your internetwork in a controlled fashion by using
the database created by the bridging STP. Using this feature also prevents loops. To support this
capability, bridging must be configured on each interface that is to participate in the flooding. If bridging
is not configured on an interface, it still can receive broadcasts. However, the interface never forwards
broadcasts it receives, and the router never uses that interface to send broadcasts received on a
different interface.
Packets that are forwarded to a single network address using the IP helper-address mechanism can be
flooded. Only one copy of the packet is sent on each network segment.
To be considered for flooding, packets must meet these criteria. (Note that these are the same conditions
used to consider packet forwarding using IP helper addresses.)
The packet must be a MAC-level broadcast.
The packet must be an IP-level broadcast.
The packet must be a TFTP, DNS, Time, NetBIOS, ND, or BOOTP packet, or a UDP specified by
the ip forward-protocol udp global configuration command.
The time-to-live (TTL) value of the packet must be at least two.
A flooded UDP datagram is given the destination address specified with the ip broadcast-address
interface configuration command on the output interface. The destination address can be set to any
address. Thus, the destination address might change as the datagram propagates through the network.
The source address is never changed. The TTL value is decremented.
When a flooded UDP datagram is sent out an interface (and the destination address possibly changed),
the datagram is handed to the normal IP output routines and is, therefore, subject to access lists, if they
are present on the output interface.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to
configure.
Step3 ip broadcast-address ip-address Enter a broadcast address different from the default, for example
128.1.255.255.
Step4 end Return to privileged EXEC mode.
Step5 show ip interface [interface-id] Verify the broadcast address on the interface or all interfaces.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-21
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Beginning in privileged EXEC mode, follow these steps to use the bridging spanning-tree database to
flood UDP datagrams:
Use the no ip forward-protocol spanning-tree global configuration command to disable the flooding
of IP broadcasts.
In the Catalyst 3550 switch, the majority of packets are forwarded in hardware; most packets do not go
through the switch CPU. For those packets that do go to the CPU, you can speed up spanning tree-based
UDP flooding by a factor of about four to five times by using turbo-flooding. This feature is supported
over Ethernet interfaces configured for ARP encapsulation.
Beginning in privileged EXEC mode, follow these steps to increase spanning-tree-based flooding:
To disable this feature, use the no ip forward-protocol turbo-flood global configuration command.
Monitoring and Maintaining IP Addressing
When the contents of a particular cache, table, or database have become or are suspected to be invalid,
you can remove all its contents by using the clear privileged EXEC commands. Table 22-3 lists the
commands for clearing contents.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip forward-protocol spanning-tree Use the bridging spanning-tree database to flood UDP datagrams.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode
Step2 ip forward-protocol turbo-flood Use the spanning-tree database to speed up flooding of UDP
datagrams.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
Table22-3 Commands to Clear Caches, Tables, and Databases
Command Purpose
clear arp-cache Clear the IP ARP cache and the fast-switching cache.
clear host {name | *} Remove one or all entries from the host name and the address cache.
clear ip route {network [mask] |*} Remove one or more routes from the IP routing table.
22-22
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
You can display specific statistics, such as the contents of IP routing tables, caches, and databases; the
reachability of nodes; and the routing path that packets are taking through the network. Table 22-4 lists
the privileged EXEC commands for displaying IP statistics.
These are examples of outputs of commands used for displaying caches, tables, and databases.
Switch# show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.1.2.3 - 0002.4b29.2e00 ARPA GigabitEthernet0/10
Internet 172.20.136.9 178 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.250.42 207 0030.19c6.54e1 ARPA Vlan1
Internet 120.20.30.1 - 0002.4b29.2e00 ARPA Vlan27
Internet 172.20.139.152 159 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.139.130 24 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.141.225 5 0030.19c6.54e1 ARPA Vlan1
Internet 172.20.135.204 227 0002.4b29.4400 ARPA Vlan1
Internet 172.20.135.202 - 0002.4b29.2e00 ARPA Vlan1
Internet 172.20.135.197 230 0002.4b28.ce80 ARPA Vlan1
Internet 172.20.135.196 214 0002.4b28.ce00 ARPA Vlan1
Internet 172.20.135.193 58 0030.19c6.54e1 ARPA Vlan1
Switch# show hosts
Default domain is a,b,c
Name/address lookup uses static mappings
Host Flags Age Type Address(es)
Switch# show ip aliases
Address Type IP Address Port
Interface 10.1.2.3
Interface 120.20.30.1
Interface 172.20.135.202
Switch# show ip masks
Supernet masks Reference count
255.252.0.0 1
0.0.0.0 1
Table22-4 Commands to Display Caches, Tables, and Databases
Command Purpose
show arp Display the entries in the ARP table.
show hosts Display the default domain name, style of lookup service, name server hosts,
and the cached list of host names and addresses.
show ip aliases Display IP addresses mapped to TCP ports (aliases).
show ip arp Display the IP ARP cache.
show ip interface [interface-id] Display the IP status of interfaces.
show ip irdp Display IRDP values.
show ip masks address Display the masks used for network addresses and the number of subnets
using each mask.
show ip redirects Display the address of a default gateway.
show ip route [address [mask]] | [protocol] Display the current state of the routing table.
show ip route summary Display the current state of the routing table in summary form.
22-23
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Switch# show ip redirects
Default gateway is 172.20.135.193
Host Gateway Last Use Total Uses Interface
ICMP redirect cache is empty
Switch# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 172.20.135.193 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 172.20.135.193
C 172.20.0.0/14 is directly connected, Vlan1
Switch# show ip route summary
IP routing table name is Default-IP-Routing-Table(0)
Route Source Networks Subnets Overhead Memory (bytes)
connected 1 0 64 144
static 1 0 64 144
rip 0 0 0 0
Total 2 0 128 288
Switch # show ip interface
Vlan1 is up, line protocol is up
Internet address is 172.20.142.153/25
Broadcast address is 255.255.255.255
Address determined by non-volatile memory
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP CEF switching is enabled
IP CEF Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
IP route-cache flags are CEF
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled
22-24
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Enabling IP Routing
GigabitEthernet0/1 is up, line protocol is up
Internet protocol processing disabled
GigabitEthernet0/2 is up, line protocol is down
Internet protocol processing disabled
Enabling IP Routing
By default, the switch is in Layer 2 switching mode and IP routing is disabled. To use the Layer 3
capabilities of the switch, you must enable IP routing.
Beginning in privileged EXEC mode, follow these steps to enable IP routing:
Use the no ip routing global configuration command to disable routing.
This example shows how to enable IP routing using RIP as the routing protocol:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# ip routing
Switch(config)# router rip
Switch(config-router)# network 10.0.0.0
Switch(config-router)# end
You can now set up parameters for the selected routing protocols as described in these sections:
Configuring RIP, page 22-25
Configuring IGRP, page 22-30
Configuring OSPF, page 22-35
Configuring EIGRP, page 22-46
You can also configure nonprotocol-specific features:
Configuring Protocol-Independent Features, page 22-53
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip routing Enable IP routing.
Step3 router ip_routing_protocol Specify an IP routing protocol. This step might include other
commands, such as specifying the networks to route with the
network (RIP) router configuration command. For information on
specific protocols, refer to sections later in this chapter and to the
Cisco IOS IP and IP Routing Configuration Guide for Release 12.1.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-25
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring RIP
Configuring RIP
The Routing Information Protocol (RIP) is an interior gateway protocol (IGP) created for use in small,
homogeneous networks. It is a distance-vector routing protocol that uses broadcast User Datagram
Protocol (UDP) data packets to exchange routing information. The protocol is documented in RFC 1058.
You can find detailed information about RIP in IP Routing Fundamentals, published by Cisco Press.
Using RIP, the switch sends routing information updates (advertisements) every 30 seconds. If a router
does not receive an update from another router for 180 seconds or more, it marks the routes served by
that router as unusable. If there is still no update after 240 seconds, the router removes all routing table
entries for the non-updating router.
RIP uses hop counts to rate the value of different routes. The hop count is the number of routers that can
be traversed in a route. A directly connected network has a hop count of zero; a network with a hop count
of 16 is unreachable. This small range (0 to 15) makes RIP unsuitable for large networks.
If the router has a default network path, RIP advertises a route that links the router to the pseudonetwork
0.0.0.0. The 0.0.0.0 network does not exist; it is treated by RIP as a network to implement the default
routing feature. The switch advertises the default network if a default was learned by RIP or if the router
has a gateway of last resort and RIP is configured with a default metric. RIP sends updates to the
interfaces in specified networks. If an interfaces network is not specified, it is not advertised in any
RIP update.
Table 22-5 shows the default RIP configuration.
Table22-5 Default RIP Configuration
Feature Default Setting
Auto summary Enabled.
Default-information originate Disabled.
Default metric Built-in; automatic metric translations.
IP RIP authentication key-chain No authentication.
Authentication mode: clear text.
IP RIP receive version According to the version router configuration command.
IP RIP send version According to the version router configuration command.
IP RIP triggered According to the version router configuration command.
IP split horizon Varies with media.
Neighbor None defined.
Network None specified.
Offset list Disabled.
Output delay 0 milliseconds.
Timers basic Update: 30 seconds.
Invalid: 180 seconds.
Hold-down: 180 seconds.
Flush: 240 seconds.
22-26
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring RIP
For protocol-independent features that also apply to RIP, see the Configuring Protocol-Independent
Features section on page 22-53.
To configure RIP, you enable RIP routing for a network and optionally configure other parameters.
Beginning in privileged EXEC mode, follow these steps to enable and configure RIP:
Validate-update-source Enabled.
Version Receives RIP version 1 and version 2 packets;
sends version 1 packets.
Table22-5 Default RIP Configuration (continued)
Feature Default Setting
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip routing Enable IP routing. (Required only if IP routing is disabled.)
Step3 router rip Enable a RIP routing process, and enter router configuration mode.
Step4 network network number Associate a network with a RIP routing process. You can specify multiple
network commands. RIP routing updates are sent and received through
interfaces only on these networks.
Step5 neighbor ip-address (Optional) Define a neighboring router with which to exchange routing
information. This step allows routing updates from RIP (normally a
broadcast protocol) to reach nonbroadcast networks.
Step6 offset list [access-list number | name]
{in | out} offset [type number]
(Optional) Apply an offset list to routing metrics to increase incoming
and outgoing metrics to routes learned through RIP. You can limit the
offset list with an access list or an interface.
Step7 timers basic update invalid holddown
flush
(Optional) Adjust routing protocol timers. Valid ranges for all timers are
0 to 4294967295 seconds.
updateThe time (in seconds) between sending of routing updates.
The default is 30 seconds.
invalidThe timer interval (in seconds) after which a route is
declared invalid. The default is 180 seconds.
holddownThe time (in seconds) that must pass before a route is
removed from the routing table. The default is 180 seconds.
flushThe amount of time (in seconds) for which routing updates
are postponed. The default is 240 seconds.
Step8 version {1 | 2} (Optional) Configure the switch to receive and send only RIP Version 1
or RIP version 2 packets. By default, the switch receives Version 1 and 2
but sends only Version 1.
You can also use the interface commands ip rip {send | receive} version
1 | 2 | 1 2} to control what versions are used for sending and receiving on
interfaces.
Step9 no auto summary (Optional) Disable automatic summarization. By default, the switch
summarizes subprefixes when crossing classful network boundaries.
Disable summarization (RIP version 2 only) to advertise subnet and host
routing information to classful network boundaries.
22-27
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring RIP
To turn off the RIP routing process, use the no router rip global configuration command.
To display the parameters and current state of the active routing protocol process, use the show ip
protocols privileged EXEC command. This is an example of output from the show ip protocols
command, showing RIP processes:
Switch# show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 19 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 1, receive any version
Interface Send Recv Triggered RIP Key-chain
Vlan1 1 1 2
Vlan2 1 1 2
GigabitEthernet0/2 1 1 2
GigabitEthernet0/3 1 1 2 CHAIN
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 120)
<output truncated>
Use the show ip rip database privileged EXEC command to display summary address entries in the RIP
database. This example shows output with a summary address entry for route 12.11.0.0/16, with three
child routes active:
Switch# show ip rip database
0.0.0.0/0 auto-summary
0.0.0.0/0 redistributed
[0] via 0.0.0.0,
172.20.0.0/14 directly connected, Vlan1
This is an example of output of the show ip rip database command with a prefix and mask:
Switch# show ip rip database 172.19.86.0 255.255.255.0 172.19.86.0/24
[1] via 172.19.67.38, 00:00:25, Serial0
[1] via 172.19.70.36, 00:00:14, Serial1
Step10 no validate-update-source (Optional) Disable validation of the source IP address of incoming RIP
routing updates. By default, the switch validates the source IP address of
incoming RIP routing updates and discards the update if the source
address is not valid. Under normal circumstances, disabling this feature
is not recommended. However, if you have a router that is off-network
and you want to receive its updates, you can use this command.
Step11 output-delay delay (Optional) Add interpacket delay for RIP updates sent.
By default, packets in a multiple-packet RIP update have no delay added
between packets. If you are sending packets to a lower-speed device, you
can add an interpacket delay in the range of 8 to 50 milliseconds.
Step12 end Return to privileged EXEC mode.
Step13 show ip protocols Verify your entries.
Step14 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
22-28
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring RIP
RIP Authentication
RIP version 1 does not support authentication. If you are sending and receiving RIP Version 2 packets,
you can enable RIP authentication on an interface. The key chain determines the set of keys that can be
used on the interface. If a key chain is not configured, no authentication is performed, not even the
default. Therefore, you must also perform the tasks in the Managing Authentication Keys section on
page 22-63.
The switch supports two modes of authentication on interfaces for which RIP authentication is enabled:
plain text and MD5. The default is plain text.
Beginning in privileged EXEC mode, follow these steps to configure RIP authentication on an interface:
To restore clear text authentication, use the no ip rip authentication mode interface configuration
command. To prevent authentication, use the no ip rip authentication key-chain interface
configuration command.
This example shows how to verify the setting by using the show running-config interface privileged
EXEC command.
Switch# show running-config interface gigabitethernet0/3
Building configuration...
Current configuration : 158 bytes
!
interface GigabitEthernet0/3
no switchport
ip address 10.1.3.59 255.255.255.0
ip directed-broadcast
ip irdp
ip rip authentication key-chain CHAIN
end
Summary Addresses and Split Horizon
Routers connected to broadcast-type IP networks and using distance-vector routing protocols normally
use the split-horizon mechanism to reduce the possibility of routing loops. Split horizon blocks
information about routes from being advertised by a router on any interface from which that information
originated. This feature usually optimizes communication among multiple routers, especially when links
are broken.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the
interface to configure.
Step3 ip rip authentication key-chain name-of-chain Enable RIP authentication.
Step4 ip rip authentication mode [text | md5} Configure the interface to use plain text authentication (the
default) or MD5 digest authentication.
Step5 end Return to privileged EXEC mode.
Step6 show running-config interface [interface-id] Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-29
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring RIP
Note In general, disabling split horizon is not recommended unless you are certain that your application
requires it to properly advertise routes.
If you want to configure an interface running RIP to advertise a summarized local IP address pool on a
network access server for dial-up clients, use the ip summary-address rip interface configuration
command.
Note If split horizon is enabled, neither autosummary nor interface IP summary addresses are advertised.
Beginning in privileged EXEC mode, follow these steps to set an interface to advertise a summarized
local IP address and to disable split horizon on the interface:
To disable IP summarization, use the no ip summary-address rip router configuration command.
In this example, the major net is 10.0.0.0. The summary address 10.2.0.0 overrides the autosummary
address of 10.0.0.0 so that 10.2.0.0 is advertised out interface Gigabit Ethernet 0.2, and 10.0.0.0 is not
advertised. In the example, if the interface is still in Layer 2 mode (the default), you must enter a no
switchport interface configuration command before entering the ip address interface configuration
command.
Note If split horizon is enabled, neither autosummary nor interface summary addresses (those configured
with the ip summary-address rip router configuration command) are advertised.
Switch(config)# router rip
Switch(config-router)# interface gi0/2
Switch(config-if)# ip address 10.1.5.1 255.255.255.0
Switch(config-if)# ip summary-address rip 10.2.0.0 255.255.0.0
Switch(config-if)# no ip split-horizon
Switch(config-if)# exit
Switch(config)# router rip
Switch(config-router)# network 10.0.0.0
Switch(config-router)# neighbor 2.2.2.2 peer-group mygroup
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
Step3 ip address ip-address subnet-mask Configure the IP address and IP subnet.
Step4 ip summary-address rip ip address ip-network mask Configure the IP address to be summarized and the IP
network mask.
Step5 no ip split horizon Disable split horizon on the interface.
Step6 end Return to privileged EXEC mode.
Step7 show ip interface interface-id Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-30
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IGRP
Configuring IGRP
Interior Gateway Routing Protocol (IGRP) is a dynamic, distance-vector routing, proprietary Cisco
protocol for routing in an autonomous system that contains large, arbitrarily complex networks with
diverse bandwidth and delay characteristics. IGRP uses a combination of user-configurable metrics,
including internetwork delay, bandwidth, reliability, and load. IGRP also advertises types of routes:
interior, system, and exterior, as shown in Figure 22-4.
Interior routes are routes between subnets in the network attached to a router interface. If the
network attached to a router is not subnetted, IGRP does not advertise interior routes.
System routes are routes to networks within an autonomous system. The router derives system routes
from directly connected network interfaces and system route information provided by other
IGRP-speaking routers or access servers. System routes do not include subnet information.
Exterior routes are routes to networks outside the autonomous system that are considered when
identifying a gateway of last resort. The router chooses a gateway of last resort from the list of
exterior routes that IGRP provides if it does not have a better route for a packet and the destination
is not a connected network. If the autonomous system has more than one connection to an external
network, different routers can choose different exterior routers as the gateway of last resort.
Figure22-4 Interior, System, and Exterior Routes
By default, a router running IGRP sends an update broadcast every 90 seconds and declares a route
inaccessible if it does not receive an update from the first router in the route within three update periods
(270 seconds). After seven update periods (630 seconds), the route is removed from the routing table.
Table 22-6 shows the default IGRP configuration.
Router
System
S
u
b
n
e
t
A
S
u
b
n
e
t
B
I
n
t
e
r
i
o
r
4
6
6
4
9
Exterior
Autonomous system 1
Autonomous
system 2
Router Router
Table22-6 Default IGRP Configuration
Feature Default Setting
IP split horizon Varies with media.
Metric holddown Disabled.
Metric maximum-hops 100 hops.
Neighbor None defined.
22-31
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IGRP
Routers running IGRP use flash and poison-reverse updates to speed up the convergence of the routing
algorithm. Flash updates are updates sent before the standard interval, notifying other routers of a metric
change. Poison-reverse updates are intended to defeat larger routing loops caused by increases in routing
metrics. The poison-reverse updates are sent to remove a route and place it in hold-down, which keeps
new routing information from being used for a certain period of time.
Load Balancing and Traffic Distribution Control
IGRP can simultaneously use an asymmetric set of paths for a given destination. This unequal-cost load
balancing allows traffic to be distributed among up to four unequal-cost paths to provide greater overall
throughput and reliability.
Alternate path variance (that is, the difference in desirability between the primary and alternate paths)
determines the feasibility of a potential route. An alternate route is feasible if the next router in the path
is closer to the destination (has a lower metric value) than the router being used, and if the metric for the
entire alternate path is within the variance. Only feasible paths are used for load balancing and are
included in the routing table. These conditions limit the number of load balancing occurrences, but
ensure that the dynamics of the network remain stable.
These general rules apply to IGRP unequal-cost load balancing:
IGRP accepts up to four paths for a given destination network.
The local best metric must be greater than the metric learned from the next router; that is, the next
hop router must be closer (have a smaller metric value) to the destination than the local best metric.
The alternative path metric must be within the specified variance of the local best metric. The
multiplier times the local best metric for the destination must be greater than or equal to the metric
through the next router.
If these conditions are met, the route is determined to be feasible and can be added to the routing table.
By default, the amount of variance is set to one (equal-cost load balancing). Use the variance router
configuration command to define how much worse an alternate path can be before that path is
disallowed.
Network None specified.
Offset-list Disabled.
Set metric None set in route map.
Timers basic Update: 90 seconds.
Invalid: 270 seconds.
Hold-down: 280 seconds.
Flush: 630 seconds.
Sleeptime: 0 milliseconds.
Traffic-share Distributed proportionately to the ratios of the metrics.
Table22-6 Default IGRP Configuration (continued)
Feature Default Setting
22-32
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IGRP
If variance is configured as described in the preceding section, IGRP or Enhanced IGRP distributes
traffic among multiple routes of unequal cost to the same destination. If you want faster convergence to
alternate routes, but you do not want to send traffic across inferior routes in the normal case, you might
prefer to have no traffic flow along routes with higher metrics. Use the traffic-share router
configuration command to control distribution of traffic among multiple routes of unequal cost.
Note For more information and examples, refer to the Cisco IOS IP and IP Routing Configuration Guide
for Release 12.1.
Beginning in privileged EXEC mode, follow these steps to configure IGRP. Configuring the routing
process is required; other steps are optional:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router igrp autonomous-system Enable an IGRP routing process, and enter router configuration mode. The
autonomous system number identifies the routes to other IGRP routers and
tags routing information.
Step3 network network-number Associate networks with an IGRP routing process. IGRP sends updates to
the interfaces in the specified networks. If an interfaces network is not
specified, it is not advertised in any IGRP update. It is not necessary to have
a registered autonomous system number, but if you do have a registered
number, we recommend that you use it to identify your process.
Step4 offset list [access-list number | name]
{in | out} offset [type number]
(Optional) Apply an offset list to routing metrics to increase incoming and
outgoing metrics to routes learned through IGRP. You can limit the offset
list with an access list or an interface.
Step5 neighbor ip-address (Optional) Define a neighboring router with which to exchange routing
information. This step allows routing updates from RIP (normally a
broadcast protocol) to reach nonbroadcast network.
Step6 metric weights tos k1 k2 k3 k4 k5 (Optional) Adjust the IGRP metric. By default, the IGRP composite metric
is a 23-bit quantity that is the sum of the segment delays and the lowest
segment bandwidth for a given route.
tosType of services; the default is 0.
k1-k5Constants that convert a metric vector into a scalar quantity.
Defaults for k1 and k3 are 1; all others are 0.
Step7 timers basic update invalid holddown
flush [sleeptime]
(Optional) Adjust routing protocol timers.
updateThe time (in seconds) between sending of routing updates.
The default is 90 seconds.
invalidThe timer interval (in seconds) after which a route is declared
invalid. The default is 270 seconds.
holddownThe time (in seconds) during which routing information
about better paths is suppressed. The default is 280 seconds.
flushThe time (in seconds) that must pass before a route is removed
from the routing table. The default is 630 seconds.
sleeptimeInterval in milliseconds for postponing routing updates.
The default is 0.
22-33
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IGRP
To shut down an IGRP routing process, use the no router igrp global configuration command.
This example shows how to configure a router for IGRP and assign it autonomous system 109. The
network router configuration commands show the networks directly connected to the router.
Switch(config)# router igrp 109
Switch(config-router)# network 131.108.0.0
Switch(config-router)# network 192.31.7.0
Step8 no metric holddown (Optional) Disable the IGRP hold-down period. The route to a network is
placed in holddown if the router learns that the network is farther away than
previously known or is down. Holddown keeps new routing information
from being used for a certain period of time. This can prevent routing loops
caused by slow convergence. It is sometimes advantageous to disable
holddown to increase the network's ability to quickly respond to topology
changes; this command provides this function.
Use the metric holddown command if other routers or access servers
within the IGRP autonomous system are not configured with the no metric
holddown command. If all routers are not configured the same way, you
increase the possibility of routing loops.
Step9 metric maximum-hops hops (Optional) Configure the maximum network diameter. Routes with hop
counts exceeding this diameter are not advertised. The default is 100 hops;
the maximum is 255 hops.
Step10 no validate-update-source (Optional) Disable validation of the source IP address of incoming RIP
routing updates. By default, the switch validates the source IP address of
incoming RIP routing updates and discards the update if the source address
is not valid.
Step11 variance multiplier (Optional) Define the variance associated with a particular path to enable
unequal-cost load balancing if desired, balancing traffic across all feasible
paths to converge to a new path if a path should fail. The multiplier can be
from 1 to 128; the default is 1 (equal-cost load balancing).
Step12 traffic-share {balanced | min} (Optional) Distribute traffic by one of these methods:
balancedProportionately to the ratios of metrics
minBy the minimum-cost route.
Step13 end Return to privileged EXEC mode.
Step14 show ip protocols Verify your entries.
Step15 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
22-34
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IGRP
This is an example of output from the show ip protocols privileged EXEC command that verifies the
IGRP configuration.
Switch# show ip protocols
<output truncated>
Routing Protocol is "igrp 109"
Sending updates every 90 seconds, next due in 52 seconds
Invalid after 270 seconds, hold down 280, flushed after 630
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
IGRP maximum hopcount 100
IGRP maximum metric variance 1
Redistributing: igrp 109
Maximum path: 4
Routing for Networks:
131.108.0.0
183.31.0.0
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 100)
Split Horizon
Routers connected to broadcast-type IP networks and using distance-vector routing protocols normally
use the split-horizon mechanism to reduce the possibility of routing loops. Split horizon blocks
information about routes from being advertised by a router on any interface from which that information
originated. This feature can optimize communication among multiple routers, especially when links are
broken.
Note In general, we do not recommend disabling split horizon unless you are certain that your application
requires it to properly advertise routes.
Beginning in privileged EXEC mode, follow these steps to disable split horizon on the interface:
To enable the split horizon mechanism, use the ip split-horizon interface configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to
configure.
Step3 ip address ip-address subnet-mask Configure the IP address and IP subnet.
Step4 no ip split-horizon Disable split horizon on the interface.
Step5 end Return to privileged EXEC mode.
Step6 show ip interface interface-id Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-35
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Configuring OSPF
This section briefly describes how to configure Open Shortest Path First (OSPF). For a complete
description of the OSPF commands, refer to the OSPF Commands chapter of the Cisco IOS IP and IP
Routing Command Reference for Release 12.1.
Note OSPF classifies different media into broadcast, nonbroadcast, and point-to-point networks. The
Catalyst 3550 switch supports broadcast (Ethernet, Token Ring, and FDDI) and point-to-point
networks (Ethernet interfaces configured as point-to-point links).
OSPF is an Interior Gateway Protocol (IGP) designed expressly for IP networks, supporting IP
subnetting and tagging of externally derived routing information. OSPF also allows packet
authentication and uses IP multicast when sending and receiving packets. The Cisco implementation
supports RFC 1253, OSPF management information base (MIB).
For protocol-independent features that include OSPF, see the Configuring Protocol-Independent
Features section on page 22-53.
The Cisco implementation conforms to the OSPF Version 2 specifications with these key features:
Stub areasDefinition of stub areas is supported.
Route redistributionRoutes learned through any IP routing protocol can be redistributed into
another IP routing protocol. At the intradomain level, this means that OSPF can import routes
learned through IGRP and RIP. OSPF routes can also be exported into IGRP and RIP.
AuthenticationPlain text and MD5 authentication among neighboring routers within an area is
supported.
Routing interface parameterConfigurable parameters supported include interface output cost,
retransmission interval, interface transmit delay, router priority, router dead and hello intervals, and
authentication key.
Virtual linksVirtual links are supported.
Not-so-stubby-area (NSSA)RFC 1587.
OSPF typically requires coordination among many internal routers, area border routers (ABRs)
connected to multiple areas, and autonomous system boundary routers (ASBRs). The minimum
configuration would use all default parameter values, no authentication, and interfaces assigned to areas.
If you customize your environment, you must ensure coordinated configuration of all routers.
Table 22-7 shows the default OSPF configuration.
22-36
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Table22-7 Default OSPF Configuration
Feature Default Setting
Interface parameters Cost: No default cost predefined.
Retransmit interval: 5 seconds.
Transmit delay: 1 second.
Priority: 1.
Hello interval: 10 seconds.
Dead interval: 4 times the hello interval.
No authentication.
No password specified.
MD5 authentication disabled.
Area Authentication type: 0 (no authentication).
Default cost: 1.
Range: Disabled.
Stub: No stub area defined.
NSSA: No NSSA area defined.
Auto cost 100 Mbps.
Default-information originate Disabled. When enabled, the default metric setting is 10, and the
external route type default is Type 2.
Default metric Built-in, automatic metric translation, as appropriate for each
routing protocol.
Distance OSPF dist1 (all routes within an area): 110.
dist2 (all routes from one area to another): 110.
and dist3 (routes from other routing domains): 110.
OSPF database filter Disabled. All outgoing link-state advertisements (LSAs) are
flooded to the interface.
IP OSPF name lookup Disabled.
Log adjacency changes Enabled.
Neighbor None specified.
Neighbor database filter Disabled. All outgoing LSAs are flooded to the neighbor.
Network area Disabled.
Router ID No OSPF routing process defined.
Summary address Disabled.
Timers LSA group pacing 240 seconds.
22-37
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Enabling OSPF requires that you create an OSPF routing process, specify the range of IP addresses to
be associated with the routing process, and assign area IDs to be associated with that range.
Beginning in privileged EXEC mode, follow these steps to enable OSPF:
To terminate an OSPF routing process, use the no router ospf process-id global configuration command.
This example shows how to configure an OSPF routing process and assign it a process number of 109:
Switch(config)# router ospf 109
Switch(config-router)# network 131.108.0.0 255.255.255.0 area 24
Timers shortest path first (spf) spf delay: 5 seconds.
spf-holdtime: 10 seconds.
Virtual link No area ID or router ID defined.
Hello interval: 10 seconds.
Retransmit interval: 5 seconds.
Transmit delay: 1 second.
Dead interval: 40 seconds.
Authentication key: no key predefined.
Message-digest key (MD5): no key predefined.
Table22-7 Default OSPF Configuration (continued)
Feature Default Setting
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router ospf process-id Enable OSPF routing, and enter router configuration mode. The
process ID is an internally used identification parameter that is
locally assigned and can be any positive integer. Each OSPF
routing process has a unique value.
Step3 network address wildcard-mask area area-id Define an interface on which OSPF runs and the area ID for that
interface. You can use the wildcard-mask to use a single
command to define one or more multiple interfaces to be
associated with a specific OSPF area. The area ID can be a
decimal value or an IP address.
Step4 end Return to privileged EXEC mode.
Step5 show ip protocols Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-38
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
This is an example of output from the show ip protocols privileged EXEC command that verifies the
OSPF process ID.
Switch# show ip protocols
<output truncated>
Routing Protocol is "ospf 109"
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: ospf 109
Maximum path: 4
Routing for Networks:
131.108.0.0/24 Area 24
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 110)
OSPF Interface Parameters
You can use the ip ospf interface configuration commands to modify interface-specific OSPF
parameters. You are not required to modify any of these parameters, but some interface parameters (hello
interval, dead interval, and authentication key) must be consistent across all routers in an attached
network. If you modify these parameters, be sure all routers in the network have compatible values.
Note The ip ospf interface configuration commands are all optional.
Beginning in privileged EXEC mode, follow these steps to modify OSPF interface parameters:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3 interface
to configure.
Step3 ip ospf cost (Optional) Explicitly specify the cost of sending a packet on the
interface.
Step4 ip ospf retransmit-interval seconds (Optional) Specify the number of seconds between link state
advertisement transmissions. The range is 1 to 65535 seconds. The
default is 5 seconds.
Step5 ip ospf transmit-delay seconds (Optional) Set the estimated number of seconds to wait before
sending a link state update packet. The range is 1 to 65535 seconds.
The default is 1 second.
Step6 ip ospf priority number (Optional) Set priority to help determine the OSPF designated router
for a network. The range is from 0 to 255. The default is 1.
Step7 ip ospf hello-interval seconds (Optional) Set the number of seconds between hello packets sent on
an OSPF interface. The value must be the same for all nodes on a
network. The range is 1 to 65535 seconds. The default is 10 seconds.
Step8 ip ospf dead-interval seconds (Optional) Set the number of seconds after the last device hello
packet was seen before its neighbors declare the OSPF router to be
down. The value must be the same for all nodes on a network. The
range is 1 to 65535 seconds. The default is 4 times the hello interval.
22-39
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Use the no form of these commands to remove the configured parameter value or return to the
default value.
This is an example of output from the show ip ospf interface privileged EXEC command:
Switch# show ip ospf interface
Vlan1 is up, line protocol is up
Internet Address 172.20.135.202/14, Area 1
Process ID 1, Router ID 172.20.135.202, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 172.20.135.202, Interface address 172.20.135.202
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 0, maximum is 0
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
OSPF Area Parameters
You can optionally configure several OSPF area parameters. These parameters include authentication
for password-based protection against unauthorized access to an area, stub areas, and
not-so-stubby-areas (NSSAs). Stub areas are areas into which information on external routes is not sent.
Instead, the area border router (ABR) generates a default external route into the stub area for destinations
outside the autonomous system (AS). An NSSA does not flood all LSAs from the core into the area, but
can import AS external routes within the area by redistribution.
Route summarization is the consolidation of advertised addresses into a single summary route to be
advertised by other areas. If network numbers are contiguous, you can use the area range router
configuration command to configure the ABR to advertise a summary route that covers all networks in
the range.
Step9 ip ospf authentication-key key (Optional) Assign a password to be used by neighboring OSPF
routers. The password can be any string of keyboard-entered
characters up to 8 bytes in length. All neighboring routers on the
same network must have the same password to exchange OSPF
information.
Step10 ip ospf message digest-key keyid md5 key (Optional) Enable MDS authentication.
keyidAn identifier from 1 to 255.
keyAn alphanumeric password of up to 16 bytes.
Step11 ip ospf database-filter all out (Optional) Block flooding of OSPF LSA packets to the interface. By
default, OSPF floods new LSAs over all interfaces in the same area,
except the interface on which the LSA arrives.
Step12 end Return to privileged EXEC mode.
Step13 show ip ospf interface [interface-name] Display OSPF-related interface information.
Step14 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
22-40
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Note The OSPF area router configuration commands are all optional.
Beginning in privileged EXEC mode, follow these steps to configure area parameters:
Use the no form of these commands to remove the configured parameter value or to return to the
default value.
These are examples of outputs from the show ip ospf database and show ip ospf privileged EXEC
commands:
Switch # show ip ospf database
OSPF Router with ID (172.20.135.202) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
172.20.135.202 172.20.135.202 455 0x80000009 0x83C2 1
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router ospf process-id Enable OSPF routing, and enter router configuration mode.
Step3 area area-id authentication (Optional) Allow password-based protection against unauthorized
access to the identified area. The identifier can be either a decimal
value or an IP address.
Step4 area area-id authentication message-digest (Optional) Enable MD5 authentication on the area.
Step5 area area-id stub [no-summary] (Optional) Define an area as a stub area. The no-summary keyword
prevents an ABR from sending summary link advertisements into the
stub area.
Step6 area area-id nssa [no-redistribution]
[default-information-originate]
[no-summary]
(Optional) Defines an area as a not-so-stubby-area. Every router
within the same area must agree that the area is NSSA. Select one of
these keywords:
no-redistributionSelect when the router is an NSSA ABR and
you want the redistribute command to import routes into normal
areas, but not into the NSSA.
default-information-originateSelect on an ABR to allow
importing type 7 LSAs into the NSSA.
no-redistributionSelect to not send summary LSAs into the
NSSA.
Step7 area area-id range address mask (Optional) Specify an address range for which a single route is
advertised. Use this command only with area border routers.
Step8 end Return to privileged EXEC mode.
Step9 show ip ospf [process-id]
show ip ospf [process-id [area-id]] database
Display information about the OSPF routing process in general or for
a specific process ID to verify configuration.
Display lists of information related to the OSPF database for a
specific router.
Step10 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-41
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Switch# show ip ospf
Routing Process "ospf 1" with ID 172.20.135.202 and Domain ID 0.0.0.1
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 0. Checksum Sum 0x0
Number of opaque AS LSA 0. Checksum Sum 0x0
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
Area 1
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 1 times
Area ranges are
Number of LSA 1. Checksum Sum 0x83C2
Number of opaque link LSA 0. Checksum Sum 0x0
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Other OSPF Behavior Parameters
You can optionally configure other OSPF parameters in router configuration mode.
Route summarization: When redistributing routes from other protocols as described in the
Redistributing Routing Information section on page 22-57, each route is advertised individually
in an external LSA. To help decrease the size of the OSPF link state database, you can use the
summary-address router configuration command to advertise a single router for all the
redistributed routes included in a specified network address and mask.
Virtual links: In OSPF, all areas must be connected to a backbone area. You can establish a virtual
link in case of a backbone-continuity break by configuring two Area Border Routers as endpoints
of a virtual link. Configuration information includes the identity of the other virtual endpoint (the
other ABR) and the nonbackbone link that the two routers have in common (the transit area). Virtual
links cannot be configured through a stub area.
Default route: When you specifically configure redistribution of routes into an OSPF routing
domain, the route automatically becomes an autonomous system boundary router (ASBR). You can
force the ASBR to generate a default route into the OSPF routing domain.
Domain Name Server (DNS) names for use in all OSPF show privileged EXEC command displays
makes it easier to identify a router than displaying it by router ID or neighbor ID.
Default Metrics: OSPF calculates the OSPF metric for an interface according to the bandwidth of
the interface. The metric is calculated as ref-bw divided by bandwidth, where ref is 10 by default,
and bandwidth (bw) is determined by the bandwidth interface configuration command. For multiple
links with high bandwidth, you can specify a larger number to differentiate the cost on those links.
Administrative distance is a rating of the trustworthiness of a routing information source, an integer
between 0 and 255, with a higher value meaning a lower trust rating. An administrative distance of
255 means the routing information source cannot be trusted at all and should be ignored. OSPF uses
three different administrative distances: routes within an area (interarea), routes to another area
(interarea), and routes from another routing domain learned through redistribution (external). You
can change any of the distance values.
22-42
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Passive interfaces: Because interfaces between two devices on an Ethernet represent only one
network segment, to prevent OSPF from sending hello packets for the sending interface, you must
configure the sending device to be a passive interface. Both devices can identify each other through
the hello packet for the receiving interface.
Route calculation timers: You can configure the delay time between when OSPF receives a topology
change and when it starts the shortest path first (SPF) calculation and the hold time between two
SPF calculations.
Log neighbor changes: You can configure the router to send a syslog message when an OSPF
neighbor state changes, providing a high-level view of changes in the router.
Beginning in privileged EXEC mode, follow these steps to configure these OSPF parameters:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router ospf process-id Enable OSPF routing, and enter router configuration mode.
Step3 summary-address address mask (Optional) Specify an address and IP subnet mask for redistributed
routes so that only one summary route is advertised.
Step4 area area-id virtual-link router-id
[hello-interval seconds]
[retransmit-interval seconds] [trans]
[[authentication-key key] |
message-digest-key keyid md5 key]]
(Optional) Establish a virtual link and set its parameters. See the
OSPF Interface Parameters section on page 22-38 for parameter
definitions and Table 22-7 on page 22-36 for virtual link defaults.
Step5 default-information originate [always]
[metric metric-value] [metric-type
type-value] [route-map map-name]
(Optional) Force the ASBR to generate a default route into the OSPF
routing domain. Parameters are all optional.
Step6 ip ospf name-lookup (Optional) Configure DNS name lookup. The default is disabled.
Step7 ip auto-cost reference-bandwidth ref-bw (Optional) Specify an address range for which a single route will be
advertised. Use this command only with area border routers.
Step8 distance ospf {[inter-area dist1] [inter-area
dist2] [external dist3]}
(Optional) Change the OSPF distance values. The default distance
for each type of route is 110. The range is 1 to 255.
Step9 passive-interface type number (Optional) Suppress the sending of hello packets through the
specified interface.
Step10 timers spf spf-delay spf-holdtime (Optional) Configure route calculation timers.
spf-delayEnter an integer from 0 to 65535. The default is 5
seconds; 0 means no delay.
spf-holdtimeEnter an integer from 0 to 65535. The default is
10 seconds; 0 means no delay.
Step11 ospf log-adj-changes (Optional) Send syslog message when a neighbor state changes.
Step12 end Return to privileged EXEC mode.
Step13 show ip ospf [process-id [area-id]] database Display lists of information related to the OSPF database for a
specific router. For some of the keyword options, see to the
Monitoring OSPF section on page 22-44.
Step14 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-43
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Change LSA Group Pacing
The OSPF LSA group pacing feature allows the router to group OSPF LSAs and pace the refreshing,
check-summing, and aging functions for more efficient router use. This feature is enabled by default
with a 4-minute default pacing interval, and you will not usually need to modify this parameter. The
optimum group pacing interval is inversely proportional to the number of LSAs the router is refreshing,
check-summing, and aging. For example, if you have approximately 10,000 LSAs in the database,
decreasing the pacing interval would benefit you. If you have a very small database (40 to 100 LSAs),
increasing the pacing interval to 10 to 20 minutes might benefit you slightly.
Beginning in privileged EXEC mode, follow these steps to configure OSPF LSA pacing:
To return to the default value, use the no timers lsa-group-pacing router configuration command.
Loopback Interface
OSPF uses the highest IP address configured on the interfaces as its router ID. If this interface is down
or removed, the OSPF process must recalculate a new router ID and resend all its routing information
out its interfaces. If a loopback interface is configured with an IP address, OSPF uses this IP address as
its router ID, even if other interfaces have higher IP addresses. Because loopback interfaces never fail,
this provides greater stability. OSPF automatically prefers a loopback interface over other interfaces, and
it chooses the highest IP address among all loopback interfaces.
Beginning in privileged EXEC mode, follow these steps to configure a loopback interface:
Use the no interface loopback 0 global configuration command to disable the loopback interface.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router ospf process-id Enable OSPF routing, and enter router configuration mode.
Step3 timers lsa-group-pacing seconds Change the group pacing of LSAs.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface loopback 0 Create a loopback interface, and enter interface configuration mode.
Step3 ip address address mask Assign an IP address to this interface.
Step4 end Return to privileged EXEC mode.
Step5 show ip interface Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-44
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
Monitoring OSPF
You can display specific statistics such as the contents of IP routing tables, caches, and databases.
Table 22-8 lists some of the privileged EXEC commands for displaying statistics. For more show ip ospf
database privileged EXEC command options and for explanations of fields in the resulting display, refer
to the Cisco IOS IP and IP Routing Command Reference for Release 12.1.
This is an example of output from the show ip ospf privileged EXEC command with no process ID:
Switch# show ip ospf
Routing Process "ospf 1" with ID 172.20.135.202 and Domain ID 0.0.0.1
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 0. Checksum Sum 0x0
Number of opaque AS LSA 0. Checksum Sum 0x0
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
Area 1
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 1 times
Area ranges are
Number of LSA 1. Checksum Sum 0x39E7
Number of opaque link LSA 0. Checksum Sum 0x0
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Table22-8 Show IP OSPF Statistics Commands
Command Purpose
show ip ospf [process-id] Display general information about OSPF routing
processes.
show ip ospf [process-id] database [router] [link-state-id]
show ip ospf [process-id] database [router] [self-originate]
show ip ospf [process-id] database [router] [adv-router [ip-address]]
show ip ospf [process-id] database [network] [link-state-id]
show ip ospf [process-id] database [summary] [link-state-id]
show ip ospf [process-id] database [asbr-summary] [link-state-id]
show ip ospf [process-id] database [external] [link-state-id]
show ip ospf [process-id area-id] database [database-summary]
Display lists of information related to the OSPF
database.
show ip ospf border-routes Display the internal OSPF routing ABR and ASBR
table entries.
show ip ospf interface [interface-name] Display OSPF-related interface information.
show ip ospf neighbor [interface-name] [neighbor-id] detail Display OSPF interface neighbor information.
show ip ospf virtual-links Display OSPF-related virtual links information.
22-45
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring OSPF
This is an example of output from the show ip ospf database privileged EXEC command when no
arguments or keywords are used:
Switch# show ip ospf database
O OSPF Router with ID (172.20.135.202) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
172.20.135.202 172.20.135.202 1065 0x8000002E 0x39E7 1
This is an example of output of the show ip ospf interface privileged EXEC command when Gigabit
Ethernet 0/1 is specified:
Switch# show ip ospf interface gigabitethernet0/1
GigabitEthernet 0/1 is up, line protocol is up
Internet Address 131.119.254.202, Mask 255.255.255.0, Area 0.0.0.0
AS 201, Router ID 192.77.99.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State OTHER, Priority 1
Designated Router id 131.119.254.10, Interface address 131.119.254.10
Backup Designated router id 131.119.254.28, Interface addr 131.119.254.28
Timer intervals configured, Hello 10, Dead 60, Wait 40, Retransmit 5
Hello due in 0:00:05
Neighbor Count is 8, Adjacent neighbor count is 2
Adjacent with neighbor 131.119.254.28 (Backup Designated Router)
Adjacent with neighbor 131.119.254.10 (Designated Router)
This is an example of output from the show ip ospf neighbor privileged EXEC command showing a
single line of summary information for each neighbor:
Switch# show ip ospf neighbor
ID Pri State Dead Time Address Interface
199.199.199.137 1 FULL/DR 0:00:31 160.89.80.37 Ethernet0
192.31.48.1 1 FULL/DROTHER 0:00:33 192.31.48.1 Fddi0
192.31.48.200 1 FULL/DROTHER 0:00:33 192.31.48.200 Fddi0
199.199.199.137 5 FULL/DR 0:00:33 192.31.48.189 Fddi0
This is an example of output from the show ip ospf virtual-links privileged EXEC command:
Switch# show ip ospf virtual-links
Virtual Link to router 160.89.101.2 is up
Transit area 0.0.0.1, via interface Ethernet0, Cost of using 10
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 0:00:08
Adjacency State FULL
22-46
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
Configuring EIGRP
Enhanced IGRP (EIGRP) is a Cisco proprietary enhanced version of the IGRP. Enhanced IGRP uses the
same distance vector algorithm and distance information as IGRP; however, the convergence properties
and the operating efficiency of Enhanced IGRP are significantly improved.
The convergence technology employs an algorithm referred to as the Diffusing Update Algorithm
(DUAL), which guarantees loop-free operation at every instant throughout a route computation and
allows all devices involved in a topology change to synchronize at the same time. Routers that are not
affected by topology changes are not involved in recomputations.
IP EIGRP provides increased network width. With RIP, the largest possible width of your network is
15 hops. When IGRP is enabled, the largest possible width is 224 hops. Because the EIGRP metric is
large enough to support thousands of hops, the only barrier to expanding the network is the
transport-layer hop counter. EIGRP increments the transport control field only when an IP packet has
traversed 15 routers and the next hop to the destination was learned through EIGRP. When a RIP route
is used as the next hop to the destination, the transport control field is incremented as usual.
EIGRP offers these features:
Fast convergence.
Incremental updates when the state of a destination changes, instead of sending the entire contents
of the routing table, minimizing the bandwidth required for EIGRP packets.
Less CPU usage than IGRP because full update packets need not be processed each time they are
received.
Protocol-independent neighbor discovery mechanism to learn about neighboring routers.
Variable-length subnet masks (VLSMs).
Arbitrary route summarization.
EIGRP scales to large networks.
Enhanced IGRP has these four basic components:
Neighbor discovery and recovery is the process that routers use to dynamically learn of other routers
on their directly attached networks. Routers must also discover when their neighbors become
unreachable or inoperative. Neighbor discovery and recovery is achieved with low overhead by
periodically sending small hello packets. As long as hello packets are received, the Cisco IOS
software can determine that a neighbor is alive and functioning. When this status is determined, the
neighboring routers can exchange routing information.
The reliable transport protocol is responsible for guaranteed, ordered delivery of EIGRP packets to
all neighbors. It supports intermixed transmission of multicast and unicast packets. Some EIGRP
packets must be sent reliably, and others need not be. For efficiency, reliability is provided only
when necessary. For example, on a multiaccess network that has multicast capabilities (such as
Ethernet), it is not necessary to send hellos reliably to all neighbors individually. Therefore, EIGRP
sends a single multicast hello with an indication in the packet informing the receivers that the packet
need not be acknowledged. Other types of packets (such as updates) require acknowledgment, which
is shown in the packet. The reliable transport has a provision to send multicast packets quickly when
there are unacknowledged packets pending. Doing so helps ensure that convergence time remains
low in the presence of varying speed links.
The DUAL finite state machine embodies the decision process for all route computations. It tracks
all routes advertised by all neighbors. DUAL uses the distance information (known as a metric) to
select efficient, loop-free paths. DUAL selects routes to be inserted into a routing table based on
feasible successors. A successor is a neighboring router used for packet forwarding that has a
least-cost path to a destination that is guaranteed not to be part of a routing loop. When there are no
22-47
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
feasible successors, but there are neighbors advertising the destination, a recomputation must occur.
This is the process whereby a new successor is determined. The amount of time it takes to recompute
the route affects the convergence time. Recomputation is processor-intensive; it is advantageous to
avoid recomputation if it is not necessary. When a topology change occurs, DUAL tests for feasible
successors. If there are feasible successors, it uses any it finds to avoid unnecessary recomputation.
The protocol-dependent modules are responsible for network layer protocol-specific tasks. An
example is the IP EIGRP module, which is responsible for sending and receiving EIGRP packets
that are encapsulated in IP. It is also responsible for parsing EIGRP packets and informing DUAL
of the new information received. EIGRP asks DUAL to make routing decisions, but the results are
stored in the IP routing table. EIGRP is also responsible for redistributing routes learned by other
IP routing protocols.
Table 22-9 shows the default EIGRP configuration.
Table22-9 Default EIGRP Configuration
Feature Default Setting
Auto summary Enabled. Subprefixes are summarized to the classful network
boundary when crossing classful network boundaries.
Default-information Exterior routes are accepted and default information is passed
between IGRP or EIGRP processes when doing redistribution.
Default metric Only connected routes and interface static routes can be redistributed
without a default metric. The metric includes:
Bandwidth: 0 or greater kbps.
Delay (tens of microseconds): 0 or any positive number that is a
multiple of 39.1 nanoseconds.
Reliability: any number between 0 and 255 (255 means
100 percent reliability).
Loading: effective bandwidth as a number between 0 and 255
(255 is 100 percent loading).
MTU: maximum transmission unit size of the route in bytes. 0 or
any positive integer.
Distance Internal distance: 90.
External distance: 170.
EIGRP log-neighbor changes Disabled. No adjacency changes logged.
IP authentication key-chain No authentication provided.
IP authentication mode No authentication provided.
IP bandwidth-percent 50 percent.
IP hello interval For low-speed nonbroadcast multiaccess (NBMA) networks:
60 seconds; all other networks: 5 seconds.
IP hold-time For low-speed NBMA networks: 180 seconds; all other networks:
15 seconds.
IP split-horizon Enabled.
IP summary address No summary aggregate addresses are predefined.
Metric weights tos: 0; k1 and k3: 1; k2, k4, and k5: 0
22-48
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
To create an EIGRP routing process, you must enable EIGRP and associate networks. EIGRP sends
updates to the interfaces in the specified networks. If you do not specify an interface network, it is not
advertised in any EIGRP update.
Note If you have routers on your network that are configured for IGRP, and you want to change to EIGRP,
you must designate transition routers that have both IGRP and EIGRP configured. In these cases,
perform Steps 1 through 3 in the next section and also see the Configuring IGRP section on
page 22-30. You must use the same autonomous system number for routes to be automatically
redistributed.
EIGRP Router Mode Commands
Beginning in privileged EXEC mode, follow these steps to configure EIGRP. Configuring the routing
process is required; other steps are optional:
Network None specified.
Offset-list Disabled.
Router EIGRP Disabled.
Set metric No metric set in the route map.
Traffic-share Distributed proportionately to the ratios of the metrics.
Variance 1 (equal-cost load balancing).
Table22-9 Default EIGRP Configuration (continued)
Feature Default Setting
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router eigrp autonomous-system Enable an EIGRP routing process, and enter router configuration
mode. The autonomous system number identifies the routes to
other EIGRP routers and is used to tag routing information.
Step3 network network-number Associate networks with an EIGRP routing process. EIGRP sends
updates to the interfaces in the specified networks. If an interfaces
network is not specified, it is not advertised in any IGRP or
EIGRP update.
Step4 eigrp log-neighbor-changes (Optional) Enable logging of EIGRP neighbor changes to monitor
routing system stability.
Step5 metric weights tos k1 k2 k3 k4 k5 (Optional) Adjust the EIGRP metric. Although the defaults have
been carefully determined to provide excellent operation in most
networks, you can adjust them.
Caution Determining metrics is complex and is not
recommended without guidance from an experienced
network designer.
22-49
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
Use the no forms of these commands to disable the feature or return the setting to the default value.
This is an example of output from the show ip protocols privileged EXEC command for EIGRP.
Switch# show ip protocols
<output truncated>
Routing Protocol is "eigrp 1"
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 1, igrp 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
172.20.0.0
Routing Information Sources:
Gateway Distance Last Update
Distance: internal 90 external 170
EIGRP Interface Mode Commands
Other optional EIGRP parameters can be configured on an interface basis.
Beginning in privileged EXEC mode, follow these steps:
Step6 offset list [access-list number | name] {in | out}
offset [type number]
(Optional) Apply an offset list to routing metrics to increase
incoming and outgoing metrics to routes learned through EIGRP.
You can limit the offset list with an access list or an interface.
Step7 no auto-summary (Optional) Disable automatic summarization of subnet routes into
network-level routes.
Step8 ip summary-address eigrp
autonomous-system-number address mask
(Optional) Configure a summary aggregate.
Step9 end Return to privileged EXEC mode.
Step10 show ip protocols Verify your entries.
Step11 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
Step3 ip bandwidth-percent eigrp percent (Optional) Configure the percentage of bandwidth that can
be used by EIGRP on an interface. The default is 50 percent.
Step4 ip summary-address eigrp
autonomous-system-number address mask
(Optional) Configure a summary aggregate address for a
specified interface (not usually necessary if auto-summary is
enabled).
22-50
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
Use the no forms of these commands to disable the feature or return the setting to the default value.
This is an example of output from the show ip eigrp interface privileged EXEC command:
Switch# show ip eigrp interface
IP-EIGRP interfaces for process 1
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Vl1 1 0/0 1000 0/10 0 0
Configure EIGRP Route Authentication
EIGRP route authentication provides MD5 authentication of routing updates from the EIGRP routing
protocol to prevent the introduction of unauthorized or false routing messages from unapproved sources.
Beginning in privileged EXEC mode, follow these steps to enable authentication:
Step5 ip hello-interval eigrp autonomous-system-number
seconds
(Optional) Change the hello time interval for an EIGRP
routing process. The range is 1 to 65535 seconds. The
default is 60 seconds for low-speed NBMA networks and 5
seconds for all other networks.
Step6 ip hold-time eigrp autonomous-system-number
seconds
(Optional) Change the hold time interval for an EIGRP
routing process. The range is 1 to 65535 seconds. The
default is 180 seconds for low-speed NBMA networks and
15 seconds for all other networks.
Caution Do not adjust the hold time without consulting
Cisco technical support.
Step7 no ip split-horizon eigrp autonomous-system-number (Optional) Disable split horizon to allow route information
to be advertised by a router out any interface from which that
information originated.
Step8 end Return to privileged EXEC mode.
Step9 show ip eigrp interface Display which interfaces EIGRP is active on and
information about EIGRP relating to those interfaces.
Step10 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the
Layer 3 interface to configure.
Step3 ip authentication mode eigrp autonomous-system md5 Enable MD5 authentication in IP EIGRP packets.
Step4 ip authentication key-chain eigrp autonomous-system
key-chain
Enable authentication of IP EIGRP packets.
Step5 exit Return to global configuration mode.
Step6 key chain name-of-chain Identify a key chain and enter key-chain configuration
mode. Match the name configured in Step 4.
22-51
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
Use the no forms of these commands to disable the feature or to return the setting to the default value.
Monitoring and Maintaining EIGRP
You can delete neighbors from the neighbor table. You can also display various EIGRP routing statistics.
Table 22-10 lists the privileged EXEC commands for deleting neighbors and displaying statistics. For
explanations of fields in the resulting display, refer to the Cisco IOS IP and IP Routing Command
Reference for Release 12.1.
Step7 key number In key-chain configuration mode, identify the key
number.
Step8 key-string text In key-chain key configuration mode, identify the key
string.
Step9 accept-lifetime start-time {infinite | end-time | duration
seconds}
(Optional) Specify the time period during which the key
can be received.
The start-time and end-time syntax can be either
hh:mm:ss Month date year or hh:mm:ss date Month
year. The default is forever with the default start-time
and the earliest acceptable date as January 1, 1993. The
default end-time and duration is infinite.
Step10 send-lifetime start-time {infinite | end-time | duration
seconds}
(Optional) Specify the time period during which the key
can be sent.
The start-time and end-time syntax can be either
hh:mm:ss Month date year or hh:mm:ss date Month
year. The default is forever with the default start-time
and the earliest acceptable date as January 1, 1993. The
default end-time and duration is infinite.
Step11 end Return to privileged EXEC mode.
Step12 show key chain Display authentication key information.
Step13 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Table22-10 IP EIGRP Clear and Show Commands
Command Purpose
clear ip eigrp neighbors [if-address | interface] Delete neighbors from the neighbor table.
show ip eigrp interface [interface] [as number] Display information about interfaces configured for EIGRP.
show ip eigrp neighbors [type-number] Display EIGRP discovered neighbors.
show ip eigrp topology [autonomous-system-number] |
[[ip-address] mask]]
Display the EIGRP topology table for a given process.
show ip eigrp traffic [autonomous-system-number] Display the number of packets sent and received for all or a
specified EIGRP process.
22-52
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring EIGRP
This is an example of output from the show ip eigrp interface privileged EXEC command:
Switch# show ip eigrp interface
IP EIGRP interfaces for process 109
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Gi0/1 0 0/0 0 11/434 0 0
Gi0/3 1 0/0 337 0/10 0 0
Gi0/4 1 0/0 10 1/63 103 0
Gi0/5 1 0/0 330 0/16 0 0
This is an example of output from the show ip eigrp neighbors privileged EXEC command:
Switch# show ip eigrp neighbors
IP-EIGRP Neighbors for process 77
Address Interface Hold Uptime Q Seq Type
(secs) (h:m:s) Count Num
160.89.81.28 GigabitEthernet 0/1 13 0:00:41 0 11
160.89.80.28 GigabitEthernet 0/3 14 0:02:01 0 10
160.89.80.31 GigabitEthernet 0/4 12 0:02:02 0 4
This is an example of output from the show ip eigrp topology privileged EXEC command:
Switch# show ip eigrp topology
IP-EIGRP Topology Table for process 77
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - Reply status
P 160.89.90.0 255.255.255.0, 2 successors, FD is 0
via 160.89.80.28 (46251776/46226176), GigabitEthernet0/1
via 160.89.81.28 (46251776/46226176), GigabitEthernet0/3
via 160.89.80.31 (46277376/46251776), GigabitEthernet0/1
P 160.89.81.0 255.255.255.0, 1 successors, FD is 307200
via Connected, GigabitEthernet0/3
via 160.89.81.28 (307200/281600), GigabitEthernet0/3
via 160.89.80.28 (307200/281600), GigabitEthernet0/1
via 160.89.80.31 (332800/307200), GigabitEthernet0/1
This is an example of output from the show ip eigrp traffic privileged EXEC command:
Switch# show ip eigrp traffic
IP-EIGRP Traffic Statistics for process 1
Hellos sent/received: 19812/19821
Updates sent/received: 1/1
Queries sent/received: 0/0
Replies sent/received: 0/0
Acks sent/received: 1/0
Input queue high water mark 1, 0 drops
SIA-Queries sent/received: 0/0
SIA-Replies sent/received: 0/0
22-53
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Configuring Protocol-Independent Features
This section describes how to configure IP routing protocol-independent features. For a complete
description of the IP routing protocol-independent commands in this chapter, refer to the IP Routing
Protocol-Independent Commands chapter of the Cisco IOS IP and IP Routing Command Reference for
Release 12.1.
This section includes these procedures:
Configuring Cisco Express Forwarding, page 22-53
Configuring the Number of Equal-Cost Routing Paths, page 22-54
Configuring Static Routes, page 22-55
Specifying Default Routes, page 22-56
Redistributing Routing Information, page 22-57
Filtering Routing Information, page 22-61
Managing Authentication Keys, page 22-63
Configuring Cisco Express Forwarding
Cisco Express Forwarding (CEF) is a Layer 3 IP switching technology used to optimize network
performance. CEF implements an advanced IP look-up and forwarding algorithm to deliver maximum
Layer 3 switching performance. CEF is less CPU-intensive than fast switching route caching, allowing
more CPU processing power to be dedicated to packet forwarding. In the Catalyst 3550 switch, the
hardware uses CEF to achieve Gigabit speed line rate IP traffic. In dynamic networks, fast switching
cache entries are frequently invalidated because of routing changes, which can cause traffic to be process
switched using the routing table, instead of fast switched using the route cache. CEF uses the Forwarding
Information Base (FIB) lookup table to perform destination-based switching of IP packets.
The two main components in CEF are the FIB and adjacency tables.
The FIB is similar to a routing table or information base and maintains a mirror image of the
forwarding information in the IP routing table. When routing or topology changes occur in the
network, the IP routing table is updated, and those changes are reflected in the FIB. The FIB
maintains next-hop address information based on the information in the IP routing table. Because
the FIB contains all known routes that exist in the routing table, CEF eliminates route cache
maintenance, is more efficient for switching traffic, and is not affected by traffic patterns.
Nodes in the network are said to be adjacent if they can reach each other with a single hop across a
link layer. CEF uses adjacency tables to prepend Layer 2 addressing information. The adjacency
table maintains Layer 2 next-hop addresses for all FIB entries.
CEF is enabled globally by default. If for some reason it is disabled, you can re-enable it by using
the ip cef global configuration command.
The default configuration, which is recommended, is CEF enabled on all Layer 3 interfaces. You can
disable CEF on an interface by using the no ip route-cache cef interface configuration command; you
can enable CEF on an interface by using the ip route-cache cef interface configuration command.
22-54
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Beginning in privileged EXEC mode, follow these steps to enable CEF on an interface after it has been
disabled:
To disable CEF on an interface, use the no ip route-cache cef interface configuration command.
This is an example of output from the show ip cef privileged EXEC command:
Switch# show ip cef
Prefix Next Hop Interface
0.0.0.0/32 receive
1.0.0.0/24 attached GigabitEthernet0/2
1.0.0.0/32 receive
1.0.0.1/32 receive
1.0.0.55/32 1.0.0.55 GigabitEthernet0/2
1.0.0.255/32 receive
2.0.0.0/24 attached GigabitEthernet0/3
2.0.0.0/32 receive
2.0.0.1/32 receive
2.0.0.55/32 2.0.0.55 GigabitEthernet0/3
2.0.0.255/32 receive
224.0.0.0/4 drop
224.0.0.0/24 receive
255.255.255.255/32 receive
This is an example of output from the show adjacency privileged EXEC command:
Switch# show adjacency
Protocol Interface Address
IP GigabitEthernet0/3 2.0.0.55(5)
IP GigabitEthernet0/2 1.0.0.55(5)
Configuring the Number of Equal-Cost Routing Paths
When a router has two or more routes to the same network with the same metrics, these routes can be
thought of as having an equal cost. The term parallel path is another way to refer to occurrences of
equal-cost routes in a routing table. If a router has two or more equal-cost paths to a network, it can use
them concurrently. Parallel paths provide redundancy in case of a circuit failure and also enables a router
to load balance packets over the available paths for more efficient use of available bandwidth.
Although the router automatically learns about and configures equal-cost routes, you can control the
maximum number of parallel paths supported by an IP routing protocol in its routing table.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the
Layer 3 interface to configure.
Step3 ip route-cache cef Enable CEF on the interface.
Step4 end Return to privileged EXEC mode.
Step5 show ip cef Display the CEF status on all interfaces.
Step6 show adjacency Display CEF adjacency table information.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-55
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Beginning in privileged EXEC mode, follow these steps to change the maximum number of parallel
paths installed in a routing table from the default:
Use the no maximum-paths router configuration command to restore the default value.
Configuring Static Routes
Static routes are user-defined routes that cause packets moving between a source and a destination to
take a specified path. Static routes can be important if the router cannot build a route to a particular
destination. They are also useful for specifying a gateway of last resort to which all unroutable packets
are sent.
Beginning in privileged EXEC mode, follow these steps to configure a static route:
Use the no ip route prefix mask {address | interface} global configuration command to remove a static
route.
This is an example of output from the show ip route privileged EXEC command with a static route
configured:
Switch# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 172.20.135.193 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 172.20.135.193
C 172.20.0.0/14 is directly connected, Vlan1
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router {rip | ospf | igrp | eigrp} Enter router configuration mode.
Step3 maximum-paths maximum Set the maximum number of parallel paths for the protocol routing
table. The range is from 1 to 8; the default is 4.
Step4 end Return to privileged EXEC mode.
Step5 show ip protocols Verify the setting in the Maximum path field.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip route prefix mask {address | interface} [distance] Establish a static route.
Step3 end Return to privileged EXEC mode.
Step4 show ip route Display the current state of the routing table to verify
the configuration.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-56
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
The switch retains static routes until you remove them (by using the no ip route global configuration
command). However, you can override static routes with dynamic routing information by assigning
administrative distance values. Each dynamic routing protocol has a default administrative distance, as
listed in Table 22-11. If you want a static route to be overridden by information from a dynamic routing
protocol, set the administrative distance of the static route higher than that of the dynamic protocol.
Static routes that point to an interface are advertised through RIP, IGRP, and other dynamic routing
protocols, whether or not static redistribute router configuration commands were specified for those
routing protocols. These static routes are advertised because static routes that point to an interface are
considered in the routing table to be connected and hence lose their static nature. However, if you define
a static route to an interface that is not one of the networks defined in a network command, no dynamic
routing protocols advertise the route unless a redistribute static command is specified for these
protocols.
When an interface goes down, all static routes through that interface are removed from the IP routing
table. When the software can no longer find a valid next hop for the address specified as the forwarding
router's address in a static route, the static route is also removed from the IP routing table.
Specifying Default Routes
A router might not be able to determine the routes to all other networks. To provide complete routing
capability, you can use some routers as smart routers and give the remaining routers default routes to the
smart router. (Smart routers have routing table information for the entire internetwork.) These default
routes can be dynamically learned or can be configured in the individual routers. Most dynamic interior
routing protocols include a mechanism for causing a smart router to generate dynamic default
information that is then forwarded to other routers.
Specifying a Default Network
If a router has a directly connected interface to the specified default network, the dynamic routing
protocols running on that device generate or source a default route. In the case of RIP, it advertises the
pseudonetwork 0.0.0.0. In the case of IGRP, the network itself is advertised and flagged as an exterior
route.
A router that is generating the default for a network also might need a default of its own. One way a
router can generate its own default is to specify a static route to the network 0.0.0.0 through the
appropriate device.
Table22-11 Dynamic Routing Protocol Default Administrative Distances
Route Source Default Distance
Connected interface 0
Static route 1
Enhanced IRGP summary route 5
Internal Enhanced IGRP 90
IGRP 100
OSPF 110
RIP 120
Unknown 225
22-57
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Beginning in privileged EXEC mode, follow these steps to define a static route to a network as the static
default route:
Use the no ip default-network network number global configuration command to remove the route.
When default information is passed through a dynamic routing protocol, no further configuration is
required. The system periodically scans its routing table to choose the optimal default network as its
default route. In IGRP networks, there might be several candidate networks for the system default. Cisco
routers use administrative distance and metric information to determine the default route or the gateway
of last resort.
If dynamic default information is not being passed to the system, candidates for the default route are
specified with the ip default-network global configuration command. If this network appears in the
routing table from any source, it is flagged as a possible choice for the default route. If the router has no
interface on the default network, but does have a path to it, the network is considered as a possible
candidate, and the gateway to the best default path becomes the gateway of last resort.
Redistributing Routing Information
The switch can run multiple routing protocols simultaneously, and it can redistribute information from
one routing protocol to another. For example, you can instruct the switch to readvertise IGRP-derived
routes by using RIP or to readvertise static routes by using IGRP. Redistributing information from one
routing protocol to another applies to all supported IP-based routing protocols.
You can also conditionally control the redistribution of routes between routing domains by defining a
method known as route maps between the two domains. Although redistribution is a
protocol-independent feature, some of the match and set route-map configuration commands are
specific to a particular protocol.
One or more match commands and one or more set commands follow a route-map command. If there
are no match commands, everything matches. If there are no set commands, nothing is done, other than
the match. Therefore, you need at least one match or set command.
Note Although each of Steps 3 through 14 in the following section is optional, you must enter at least one
match route-map configuration command and one set route-map configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip default-network network number Specify a default network.
Step3 end Return to privileged EXEC mode.
Step4 show ip route Display the selected default route in the gateway of last resort
display.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-58
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Beginning in privileged EXEC mode, follow these steps to configure a route map for redistribution:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 route-map map-tag [permit | deny] [sequence number] Define any route maps used to control redistribution
and enter route-map configuration mode.
map-tagA meaningful name for the route map.
The redistribute router configuration command
uses this name to reference this route map. Multiple
route maps might share the same map tag name.
(Optional) If permit is specified and the match
criteria are met for this route map, the route is
redistributed as controlled by the set actions. If deny
is specified, the route is not redistributed.
sequence number (Optional) Number that
indicates the position a new route map is to have in
the list of route maps already configured with the
same name.
Step3 match ip address {access-list-number | access-list-name}
[...access-list-number | ...access-list-name]
Match a standard access list by specifying the name
or number. It can be an integer from 1 to 199.
Step4 match metric metric-value Match the specified route metric. The metric-value
can be an IGRP five-part metric with a specified
value from 0 to 4294967295.
Step5 match ip next-hop {access-list-number | access-list-name}
[...access-list-number | ...access-list-name]
Match a next-hop router address passed by one of
the access lists specified (numbered from 1 to 199).
Step6 match tag tag value [...tag-value] Match the specified tag value in a list of one or more
route tag values. Each can be an integer from 0 to
4294967295.
Step7 match interface type number [...type number] Match the specified next hop route out one of the
specified interfaces.
Step8 match ip route-source {access-list-number |
access-list-name} [...access-list-number | ...access-list-name]
Match the address specified by the specified
advertised access lists.
Step9 match route-type {local | internal | external [type-1 |
type-2] | level-1 | level-2}
Match the specified route-type:
localLocally generated BGP routes.
internalOSPF intra-area and interarea routes
or EIGRP internal routes.
externalOSPF external routes (Type 1 or
Type 2) or EIGRP external routes.
level-1 | -2IS-IS Level 1 or Level 2 routes.
Step10 set next-hop next-hop Specify the address of the next hop.
Step11 set level {level-1 | level-2 | level-1-2 | stub-area | backbone} Set the level for routes that are advertised into the
specified area of the routing domain. The stub-area
and backbone are OSPF NSSA and backbone areas.
22-59
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
To delete an entry, use the no route-map map tag global configuration command or the no match or no
set route-map configuration commands.
Step12 set metric metric value Set the metric value to give the redistributed routes
(for any protocol except IGRP or EIGRP). The
metric value is an integer from -294967295 to
294967295.
Step13 set metric bandwidth delay reliability loading mtu Set the metric value to give the redistributed routes
(for IGRP or EIGRP only):
bandwidthMetric value or IGRP bandwidth
of the route in kilobits per second in the range 0
to 4294967295
delayRoute delay in tens of microseconds in
the range 0 to 4294967295.
reliabilityLikelihood of successful packet
transmission expressed as a number between 0
and 255, where 255 means 100 percent
reliability and 0 means no reliability.
loading Effective bandwidth of the route
expressed as a number from 0 to 255 (255 is 100
percent loading).
mtuMinimum maximum transmission unit
(MTU) size of the route in bytes in the range 0
to 4294967295.
Step14 set metric-type {internal | external | type-1 | type-2} Set the metric type to give redistributed routes.
Step15 end Return to privileged EXEC mode.
Step16 show route-map Display all route maps configured or only the one
specified to verify configuration.
Step17 copy running-config startup-config (Optional) Save your entries in the configuration
file.
Command Purpose
22-60
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
You can distribute routes from one routing domain into another and control route distribution.
Beginning in privileged EXEC mode, follow these steps to control route redistribution. Note that the
keywords are the same as defined in the previous procedure.
To disable redistribution, use the no form of the commands.
The metrics of one routing protocol do not necessarily translate into the metrics of another. For example,
the RIP metric is a hop count, and the IGRP metric is a combination of five qualities. In these situations,
an artificial metric is assigned to the redistributed route. Uncontrolled exchanging of routing information
between different routing protocols can create routing loops and seriously degrade network operation.
If you have not defined a default redistribution metric that replaces metric conversion, some automatic
metric translations occur between routing protocols:
RIP can automatically redistribute static routes. It assigns static routes a metric of 1 (directly
connected).
IGRP can automatically redistribute static routes and information from other IGRP-routed
autonomous systems. IGRP assigns static routes a metric that identifies them as directly connected.
It does not change the metrics of routes derived from IGRP updates from other autonomous systems.
Any protocol can redistribute other routing protocols if a default mode is in effect.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router {rip | ospf | igrp | eigrp} Enter router configuration mode.
Step3 redistribute protocol [process-id] {level-1 | level-1-2 |
level-2} [metric metric-value] [metric-type type-value]
[match internal | external type-value] [tag tag-value]
[route-map map-tag] [weight weight] [subnets]
Redistribute routes from one routing protocol to
another routing protocol.
Step4 default-metric number Cause the current routing protocol to use the same
metric value for all redistributed routes (RIP and
OSPF).
Step5 default-metric bandwidth delay reliability loading mtu Cause the IGRP or EIGRP routing protocol to use the
same metric value for all non-IGRP redistributed
routes.
Step6 no default-information {in | out} Disable the redistribution of default information
between IGRP processes, which is enabled by default.
Step7 end Return to privileged EXEC mode.
Step8 show route-map Display all route maps configured or only the one
specified to verify configuration.
Step9 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-61
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Filtering Routing Information
You can filter routing protocol information by performing the tasks described in this section.
Note When routes are redistributed between OSPF processes, no OSPF metrics are preserved.
Setting Passive Interfaces
To prevent other routers on a local network from dynamically learning about routes, you can use the
passive-interface router configuration command to keep routing update messages from being sent
through a router interface. When you use this command in the OSPF protocol, the interface address you
specify as passive appears as a stub network in the OSPF domain. OSPF routing information is neither
sent nor received through the specified router interface.
In networks with many interfaces, to avoid having to manually set them as passive, you can set all
interfaces to be passive by default by using the passive-interface default router configuration command
and manually setting interfaces where adjacencies are desired.
Beginning in privileged EXEC mode, follow these steps to configure passive interfaces:
Use a network monitoring privileged EXEC command such as show ip ospf interface to verify the
interfaces that you enabled as passive, or use the show ip interface privileged EXEC command to verify
the interfaces that you enabled as active.
To re-enable the sending of routing updates, use the no passive-interface interface-id router
configuration command. The default keyword sets all interfaces as passive by default. You can then
configure individual interfaces where you want adjacencies by using the no passive-interface router
configuration command. The default keyword is useful in Internet service provider and large enterprise
networks where many of the distribution routers have more than 200 interfaces.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router {rip | ospf | igrp | eigrp} Enter router configuration mode.
Step3 passive-interface interface-id Suppress sending routing updates through the specified Layer 3
interface.
Step4 passive-interface default (Optional) Set all interfaces as passive by default.
Step5 no passive-interface interface type (Optional) Activate only those interfaces that need to have
adjacencies sent.
Step6 network network-address (Optional) Specify the list of networks for the routing process. The
network-address is an IP address.
Step7 end Return to privileged EXEC mode.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
22-62
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
Controlling Advertising and Processing in Routing Updates
You can use the distribute-list router configuration command with access control lists to suppress routes
from being advertised in routing updates and to prevent other routers from learning one or more routes.
When used in OSPF, this feature applies to only external routes, and you cannot specify an interface
name.
You can also use a distribute-list router configuration command to avoid processing certain routes listed
in incoming updates. (This feature does not apply to OSPF.)
Beginning in privileged EXEC mode, follow these steps to control the advertising or processing of
routing updates:
Use the no distribute-list in router configuration command to change or cancel a filter. To cancel
suppression of network advertisements in updates, use the no distribute-list out router configuration
command.
Filtering Sources of Routing Information
Because some routing information might be more accurate than others, you can use filtering to prioritize
information coming from different sources. An administrative distance is a rating of the trustworthiness
of a routing information source, such as a router or group of routers. In a large network, some routing
protocols can be more reliable than others. By specifying administrative distance values, you enable the
router to intelligently discriminate between sources of routing information. The router always picks the
route whose routing protocol has the lowest administrative distance. Table 22-11 on page 22-56 shows
the default administrative distances for various routing information sources.
Because each network has its own requirements, there are no general guidelines for assigning
administrative distances.
Beginning in privileged EXEC mode, follow these steps to filter sources of routing information:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router {rip | ospf | igrp | eigrp} Enter router configuration mode.
Step3 distribute-list {access-list-number |
access-list-name} out [interface-name | routing
process | autonomous-system-number]
Permit or deny routes from being advertised in routing
updates, depending upon the action listed in the access list.
Step4 distribute-list {access-list-number |
access-list-name} in [type-number]
Suppress processing in routes listed in updates.
Step5 end Return to privileged EXEC mode.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 router {rip | ospf | igrp | eigrp} Enter router configuration mode.
22-63
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring Protocol-Independent Features
To remove a distance definition, use the no distance router configuration command.
Managing Authentication Keys
Key management is a method of controlling authentication keys used by routing protocols. Not all
protocols can use key management. Authentication keys are available for EIGRP and RIP Version 2.
Before you manage authentication keys, you must enable authentication. See the appropriate protocol
section to see how to enable authentication for that protocol. To manage authentication keys, define a
key chain, identify the keys that belong to the key chain, and specify how long each key is valid. Each
key has its own key identifier (specified with the key number key chain configuration command), which
is stored locally. The combination of the key identifier and the interface associated with the message
uniquely identifies the authentication algorithm and Message Digest 5 (MD5) authentication key in use.
You can configure multiple keys with life times. Only one authentication packet is sent, regardless of
how many valid keys exist. The software examines the key numbers in order from lowest to highest, and
uses the first valid key it encounters. The lifetimes allow for overlap during key changes. Note that the
router must know these lifetimes.
Beginning in privileged EXEC mode, follow these steps to manage authentication keys:
Step3 distance weight {ip-address {ip-address mask}}
[ip access list]
Define an administrative distance.
weightThe administrative distance as an integer from
10 to 255. Used alone, weight specifies a default
administrative distance that is used when no other
specification exists for a routing information source.
Routes with a distance of 255 are not installed in the
routing table.
(Optional) ip access listAn IP standard or extended
access list to be applied to incoming routing updates.
Step4 end Return to privileged EXEC mode.
Step5 show ip protocols Display the default administrative distance for a
specified routing process.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 key chain name-of-chain Identify a key chain, and enter key chain configuration
mode.
Step3 key number Identify the key number. The range is 0 to 2147483647.
Step4 key-string text Identify the key string. The string can contain from 1 to
80 uppercase and lowercase alphanumeric characters,
but the first character cannot be a number.
22-64
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Monitoring and Maintaining the IP Network
To remove the key chain, use the no key chain name-of-chain global configuration command.
Monitoring and Maintaining the IP Network
You can remove all contents of a particular cache, table, or database. You can also display specific
statistics. Use the privileged EXEC commands in Table 22-12 to clear routes or display status:
Step5 accept-lifetime start-time {infinite | end-time | duration
seconds}
(Optional) Specify the time period during which the key
can be received.
The start-time and end-time syntax can be either
hh:mm:ss Month date year or hh:mm:ss date Month
year. The default is forever with the default start-time
and the earliest acceptable date as January 1, 1993. The
default end-time and duration is infinite.
Step6 send-lifetime start-time {infinite | end-time | duration
seconds}
(Optional) Specify the time period during which the key
can be sent.
The start-time and end-time syntax can be either
hh:mm:ss Month date year or hh:mm:ss date Month
year. The default is forever with the default start-time
and the earliest acceptable date as January 1, 1993. The
default end-time and duration is infinite.
Step7 end Return to privileged EXEC mode.
Step8 show key chain Display authentication key information.
Step9 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Table22-12Commands to Clear IP Routes or Display Route Status
Command Purpose
clear ip route {network [mask | *]} Clear one or more routes from the IP routing table.
show ip protocols Display the parameters and state of the active routing protocol
process.
show ip route [address [mask] [longer-prefixes]] |
[protocol [process-id]]
Display the current state of the routing table.
show ip route summary Display the current state of the routing table in summary form.
show ip route supernets-only Display supernets.
show ip cache Display the routing table used to switch IP traffic.
show route-map [map-name] Display all route maps configured or only the one specified.
22-65
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Monitoring and Maintaining the IP Network
This is an example of output from the show ip route privileged EXEC command when entered without
an address:
Switch# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 172.20.135.193 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 172.20.135.193
C 172.20.0.0/14 is directly connected, Vlan1
This is an example of output from the show ip protocols privileged EXEC command, showing IGRP
processes:
Switch# show ip protocols
Routing Protocol is "igrp 1"
Sending updates every 90 seconds, next due in 65 seconds
Invalid after 270 seconds, hold down 280, flushed after 630
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
IGRP maximum hopcount 100
IGRP maximum metric variance 1
Redistributing: eigrp 1, igrp 1
Maximum path: 4
Routing for Networks:
172.20.0.0
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 100)
This is an example of output from the show ip route summary privileged EXEC command:
Switch# show ip route summary
IP routing table name is Default-IP-Routing-Table(0)
Route Source Networks Subnets Overhead Memory (bytes)
connected 1 0 64 144
static 1 0 64 144
rip 0 0 0 0
eigrp 1 0 0 0 0
igrp 1 0 0 0 0
ospf 1 0 0 0 0
Intra-area: 0 Inter-area: 0 External-1: 0 External-2: 0
NSSA External-1: 0 NSSA External-2: 0
Total 2 0 128 288
22-66
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Monitoring and Maintaining the IP Network
This is an example of output from the show ip route supernets-only privileged EXEC command. This
display shows supernets only; it does not show subnets.
Switch# show ip route supernets-only
Codes: I - IGRP derived, R - RIP derived, O - OSPF derived
C - connected, S - static, E - EGP derived, B - BGP derived
i - IS-IS derived, D - EIGRP derived
* - candidate default route, IA - OSPF inter area route
E1 - OSPF external type 1 route, E2 - OSPF external type 2 route
L1 - IS-IS level-1 route, L2 - IS-IS level-2 route
EX - EIGRP external route
Gateway of last resort is not set
B 198.92.0.0 (mask is 255.255.0.0) [20/0] via 198.92.72.30, 0:00:50
B 192.0.0.0 (mask is 255.0.0.0) [20/0] via 198.92.72.24, 0:02:50
This is an example of output from the show route-map privileged EXEC command:
Switch# show route-map
route-map abc, permit, sequence 10
Match clauses:
tag 1 2
Set clauses:
metric 5
route-map xyz, permit, sequence 20
Match clauses:
tag 3 4
Set clauses:
metric 6
C H A P T E R
23-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
23
Configuring HSRP
This chapter describes how to use Hot Standby Router Protocol (HSRP) to provide routing redundancy
for routing IP traffic without being dependent on the availability of any single router. To use this feature,
you must have the enhanced multilayer software image installed on your switch. All Catalyst 3550
Gigabit Ethernet switches ship with the enhanced multilayer software image (EMI) installed. Catalyst 3550
Fast Ethernet switches can be shipped with either the standard multilayer software image (SMI) or EMI
pre-installed. You can order the Enhanced Multilayer Software Image Upgrade kit to upgrade Catalyst 3550
Fast Ethernet switches from the SMI to the EMI.
Note You can also use a version of HSRP in Layer 2 mode to configure a redundant command switch to
take over cluster management if the cluster command switch fails. For more information about
clustering, see Chapter 5, Clustering Switches.
Note For complete syntax and usage information for the commands used in this chapter, refer to the
Catalyst 3550 Multilayer Switch Command Reference and the Cisco IOS IP and IP Routing
Command Reference for Release 12.1.
This chapter consists of these sections:
Understanding HSRP, page 23-1
Configuring HSRP, page 23-3
Displaying HSRP Configurations, page 23-10
Understanding HSRP
HSRP is Ciscos standard method of providing high network availability by providing first-hop
redundancy for IP hosts on an IEEE 802 LAN configured with a default gateway IP address. HSRP
routes IP traffic without relying on the availability of any single router. It enables a set of router
interfaces to work together to present the appearance of a single virtual router or default gateway to the
hosts on a LAN. When HSRP is configured on a network or segment, it provides a virtual Media Access
Control (MAC) address and an IP address that is shared among a group of configured routers. HSRP
allows two or more HSRP-configured routers to use the MAC address and IP network address of a virtual
router. The virtual router does not exist; it represents the common target for routers that are configured
to provide backup to each other. One of the routers is selected to be the active router and another to be
the standby router, which assumes control of the group MAC address and IP address should the
designated active router fail.
23-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Understanding HSRP
Note Routers in an HSRP group can be any router interface that supports HSRP, including Catalyst 3550
routed ports and switch virtual interfaces (SVIs).
HSRP provides high network availability by providing redundancy for IP traffic from hosts on networks.
In a group of router interfaces, the active router is the router of choice for routing packets; the standby
router is the router that takes over the routing duties when an active router fails or when preset conditions
are met.
HSRP is useful for hosts that do not support a router discovery protocol and cannot switch to a new
router when their selected router reloads or loses power. When HSRP is configured on a network
segment, it provides a virtual MAC address and an IP address that is shared among router interfaces in
a group of router interfaces running HSRP. The router selected by the protocol to be the active router
receives and routes packets destined for the groups MAC address. For n routers running HSRP, there
are n +1 IP and MAC addresses assigned.
HSRP detects when the designated active router fails, and a selected standby router assumes control of
the Hot Standby groups MAC and IP addresses. A new standby router is also selected at that time.
Devices running HSRP send and receive multicast UDP-based hello packets to detect router failure and
to designate active and standby routers. When HSRP is configured on an interface, Internet Control
Message Protocol (ICMP) redirect messages are disabled by default for the interface.
You can configure multiple Hot Standby groups among Catalyst 3550 switches that are operating in
Layer 3 to make more use of the redundant routers. To do so, specify a group number for each Hot
Standby command group you configure for an interface. For example, you might configure an interface
on switch 1 as an active router and one on switch 2 as a standby router and also configure another
interface on switch 2 as an active router with another interface on switch 1 as its standby router.
Figure 23-1 shows a segment of a network configured for HSRP. Each router is configured with the
MAC address and IP network address of the virtual router. Instead of configuring hosts on the network
with the IP address of Router A, you configure them with the IP address of the virtual router as their
default router. When Host C sends packets to Host B, it sends them to the MAC address of the virtual
router. If for any reason, Router A stops transferring packets, Router B responds to the virtual IP address
and virtual MAC address and becomes the active router, assuming the active router duties. Host C
continues to use the IP address of the virtual router to address packets destined for Host B, which Router
B now receives and sends to Host B. Until Router A resumes operation, HSRP allows Router B to
provide uninterrupted service to users on Host Cs segment that need to communicate with users on Host
Bs segment and also continues to perform its normal function of handling packets between the Host A
segment and Host B.
23-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Figure23-1 Typical HSRP Configuration
Configuring HSRP
These sections include HSRP configuration information:
Default HSRP Configuration, page 23-4
Enabling HSRP, page 23-4
Configuring HSRP Group Attributes, page 23-6
Configuring HSRP Groups and Clustering, page 23-9
Note If HSRP is enabled, the switch can recognize 16 additional MAC addresses, each associated with a
set of VLANs or routing interfaces.
In the following procedures, the specified interface must be one of these Layer 3 interfaces:
Routed port: a physical port configured as a Layer 3 port by entering the no switchport interface
configuration command.
SVI: a VLAN interface created by using the interface vlan vlan_id global configuration command
and by default a Layer 3 interface.
Si Si Si
Host B
172.20.130.5
172.20.128.32
Host A
172.20.128.55
172.20.128.1 172.20.128.3 172.20.128.2
Virtual
router
Active
router
Standby
router
Router A Router B
Stacked
Catalyst 3550 or
2900XL/3500XL
switches
Stacked
Catalyst 3550 or
2900XL/3500XL
switches
4
6
6
5
0
Host C
Catalyst 3550 switches
with enhanced multilayer
software images
23-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Etherchannel port channel in Layer 3 mode: a port-channel logical interface created by using the
interface port-channel port-channel-number global configuration command and binding the
Ethernet interface into the channel group. For more information, see the Configuring Layer 3
EtherChannels section on page 21-11.
All Layer 3 interfaces must have IP addresses assigned to them. See the Configuring Layer 3
Interfaces section on page 8-22.
Default HSRP Configuration
Table 23-1 shows the default HSRP configuration.
Enabling HSRP
The standby ip interface configuration command activates HSRP on the configured interface. If an IP
address is specified, that address is used as the designated address for the Hot Standby group. If no IP
address is specified, the address is learned through the standby function. You must configure at least one
routing port on the cable with the designated address. Configuring an IP address always overrides
another designated address currently in use.
When the standby ip command is enabled on an interface and proxy ARP is enabled, if the interfaces
Hot Standby state is active, proxy ARP requests are answered using the Hot Standby group MAC
address. If the interface is in a different state, proxy ARP responses are suppressed.
Note We recommend that you do not configure a virtual MAC address on the switch interfaces, but instead
use the default well-known virtual MAC address. If it is necessary to configure a virtual MAC
address, for HSRP to operate correctly, the first five bytes must be the same for all MAC addresses
used for HSRP. The last byte represents the group number.
Table23-1 Default HSRP Configuration
Feature Default Setting
HSRP groups None configured
Standby group number 0
Standby MAC address Well-known MAC address
Standby priority 100
Standby delay 0 (no delay)
Standby track interface priority 10
Standby hello time 3 seconds
Standby holdtime 10 seconds
23-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Beginning in privileged EXEC mode, follow these steps to create or enable HSRP on a Layer 3 interface:
Use the no standby [group-number] ip [ip-address] interface configuration command to disable HSRP.
Use the no standby [group-number] mac-address mac-address interface configuration command to
return to the default virtual MAC address.
This example shows how to activate HSRP for group 1 on Gigabit Ethernet interface 0/1. The IP address
used by the hot standby group is learned by using HSRP.
Note This procedure is the minimum number of steps required to enable HSRP.
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# standby 1 ip
Switch(config-if)# end
Switch# show standby
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and enter the Layer 3 interface on
which you want to enable HSRP.
Step3 standby [group-number] ip [ip-address
[secondary]]
Create (or enable) the HSRP group using its number and virtual IP
address.
(Optional) group-numberThe group number on the interface for
which HSRP is being enabled. The range is 0 to 255; the default is 0.
If there is only one HSRP group, you do not need to enter a group
number.
(Optional on all but one interface) ip-addressThe virtual IP address
of the hot standby router interface. You must enter the virtual IP
address for at least one of the interfaces; it can be learned on the other
interfaces.
(Optional) secondaryThe IP address is a secondary hot standby
router interface. If neither router is designated as a secondary or
standby router and no priorities are set, the primary IP addresses are
compared and the higher IP address is the active router, with the next
highest as the standby router.
Step4 standby [group-number] mac-address
mac-address
(Optional) Specify the virtual MAC address for the virtual router. We
recommend that you do not configure this parameter, but instead use the
default well-known MAC address. If it is necessary to configure a virtual
MAC address, the first five bytes in all MAC addresses for the HSRP
should be the same. The last byte represents the group number.
Step5 end Return to privileged EXEC mode.
Step6 show standby [interface-id [group]] Verify the configuration.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
23-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Configuring HSRP Group Attributes
Although HSRP can run with no other configuration required, you can configure attributes for the HSRP
group, including authentication, priority, preemption and preemption delay, timers, or MAC address.
Configuring HSRP Priority
The standby priority, standby preempt, and standby track interface configuration commands are all
used to set characteristics for determining active and standby routers and behavior regarding when a new
active router takes over. When configuring priority, follow these guidelines:
Assigning priority helps select the active and standby routers. If preemption is enabled, the router
with the highest priority becomes the designated active router. If priorities are equal, the primary IP
addresses are compared, and the higher IP address has priority.
The highest number (1 to 255) represents the highest priority (most likely to become the active
router).
When setting the priority, preempt, or both, you must specify at least one keyword (priority,
preempt, or both).
The priority of the device can change dynamically if an interface is configured with the standby
track command and another interface on the router goes down.
The standby track interface configuration command ties the router hot standby priority to the
availability of its interfaces and is useful for tracking interfaces that are not configured for HSRP.
When a tracked interface fails, the hot standby priority on the device on which tracking has been
configured decreases by 10. If an interface is not tracked, its state changes do not affect the hot
standby priority of the configured device. For each interface configured for hot standby, you can
configure a separate list of interfaces to be tracked.
The standby track interface-priority interface configuration command specifies how much to
decrement the hot standby priority when a tracked interface goes down. When the interface comes
back up, the priority is incremented by the same amount.
When multiple tracked interfaces are down and interface-priority values have been configured, the
configured priority decrements are cumulative. If tracked interfaces that were not configured with
priority values fail, the default decrement is 10, and it is noncumulative.
When routing is first enabled for the interface, it does not have a complete routing table. If it is
configured to preempt, it becomes the active router, even though it is unable to provide adequate
routing services. To solve this problem, configure a delay time to allow the router to update its
routing table.
23-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Beginning in privileged EXEC mode, use one or more of these steps to configure HSRP priority
characteristics on an interface:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and enter the HSRP interface on which
you want to set priority.
Step3 standby [group-number] priority
priority [preempt [delay delay]]
Set a priority value used in choosing the active router. The range is 1 to 255;
the default priority is 100. The highest number represents the highest priority.
(Optional) group-numberThe group number to which the command
applies.
(Optional) preemptSelect so that when the local router has a higher
priority than the active router, it assumes control as the active router.
(Optional) delaySet to cause the local router to postpone taking over the
active role for the shown number of seconds. The range is 0 to 36000
(1 hour); the default is 0 (no delay before taking over).
Use the no form of the command to restore the default values.
Step4 standby [group-number] [priority
priority] preempt [delay delay]
Configure the router to preempt, which means that when the local router has
a higher priority than the active router, it assumes control as the active router.
(Optional) group-numberThe group number to which the command
applies.
(Optional) priorityEnter to set or change the group priority. The range
is 1 to 255; the default is 100.
(Optional) delaySet to cause the local router to postpone taking over the
active role for the number of seconds shown. The range is 0 to 36000
(1 hour); the default is 0 (no delay before taking over).
Use the no form of the command to restore the default values.
Step5 standby [group-number] track
type number [interface-priority]
Configure an interface to track other interfaces so that if one of the other
interfaces goes down, the devices Hot Standby priority is lowered.
(Optional) group-numberThe group number to which the command
applies.
typeEnter the interface type (combined with interface number) that is
tracked.
numberEnter the interface number (combined with interface type) that
is tracked.
(Optional) interface-priorityEnter the amount by which the hot standby
priority for the router is decremented or incremented when the interface
goes down or comes back up. The default value is 10.
Step6 end Return to privileged EXEC mode.
Step7 show running-config Verify the configuration of the standby groups.
Step8 copy running-config
startup-config
(Optional) Save your entries in the configuration file.
23-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Use the no standby [group-number] priority priority [preempt [delay delay]] and no standby
[group-number] [priority priority] preempt [delay delay] interface configuration commands to restore
default priority, preempt, and delay values.
Use the no standby [group-number] track type number [interface-priority] interface configuration
command to remove the tracking.
This activates Gigabit Ethernet interface 0/1, sets an IP address and a priority of 120 (higher than the
default value), and waits for 300 seconds (5 minutes) before attempting to become the active router:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# standby ip 172.19.108.254
Switch(config-if)# standby priority 120 preempt delay 300
Switch(config-if)# end
Switch#
Configuring HSRP Authentication and Timers
You can optionally configure an HSRP authentication string or change the hello-time interval and
holdtime.
When configuring these attributes, follow these guidelines:
The authentication string is sent unencrypted in all HSRP messages. You must configure the same
authentication string on all routers and access servers on a cable to ensure interoperation.
Authentication mismatch prevents a device from learning the designated Hot Standby IP address and
timer values from other routers configured with HSRP.
Routers or access servers on which standby timer values are not configured can learn timer values
from the active or standby router. The timers configured on an active router always override any
other timer settings.
All routers in a Hot Standby group should use the same timer values. Normally, the holdtime is
greater than or equal to 3 times the hellotime.
Beginning in privileged EXEC mode, use one or more of these steps to configure HSRP priority
characteristics on an interface:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and enter the HSRP
interface on which you want to set authentication.
Step3 standby [group-number] authentication string (Optional) authentication stringEnter a string to be carried in
all HSRP messages. The authentication string can be up to eight
characters in length; the default string is cisco.
(Optional) group-numberThe group number to which the
command applies.
23-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Configuring HSRP
Use the no standby [group-number] authentication string interface configuration command to delete
an authentication string. Use the no standby [group-number] timers hellotime holdtime interface
configuration command to restore timers to their default values.
This example shows how to configure word as the authentication string required to allow Hot Standby
routers in group 1 to interoperate:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# standby 1 authentication word
Switch(config-if)# end
Switch#
This example shows how to set the timers on standby group 1 with the time between hello packets at 5
seconds and the time after which a router is considered down to be 15 seconds:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# standby 1 ip
Switch(config-if)# standby 1 timers 5 15
Switch(config-if)# end
Switch#
Configuring HSRP Groups and Clustering
When a device is participating in an HSRP standby routing and clustering is enabled, you can use the
same standby group for command switch redundancy and HSRP redundancy. Use the cluster
standby-group HSRP-group-name [routing-redundancy] global configuration command to enable the
same HSRP standby group to be used for command switch and routing redundancy. If you create a
cluster with the same HSRP standby group name without entering the routing-redundancy keyword,
HSRP standby routing is disabled for the group.
This example shows how to bind standby group my_hsrp to the cluster and enable the same HSRP group
to be used for command switch redundancy and router redundancy. The command can only be executed
on the command switch. If the standby group name or number does not exist, or if the switch is a member
switch, an error message appears.
Switch# configure terminal
Switch(config)# cluster standby-group my_hsrp routing-redundancy
Switch(config)# end
Step4 standby [group-number] timers hellotime
holdtime
(Optional) Configure the time between hello packets and the
time before other routers declare the active router to be down.
group-numberThe group number to which the command
applies.
hellotimeThe hello interval in seconds. The range is from
1 to 255; the default is 3 seconds.
holdtimeThe time in seconds before the active or standby
router is declared to be down. The range is from 1 to 255;
the default is 10 seconds.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify the configuration of the standby groups.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
23-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP
Displaying HSRP Configurations
Displaying HSRP Configurations
From privileged EXEC mode, use this command to display HSRP settings:
show standby [interface-id [group]] [brief] [detail]
You can display HSRP information for the whole switch, for a specific interface, for an HSRP group, or
for an HSRP group on an interface. You can also specify whether to display a concise overview of HSRP
information or detailed HSRP information. The default display is detail. If there are a large number of
HSRP groups, using the show standby command without qualifiers can result in an unwieldy display.
This is a an example of output from the show standby privileged EXEC command, displaying HSRP
information for two standby groups (group 1 and group 100):
Switch# show standby
VLAN1 - Group 1
Local state is Standby, priority 105, may preempt
Hellotime 3 holdtime 10
Next hello sent in 00:00:02.182
Hot standby IP address is 10.0.0.1 configured
Active router is 172.20.138.35 expires in 00:00:09
Standby router is local
Standby virtual mac address is 0000.0c07.ac01
Name is bbb
VLAN1 - Group 100
Local state is Active, priority 105, may preempt
Hellotime 3 holdtime 10
Next hello sent in 00:00:02.262
Hot standby IP address is 172.20.138.51 configured
Active router is local
Standby router is unknown expired
Standby virtual mac address is 0000.0c07.ac64
Name is test
C H A P T E R
24-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
24
Configuring IP Multicast Routing
IP multicasting is a more efficient way to use network resources, especially for bandwidth-intensive
services such as audio and video. IP multicast allows a host (source) to send packets to a group of hosts
(receivers) anywhere within the IP network by using a special form of IP address called the IP multicast
group address. The sending host inserts the multicast group address into the IP destination address field
of the packet, and IP multicast routers and multilayer switches forward incoming IP multicast packets
out all interfaces that lead to members of the multicast group.
IP multicast addresses are assigned to the old class D address space by the Internet Assigned Number
Authority (IANA). The high-order bits of a Class D address are 1110. Therefore, host group addresses
can be in the range 224.0.0.0 through 239.255.255.255. The address 224.0.0.0 is guaranteed not to be
assigned to any group. The address 224.0.0.1 is assigned to the all-hosts multicast group on a subnet.
The address 224.0.0.2 is assigned to the all-multicast-routers group on a subnet.
Any host, regardless of whether it is a member of a group, can send to a group. However, only the
members of a group receive the message. Membership in a multicast group is dynamic; hosts can join
and leave at any time. There is no restriction on the location or number of members in a multicast group.
A host can be a member of more than one multicast group at a time. How active a multicast group is and
what members it has can vary from group to group and from time to time. A multicast group can be active
for a long time, or it can be very short-lived. Membership in a group can constantly change. A group that
has members can have no activity.
Note For complete syntax and usage information for the commands used in this chapter, refer to the Cisco
IOS IP and IP Routing Command Reference for Release 12.1.
This chapter describes how to configure IP multicast routing on your multilayer switch. To use this
feature, you must have the enhanced multilayer software image (EMI) installed on your switch. All
Catalyst 3550 Gigabit Ethernet switches ship with the EMI installed. Catalyst 3550 Fast Ethernet
switches can be shipped with either the standard multilayer software image (SMI) or EMI pre-installed.
You can order the Enhanced Multilayer Software Image Upgrade kit to upgrade Catalyst 3550 Fast
Ethernet switches from the SMI to the EMI.
This chapter consists of these sections:
Cisco Implementation of IP Multicast Routing, page 24-2
Configuring IP Multicast Routing, page 24-13
Configuring Advanced PIM Features, page 24-28
Configuring Optional IGMP Features, page 24-31
Configuring Optional Multicast Routing Features, page 24-37
24-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
Configuring Basic DVMRP Interoperability Features, page 24-43
Configuring Advanced DVMRP Interoperability Features, page 24-50
Monitoring and Maintaining IP Multicast Routing, page 24-57
For information on configuring the Multicast Source Discovery Protocol (MSDP), see Chapter 25,
Configuring MSDP.
Note When you are configuring multicast routing parameters for the switch, to allocate system resources
to maximize the number of possible multicast routes allowed, you can use the sdm prefer routing
global configuration command to set the Switch Database Management feature to the routing
template. For more information on the SDM templates, see the Optimizing System Resources for
User-Selected Features section on page 6-57.
Cisco Implementation of IP Multicast Routing
The Cisco IOS software supports these protocols to implement IP multicast routing:
Internet Group Management Protocol (IGMP) is used among hosts on a LAN and the routers (and
multilayer switches) on that LAN to track the multicast groups of which hosts are members.
Protocol-Independent Multicast (PIM) protocol is used among routers and multilayer switches to
track which multicast packets to forward to each other and to their directly connected LANs.
Distance Vector Multicast Routing Protocol (DVMRP) is used on the multicast backbone of the
Internet (MBONE). The Cisco IOS software supports PIM-to-DVMRP interaction.
Cisco Group Management Protocol (CGMP) is used on Cisco routers and multilayer switches
connected to Layer 2 Catalyst switches to perform tasks similar to those performed by IGMP.
Figure 24-1 shows where these protocols operate within the IP multicast environment.
Figure24-1 IP Multicast Routing Protocols
Host
Host
PIM
IGMP
CGMP
DVMRP
Internet
MBONE
Cisco Catalyst switch
(CGMP client)
4
4
9
6
6
24-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
Understanding IGMP
To participate in IP multicasting, multicast hosts, routers, and multilayer switches must have IGMP
operating. This protocol is the group membership protocol used by hosts to inform routers and multilayer
switches of the existence of members on their directly connected networks and to allow them to send
and receive multicast datagrams.
Multicast routers and switches learn about group membership when a host joining a new group sends an
IGMP message to the group address declaring its membership.
Using the information obtained through IGMP, routers and switches maintain a list of multicast group
memberships on a per-interface basis. A multicast group membership is active on an interface if at least
one host on that interface has sent an IGMP join message to receive the multicast group traffic.
IGMP Version 1
Most IP stacks in hosts today still use IGMPv1. This version primarily uses a query-response model that
allows the multicast router and multilayer switch to determine which multicast groups are active (have
one or more hosts interested in a multicast group) on the local subnet. In this model, the router or switch
acting as the IGMP querier periodically (every 60 seconds) multicasts an IGMPv1 membership query to
the all-hosts multicast group (224.0.0.1) on the local subnet. All hosts enabled for multicasting listen for
this address and receive the query. A host responds with an IGMPv1 membership report to receive
multicast traffic for a specific group, and routers or switches on the subnet learn where active receivers
are for the multicast groups.
A host can also join a multicast group by sending one or more unsolicited membership reports as shown
in Figure 24-2. In this example, Host 3 sends an unsolicited report to receive traffic for multicast
group 224.3.3.3 instead of waiting for the next membership query from Router 1.
A host leaves a multicast group by ceasing to process traffic for the multicast group and to respond to
IGMP queries.
Figure24-2 IGMPv1 J oin Process
IGMPv1 relies on the Layer 3 IP multicast routing protocols (PIM, DVMRP, and so forth) to resolve
which one of multiple multicast routers or multilayer switches on a subnet should be the querier. The
query router sends IGMPv1 queries to determine which multicast groups are active (have one or more
hosts sending unsolicited reports) on the local subnet. In general, a designated router is selected as the
querier.
Host 1 Host 2 Host 3
Router 1
IGMP
Querier
Router 2
IGMPv1
Non-querier
224.3.3.3
Unsolicited report
4
5
1
4
5
24-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
IGMP Version 2
IGMPv2 provides enhancements over IGMPv1. The query and membership report messages are
identical to IGMPv1 message with two exceptions. The first difference is that the IGMPv2 query
message is broken into two categories: general queries, which perform the same function as the IGMPv1
queries, and group-specific queries, which are queries directed to a single group. The second difference
is that different type codes are used with IGMPv1 and IGMPv2 membership reports. IGMPv2 also
includes new features:
Querier election processIGMPv2 routers or multilayer switches can elect the query router without
having to rely on the multicast routing protocol to perform this process.
As each IGMPv2 router or multilayer switch starts, it sends an IGMPv2 general query message to
the all-host multicast group (224.0.0.1) with its interface address in the source IP address field of
the message. Each IGMPv2 device compares the source IP address in the message with its own
interface address, and the device with the lowest IP address on the subnet is elected as the querier.
Maximum response time fieldthis field in the query message permits the query router to specify
the maximum query-response time and controls the burstiness of the response process.
This feature can be important when large numbers of groups are active on a subnet and you want to
spread the responses over a longer period of time. However, increasing the maximum response timer
value also increases the leave latency; the query router must now wait longer to make sure there are
no more hosts for the group on the subnet.
Group-specific query messagepermits the query router to perform the query operation on a
specific group instead of all groups.
Leave group messagesprovides hosts with a method of notifying routers and multilayer switches
on the network that they are leaving a group as shown in Figure 24-3.
Figure24-3 IGMPv2 Leave Process
In this example, Hosts 2 and 3 are members of multicast group 224.1.1.1. Host 2 sends an IGMPv2 leave
message to the all-multicast-routers group (224.0.0.2) to inform all routers and multilayer switches on
the subnet that it is leaving the group. Router 1, the query router, receives the message, but because it
keeps a list only of the group memberships that are active on a subnet and not individual hosts that are
members, it sends a group-specific query to the target group (224.1.1.1) to determine whether any hosts
remain for the group. Host 3 is still a member of multicast group 224.1.1.1 and receives the
Host 1 Host 2 Host 3
224.1.1.1 224.1.1.1
Router
IGMPv2
querier
4
5
1
4
6
1. Leave-group
message sent
to 224.0.0.2
3. IGMPv2
membership
report for
224.1.1.1
2. Send group-specific
query to 224.1.1.1
24-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
group-specific query. It responds with an IGMPv2 membership report to inform Router 1 that a member
is still present. When Router 1 receives the report, it keeps the group active on the subnet. If no response
is received, the query router stops forwarding its traffic to the subnet.
Understanding PIM
PIM is called protocol-independent: regardless of the unicast routing protocols used to populate the
unicast routing table, PIM uses this information to perform multicast forwarding instead of maintaining
a separate multicast routing table.
PIM Versions
Two versions of PIM are supported in the IOS software. With PIM Version 1 (PIMv1), Cisco introduced
support in IOS Release 11.1(6) for a new feature called Auto-RP. This proprietary feature eliminates the
need to manually configure the rendezvous point (RP) information in every router and multilayer switch
in the network. For more information, see the Auto-RP section on page 24-8.
Beginning with IOS Release 11.3, Cisco introduced support for PIM Version 2 (PIMv2) and its
associated bootstrap router (BSR) capability. Like Auto-RP, the PIMv2 BSR mechanism eliminates the
need to manually configure RP information in every router and multilayer switch in the network. For
more information, see the Bootstrap Router section on page 24-8.
All systems using Cisco IOS Release 11.3(2)T or later start in PIMv2 mode by default. PIMv2 includes
these improvements over PIMv1:
A single, active RP exists per multicast group, with multiple backup RPs. This single RP compares
to multiple active RPs for the same group in PIMv1.
A BSR provides a fault-tolerant, automated RP discovery and distribution mechanism that enables
routers and multilayer switches to dynamically learn the group-to-RP mappings.
Sparse mode and dense mode are properties of a group, as opposed to an interface. We strongly
recommend sparse-dense mode, as opposed to either sparse mode or dense mode only.
PIM join and prune messages have more flexible encoding for multiple address families.
A more flexible hello packet format replaces the query packet to encode current and future
capability options.
Register messages to an RP specify whether they are sent by a border router or a designated router.
PIM packets are no longer inside IGMP packets; they are standalone packets.
PIM Modes
PIM can operate in dense mode (DM), sparse mode (SM), or in sparse-dense mode (PIM DM-SM),
which handles both sparse groups and dense groups at the same time.
PIM DM
In dense mode, a PIM DM router or multilayer switch assumes that all other routers or multilayer
switches forward multicast packets for a group. If a PIM DM device receives a multicast packet and has
no directly connected members or PIM neighbors present, a prune message is sent back to the source.
Subsequent multicast packets are not flooded to this router or switch on this pruned branch. PIM DM
builds source-based multicast distribution trees.
24-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
The simplest form of a multicast distribution tree is a source tree whose root is the source of the multicast
traffic and whose branches form a spanning tree through the network to the receivers. Because this tree
uses the shortest path through the network, it is also referred to as a shortest-path tree (SPT). A separate
SPT exists for every individual source sending to each group. The special notation of (S,G) (pronounced
S comma G) identifies an SPT where S is the IP address of the source and G is the multicast group
address.
Figure 24-4 shows an example of SPT for group 224.1.1.1 rooted at the source, Host A, and connecting
two receivers, Hosts B and C. The SPT notation for this group would be (194.1.1.1, 224.1.1.1).
Figure24-4 Host A Shortest-Path Tree
If Host B is also sending traffic to group 224.1.1.1 and Hosts A and C are receivers, then a separate (S,G)
SPT would exist with the notation of (194.2.2.2, 224.1.1.1).
PIM DM employs only SPTs to deliver (S,G) multicast traffic by using a flood and prune method. It
assumes that every subnet in the network has at least one receiver of the (S,G) multicast traffic, and
therefore the traffic is flooded to all points in the network.
To avoid unnecessary consumption of network resources, PIM DM devices send prune messages up the
source distribution tree to stop unwanted multicast traffic. Branches without receivers are pruned from
the distribution tree, leaving only branches that contain receivers. Prunes have a timeout value
associated with them, after which the PIM DM device puts the interface into the forwarding state and
floods multicast traffic out the interface. When a new receiver on a previously pruned branch of the tree
joins a multicast group, the PIM DM device detects the new receiver and immediately sends a graft
message up the distribution tree toward the source. When the upstream PIM DM device receives the graft
message, it immediately puts the interface on which the graft was received into the forwarding state so
that the multicast traffic begins flowing to the receiver.
Host A
Source
194.1.1.1
224.1.1.1 Traffic
194.2.2.2
Host B
Receiver
194.3.3.3
Host C
Receiver
Router 1 Router 2
Router 5 Router 4
Router 3
4
5
1
4
7
24-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
PIM SM
PIM SM uses shared trees and SPTs to distribute multicast traffic to multicast receivers in the network.
In PIM SM, a router or multilayer switch assumes that other routers or switches do not forward multicast
packets for a group, unless there is an explicit request for the traffic (join message). When a host joins
a multicast group using IGMP, its directly connected PIM SM device sends PIM join messages toward
the root, also known as the RP. This join message travels router-by-router toward the root, constructing
a branch of the shared tree as it goes. The RP keeps track of multicast receivers; it also registers sources
through register messages received from the sources first-hop router (designated router [DR]) to
complete the shared tree path from the source to the receiver. The branches of the shared tree are
maintained by periodic join refresh messages that the PIM SM devices send along the branch.
When using a shared tree, sources must send their traffic to the RP so that the traffic reaches all receivers.
The special notation *,G, (pronounced star comma G) is used to represent the tree, where * means all
sources and G represents the multicast group. Figure 24-5 shows a shared tree for group 224.2.2.2 with
the RP located at Router 3. Multicast group traffic from source Hosts A and D travels to the RP
(Router 3) and then down the shared tree to two receivers, Hosts B and C. Because all sources in the
multicast group use a common shared tree, the special notation (*, 224.2.2.2) describes this shared tree.
Figure24-5 Shared Distribution Tree
Note In addition to using the shared distribution tree, PIM SM can also use SPTs. By joining an SPT,
multicast traffic is routed directly to the receivers without having to go through the RP, thereby
reducing network latency and possible congestion at the RP. The disadvantage is that PIM SM
devices must create and maintain (S,G) state entries in their routing tables along with the (S,G) SPT.
This action consumes router resources.
Host A
Source 1
194.1.1.1
194.2.2.2
Host B
Receiver
194.3.3.3
Host C
Receiver
Host D
Source 2
194.4.4.4
Router 1
DR Router 2
Router 5 Router 4
Router 3
RP
224.2.2.2 Traffic
4
5
1
4
8
24-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
Prune messages are sent up the distribution tree to prune multicast group traffic. This action permits
branches of the shared tree or SPT that were created with explicit join messages to be torn down when
they are no longer needed. For example, if a leaf router (a router without any downstream connections)
detects that it no longer has any directly connected hosts (or downstream multicast routers) for a
particular multicast group, it sends a prune message up the distribution tree to stop the flow of unwanted
multicast traffic.
Auto-RP
This proprietary feature eliminates the need to manually configure the rendezvous point (RP)
information in every router and multilayer switch in the network. For Auto-RP to work, you configure
a Cisco router or multilayer switch as the mapping agent. It uses IP multicast to learn which routers or
switches in the network are possible candidate RPs by joining the well-known Cisco-RP-announce
multicast group (224.0.1.39) to receive candidate RP announcements. Candidate RPs send multicast
RP-announce messages to a particular group or group range every 60 seconds (default) to announce their
availability. Each RP-announce message contains a holdtime that tells the mapping agent how long the
candidate RP announcement is valid. The default is 180 seconds.
Mapping agents listen to these candidate RP announcements and use the information to create entries in
their Group-to-RP mapping caches. Only one mapping cache entry is created for any Group-to-RP range
received, even if multiple candidate RPs are sending RP announcements for the same range. As the
RP-announce messages arrive, the mapping agent selects the router or switch with the highest IP address
as the active RP and stores this RP address in the Group-to-RP mapping cache.
Mapping agents multicast the contents of their Group-to-RP mapping cache in RP-discovery messages
every 60 seconds (default) to the Cisco-RP-discovery multicast group (224.0.1.40), which all Cisco PIM
routers and multilayer switches join to receive Group-to-RP mapping information. Thus, all routers and
switches automatically discover which RP to use for the groups they support. The discovery messages
also contain a holdtime, which defines how long the Group-to-RP mapping is valid. If a router or switch
fails to receive RP-discovery messages and the Group-to-RP mapping information expires, it switches
to a statically configured RP that was defined with the ip pim rp-address global configuration
command. If no statically configured RP exists, the router or switch changes the group to dense-mode
operation.
Multiple RPs serve different group ranges or serve as hot backups of each other.
Bootstrap Router
PIMv2 BSR is another method to distribute group-to-RP mapping information to all PIM routers and
multilayer switches in the network. It eliminates the need to manually configure RP information in every
router and switch in the network. However, instead of using IP multicast to distribute group-to-RP
mapping information, BSR uses hop-by-hop flooding of special BSR messages to distribute the mapping
information.
The BSR is elected from a set of candidate routers and switches in the domain that have been configured
to function as BSRs. The election mechanism is similar to the root-bridge election mechanism used in
bridged LANs. The BSR election is based on the BSR priority of the device contained in the BSR
messages that are sent hop-by-hop through the network. Each BSR device examines the message and
forwards out all interfaces only the message that has either a higher BSR priority than its BSR priority
or the same BSR priority, but with a higher BSR IP address. Using this method, the BSR is elected.
The elected BSR sends BSR messages to the all-PIM-routers multicast group (224.0.0.13) with a TTL
of 1. Neighboring PIMv2 routers or multilayer switches receive the BSR message and multicast it out
all other interfaces (except the one on which it was received) with a TTL of 1. In this way, BSR messages
24-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
travel hop-by-hop throughout the PIM domain. Because BSR messages contain the IP address of the
current BSR, the flooding mechanism allows candidate RPs to automatically learn which device is the
elected BSR.
Candidate RPs send candidate RP advertisements showing the group range for which they are
responsible directly to the BSR, which stores this information in its local candidate-RP cache. The BSR
periodically advertises the contents of this cache in BSR messages to all other PIM devices in the
domain. These messages travel hop-by-hop through the network to all routers and switches, which store
the RP information in the BSR message in their local RP cache. The routers and switches select the same
RP for a given group because they all use a common RP hashing algorithm.
Multicast Forwarding and Reverse Path Check
With unicast routing, routers and multilayer switches forward traffic through the network along a single
path from the source to the destination host whose IP address appears in the destination address field of
the IP packet. Each router and switch along the way makes a unicast forwarding decision, using the
destination IP address in the packet, by looking up the destination address in the unicast routing table
and forwarding the packet through the specified interface to the next hop toward the destination.
With multicasting, the source is sending traffic to an arbitrary group of hosts represented by a multicast
group address in the destination address field of the IP packet. To determine whether to forward or drop
an incoming multicast packet, the router or multilayer switch uses a reverse path forwarding (RPF)
check on the packet as follows and shown in Figure 24-6:
1. The router or multilayer switch examines the source address of the arriving multicast packet to
determine whether the packet arrived on an interface that is on the reverse path back to the source.
2. If the packet arrives on the interface leading back to the source, the RPF check is successful and the
packet is forwarded to all interfaces in the outgoing interface list (which might not be all interfaces
on the router).
3. If the RPF check fails, the packet is discarded.
Some multicast routing protocols, such as DVMRP, maintain a separate multicast routing table and use
it for the RPF check. However, PIM uses the unicast routing table to perform the RPF check.
Figure 24-6 shows Gigabit Ethernet interface 0/2 receiving a multicast packet from source 151.10.3.21.
A check of the routing table shows that the interface on the reverse path to the source is Gigabit Ethernet
interface 0/1, not interface 0/2. Because the RPF check fails, the multilayer switch discards the packet.
Another multicast packet from source 151.10.3.21 is received on interface 0/1, and the routing table
shows this interface is on the reverse path to the source. Because the RPF check passes, the switch
forwards the packet to all interfaces in the outgoing interface list.
24-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
Figure24-6 RPF Check
PIM uses both source trees and RP-rooted shared trees to forward datagrams (described in the PIM
DM section on page 24-5 and the PIM SM section on page 24-7); the RPF check is performed
differently for each:
If a PIM router or multilayer switch has a source-tree state (that is, an (S,G) entry is present in the
multicast routing table), it performs the RPF check against the IP address of the source of the
multicast packet.
If a PIM router or multilayer switch has a shared-tree state (and no explicit source-tree state), it
performs the RPF check on the rendezvous point (RP) address (which is known when members join
the group).
Sparse-mode PIM uses the RPF lookup function to determine where it needs to send joins and prunes:
(S,G) joins (which are source-tree states) are sent toward the source.
(*,G) joins (which are shared-tree states) are sent toward the RP.
DVMRP and dense-mode PIM use only source trees and use RPF as previously described.
Neighbor Discovery
PIM uses a neighbor discovery mechanism to establish PIM neighbor adjacencies. To establish
adjacencies, a PIM router or multilayer switch sends PIM hello messages to the all-PIM-routers
multicast group (224.0.0.13) on each of its multicast-enabled interfaces. The hello message contains a
holdtime, which tells the receiver when the neighbor adjacency associated with the sender expires if no
more PIM hello messages are received. (Keeping track of adjacencies is important for PIM DM
operation for building the source distribution tree.)
PIM hello messages are also used to elect the DR for multi-access networks (Ethernet). The router or
multilayer switch on the network with the highest IP address is the DR. With PIM DM operation, the DR
has meaning only if IGMPv1 is in use; IGMPv1 does not have an IGMP querier election process, so the
elected DR functions as the IGMP querier. In PIM SM operation, the DR is the router or switch that is
directly connected to the multicast source. It sends PIM register messages to notify the RP that multicast
traffic from a source needs to be forwarded down the shared tree.
Multicast
packet from
source 151.10.3.21
is forwarded.
Multicast
packet from
source 151.10.3.21
packet is discarded.
Routing Table
Network Interface
151.10.0.0/16 Gigabit Ethernet 0/1
Gigabit Ethernet 0/1
198.14.32.0/32 Gigabit Ethernet 0/3
Gigabit Ethernet 0/3
204.1.16.0/24 Gigabit Ethernet 0/4
Gigabit Ethernet 0/4
Gigabit Ethernet 0/2
4
5
1
4
9
Si
24-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
Understanding DVMRP
Distance Vector Multicast Routing Protocol (DVMRP) is implemented in the equipment of many
vendors and is based on the public-domain mrouted program. This protocol has been deployed in the
multicast backbone (MBONE) and in other intradomain multicast networks.
Cisco routers and multilayer switches run PIM and can forward multicast packets to and receive from a
DVMRP neighbor. It is also possible to propagate DVMRP routes into and through a PIM cloud. The
Cisco IOS software propagates DVMRP routes and builds a separate database for these routes on each
router and multilayer switch, but PIM uses this routing information to make the packet-forwarding
decision. The Cisco IOS software does not implement the complete DVMRP. The Cisco IOS software
supports dynamic discovery of DVMRP routers and can interoperate with them over traditional media
(such as Ethernet and FDDI) or over DVMRP-specific tunnels.
DVMRP Neighbor Discovery
A DVMRP router learns about other DVMRP routers by periodically sending DVMRP probe messages
to the all-DVMRP-routers multicast group (224.0.0.4). A second DVMRP router receiving the message
adds the IP address of the first router that sent the probe to its internal list of DVMRP neighbors on the
received interface and then sends its own probe message. This probe message contains all the addresses
of neighboring DVMRP routers in its neighbor list, including the address of the first router. When the
first DVMRP router receives a probe with its own address listed in the neighbor list, a two-way
adjacency is formed between itself and the neighbor that sent the probe.
DVMRP Route Table
DVMRP neighbors build a route table by periodically exchanging source network routing information
in route-report messages. These messages contain entries that advertise a source network with a mask
and a hop count that is used as the routing metric. The routing information stored in the DVMRP routing
table is separate from the unicast routing table and is used to build a source distribution tree and to
perform multicast forward using reverse-path forwarding (RPF).
DVMRP Source Distribution Tree
DVMRP is a dense-mode protocol and builds a parent-child database using a constrained multicast
model to build a forwarding tree rooted at the source of the multicast packets. Multicast packets are
initially flooded down this source tree. If redundant paths are on the source tree, packets are not
forwarded along those paths. Forwarding occurs until prune messages are received on those parent-child
links, which further constrain the broadcast of multicast packets. DVMRP supports a reliable graft and
graft-ack mechanism that grafts previously pruned branches of a tree. The graft-ack messages are sent
by the upstream router in response to received graft messages, preventing the loss of a graft message
because of congestion.
Understanding CGMP
This software release provides CGMP-server support on your multilayer switches; no client-side
functionality is provided. The multilayer switch serves as a CGMP server for devices that do not support
IGMP snooping but have CGMP-client functionality.
24-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Cisco Implementation of IP Multicast Routing
CGMP is a protocol used on Cisco routers and multilayer switches connected to Layer 2 Catalyst
switches to perform tasks similar to those performed by IGMP. CGMP permits Layer 2 group
membership information to be communicated from the CGMP server to the switch, which can learn on
which ports multicast members reside instead of flooding multicast traffic to all switch ports. (IGMP
snooping is another method to constrain the flooding of multicast packets. For more information, see
Chapter 11, Configuring IGMP Snooping and MVR.)
CGMP is necessary because the Layer 2 switch cannot distinguish between IP multicast data packets and
IGMP report messages, which are both at the MAC-level and are addressed to the same group address.
J oining a Group with CGMP
Hosts connected to a Layer 2 Catalyst switch can join a multicast group by sending an unsolicited IGMP
membership report message to the target group (224.1.2.3) as shown in Figure 24-7. Because LAN
switches operate at Layer 2 and understand only MAC addresses, the source and destination fields of the
frame contain 48-bit MAC addresses for Host 3 (0080.c7a2.1093) and MAC-address equivalent of the
multicast group address (0100.5e01.0203).
The IGMP membership report is received by the Layer 2 switch and forwarded to the CGMP server for
normal IGMP processing. The CGMP server, which must have CGMP enabled on the interface
connected to the Layer 2 switch, receives the membership report and translates the report into a CGMP
join message. It sends the CGMP join message to the switch through the well-known CGMP multicast
MAC address (0x0100.0cdd.dddd). When the Layer 2 switch receives the join message, it updates its
forwarding table to include the MAC-equivalent of the group destination address and the applicable
input and output switch ports.
Figure24-7 Host J oining a Group Using CGMP
IGMP Membership Report
Cisco router or
Catalyst 3550 multilayer switch
(CGMP server)
Host 1
Source group
224.1.2.3
Host 2
Host 4 Host 3 Receiver
CGMP is enabled on this interface.
Catalyst Layer 2 switch (CGMP client)
CGMP Join Message
4
5
1
5
0
Dest MAC = 0100.5e01.0203
Source MAC = 0080.c7a2.1093
Group = 224.1.2.3
Source = 0080.c7a2.1093
Group Dest = 0100.5e01.0203
24-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Leaving a Group with CGMP
When an IGMPv2 host leaves a group, it can send an IGMP leave group message to the
all-multicast-routers group (224.0.0.2). The CGMP server translates this leave group message into a
CGMP leave message and sends it to the switch.
To expedite a host on a LAN leaving a multicast group, some Layer 2 Catalyst switch software offers
the CGMP Fast-Leave feature, which allows the switch to perform IGMPv2 leave processing locally
without involving the CGMP server and accelerates the removal of unused CGMP groups. The host
sends the leave group message to the all-multicast-routers group (224.0.0.2). The Layer 2 switch
processes it and does not forward it to the CGMP server. The Layer 2 switch sends an IGMP general
query message on the port where the leave message was received to determine if there are remaining
members for the group on the port. If no response is received, the Layer 2 switch sends an IGMP leave
message to the CGMP server, which sends a group-specific query to the multicast group to see if there
are any remaining members in the group. If there is no response, the CGMP server updates its multicast
routing table and sends a CGMP delete group message to the Layer 2 switch, which updates its routing
table.
Configuring IP Multicast Routing
This section describes how to configure IP multicast routing. It contains this configuration information:
Default Multicast Routing Configuration, page 24-13
Multicast Routing Configuration Guidelines, page 24-14
Configuring Basic Multicast Routing, page 24-15 (required procedure)
Configuring a Rendezvous Point, page 24-17 (required for spare-mode or sparse-dense-mode
operation)
Using Auto-RP and a BSR, page 24-27
Monitoring the RP Mapping Information, page 24-27
Troubleshooting PIMv1 and PIMv2 Interoperability Problems, page 24-28
Default Multicast Routing Configuration
Table 24-1 shows the default multicast routing configuration.
Table24-1 Default Multicast Routing Configuration
Feature Default Setting
Multicast routing Disabled on all interfaces.
PIM version Version 2 (for devices running IOS Release 11.3(2)T or
later).
PIM mode No mode is defined.
PIM RP address None configured.
PIM domain border Disabled.
PIM multicast boundary None.
Candidate BSRs Disabled.
24-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Multicast Routing Configuration Guidelines
To avoid misconfiguring multicast routing on your multilayer switch, review the information in these
sections:
PIMv1 and PIMv2 Interoperability, page 24-14
Auto-RP and BSR Configuration Guidelines, page 24-15
PIMv1 and PIMv2 Interoperability
The Cisco PIMv2 implementation allows interoperability and transition between Version 1 and
Version 2, although there might be some minor problems.
You can upgrade to PIMv2 incrementally. PIM Versions 1 and 2 can be configured on different routers
and multilayer switches within one network. Internally, all routers and multilayer switches on a shared
media network must run the same PIM version. Therefore, if a PIMv2 device detects a PIMv1 device,
the Version 2 device downgrades itself to Version 1 until all Version 1 devices have been shut down or
upgraded.
PIMv2 uses the BSR to discover and announce RP-set information for each group prefix to all the routers
and multilayer switches in a PIM domain. PIMv1, together with the Auto-RP feature, can perform the
same tasks as the PIMv2 BSR. However, Auto-RP is a standalone protocol, separate from PIMv1, and
is a proprietary Cisco protocol. PIMv2 is a standards track protocol in the IETF. We recommend that you
use PIMv2. The BSR mechanism interoperates with Auto-RP on Cisco routers and multilayer switches.
For more information, see the Auto-RP and BSR Configuration Guidelines section on page 24-15.
When PIMv2 devices interoperate with PIMv1 devices, Auto-RP should have already been deployed. A
PIMv2 BSR that is also an Auto-RP mapping agent automatically advertises the RP elected by Auto-RP.
That is, Auto-RP sets its single RP on every router or multilayer switch in the group. Not all routers and
switches in the domain use the PIMv2 hash function to select multiple RPs.
Dense-mode groups in a mixed PIMv1 and PIMv2 region need no special configuration; they
automatically interoperate.
Sparse-mode groups in a mixed PIMv1 and PIMv2 region are possible because the Auto-RP feature in
PIMv1 interoperates with the PIMv2 RP feature. Although all PIMv2 devices can also use PIMv1, we
recommend that the RPs be upgraded to PIMv2 (or at least upgraded to PIMv1 in the Cisco IOS
Release 11.3 software). To ease the transition to PIMv2, we have these recommendations:
Use Auto-RP throughout the region.
Configure sparse-dense mode throughout the region.
If Auto-RP is not already configured in the PIMv1 regions, configure Auto-RP. For more information,
see the Configuring Auto-RP section on page 24-18.
Candidate RPs Disabled.
Shortest-path tree threshold rate 0 kbps.
PIM router query message interval 30 seconds.
Table24-1 Default Multicast Routing Configuration (continued)
Feature Default Setting
24-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Auto-RP and BSR Configuration Guidelines
There are two approaches to using PIMv2. You can use Version 2 exclusively in your network or migrate
to Version 2 by employing a mixed PIM version environment.
If your network is all Cisco routers and multilayer switches, you can use either Auto-RP or BSR.
If you have non-Cisco routers in your network, you must use BSR.
If you have Cisco PIMv1 and PIMv2 routers and multilayer switches and non-Cisco routers, you
must use both Auto-RP and BSR.
Because bootstrap messages are sent hop-by-hop, a PIMv1 device prevents these messages from
reaching all routers and multilayer switches in your network. Therefore, if your network has a
PIMv1 device in it and only Cisco routers and multilayer switches, it is best to use Auto-RP.
If you have a network that includes non-Cisco routers, configure the Auto-RP mapping agent and
the BSR on a Cisco PIMv2 router or multilayer switch. Ensure that no PIMv1 device is on the path
between the BSR and a non-Cisco PIMv2 router.
If you have non-Cisco PIMv2 routers that need to interoperate with Cisco PIMv1 routers and
multilayer switches, both Auto-RP and a BSR are required. We recommend that a Cisco PIMv2
device be both the Auto-RP mapping agent and the BSR. For more information, see the Using
Auto-RP and a BSR section on page 24-27.
Configuring Basic Multicast Routing
You must enable IP multicast routing and configure the PIM version and PIM mode so that the IOS
software can forward multicast packets and determine how the multilayer switch populates its multicast
routing table.
You can configure an interface to be in PIM dense mode, sparse mode, or sparse-dense mode. The mode
determines how the switch populates its multicast routing table and how it forwards multicast packets it
receives from its directly connected LANs. You must enable PIM in one of these modes for an interface
to perform IP multicast routing. Enabling PIM on an interface also enables IGMP operation on that
interface.
By default, multicast routing is disabled, and there is no default mode setting. The following procedure
is required.
Beginning in privileged EXEC mode, follow these steps to enable IP multicasting and a PIM mode on
your multilayer switch:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip multicast-routing Enable IP multicast forwarding.
24-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
To disable multicasting, use the no ip multicast-routing global configuration command. To return to
the default PIM version, use the no ip pim version interface configuration command. To disable PIM
on an interface, use the no ip pim interface configuration command.
Step3 interface interface-id Enter interface configuration mode, and specify the Layer 3 interface on
which you want to enable multicast routing.
The specified interface must be one of the following:
A routed port: a physical port that has been configured as a Layer 3
port by entering the no switchport interface configuration
command.
An SVI: a VLAN interface created by using the interface vlan
vlan-id global configuration command.
These ports must have IP addresses assigned to them. For more
information, see the Configuring Layer 3 Interfaces section on
page 8-22.
Step4 ip pim version [1 | 2] Configure the PIM version on the interface.
By default, Version 2 is enabled and is the recommended setting.
Note All IP multicast-capable Cisco PIM routers using IOS Release
11.3(2)T or later start in PIMv2 by default.
An interface in PIMv2 mode automatically downgrades to PIMv1 mode
if that interface has a PIMv1 neighbor. The interface returns to Version 2
mode after all Version 1 neighbors are shut down or upgraded.
For more information, see the PIMv1 and PIMv2 Interoperability
section on page 24-14.
Step5 ip pim {dense-mode | sparse-mode |
sparse-dense-mode}
Enable a PIM mode on the interface.
By default, no mode is configured.
The keywords have these meanings:
dense-modeEnables dense mode of operation.
sparse-modeEnables sparse mode of operation.
sparse-dense-modeCauses the interface to be treated in the mode
in which the group belongs. Sparse-dense-mode is the recommended
setting.
Note If you are use sparse-mode or sparse-dense mode, you must also
configure an RP. For more information, see the Configuring a
Rendezvous Point section on page 24-17.
Step6 end Return to privileged EXEC mode.
Step7 show running-config Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
24-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Configuring a Rendezvous Point
If you have configured PIM SM or PIM SM-DM, you must configure an RP for the multicast group. You
can use several methods, as described in the next sections:
Manually Assigning an RP to Multicast Groups, page 24-17
Configuring Auto-RP, page 24-18 (a standalone, Cisco-proprietary protocol separate from PIMv1)
Configuring PIMv2 BSR, page 24-22 (a standards track protocol in the Internet Engineering Task
Force (IETF)
You can use Auto-RP, BSR, or a combination of both, depending on the PIM version you are running
and the types of routers in your network. For more information, see the PIMv1 and PIMv2
Interoperability section on page 24-14 and the Auto-RP and BSR Configuration Guidelines section
on page 24-15.
Manually Assigning an RP to Multicast Groups
This section explains how to manually configure an RP. If the RP for a group is learned through a
dynamic mechanism (such as Auto-RP or BSR), you need not perform this task for that RP.
Senders of multicast traffic announce their existence through register messages received from the
sources first-hop router (designated router) and forwarded to the RP. Receivers of multicast packets use
RPs to join a multicast group by using explicit join messages. RPs are not members of the multicast
group; rather, they serve as a meeting place for multicast sources and group members.
Beginning in privileged EXEC mode, follow these steps to manually configure the address of the RP:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip pim rp-address ip-address
[access-list-number] [override]
Configure the address of a PIM RP.
By default, no PIM RP address is configured. You must configure the IP
address of RPs on all routers and multilayer switches (including the RP).
If there is no RP configured for a group, the multilayer switch treats the
group as dense, using the dense-mode PIM techniques. A PIM device can
use multiple RPs, but only one per group.
For ip-address, enter the unicast address of the RP in dotted-decimal
notation.
(Optional) For access-list-number, enter an IP standard access list
number from 1 to 99. If no access list is configured, the RP is used for
all groups.
(Optional) The override keyword means that if there is a conflict
between the RP configured with this command and one learned by
Auto-RP or BSR, the RP configured with this command prevails.
24-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
To remove an RP address, use the no ip pim rp-address ip-address [access-list-number] [override]
global configuration command.
This example shows how to configure the address of the RP to 147.106.6.22 for multicast
group 225.2.2.2 only:
Switch(config)# access-list 1 permit 225.2.2.2 0.0.0.0
Switch(config)# ip pim rp-address 147.106.6.22 1
Configuring Auto-RP
Auto-RP uses IP multicast to automate the distribution of group-to-RP mappings to all Cisco routers and
multilayer switches in a PIM network. It has these benefits:
It is easy to use multiple RPs within a network to serve different group ranges.
It allows load splitting among different RPs and arrangement of RPs according to the location of
group participants.
It avoids inconsistent, manual RP configurations on every router and multilayer switch in a PIM
network, which can cause connectivity problems.
Note If you configure PIM in sparse mode or sparse-dense mode and do not configure Auto-RP, you must
manually configure an RP as described in the Manually Assigning an RP to Multicast Groups
section on page 24-17.
Note If routed interfaces are configured in sparse mode, Auto-RP can still be used if all devices are
configured with a manual RP address for the Auto-RP groups.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, enter the access list number specified in Step
2.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the multicast group address for which the RP should
be used.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
24-19
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
This section contains this configuration information:
Setting up Auto-RP in a New Internetwork, page 24-19
Adding Auto-RP to an Existing Sparse-Mode Cloud, page 24-19
Preventing Join Messages to False RPs, page 24-20
Preventing Candidate RP Spoofing, page 24-21
For overview information, see the Auto-RP section on page 24-8.
Setting up Auto-RP in a New Internetwork
If you are setting up Auto-RP in a new internetwork, you do not need a default RP because you configure
all the interfaces for sparse-dense mode. Follow the process described in the section Adding Auto-RP
to an Existing Sparse-Mode Cloud section on page 24-19. However, skip Step 3 to configure a PIM
router as the RP for the local group.
Adding Auto-RP to an Existing Sparse-Mode Cloud
This section contains some suggestions for the initial deployment of Auto-RP into an existing
sparse-mode cloud to minimize disruption of the existing multicast infrastructure.
Beginning in privileged EXEC mode, follow these steps to deploy Auto-RP in an existing sparse-mode
cloud:
Command Purpose
Step1 show running-config Verify that a default RP is already configured on all PIM devices and the
RP in the sparse-mode network.
This step is not required for spare-dense-mode environments.
The selected RP should have good connectivity and be available across
the network. Use this RP for the global groups (for example 224.x.x.x
and other global groups). Do not reconfigure the group address range that
this RP serves. RPs dynamically discovered through Auto-RP take
precedence over statically configured RPs. Assume that it is desirable to
use a second RP for the local groups.
Step2 configure terminal Enter global configuration mode.
Step3 ip pim send-rp-announce interface-id
scope ttl group-list access-list-number
interval seconds
Configure another PIM device to be the candidate RP for local groups.
For interface-id, enter the interface type and number that identifies
the RP address. Valid interfaces include physical ports, port
channels, and VLANs.
For scope ttl, specify the time-to-live value in hops. Enter a hop
count that is high enough so that the RP-announce messages reach
all mapping agents in the network. There is no default setting. The
range is 1 to 255.
For group-list access-list-number, enter an IP standard access list
number from 1 to 99. If no access list is configured, the RP is used
for all groups.
For interval seconds, specify how often the announcement messages
must be sent. The default is 60 seconds. The range is 1 to 16383.
24-20
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
To remove the PIM device configured as the candidate RP, use the no ip pim send-rp-announce global
configuration command. To remove the multilayer switch as the RP-mapping agent, use the no ip pim
send-rp-discovery global configuration command.
This example shows how to send RP announcements out all PIM-enabled interfaces for a maximum
of 31 hops. The IP address of Gigabit Ethernet interface 0/1 is the RP. Access list 5 describes the group
for which this multilayer switch serves as RP:
Switch(config)# ip pim send-rp-announce gigabitethernet0/1 scope 31 group-list 5
Switch(config)# access-list 5 permit 224.0.0.0 15.255.255.255
Preventing Join Messages to False RPs
Determine whether the ip pim accept-rp command was previously configured throughout the network
by using the show running-config privileged EXEC command. If the ip pim accept-rp command is not
configured on any device, this problem can be addressed later. In those routers or multilayer switches
already configured with the ip pim accept-rp command, you must enter the command again to accept
the newly advertised RP.
To accept all RPs advertised with Auto-RP and reject all other RPs by default, use the ip pim accept-rp
auto-rp global configuration command.
Step4 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, enter the access list number specified in Step
3.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the multicast group address range for which the RP
should be used.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step5 ip pim send-rp-discovery scope ttl Find a multilayer switch whose connectivity is not likely to be
interrupted, and assign it the role of RP-mapping agent.
For scope ttl, specify the time-to-live value in hops to limit the RP
discovery packets. All devices within the hop count from the source
device receive the Auto-RP discovery messages. These messages tell
other devices which group-to-RP mapping to use to avoid conflicts (such
as overlapping group-to-RP ranges). There is no default setting. The
range is 1 to 255.
Step6 end Return to privileged EXEC mode.
Step7 show running-config Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
24-21
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
If all interfaces are in sparse mode, use a default-configured RP to support the two well-known
groups 224.0.1.39 and 224.0.1.40. Auto-RP uses these two well-known groups to collect and distribute
RP-mapping information. When this is the case and the ip pim accept-rp auto-rp command is
configured, another ip pim accept-rp command accepting the RP must be configured as follows:
Switch(config)# ip pim accept-rp 172.10.20.1 1
Switch(config)# access-list 1 permit 224.0.1.39
Switch(config)# access-list 1 permit 224.0.1.40
Preventing Candidate RP Spoofing
You can add configuration commands to the mapping agents to prevent a maliciously configured router
from masquerading as a candidate RP and causing problems.
Beginning in privileged EXEC mode, follow these steps to filter incoming RP announcement messages:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip pim rp-announce-filter rp-list
access-list-number group-list
access-list-number
Filter incoming RP announcement messages.
Enter this command on each mapping agent in the network.
Without this command, all incoming RP-announce messages are
accepted by default.
For rp-list access-list-number, configure an access list of candidate RP
addresses that, if permitted, is accepted for the group ranges supplied
in the group-list access-list-number variable. If this variable is
omitted, the filter applies to all multicast groups.
If more than one mapping agent is used, the filters must be consistent
across all mapping agents to ensure that no conflicts occur in the
Group-to-RP mapping information.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, enter the access list number specified in
Step 2.
The deny keyword denies access if the conditions are matched.
The permit keyword permits access if the conditions are matched.
Create an access list that specifies from which routers and
multilayer switches the mapping agent accepts candidate RP
announcements (rp-list ACL).
Create an access list that specifies the range of multicast groups
from which to accept or deny (group-list ACL).
For source, enter the multicast group address range for which the
RP should be used.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
24-22
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
To remove a filter on incoming RP announcement messages, use the no ip pim rp-announce-filter
rp-list access-list-number group-list access-list-number global configuration command.
This example shows a sample configuration on an Auto-RP mapping agent that is used to prevent
candidate RP announcements from being accepted from unauthorized candidate RPs:
Switch(config)# ip pim rp-announce-filter rp-list 10 group-list 20
Switch(config)# access-list 10 permit host 172.16.5.1
Switch(config)# access-list 10 permit host 172.16.2.1
Switch(config)# access-list 20 deny 239.0.0.0 0.0.255.255
Switch(config)# access-list 20 permit 224.0.0.0 15.255.255.255
In this example, the mapping agent accepts candidate RP announcements from only two devices,
172.16.5.1 and 172.16.2.1. The mapping agent accepts candidate RP announcements from these two
devices only for multicast groups that fall in the group range of 224.0.0.0 to 239.255.255.255. The
mapping agent does not accept candidate RP announcements from any other devices in the network.
Furthermore, the mapping agent does not accept candidate RP announcements from 172.16.5.1
or 172.16.2.1 if the announcements are for any groups in the 239.0.0.0 through 239.255.255.255 range.
This range is the administratively scoped address range.
Configuring PIMv2 BSR
BSR automates the distribution of group-to-RP mappings to all routers and multilayer switches in a
PIMv2 network. It eliminates the need to manually configure RP information in every device in the
network. However, instead of using IP multicast to distribute group-to-RP mapping information, BSR
uses hop-by-hop flooding of special BSR messages to distribute the mapping information. For overview
information, see the Bootstrap Router section on page 24-8.
This section describes how to set up BSR in your PIMv2 network. It contains this configuration
information:
Defining the PIM Domain Border, page 24-22
Defining the IP Multicast Boundary, page 24-24
Configuring Candidate BSRs, page 24-25
Configuring Candidate RPs, page 24-26
Defining the PIM Domain Border
As IP multicast becomes more widespread, the chances of one PIMv2 domain bordering another PIMv2
domain is increasing. Because these two domains probably do not share the same set of RPs, BSR,
candidate RPs, and candidate BSRs, you need to constrain PIMv2 BSR messages from flowing into or
out of the domain. Allowing these messages to leak across the domain borders could adversely affect the
normal BSR election mechanism and elect a single BSR across all bordering domains and co-mingle
candidate RP advertisements, resulting in the election of RPs in the wrong domain.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
24-23
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Beginning in privileged EXEC mode, follow these steps to define the PIM domain border:
To remove the PIM border, use the no ip pim bsr-border interface configuration command.
Figure24-8 Constraining PIMv2 BSR Messages
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip pim bsr-border Define a PIM bootstrap message boundary for the PIM domain.
Enter this command on each interface that connects to other bordering
PIM domains. This command instructs the multilayer switch to neither
send or receive PIMv2 BSR messages on this interface as shown in
Figure 24-8.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Si Si
4
5
1
5
1
PIMv2 sparse-mode
network
BSR
BSR
messages
Neighboring
PIMv2 domain
Neighboring
PIMv2 domain
Border
router
Border
router
A B
Configure the
ip pim bsr-border
command on
this interface.
Configure the
ip pim bsr-border
command on
this interface.
BSR
messages
24-24
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Defining the IP Multicast Boundary
You define a multicast boundary to prevent Auto-RP messages from entering the PIM domain. You
create an access list to deny packets destined for 224.0.1.39 and 224.0.1.40, which carry Auto-RP
information.
Beginning in privileged EXEC mode, follow these steps to define a multicast boundary:
To remove the boundary, use the no ip multicast boundary interface configuration command.
This example shows a portion of an IP multicast boundary configuration that denies Auto-RP
information:
Switch(config)# access-list 1 deny 224.0.1.39
Switch(config)# access-list 1 deny 224.0.1.40
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# ip multicast boundary 1
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list access-list-number deny
source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, the range is 1 to 99.
The deny keyword denies access if the conditions are matched.
For source, enter multicast addresses 224.0.1.39 and 224.0.1.40,
which carry Auto-RP information.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step3 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step4 ip multicast boundary
access-list-number
Configure the boundary, specifying the access list you created in Step 2.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-25
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Configuring Candidate BSRs
You can configure one or more candidate BSRs. The devices serving as candidate BSRs should have
good connectivity to other devices and be in the backbone portion of the network.
Beginning in privileged EXEC mode, follow these steps to configure your multilayer switch as a
candidate BSR:
To remove this device as a candidate BSR, use the no ip pim bsr-candidate global configuration
command.
This example shows how to configure a candidate BSR, which uses the IP address 172.21.24.18 on
Gigabit Ethernet interface 0/2 as the advertised BSR address, uses 30 bits as the hash-mask-length, and
has a priority of 10.
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# ip address 172.21.24.18 255.255.255.0
Switch(config-if)# ip pim sparse-dense-mode
Switch(config-if)# ip pim bsr-candidate gigabitethernet0/2 30 10
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip pim bsr-candidate interface-id
hash-mask-length [priority]
Configure your multilayer switch to be a candidate BSR.
For interface-id, enter the interface type and number on this switch
from which the BSR address is derived to make it a candidate. This
interface must be enabled with PIM. Valid interfaces include
physical ports, port channels, and VLANs.
For hash-mask-length, specify the mask length (32 bits maximum)
that is to be ANDed with the group address before the hash function
is called. All groups with the same seed hash correspond to the same
RP. For example, if this value is 24, only the first 24 bits of the
group addresses matter.
(Optional) For priority, enter a number from 0 to 255. The BSR with
the larger priority is preferred. If the priority values are the same,
the device with the highest IP address is selected as the BSR. The
default is 0.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-26
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
Configuring Candidate RPs
You can configure one or more candidate RPs. Similar to BSRs, the RPs should also have good
connectivity to other devices and be in the backbone portion of the network. An RP can serve the entire
IP multicast address space or a portion of it. Candidate RPs send candidate RP advertisements to the
BSR. When deciding which devices should be RPs, consider these options:
In a network of Cisco routers and multilayer switches where only Auto-RP is used, any device can
be configured as an RP.
In a network that includes only Cisco PIMv2 routers and multilayer switches and with routers from
other vendors, any device can be used as an RP.
In a network of Cisco PIMv1 routers, Cisco PIMv2 routers, and routers from other vendors,
configure only Cisco PIMv2 routers and multilayer switches as RPs.
Beginning in privileged EXEC mode, follow these steps to configure your multilayer switch to advertise
itself as a PIMv2 candidate RP to the BSR:
To remove this device as a candidate RP, use the no ip pim rp-candidate global configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip pim rp-candidate interface-id
[group-list access-list-number]
Configure your multilayer switch to be a candidate RP.
For interface-id, enter the interface type and number whose
associated IP address is advertised as a candidate RP address. Valid
interfaces include physical ports, port channels, and VLANs.
(Optional) For group-list access-list-number, enter an IP standard
access list number from 1 to 99. If no group-list is specified, the
multilayer switch is a candidate RP for all groups.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, enter the access list number specified in
Step 2.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the number of the network or host from which the
packet is being sent.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-27
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring IP Multicast Routing
This example shows how to configure the multilayer switch to advertise itself as a candidate RP to the
BSR in its PIM domain. Standard access list number 4 specifies the group prefix associated with the RP
that has the address identified by Gigabit Ethernet interface 0/2. That RP is responsible for the groups
with the prefix 239.
Switch(config)# ip pim rp-candidate gigabitethernet0/2 group-list 4
Switch(config)# access-list 4 permit 239.0.0.0 0.255.255.255
Using Auto-RP and a BSR
If you have non-Cisco PIMv2 routers that need to interoperate with Cisco PIMv1 routers and multilayer
switches, both Auto-RP and a BSR are required. We recommend that a Cisco PIMv2 router or multilayer
switch be both the Auto-RP mapping agent and the BSR.
If you must have one or more BSRs, we have these recommendations:
Configure the candidate BSRs as the RP-mapping agents for Auto-RP. For more information, see
the Configuring Auto-RP section on page 24-18 and the Configuring Candidate BSRs section
on page 24-25.
For group prefixes advertised through Auto-RP, the PIMv2 BSR mechanism should not advertise a
subrange of these group prefixes served by a different set of RPs. In a mixed PIMv1 and PIMv2
domain, have backup RPs serve the same group prefixes. This prevents the PIMv2 DRs from
selecting a different RP from those PIMv1 DRs, due to the longest match lookup in the RP-mapping
database.
Beginning in privileged EXEC mode, follow these steps to verify the consistency of group-to-RP
mappings:
Monitoring the RP Mapping Information
To monitor the RP mapping information, use these commands in privileged EXEC mode:
show ip pim bsr displays information about the currently elected BSR.
show ip pim rp-hash group displays the RP that was selected for the specified group.
show ip pim rp [group-name | group-address | mapping] displays how the multilayer switch learns
of the RP (through the BSR or the Auto-RP mechanism).
Command Purpose
Step1 show ip pim rp [[group-name |
group-address] | mapping]
On any Cisco device, display the available RP mappings.
(Optional) For group-name, specify the name of the group about which to
display RPs.
(Optional) For group-address, specify the address of the group about which
to display RPs.
(Optional) Use the mapping keyword to display all group-to-RP mappings
of which the Cisco device is aware (either configured or learned from
Auto-RP).
Step2 show ip pim rp-hash group On a PIMv2 router or multilayer switch, confirm that the same RP is the one that
a PIMv1 system chooses.
For group, enter the group address for which to display RP information.
24-28
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced PIM Features
Troubleshooting PIMv1 and PIMv2 Interoperability Problems
When debugging interoperability problems between PIMv1 and PIMv2, check these in the order shown:
1. Verify RP mapping with the show ip pim rp-hash privileged EXEC command, making sure that all
systems agree on the same RP for the same group.
2. Verify interoperability between different versions of DRs and RPs. Make sure the RPs are
interacting with the DRs properly (by responding with register-stops and forwarding decapsulated
data packets from registers).
Configuring Advanced PIM Features
This section contains the optional advanced PIM features and this configuration information:
Understanding PIM Shared Tree and Source Tree, page 24-28
Delaying the Use of PIM Shortest-Path Tree, page 24-29
Modifying the PIM Router-Query Message Interval, page 24-30
Understanding PIM Shared Tree and Source Tree
By default, members of a group receive data from senders to the group across a single data-distribution
tree rooted at the RP. Figure 24-9 shows this type of shared-distribution tree. Data from senders is
delivered to the RP for distribution to group members joined to the shared tree.
Figure24-9 Shared Tree and Source Tree (Shortest-Path Tree)
If the data rate warrants, leaf routers (routers without any downstream connections) on the shared tree
can use the data distribution tree rooted at the source. This type of distribution tree is called a
shortest-path tree or source tree. By default, the IOS software switches to a source tree upon receiving
the first data packet from a source.
Router A
Source
Receiver
Router C RP
Router B
Shared tree
from RP
Source tree
(shortest
path tree)
4
4
9
6
7
24-29
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced PIM Features
This process describes the move from a shared tree to a source tree:
1. A receiver joins a group; leaf Router C sends a join message toward the RP.
2. The RP puts a link to Router C in its outgoing interface list.
3. A source sends data; Router A encapsulates the data in a register message and sends it to the RP.
4. The RP forwards the data down the shared tree to Router C and sends a join message toward the
source. At this point, data might arrive twice at Router C, once encapsulated and once natively.
5. When data arrives natively (unencapsulated) at the RP, it sends a register-stop message to Router A.
6. By default, reception of the first data packet prompts Router C to send a join message toward the
source.
7. When Router C receives data on (S,G), it sends a prune message for the source up the shared tree.
8. The RP deletes the link to Router C from the outgoing interface of (S,G). The RP triggers a prune
message toward the source.
Join and prune messages are sent for sources and RPs. They are sent hop-by-hop and are processed by
each PIM device along the path to the source or RP. Register and register-stop messages are not sent
hop-by-hop. They are sent by the designated router that is directly connected to a source and are received
by the RP for the group.
Multiple sources sending to groups use the shared tree.
You can configure the PIM device to stay on the shared tree. For more information, see the Delaying
the Use of PIM Shortest-Path Tree section on page 24-29.
Delaying the Use of PIM Shortest-Path Tree
The change from shared to source tree happens when the first data packet arrives at the last-hop router
(Router C in Figure 24-9). This change occurs because the ip pim spt-threshold interface configuration
command controls that timing; its default setting is 0 kbps.
The shortest-path tree requires more memory than the shared tree but reduces delay. You might want to
postpone its use. Instead of allowing the leaf router to immediately move to the shortest-path tree, you
can specify that the traffic must first reach a threshold.
You can configure when a PIM leaf router should join the shortest-path tree for a specified group. If a
source sends at a rate greater than or equal to the specified kbps rate, the multilayer switch triggers a
PIM join message toward the source to construct a source tree (shortest-path tree). If the traffic rate from
the source drops below the threshold value, the leaf router switches back to the shared tree and sends a
prune message toward the source.
You can specify to which groups the shortest-path tree threshold applies by using a group list (a standard
access list). If a value of 0 is specified or if the group list is not used, the threshold applies to all groups.
24-30
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced PIM Features
Beginning in privileged EXEC mode, follow these steps to configure a traffic rate threshold that must
be reached before multicast routing is switched from the source tree to the shortest-path tree:
To return to the default threshold, use the no ip pim spt-threshold interface configuration command.
Modifying the PIM Router-Query Message Interval
PIM routers and multilayer switches send PIM router-query messages to determine which device will be
the DR for each LAN segment (subnet). The DR is responsible for sending IGMP host-query messages
to all hosts on the directly connected LAN.
With PIM DM operation, the DR has meaning only if IGMPv1 is in use. IGMPv1 does not have an IGMP
querier election process, so the elected DR functions as the IGMP querier. With PIM SM operation, the
DR is the device that is directly connected to the multicast source. It sends PIM register messages to
notify the RP that multicast traffic from a source needs to be forwarded down the shared tree. In this
case, the DR is the device with the highest IP address.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list.
For access-list-number, the range is 1 to 99.
The deny keyword denies access if the conditions are matched.
The permit keyword permits access if the conditions are
matched.
For source, specify the multicast group to which the threshold
will apply.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the
bit positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step3 interface interface-id Enter interface configuration mode, and specify the interface on the
leaf router that connects to the source tree.
Step4 ip pim spt-threshold {kbps | infinity}
[group-list access-list-number]
Specify the threshold that must be reached before moving to
shortest-path tree (spt).
For kbps, specify the traffic rate in kilobits per second. The
default is 0 kbps. The range is 0 to 4294967.
Specify infinity if you want all sources for the specified group
to use the shared tree, never switching to the source tree.
(Optional) For group-list access-list-number, specify the access
list created in Step 2. If the value is 0 or if the group-list is not
used, the threshold applies to all groups.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-31
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional IGMP Features
By default, multicast routers and multilayer switches send PIM router-query messages every 30 seconds.
Beginning in privileged EXEC mode, follow these steps to modify the router-query message interval:
To return to the default interval, use the no ip pim query-interval [seconds] interface configuration
command.
Configuring Optional IGMP Features
This section describes how to configure optional IGMP features. It contains this configuration
information:
Default IGMP Configuration, page 24-31
Changing the IGMP Version, page 24-32
Changing the IGMP Query Timeout for IGMPv2, page 24-32
Changing the Maximum Query Response Time for IGMPv2, page 24-33
Configuring the Multilayer Switch as a Member of a Group, page 24-34
Controlling Access to IP Multicast Groups, page 24-35
Modifying the IGMP Host-Query Message Interval, page 24-36
Configuring the Multilayer Switch as a Statically Connected Member, page 24-36
Default IGMP Configuration
Table 24-2 shows the default IGMP configuration.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip pim query-interval seconds Configure the frequency at which the multilayer switch sends PIM
router-query messages.
The default is 30 seconds. The range is 1 to 65535.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Table24-2 Default IGMP Configuration
Feature Default Setting
IGMP version Version 2 on all interfaces.
IGMP query timeout 60 seconds on all interfaces.
IGMP maximum query response time 10 seconds on all interfaces.
Multilayer switch as a member of a multicast group No group memberships are defined.
24-32
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional IGMP Features
Changing the IGMP Version
By default, the multilayer switch uses IGMP Version 2, which allows features such as the IGMP query
timeout and the maximum query response time.
All systems on the subnet must support the same version. The switch does not automatically detect
Version 1 systems and switch to Version 1.
Configure the switch for Version 1 if your hosts do not support Version 2.
Beginning in privileged EXEC mode, follow these steps to change the IGMP version:
To return to the default version (2), use the no ip igmp version interface configuration command.
Changing the IGMP Query Timeout for IGMPv2
If you are using IGMPv2, you can specify the period of time before the multilayer switch takes over as
the querier for the interface. By default, the switch waits twice the query interval controlled by the ip
igmp query-interval interface configuration command. After that time, if the switch has received no
queries, it becomes the querier.
Access to multicast groups All groups are allowed on an interface.
IGMP host-query message interval 60 seconds on all interfaces.
Multilayer switch as a statically connected member Disabled.
Table24-2 Default IGMP Configuration (continued)
Feature Default Setting
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp version {2 | 1} Specify the IGMP version that the switch uses.
Note If you change to version 1, you cannot configure the ip igmp
query-interval or the ip igmp query-max-response-time
interface configuration commands.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-33
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional IGMP Features
You can determine the query interval by entering the show ip igmp interface interface-id privileged
EXEC command.
Beginning in privileged EXEC mode, follow these steps to change the IGMP query timeout:
To return to the default timeout value, use the no ip igmp query-timeout interface configuration
command.
Changing the MaximumQuery Response Time for IGMPv2
If you are using IGMPv2, you can change the maximum query response time advertised in IGMP
queries. The maximum query response time allows the multilayer switch to quickly detect that there are
no more directly connected group members on a LAN. Decreasing the value allows the switch to prune
groups faster.
Beginning in privileged EXEC mode, follow these steps to change the maximum query response time:
To return to the default query-response time, use the no ip igmp query-max-response-time interface
configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp querier-timeout seconds Specify the IGMP query timeout.
The default is 60 seconds (twice the query interval). The range is 60
to 300.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp query-max-response-time
seconds
Change the maximum query response time advertised in IGMP queries.
The default is 10 seconds. The range is 1 to 25.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-34
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional IGMP Features
Configuring the Multilayer Switch as a Member of a Group
Multilayer switches can be configured as members of a multicast group. This is useful to determine
multicast reachability in a network. If all the multicast-capable routers and multilayer switches that you
administer are members of a multicast group, pinging that group causes all these devices to respond. The
devices respond to ICMP echo-request packets addressed to a group of which they are members. Another
example is the multicast trace-route tools provided in the Cisco IOS software.
Beginning in privileged EXEC mode, follow these steps to configure the multilayer switch to be a
member of a group:
To cancel membership in a group, use the no ip igmp join-group group-address interface configuration
command.
This example shows how to allow the switch to join multicast group 255.2.2.2:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# ip igmp join-group 255.2.2.2
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp join-group group-address Configure the switch to join a multicast group.
By default, no group memberships are defined.
For group-address, specify the multicast IP address in dotted decimal
notation.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-35
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional IGMP Features
Controlling Access to IP Multicast Groups
The multilayer switch sends IGMP host-query messages to determine which multicast groups have
members on attached local networks. The switch then forwards to these group members all packets
addressed to the multicast group. You can place a filter on each interface to restrict the multicast groups
that hosts on the subnet serviced by the interface can join.
Beginning in privileged EXEC mode, follow these steps to filter multicast groups allowed on an
interface:
To disable groups on an interface, use the no ip igmp access-group access-list-number interface
configuration command.
This example shows how to configure hosts attached to Gigabit Ethernet interface 0/1 as able to join
only group 255.2.2.2:
Switch(config)# access-list 1 255.2.2.2 0.0.0.0
Switch(config-if)# interface gigabitethernet0/1
Switch(config-if)# ip igmp access-group 1
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp access-group access-list-number Specify the multicast groups that hosts on the subnet serviced by an
interface can join.
By default, all groups are allowed on an interface.
For access-list-number, specify an IP standard access list number.
The range is 1 to 99.
Step4 exit Return to global configuration mode.
Step5 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list.
For access-list-number, specify the access list created in Step 3.
The deny keyword denies access if the conditions are matched.
The permit keyword permits access if the conditions are
matched.
For source, specify the multicast group that hosts on the subnet
can join.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step6 end Return to privileged EXEC mode.
Step7 show ip igmp interface [interface-id] Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-36
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional IGMP Features
Modifying the IGMP Host-Query Message Interval
The multilayer switch periodically sends IGMP host-query messages to discover which multicast groups
are present on attached networks. These messages are sent to the all-hosts multicast group (224.0.0.1)
with a time-to-live (TTL) of 1. The switch sends host-query messages to refresh its knowledge of
memberships present on the network. If, after some number of queries, the IOS software discovers that
no local hosts are members of a multicast group, the software stops forwarding multicast packets to the
local network from remote origins for that group and sends a prune message upstream toward the source.
The switch elects a PIM designated router (DR) for the LAN (subnet). The DR is the router or multilayer
switch with the highest IP address for IGMPv2; for IGMPv1, the DR is elected according to the multicast
routing protocol that runs on the LAN. The designated router is responsible for sending IGMP
host-query messages to all hosts on the LAN. In sparse mode, the designated router also sends PIM
register and PIM join messages toward the RP router.
Beginning in privileged EXEC mode, follow these steps to modify the host-query interval:
To return to the default frequency, use the no ip igmp query-interval interface configuration command.
Configuring the Multilayer Switch as a Statically Connected Member
Sometimes there is either no group member on a network segment or a host cannot report its group
membership by using IGMP. However, you might want multicast traffic to go to that network segment.
These are ways to pull multicast traffic down to a network segment:
Use the ip igmp join-group interface configuration command. With this method, the multilayer
switch accepts the multicast packets in addition to forwarding them. Accepting the multicast packets
prevents the switch from fast switching.
Use the ip igmp static-group interface configuration command. With this method, the multilayer
switch does not accept the packets itself, but only forwards them. This method allows fast switching.
The outgoing interface appears in the IGMP cache, but the switch itself is not a member, as
evidenced by lack of an L (local) flag in the multicast route entry.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp query-interval seconds Configure the frequency at which the designated router sends IGMP
host-query messages.
By default, the designated router sends IGMP host-query messages
every 60 seconds to keep the IGMP overhead very low on hosts and
networks. The range is 0 to 65535.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-37
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional Multicast Routing Features
Beginning in privileged EXEC mode, follow these steps to configure the switch itself to be a statically
connected member of a group (and allow fast switching):
To remove the switch as a member of the group, use the no ip igmp static-group interface configuration
command.
Configuring Optional Multicast Routing Features
This section describes how to configure optional multicast routing features, which are grouped as
follows:
Features for Layer 2 connectivity and MBONE multimedia conference session and set up:
Enabling CGMP Server Support, page 24-38
Configuring sdr Listener Support, page 24-39
Features that control bandwidth utilization:
Configuring the TTL Threshold, page 24-40
Configuring an IP Multicast Boundary, page 24-42
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip igmp static-group group-address Configure the switch as a statically connected member of a group.
By default, this feature is disabled.
Step4 end Return to privileged EXEC mode.
Step5 show ip igmp interface [interface-id] Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-38
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional Multicast Routing Features
Enabling CGMP Server Support
The multilayer switch serves as a CGMP server for devices that do not support IGMP snooping but have
CGMP client functionality. CGMP is a protocol used on Cisco routers and multilayer switches connected
to Layer 2 Catalyst switches to perform tasks similar to those performed by IGMP. CGMP is necessary
because the Layer 2 switch cannot distinguish between IP multicast data packets and IGMP report
messages, which are both at the MAC-level and are addressed to the same group address.
Beginning in privileged EXEC mode, follow these steps to enable the CGMP server on the multilayer
switch interface:
To disable CGMP on the interface, use the no ip cgmp interface configuration command.
When multiple Cisco CGMP-capable devices are connected to a switched network and the ip cgmp
proxy command is needed, we recommend that all devices be configured with the same CGMP option
and have precedence for becoming the IGMP querier over non-Cisco routers.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface that is
connected to the Layer 2 Catalyst switch.
Step3 ip cgmp [proxy] Enable CGMP on the interface.
By default, CGMP is disabled on all interfaces.
Enabling CGMP triggers a CGMP join message. Enable CGMP only on
Layer 3 interfaces connected to Layer 2 Catalyst switches.
(Optional) When you enter the proxy keyword, the CGMP proxy function
is enabled. The proxy router advertises the existence of
non-CGMP-capable routers by sending a CGMP join message with the
non-CGMP-capable router MAC address and a group address
of 0000.0000.0000.
Note To perform CGMP proxy, the multilayer switch must be the IGMP
querier. If you configure the ip cgmp proxy command, you must
manipulate the IP addresses so that the switch is the IGMP
querier, which might be the highest or lowest IP address,
depending on which version of IGMP is running on the network.
An IGMP Version 2 querier is selected based on the lowest IP
address on the interface. An IGMP Version 1 querier is selected
based on the multicast routing protocol used on the interface.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Step7 Verify the Layer 2 Catalyst switch CGMP-client configuration. For more
information, refer to the documentation that shipped with the product.
24-39
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional Multicast Routing Features
Configuring sdr Listener Support
The MBONE is the small subset of Internet routers and hosts that are interconnected and capable of
forwarding IP multicast traffic. Other interesting multimedia content is often broadcast over the
MBONE. Before you can join a multimedia session, you need to know what multicast group address and
port are being used for the session, when the session is going to be active, and what sort of applications
(audio, video, and so forth) are required on your workstation. The MBONE Session Directory version 2
(sdr) tool provides this information. This freeware application can be downloaded from several sites on
the World Wide Web, one of which is http://www.video.ja.net/mice/index.html.
SDR is a multicast application that listens to a well-known multicast group address and port for Session
Announcement Protocol (SAP) multicast packets from SAP clients, which announce their conference
sessions. These SAP packets contain a session description, the time the session is active, its IP multicast
group addresses, media format, contact person, and other information about the advertised multimedia
session. The information in the SAP packet is displayed in the SDR Session Announcement window.
Enabling sdr Listener Support
By default, the multilayer switch does not listen to session directory advertisements.
Beginning in privileged EXEC mode, follow these steps to enable the switch to join the default session
directory group (224.2.127.254) on the interface and listen to session directory advertisements:
To disable sdr support, use the no ip sdr listen interface configuration command.
Limiting How Long an sdr Cache Entry Exists
By default, entries are never deleted from the sdr cache. You can limit how long the entry remains active
so that if a source stops advertising SAP information, old advertisements are not needlessly kept.
Beginning in privileged EXEC mode, follow these steps to limit how long an sdr cache entry stays active
in the cache:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
enabled for sdr.
Step3 ip sdr listen Enable sdr listener support.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip sdr cache-timeout minutes Limit how long an sdr cache entry stays active in the cache.
By default, entries are never deleted from the cache.
For minutes, specify a number from 1 to 4294967295.
24-40
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional Multicast Routing Features
To return to the default setting, use the no ip sdr cache-timeout global configuration command. To
delete the entire cache, use the clear ip sdr privileged EXEC command.
To display the session directory cache, use the show ip sdr privileged EXEC command.
Configuring the TTL Threshold
Each time an IP multicast packet is forwarded by the multilayer switch, the time-to-live (TTL) value in
the IP header is decremented by one. If the packet TTL decrements to zero, the switch drops the packet.
TTL thresholds can be applied to individual interfaces of the multilayer switch to prevent multicast
packets with a TTL less than the TTL threshold from being forwarded out the interface. TTL thresholds
provide a simple method to prevent the forwarding of multicast traffic beyond the boundary of a site or
region, based on the TTL field in a multicast packet. This is known as TTL scoping.
Figure 24-10 shows a multicast packet arriving on Gigabit Ethernet interface 0/2 with a TTL value of 24.
Assuming that the RPF check succeeds and that Gigabit Ethernet interfaces 0/1, 0/3, and 0/4 are all in
the outgoing interface list, the packet would normally be forwarded out these interfaces. Because some
TTL thresholds have been applied to these interfaces, the multilayer switch makes sure that the packet
TTL value, which is decremented by 1 to 23, is greater than or equal to the interface TTL threshold
before forwarding the packet out the interface. In this example, the packet is forwarded out interfaces
0/1 and 0/4, but not interface 0/3.
Figure24-10 TTL Thresholds
Figure 24-11 shows an example of TTL threshold boundaries being used to limit the forwarding of
multicast traffic. Company XYZ has set a TTL threshold of 100 on all routed interfaces at the perimeter
of its network. Multicast applications that constrain traffic to within the companys network need to send
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Si
Multicast datagram
with TTL = 24
Output Interface List
Gigabit Ethernet 0/1: TTL threshold = 16
Gigabit Ethernet 0/1
TTL = 16
Gigabit Ethernet 0/3: TTL threshold = 64
Gigabit Ethernet 0/4
TTL = 0
Gigabit Ethernet 0/4: TTL threshold = 0
Gigabit Ethernet 0/3
TTL = 64
Packet not
forwarded
Gigabit Ethernet 0/2
4
5
1
5
2
24-41
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional Multicast Routing Features
multicast packets with an initial TTL value set to 99. The engineering and marketing departments have
set a TTL threshold of 40 at the perimeter of their networks; therefore, multicast applications running
on these networks can prevent their multicast transmissions from leaving their respective networks.
Figure24-11 TTL Boundaries
Beginning in privileged EXEC mode, follow these steps to change the default TTL threshold value:
To return to the default TTL setting, use the no ip multicast ttl-threshold interface configuration
command.
4
5
1
5
3
Company XYZ
TTL threshold = 40
Engineering
TTL threshold = 40
TTL threshold = 100
Marketing
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip multicast ttl-threshold ttl-value Configure the TTL threshold of packets being forwarded out an
interface.
The default TTL value is 0 hops, which means that all multicast packets
are forwarded out the interface. The range is 0 to 255.
Only multicast packets with a TTL value greater than the threshold are
forwarded out the interface.
You should configure the TTL threshold only on routed interfaces at the
perimeter of the network.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-42
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Optional Multicast Routing Features
Configuring an IP Multicast Boundary
Like TTL thresholds, administratively-scoped boundaries can also be used to limit the forwarding of
multicast traffic outside of a domain or subdomain. This approach uses a special range of multicast
addresses, called administratively-scoped addresses, as the boundary mechanism. If you configure an
administratively-scoped boundary on a routed interface, multicast traffic whose multicast group
addresses fall in this range can not enter or exit this interface, thereby providing a firewall for multicast
traffic in this address range.
Figure 24-12 shows that Company XYZ has an administratively-scoped boundary set for the multicast
address range 239.0.0.0/8 on all routed interfaces at the perimeter of its network. This boundary prevents
any multicast traffic in the range 239.0.0.0 through 239.255.255.255 from entering or leaving the
network. Similarly, the engineering and marketing departments have an administratively-scoped
boundary of 239.128.0.0/16 around the perimeter of their networks. This boundary prevents multicast
traffic in the range of 239.128.0.0 through 239.128.255.255 from entering or leaving their respective
networks.
Figure24-12 Administratively-Scoped Boundaries
You can define an administratively-scoped boundary on a routed interface for multicast group addresses.
A standard access list defines the range of addresses affected. When a boundary is defined, no multicast
data packets are allowed to flow across the boundary from either direction. The boundary allows the
same multicast group address to be reused in different administrative domains.
The IANA has designated the multicast address range 239.0.0.0 to 239.255.255.255 as the
administratively-scoped addresses. This range of addresses can then be reused in domains administered
by different organizations. The addresses would be considered local, not globally unique.
4
5
1
5
4
Company XYZ
Engineering Marketing
239.128.0.0/16
239.0.0.0/8
24-43
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
Beginning in privileged EXEC mode, follow these steps to set up an administratively-scoped boundary:
To remove the boundary, use the no ip multicast boundary interface configuration command.
This example shows how to set up a boundary for all administratively-scoped addresses:
Switch(config)# access-list 1 deny 239.0.0.0 0.255.255.255
Switch(config)# access-list 1 permit 224.0.0.0 15.255.255.255
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# ip multicast boundary 1
Configuring Basic DVMRP Interoperability Features
This section describes how to perform basic configuration tasks on your multilayer switch to
interoperate with DVMRP devices. It contains this configuration information:
Configuring DVMRP Interoperability, page 24-44
Controlling Unicast Route Advertisements, page 24-44
Configuring a DVMRP Tunnel, page 24-46
Advertising Network 0.0.0.0 to DVMRP Neighbors, page 24-48
Responding to mrinfo Requests, page 24-49
For more advanced DVMRP features, see the Configuring Advanced DVMRP Interoperability
Features section on page 24-50.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, the range is 1 to 99.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the number of the network or host from which the
packet is being sent.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step3 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step4 ip multicast boundary
access-list-number
Configure the boundary, specifying the access list you created in Step 2.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-44
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
Configuring DVMRP Interoperability
Cisco multicast routers and multilayer switches using PIM can interoperate with non-Cisco multicast
routers that use the DVMRP.
PIM devices dynamically discover DVMRP multicast routers on attached networks by listening to
DVMR probe messages. When a DVMRP neighbor has been discovered, the PIM device periodically
sends DVMRP report messages advertising the unicast sources reachable in the PIM domain. By default,
directly connected subnets and networks are advertised. The device forwards multicast packets that have
been forwarded by DVMRP routers and, in turn, forwards multicast packets to DVMRP routers.
DVMRP interoperability is automatically activated when a Cisco PIM device receives a DVMRP probe
message on a multicast-enabled interface. No specific IOS command is configured to enable DVMRP
interoperability; however, you must enable multicast routing. For more information, see the
Configuring Basic Multicast Routing section on page 24-15.
Controlling Unicast Route Advertisements
You should configure an access list on the PIM routed interface connected to the MBONE to limit the
number of unicast routes that are advertised in DVMRP route reports; otherwise, all routes in the unicast
routing table are advertised.
Note The mrouted protocol is a public-domain implementation of DVMRP. You must use mrouted
Version 3.8 (which implements a nonpruning version of DVMRP) when Cisco routers and multilayer
switches are directly connected to DVMRP routers or interoperate with DVMRP routers over an
MBONE tunnel. DVMRP advertisements produced by the Cisco IOS software can cause older
versions of the mrouted protocol to corrupt their routing tables and those of their neighbors.
You can configure what sources are advertised and what metrics are used by configuring the ip dvmrp
metric interface configuration command. You can also direct all sources learned through a particular
unicast routing process to be advertised into DVMRP.
24-45
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
Beginning in privileged EXEC mode, follow these steps to configure the sources that are advertised and
the metrics that are used when DVMRP route-report messages are sent:
To disable the metric or route map, use the no ip dvmrp metric metric [list access-list-number]
[[protocol process-id] | [dvmrp]] or the no ip dvmrp metric metric route-map map-name interface
configuration command.
A more sophisticated way to achieve the same results as the preceding command is to use a route map
(ip dvmrp metric metric route-map map-name interface configuration command) instead of an access
list. You subject unicast routes to route-map conditions before they are injected into DVMRP.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, the range is 1 to 99.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the number of the network or host from which the
packet is being sent.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step3 interface interface-id Enter interface configuration mode, and specify the interface connected
to the MBONE and enabled for multicast routing.
Step4 ip dvmrp metric metric [list
access-list-number] [[protocol process-id]
| [dvmrp]]
Configure the metric associated with a set of destinations for DVMRP
reports.
For metric, the range is 0 to 32. A value of 0 means that the route
is not advertised. A value of 32 is equivalent to infinity
(unreachable).
(Optional) For list access-list-number, enter the access list number
created in Step 2. If specified, only the multicast destinations that
match the access list are reported with the configured metric.
(Optional) For protocol process-id, enter the name of the unicast
routing protocol, such as eigrp, igrp, ospf, rip, static, or dvmrp,
and the process ID number of the routing protocol. If specified,
only routes learned by the specified routing protocol are advertised
in DVMRP report messages.
(Optional) If specified, the dvmrp keyword allows routes from the
DVMRP routing table to be advertised with the configured metric
or filtered.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-46
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
This example shows how to configure DVMRP interoperability when the PIM device and the DVMRP
router are on the same network segment. In this example, access list 1 advertises the networks
(198.92.35.0, 198.92.36.0, 198.92.37.0, 131.108.0.0, and 150.136.0.0) to the DVMRP router, and access
list 2 prevents all other networks from being advertised (ip dvmrp metric 0 interface configuration
command).
Switch(config-if)# interface gigabitethernet0/1
Switch(config-if)# ip address 131.119.244.244 255.255.255.0
Switch(config-if)# ip pim dense-mode
Switch(config-if)# ip dvmrp metric 1 list 1
Switch(config-if)# ip dvmrp metric 0 list 2
Switch(config-if)# exit
Switch(config)# access-list 1 permit 198.92.35.0 0.0.0.255
Switch(config)# access-list 1 permit 198.92.36.0 0.0.0.255
Switch(config)# access-list 1 permit 198.92.37.0 0.0.0.255
Switch(config)# access-list 1 permit 131.108.0.0 0.0.255.255
Switch(config)# access-list 1 permit 150.136.0.0 0.0.255.255
Switch(config)# access-list 1 deny 0.0.0.0 255.255.255.255
Switch(config)# access-list 2 permit 0.0.0.0 255.255.255.255
Configuring a DVMRP Tunnel
The Cisco IOS software supports DVMRP tunnels to the MBONE. You can configure a DVMRP tunnel
on a router or multilayer switch if the other end is running DVMRP. The software then sends and receives
multicast packets through the tunnel. This strategy allows a PIM domain to connect to the DVMRP
router when all routers on the path do not support multicast routing. You cannot configure a DVMRP
tunnel between two routers.
When a Cisco router or multilayer switch runs DVMRP through a tunnel, it advertises sources in
DVMRP report messages, much as it does on real networks. The software also caches DVMRP report
messages it receives and uses them in its Reverse Path Forwarding (RPF) calculation. This behavior
allows the software to forward multicast packets received through the tunnel.
When you configure a DVMRP tunnel, you should assign an IP address to a tunnel in these cases:
To send IP packets through the tunnel
To configure the Cisco IOS software to perform DVMRP summarization
The software does not advertise subnets through the tunnel if the tunnel has a different network number
from the subnet. In this case, the software advertises only the network number through the tunnel.
24-47
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
Beginning in privileged EXEC mode, follow these steps to configure a DVMRP tunnel:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list access-list-number {deny |
permit} source [source-wildcard]
Create a standard access list, repeating the command as many times as
necessary.
For access-list-number, the range is 1 to 99.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the number of the network or host from which the
packet is being sent.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step3 interface tunnel number Enter interface configuration mode, and specify a tunnel interface.
Step4 tunnel source ip-address Specify the source address of the tunnel interface. Enter the IP address
of the interface on the multilayer switch.
Step5 tunnel destination ip-address Specify the destination address of the tunnel interface. Enter the IP
address of the mrouted router.
Step6 tunnel mode dvmrp Configure the encapsulation mode for the tunnel to DVMRP.
Step7 ip address address mask
or
ip unnumbered type number
Assign an IP address to the interface.
or
Configure the interface as unnumbered.
Step8 ip pim [dense-mode | sparse-mode] Configure the PIM mode on the interface.
Step9 ip dvmrp accept-filter
access-list-number [distance]
neighbor-list access-list-number
Configure an acceptance filter for incoming DVMRP reports.
By default, all destination reports are accepted with a distance of 0.
Reports from all neighbors are accepted.
For access-list-number, specify the access list number created in
Step 2. Any sources that match the access list are stored in the
DVMRP routing table with distance.
(Optional) For distance, enter the administrative distance to the
destination. By default, the administrative distance for DVMRP
routes is 0 and take precedence over unicast routing table routes. If
you have two paths to a source, one through unicast routing (using
PIM as the multicast routing protocol) and another using DVMRP,
and if you want to use the PIM path, increase the administrative
distance for DVMRP routes. The range is 1 to 255.
For neighbor-list access-list-number, enter the number of the
neighbor list created in Step 2. DVMRP reports are accepted only by
those neighbors on the list.
Step10 end Return to privileged EXEC mode.
24-48
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
To disable the filter, use the no ip dvmrp accept-filter access-list-number [distance] neighbor-list
access-list-number interface configuration command.
This example shows how to configure a DVMRP tunnel. In this configuration, the IP address of the
tunnel on the Cisco multilayer switch is assigned unnumbered, which causes the tunnel to appear to have
the same IP address as Gigabit Ethernet interface 0/1. The tunnel endpoint source address is 172.16.2.1,
and the tunnel endpoint address of the remote DVMRP router to which the tunnel is connected
is 192.168.1.10. Any packets sent through the tunnel are encapsulated in an outer IP header. The Cisco
multilayer switch is configured to accept incoming DVMRP reports with a distance of 100
from 198.92.37.0 through 198.92.37.255.
Switch(config)# ip multicast-routing
Switch(config)# interface tunnel 0
Switch(config-if)# ip unnumbered gigabitethernet 0/1
Switch(config-if)# ip pim dense-mode
Switch(config-if)# tunnel source gigabitethernet 0/1
Switch(config-if)# tunnel destination 192.168.1.10
Switch(config-if)# tunnel mode dvmrp
Switch(config-if)# ip dvmrp accept-filter 1 100
Switch(config-if)# interface gigabitethernet 0/1
Switch(config-if)# ip address 172.16.2.1 255.255.255.0
Switch(config-if)# ip pim dense-mode
Switch(config)# exit
Switch(config)# access-list 1 permit 198.92.37.0 0.0.0.255
Advertising Network 0.0.0.0 to DVMRP Neighbors
If your multilayer switch is a neighbor of an mrouted version 3.6 device, you can configure the Cisco
IOS software to advertise network 0.0.0.0 (the default route) to the DVMRP neighbor. The DVMRP
default route computes the RPF information for any multicast sources that do not match a more specific
route.
Do not advertise the DVMRP default into the MBONE.
Beginning in privileged EXEC mode, follow these steps to advertise network 0.0.0.0 to DVMRP
neighbors on an interface:
Step11 show running-config Verify your entries.
Step12 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface that is
connected to the DVMRP router.
24-49
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Basic DVMRP Interoperability Features
To prevent the default route advertisement, use the no ip dvmrp default-information {originate | only}
interface configuration command.
Responding to mrinfo Requests
The Cisco IOS software answers mrinfo requests sent by mrouted systems and Cisco routers and
multilayer switches. The software returns information about neighbors through DVMRP tunnels and all
the routed interfaces. This information includes the metric (always set to 1), the configured TTL
threshold, the status of the interface, and various flags. You can also use the mrinfo privileged EXEC
command to query the router or switch itself, as in this example:
Switch# mrinfo
171.69.214.27 (mm1-7kd.cisco.com) [version cisco 11.1] [flags: PMS]:
171.69.214.27 -> 171.69.214.26 (mm1-r7kb.cisco.com) [1/0/pim/querier]
171.69.214.27 -> 171.69.214.25 (mm1-45a.cisco.com) [1/0/pim/querier]
171.69.214.33 -> 171.69.214.34 (mm1-45c.cisco.com) [1/0/pim]
171.69.214.137 -> 0.0.0.0 [1/0/pim/querier/down/leaf]
171.69.214.203 -> 0.0.0.0 [1/0/pim/querier/down/leaf]
171.69.214.18 -> 171.69.214.20 (mm1-45e.cisco.com) [1/0/pim]
171.69.214.18 -> 171.69.214.19 (mm1-45c.cisco.com) [1/0/pim]
171.69.214.18 -> 171.69.214.17 (mm1-45a.cisco.com) [1/0/pim]
Step3 ip dvmrp default-information
{originate | only}
Advertise network 0.0.0.0 to DVMRP neighbors.
Use this command only when the multilayer switch is a neighbor of
mrouted version 3.6 machines.
The keywords have these meanings:
originateSpecifies that other routes more specific than 0.0.0.0 can
also be advertised.
onlySpecifies that no DVMRP routes other than 0.0.0.0 are
advertised.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
24-50
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Configuring Advanced DVMRP Interoperability Features
Cisco routers and multilayer switches run PIM to forward multicast packets to receivers and receive
multicast packets from senders. It is also possible to propagate DVMRP routes into and through a PIM
cloud. PIM uses this information; however, Cisco routers and multilayer switches do not implement
DVMRP to forward multicast packets.
This section describes how to perform advanced optional configuration tasks on your multilayer switch
to interoperate with DVMRP devices. It contains this configuration information:
Enabling DVMRP Unicast Routing, page 24-50
Rejecting a DVMRP Nonpruning Neighbor, page 24-51
Controlling Route Exchanges, page 24-53
For information on basic DVMRP features, see the Configuring Basic DVMRP Interoperability
Features section on page 24-43.
Enabling DVMRP Unicast Routing
Because multicast routing and unicast routing require separate topologies, PIM must follow the
multicast topology to build loopless distribution trees. Using DVMRP unicast routing, Cisco routers,
multilayer switches, and mrouted-based machines exchange DVMRP unicast routes, to which PIM can
then reverse-path forward.
Cisco devices do not perform DVMRP multicast routing among each other, but they can exchange
DVMRP routes. The DVMRP routes provide a multicast topology that might differ from the unicast
topology. This allows PIM to run over the multicast topology, thereby allowing sparse-mode PIM over
the MBONE topology.
When DVMRP unicast routing is enabled, the router or switch caches routes learned in DVMRP report
messages in a DVMRP routing table. When PIM is running, these routes might be preferred over routes
in the unicast routing table, allowing PIM to run on the MBONE topology when it is different from the
unicast topology.
DVMRP unicast routing can run on all interfaces. For DVMRP tunnels, it uses DVMRP multicast
routing. This feature does not enable DVMRP multicast routing among Cisco routers and multilayer
switches. However, if there is a DVMRP-capable multicast router, the Cisco device can do PIM/DVMRP
multicast routing.
Beginning in privileged EXEC mode, follow these steps to enable DVMRP unicast routing:
To disable this feature, use the no ip dvmrp unicast-routing interface configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface that is
connected to the DVMRP router.
Step3 ip dvmrp unicast-routing Enable DVMRP unicast routing (to send and receive DVMRP routes).
This feature is disabled by default.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-51
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Rejecting a DVMRP Nonpruning Neighbor
By default, Cisco devices accept all DVMRP neighbors as peers, regardless of their DVMRP capability.
However, some non-Cisco devices run old versions of DVMRP that cannot prune, so they continuously
receive forwarded packets, wasting bandwidth. Figure 24-13 shows this scenario.
Figure24-13 Leaf Nonpruning DVMRP Neighbor
You can prevent the multilayer switch from peering (communicating) with a DVMRP neighbor if that
neighbor does not support DVMRP pruning or grafting. To do so, configure the multilayer switch (which
is a neighbor to the leaf, nonpruning DVMRP machine) with the ip dvmrp reject-non-pruners interface
configuration command on the interface connected to the nonpruning machine as shown in Figure 24-14.
In this case, when the multilayer switch receives DVMRP probe or report message without the
prune-capable flag set, the switch logs a syslog message and discards the message.
Si
Router A
Router B
Multilayer
switch
RP
Valid
multicast
traffic
Unnecessary
multicast
traffic
4
4
9
7
0
Source router or RP
PIM dense mode
Leaf nonpruning
DVMRP device
Receiver
Stub LAN with no members
24-52
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Figure24-14 Router Rejects Nonpruning DVMRP Neighbor
Note that the ip dvmrp reject-non-pruners interface configuration command prevents peering with
neighbors only. If there are any nonpruning routers multiple hops away (downstream toward potential
receivers) that are not rejected, a nonpruning DVMRP network might still exist.
Beginning in privileged EXEC mode, follow these steps to prevent peering with nonpruning DVMRP
neighbors:
To disable this function, use the no ip dvmrp reject-non-pruners interface configuration command.
Router A
Router B
Multilayer switch
RP
Multicast
traffic gets
to receiver,
not to leaf
DVMRP
device
4
4
9
7
1
Source router or RP
Leaf nonpruning DVMRP device
Configure the ip dvmrp
reject-non-pruners command
on this interface.
Receiver
Si
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface connected
to the nonpruning DVMRP neighbor.
Step3 ip dvmrp reject-non-pruners Prevent peering with nonpruning DVMRP neighbors.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-53
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Controlling Route Exchanges
This section describes how to tune the Cisco device advertisements of DVMRP routes. It contains this
configuration information:
Limiting the Number of DVMRP Routes Advertised, page 24-53
Changing the DVMRP Route Threshold, page 24-54
Configuring a DVMRP Summary Address, page 24-54
Disabling DVMRP Autosummarization, page 24-56
Adding a Metric Offset to the DVMRP Route, page 24-56
Limiting the Number of DVMRP Routes Advertised
By default, only 7000 DVMRP routes are advertised over an interface enabled to run DVMRP (that is,
a DVMRP tunnel, an interface where a DVMRP neighbor has been discovered, or an interface
configured to run the ip dvmrp unicast-routing interface configuration command).
Beginning in privileged EXEC mode, follow these steps to change the DVMRP route limit:
To configure no route limit, use the no ip dvmrp route-limit global configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip dvmrp route-limit count Change the number of DVMRP routes advertised over an interface
enabled for DVMRP.
This command prevents misconfigured ip dvmrp metric interface
configuration commands from causing massive route injection into the
MBONE.
By default, 7000 routes are advertised. The range is 0 to 4294967295.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-54
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Changing the DVMRP Route Threshold
By default, 10,000 DVMRP routes can be received per interface within a 1-minute interval. When that
rate is exceeded, a syslog message is issued, warning that there might be a route surge occurring. The
warning is typically used to quickly detect when devices have been misconfigured to inject a large
number of routes into the MBONE.
Beginning in privileged EXEC mode, follow these steps to change the threshold number of routes that
trigger the warning:
To return to the default route count, use the no ip dvmrp routehog-notification global configuration
command.
Use the show ip igmp interface privileged EXEC command to display a running count of routes. When
the count is exceeded, *** ALERT *** is appended to the line.
Configuring a DVMRP Summary Address
By default, a Cisco device advertises in DVMRP route-report messages only connected unicast routes
(that is, only routes to subnets that are directly connected to the router) from its unicast routing table.
These routes undergo normal DVMRP classful route summarization. This process depends on whether
the route being advertised is in the same classful network as the interface over which it is being
advertised.
Figure 24-15 shows an example of the default behavior. This example shows that the DVMRP report
sent by the Cisco router contains the three original routes received from the DVMRP router that have
been poison-reversed by adding 32 to the DVMRP metric. Listed after these routes are two routes that
are advertisements for the two directly connected networks (176.32.10.0/24 and 176.32.15.0/24) that
were taken from the unicast routing table. Because the DVMRP tunnel shares the same IP address as
Fast Ethernet 0/1 and falls into the same Class B network as the two directly connected subnets, classful
summarization of these routes was not performed. As a result, the DVMRP router is able to
poison-reverse only these two routes to the directly connected subnets and is able to only RPF properly
for multicast traffic sent by sources on these two Ethernet segments. Any other multicast source in the
network behind the Cisco router that is not on these two Ethernet segments does not properly RPF-check
on the DVMRP router and is discarded.
You can force the Cisco router to advertise the summary address (specified by the address and mask pair
in the ip dvmrp summary-address address mask interface configuration command) in place of any
route that falls in this address range. The summary address is sent in a DVMRP route report if the unicast
routing table contains at least one route in this range; otherwise, the summary address is not advertised.
In Figure 24-15, you configure the ip dvmrp summary-address command on the Cisco router tunnel
interface. As a result, the Cisco router sends only a single summarized Class B advertisement for
network 176.32.0.0.16 from the unicast routing table.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip dvmrp routehog-notification
route-count
Configure the number of routes that trigger a syslog message.
The default is 10,000 routes. The range is 1 to 4294967295.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-55
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Figure24-15 Only Connected Unicast Routes Are Advertised by Default
Beginning in privileged EXEC mode, follow these step to customize the summarization of DVMRP
routes if the default classful autosummarization does not suit your needs:
Note At least one more-specific route must be present in the unicast routing table before a configured
summary address is advertised.
To remove the summary address, use the no ip dvmrp summary-address address mask [metric value]
interface configuration command.
Network Intf Metric Dist
176.13.10.0/24 Fa0/1 10514432 90
176.32.15.0/24 Fa0/2 10512012 90
176.32.20.0/24 Fa0/2 45106372 90
Src Network Intf Metric Dist
151.16.0/16 Fa0/1 7 0
172.34.15.0/24 Fa0/1 10 0
202.13.3.0/24 Fa0/1 8 0
151.16.0.0/16 m = 39
172.34.15.0/24 m = 42
202.13.3.0/24 m = 40
176.32.10.0/24 m = 1
176.32.15.0/24 m = 1
DVMRP router
Cisco
router
Tunnel
Fast
Ethernet
0/1
176.32.10.0/24
Fast
Ethernet
0/2
176.32.15.0/24
DVMRP Report
4
5
1
5
6
DVMRP Route Table Unicast Routing Table (10,000 Routes)
interface tunnel 0
ip unnumbered fa0/1
interface fastethernet 0/1
ip addr 176.32.10.1 255.255.255.0
ip pim dense-mode
interface fastethernet 0/2
ip addr 176.32.15.1 255.255.255.0
ip pim dense-mode
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration command, and specify the interface that is
connected to the DVMRP router.
Step3 ip dvmrp summary-address address
mask [metric value]
Specify a DVMRP summary address.
For summary-address address mask, specify the summary IP
address and mask that is advertised instead of the more specific
route.
(Optional) For metric value, specify the metric that is advertised
with the summary address. The default is 1. The range is 1 to 32.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-56
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Configuring Advanced DVMRP Interoperability Features
Disabling DVMRP Autosummarization
By default, the Cisco IOS software automatically performs some level of DVMRP summarization.
Disable this function if you want to advertise all routes, not just a summary. In some special cases, you
can use the neighboring DVMRP router with all subnet information to better control the flow of
multicast traffic in the DVMRP network. One such case might occur if the PIM network is connected to
the DVMRP cloud at several points and more specific (unsummarized) routes are being injected into the
DVMRP network to advertise better paths to individual subnets inside the PIM cloud.
If you configure the ip dvmrp summary-address interface configuration command and did not
configure no ip dvmrp auto-summary, you get both custom and autosummaries.
Beginning in privileged EXEC mode, follow these steps to disable DVMRP autosummarization:
To re-enable auto summarization, use the ip dvmrp auto-summary interface configuration command.
Adding a Metric Offset to the DVMRP Route
By default, the multilayer switch increments by 1 the metric (hop count) of a DVMRP route advertised
in incoming DVMRP reports. You can change the metric if you want to favor or not favor a certain route.
For example, a route is learned by multilayer switch A, and the same route is learned by multilayer
switch B with a higher metric. If you want to use the path through switch B because it is a faster path,
you can apply a metric offset to the route learned by switch A to make it larger than the metric learned
by switch B, and you can choose the path through switch B.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface connected
to the DVMRP router.
Step3 no ip dvmrp auto-summary Disable DVMRP autosummarization.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-57
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Monitoring and Maintaining IP Multicast Routing
Beginning in privileged EXEC mode, follow these steps to change the default metric:
To return to the default value, use the no ip dvmrp metric-offset interface configuration command.
Monitoring and Maintaining IP Multicast Routing
This section describes how to monitor and maintain IP multicast routing. It contains this configuration
information:
Clearing Caches, Tables, and Databases, page 24-58
Displaying System and Network Statistics, page 24-58
Monitoring IP Multicast Routing, page 24-59
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to be
configured.
Step3 ip dvmrp metric-offset [in | out]
increment
Change the metric added to DVMRP routes advertised in incoming
reports.
The keywords have these meanings:
(Optional) inSpecifies that the increment value is added to
incoming DVMRP reports and is reported in mrinfo replies.
(Optional) outSpecifies that the increment value is added to
outgoing DVMRP reports for routes from the DVMRP routing
table.
If neither in nor out is specified, in is the default.
For increment, specify the value that is added to the metric of a DVMRP
router advertised in a report message. The range is 1 to 31.
If the ip dvmrp metric-offset command is not configured on an
interface, the default increment value for incoming routes is 1, and the
default for outgoing routes is 0.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
24-58
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Monitoring and Maintaining IP Multicast Routing
Clearing Caches, Tables, and Databases
You can remove all contents of a particular cache, table, or database. Clearing a cache, table, or database
might be necessary when the contents of the particular structure are or suspected to be invalid.
You can use any of the privileged EXEC commands in Table 24-3 to clear IP multicast caches, tables,
and databases:
Displaying Systemand Network Statistics
You can display specific statistics such as the contents of IP routing tables, caches, and databases. You
can display information to determine resource utilization and solve network problems. You can also
display information about node reachability and discover the routing path your devices packets are
taking through the network.
You can use any of the privileged EXEC commands in Table 24-4 to display various routing statistics:
Table24-3 Commands for Clearing Caches, Tables, and Databases
Command Purpose
clear ip cgmp Clear all group entries the Catalyst switches have
cached.
clear ip dvmrp route {* | route} Delete routes from the DVMRP routing table.
clear ip igmp group [group-name |
group-address | interface]
Delete entries from the IGMP cache.
clear ip mroute {* | group [source]} Delete entries from the IP multicast routing table.
clear ip pim auto-rp rp-address Clear the Auto-RP cache.
clear ip sdr [group-address | session-name] Delete the Session Directory Protocol Version 2
cache or an sdr cache entry.
Table24-4 Commands for Displaying System and Network Statistics
Command Purpose
ping [group-name | group-address] Send an ICMP Echo Request to a multicast group
address.
show ip dvmrp route [ip-address] Display the entries in the DVMRP routing table.
show ip igmp groups [group-name |
group-address | type number]
Display the multicast groups that are directly
connected to the multilayer switch and that were
learned through IGMP.
show ip igmp interface [type number] Display multicast-related information about an
interface.
show ip mcache [group [source]] Display the contents of the IP fast-switching
cache.switching, displaying
show ip mpacket [source-address | name]
[group-address | name] [detail]
Display the contents of the circular cache-header
buffer.
show ip mroute [group-name | group-address]
[source] [summary] [count] [active kbps]
Display the contents of the IP multicast routing
table.
24-59
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Monitoring and Maintaining IP Multicast Routing
Monitoring IP Multicast Routing
You can use the privileged EXEC commands in Table 24-5 to monitor IP multicast routers, packets, and
paths:
show ip pim interface [type number] [count] Display information about interfaces configured
for PIM.
show ip pim neighbor [type number] List the PIM neighbors discovered by the
multilayer switch.
show ip pim rp [group-name | group-address] Display the RP routers associated with a
sparse-mode multicast group.
show ip rpf {source-address | name} Display how the multilayer switch is doing
Reverse-Path Forwarding (that is, from the unicast
routing table, DVMRP routing table, or static
mroutes).
show ip sdr [group | session-name | detail] Display the Session Directory Protocol Version 2
cache.
Table24-4 Commands for Displaying System and Network Statistics (continued)
Command Purpose
Table24-5 Commands for Monitoring IP Multicast Routing
Command Purpose
mrinfo [hostname | address] [source-address |
interface]
Query a multicast router or multilayer switch about
which neighboring multicast devices are peering
with it.
mstat source [destination] [group] Display IP multicast packet rate and loss
information.
mtrace source [destination] [group] Trace the path from a source to a destination
branch for a multicast distribution tree for a given
group.
24-60
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter24 Configuring IP Multicast Routing
Monitoring and Maintaining IP Multicast Routing
C H A P T E R
25-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
25
Configuring MSDP
This chapter describes how to configure the Multicast Source Discovery Protocol (MSDP) on your
multilayer switch. The MSDP connects multiple Protocol-Independent Multicast sparse-mode
(PIM-SM) domains.
MSDP is not fully supported in this IOS release because of a lack of support for Multicast Border
Gateway Protocol (MBGP), which works closely with MSDP. However, it is possible to create default
peers that MSDP can operate with if MBGP is not running.
To use this feature, you must have the enhanced multilayer software (EMI) image installed on your
switch. All Catalyst 3550 Gigabit Ethernet switches ship with the EMI installed. Catalyst 3550 Fast
Ethernet switches can be shipped with either the standard multilayer software image (SMI) or EMI
pre-installed. You can order the Enhanced Multilayer Software Image Upgrade kit to upgrade
Catalyst 3550 Fast Ethernet switches from the SMI to the EMI.
Note For complete syntax and usage information for the commands used in this chapter, refer to the Cisco
IOS IP and IP Routing Command Reference for Release 12.1.
This chapter consists of these sections:
Understanding MSDP, page 25-1
Configuring MSDP, page 25-4
Monitoring and Maintaining MSDP, page 25-19
Understanding MSDP
MSDP allows multicast sources for a group to be known to all rendezvous points (RPs) in different
domains. Each PIM-SM domain uses its own RPs and does not depend on RPs in other domains. An RP
runs MSDP over the Transmission Control Protocol (TCP) to discover multicast sources in other
domains.
An RP in a PIM-SM domain has an MSDP peering relationship with MSDP-enabled devices in another
domain. The peering relationship occurs over a TCP connection, primarily exchanging a list of sources
sending to multicast groups. The TCP connections between RPs are achieved by the underlying routing
system. The receiving RP uses the source lists to establish a source path.
25-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Understanding MSDP
The purpose of this topology is to have domains discover multicast sources in other domains. If the
multicast sources are of interest to a domain that has receivers, multicast data is delivered over the
normal, source-tree building mechanism in PIM-SM. MSDP is also used to announce sources sending
to a group. These announcements must originate at the domain RP.
MSDP depends heavily on the Border Gateway Protocol (BGP) or MBGP for interdomain operation. We
recommend that you run MSDP in RPs in your domain that are RPs for sources sending to global groups
to be announced to the Internet.
MSDP Operation
Figure 25-1 shows MSDP operating between two MSDP peers. PIM uses MSDP as the standard
mechanism to register a source with the RP of a domain. When MSDP is configured, this sequence
occurs.
When a source sends its first multicast packet, the first-hop router (designated router or RP) directly
connected to the source sends a PIM register message to the RP. The RP uses the register message to
register the active source and to forward the multicast packet down the shared tree in the local domain.
With MSDP configured, the RP also forwards a source-active (SA) message to all MSDP peers. The SA
message identifies the source, the group the source is sending to, and the address of the RP or the
originator ID (the IP address of the interface used as the RP address), if configured.
Each MSDP peer receives and forwards the SA message away from the originating RP to achieve
peer-RPF flooding. The MSDP device examines the BGP or MBGP routing table to determine which
peer is the next hop toward the originating RP of the SA message. Such a peer is called an RPF peer
(reverse-path forwarding peer). The MSDP device forwards the message to all MSDP peers other than
the RPF peer. For information on how to configure an MSDP peer when BGP and MBGP are not
supported, see the Configuring a Default MSDP Peer section on page 25-4.
If the MSDP peer receives the same SA message from a non-RPF peer toward the originating RP, it drops
the message. Otherwise, it forwards the message to all its MSDP peers.
When the RP for a domain receives the SA message from an MSDP peer, it determines if it has any join
requests for the group the SA message describes. If the (*,G) entry exists with a nonempty outgoing
interface list, the domain is interested in the group, and the RP triggers an (S,G) join toward the source.
After the (S,G) join reaches the sources DR, a branch of the source tree has been built from the source
to the RP in the remote domain. Multicast traffic can now flow from the source across the source tree to
the RP and then down the shared tree in the remote domain to the receiver.
25-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Understanding MSDP
Figure25-1 MSDP Running Between RP Peers
MSDP Benefits
MSDP has these benefits:
It breaks up the shared multicast distribution tree. You can make the shared tree local to your
domain. Your local members join the local tree, and join messages for the shared tree never need to
leave your domain.
PIM sparse-mode domains can rely only on their own RPs, decreasing reliance on RPs in another
domain. This increases security because you can prevent your sources from being known outside
your domain.
Domains with only receivers can receive data without globally advertising group membership.
Global source multicast routing table state is not required, saving memory.
MSDP peer RP + MSDP peer
4
9
8
8
5
Receiver
MSDP peer
MSDP SA
MSDP SA M
S
D
P
S
A
TCP connection
BGP
Source
Multicast
Register
Peer RPF flooding
PIM sparse-mode
domain
PIM
DR
(S,G) Join
25-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Configuring MSDP
This section describes how to configure MSDP. It contains this configuration information:
Default MSDP Configuration, page 25-4
Configuring a Default MSDP Peer, page 25-4 (required)
Caching Source-Active State, page 25-6 (optional)
Requesting Source Information from an MSDP Peer, page 25-8 (optional)
Controlling Source Information that Your Switch Originates, page 25-8 (optional)
Controlling Source Information that Your Switch Forwards, page 25-12 (optional)
Controlling Source Information that Your Switch Receives, page 25-14 (optional)
Configuring an MSDP Mesh Group, page 25-16 (optional)
Shutting Down an MSDP Peer, page 25-16 (optional)
Including a Bordering PIM Dense-Mode Region in MSDP, page 25-17 (optional)
Configuring an Originating Address other than the RP Address, page 25-18 (optional)
Default MSDP Configuration
MSDP is not enabled, and no default MSDP peer exists.
Configuring a Default MSDP Peer
In this IOS release, because BGP and MBGP are not supported, you cannot configure an MSDP peer on
the local multilayer switch by using the ip msdp peer global configuration command. Instead, you
define a default MSDP peer (by using the ip msdp default-peer global configuration command) from
which to accept all SA messages for the multilayer switch. The default MSDP peer must be a previously
configured MSDP peer. Configure a default MSDP peer when the multilayer switch is not BGP- or
MBGP-peering with an MSDP peer. If a single MSDP peer is configured, the multilayer switch always
accepts all SA messages from that peer.
Figure 25-2 shows a network in which default MSDP peers might be used. In Figure 25-2, a customer
who owns Multilayer Switch B is connected to the Internet through two Internet service providers
(ISPs), one owning Router A and the other owning Router C. They are not running BGP or MBGP
between them. To learn about sources in the ISPs domain or in other domains, multilayer Switch B at
the customer site identifies Router A as its default MSDP peer. Multilayer Switch B advertises SA
messages to both Router A and Router C but accepts SA messages only from Router A or only Router
C. If Router A is first in the configuration file, it is used if it is running. If Router A is not running, only
then does multilayer Switch B accept SA messages from Router C. This is the default behavior without
a prefix list.
If you specify a prefix list, the peer is a default peer only for the prefixes in the list. You can have
multiple active default peers when you have a prefix list associated with each. When you do not have
any prefix lists, you can configure multiple default peers, but only the first one is the active default peer
as long as the router has connectivity to this peer and the peer is alive. If the first configured peer fails
or the connectivity to this peer fails, the second configured peer becomes the active default, and so on.
The ISP probably uses a prefix list to define which prefixes it accepts from the customers router.
25-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Figure25-2 Default MSDP Peer Network
Beginning in privileged EXEC mode, follow these steps to specify a default MSDP peer:
Si
ISP A PIM domain
ISP C PIM domain
SA
Router A
Multilayer
Switch B
10.1.1.1
Default MSDP peer
Default MSDP peer
Default MSDP peer
Customer PIM domain
Router C
SA
SA
4
9
8
8
4
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp default-peer ip-address | name
[prefix-list list]
Define a default peer from which to accept all MSDP SA messages.
For ip-address | name, enter the IP address or Domain Name
System (DNS) server name of the MSDP default peer.
(Optional) For prefix-list list, enter the list name that specifies the
peer to be the default peer only for the listed prefixes. You can have
multiple active default peers when you have a prefix list associated
with each.
When you enter multiple ip msdp default-peer commands with the
prefix-list keyword, you use all the default peers at the same time
for different RP prefixes. This syntax is typically used in a service
provider cloud that connects stub site clouds.
When you enter multiple ip msdp default-peer commands without
the prefix-list keyword, a single active peer accepts all SA
messages. If that peer fails, the next configured default peer accepts
all SA messages. This syntax is typically used at a stub site.
25-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
To remove the default peer, use the no ip msdp default-peer global configuration command.
This example shows a partial configuration of Router A and Router C in Figure 25-2. Each of these ISPs
have more than one customer (like the customer in Figure 25-2) who use default peering (no BGP or
MBGP). In that case, they might have similar configurations. That is, they accept SAs only from a
default peer if the SA is permitted by the corresponding prefix list.
Router A
Router(config)# ip msdp default-peer 10.1.1.1
Router(config)# ip msdp default-peer 10.1.1.1 prefix-list site-a
Router(config)# ip prefix-list site-b permit 10.0.0.0/8
Router C
Router(config)# ip msdp default-peer 10.1.1.1 prefix-list site-a
Router(config)# ip prefix-list site-b permit 10.0.0.0/8
Caching Source-Active State
By default, the multilayer switch does not cache source/group pairs from received SA messages. When
the switch forwards the MSDP SA information, it does not store it in memory. Therefore, if a member
joins a group soon after a SA message is received by the local RP, that member needs to wait until the
next SA message to hear about the source. This delay is known as join latency.
If you want to sacrifice some memory in exchange for reducing the latency of the source information,
you can configure the switch to cache SA messages.
Step3 ip prefix-list name [description string] |
seq number {permit | deny} network
length
(Optional) Create a prefix list using the name specified in Step 2.
(Optional) For description string, enter a description of up to 80
characters to describe this prefix list.
For seq number, enter the sequence number of the entry. The range
is 1 to 4294967294.
The deny keyword denies access to matching conditions.
The permit keyword permits access to matching conditions.
For network length, specify the network number and length (in bits)
of the network mask that is permitted or denied.
Step4 ip msdp description {peer-name |
peer-address} text
(Optional) Configure a description for the specified peer to make it
easier to identify in a configuration or in show command output.
By default, no description is associated with an MSDP peer.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
25-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Beginning in privileged EXEC mode, follow these steps to enable the caching of source/group pairs:
Note An alternative to this command is the ip msdp sa-request global configuration command, which
causes the multilayer switch to send an SA request message to the MSDP peer when a new member
for a group becomes active. For more information, see the next section.
To return to the default setting (no SA state is created), use the no ip msdp cache-sa-state global
configuration command.
This example shows how to enable the cache state for all sources in 171.69.0.0/16 sending to
groups 224.2.0.0/16:
Switch(config)# ip msdp cache-sa-state 100
Switch(config)# access-list 100 permit ip 171.69.0.0 0.0.255.255 224.2.0.0 0.0.255.255
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp cache-sa-state [list
access-list-number]
Enable the caching of source/group pairs (create an SA state). Those
pairs that pass the access list are cached.
For list access-list-number, the range is 100 to 199.
Step3 access-list access-list-number {deny |
permit} protocol source source-wildcard
destination destination-wildcard
Create an IP extended access list, repeating the command as many times
as necessary.
For access-list-number, the range is 100 to 199. Enter the same
number created in Step 2.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For protocol, enter ip as the protocol name.
For source, enter the number of the network or host from which the
packet is being sent.
For source-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the source. Place ones in the bit positions
that you want to ignore.
For destination, enter the number of the network or host to which
the packet is being sent.
For destination-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the destination. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
25-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Requesting Source Information froman MSDP Peer
Local RPs can send SA requests and get immediate responses for all active sources for a given group.
By default, the multilayer switch does not send any SA request messages to its MSDP peers when a new
member joins a group and wants to receive multicast traffic. The new member waits to receive the next
periodic SA message.
If you want a new member of a group to learn the current, active multicast sources in a connected PIM
sparse-mode domain that are sending to a group, configure the switch to send SA request messages to
the specified MSDP peer when a new member joins a group. The peer replies with the information in its
SA cache. If the peer does not have a cache configured, this command has no result. Configuring this
feature reduces join latency but sacrifices memory.
Beginning in privileged EXEC mode, follow these steps to configure the switch to send SA request
messages to the MSDP peer when a new member joins a group and wants to receive multicast traffic:
To return to the default setting, use the no ip msdp sa-request {ip-address | name} global configuration
command.
This example shows how to configure the switch to send SA request messages to the MSDP peer
at 171.69.1.1:
Switch(config)# ip msdp sa-request 171.69.1.1
Controlling Source Information that Your Switch Originates
You can control the multicast source information that originates with your switch:
Sources you advertise (based on your sources)
Receivers of source information (based on knowing the requestor)
For more information, see the Redistributing Sources section on page 25-9 and the Filtering
Source-Active Request Messages section on page 25-11.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp sa-request {ip-address | name} Configure the switch to send SA request messages to the specified
MSDP peer.
For ip-address | name, enter the IP address or name of the MSDP peer
from which the local switch requests SA messages when a new member
for a group becomes active.
Repeat the command for each MSDP peer that you want to supply with
SA messages.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
25-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Redistributing Sources
SA messages are originated on RPs to which sources have registered. By default, any source that
registers with an RP is advertised. The A flag is set in the RP when a source is registered, which means
the source is advertised in an SA unless it is filtered.
Beginning in privileged EXEC mode, follow these steps to further restrict which registered sources are
advertised:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp redistribute [list
access-list-name] [asn
aspath-access-list-number] [route-map
map]
Configure which (S,G) entries from the multicast routing table are
advertised in SA messages.
By default, only sources within the local domain are advertised.
(Optional) For list access-list-name, enter the name or number of an
IP standard or extended access list. The range is 1 to 99 for standard
access lists and 100 to 199 for extended lists. The access list
controls which local sources are advertised and to which groups
they send.
(Optional) For asn aspath-access-list-number, enter the IP standard
or extended access list number in the range 1 to 199. This access list
number must also be configured in the ip as-path access-list
command.
(Optional) For route-map map, enter the IP standard or extended
access list number in the range 1 to 199. This access list number
must also be configured in the ip as-path access-list command.
The access list or autonomous system path access list determines which
(S,G) pairs are advertised.
25-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
To remove the filter, use the no ip msdp redistribute global configuration command.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
or
access-list access-list-number {deny |
permit} protocol source source-wildcard
destination destination-wildcard
Create an IP standard access list, repeating the command as many times
as necessary.
or
Create an IP extended access list, repeating the command as many times
as necessary.
For access-list-number, the range is 1 to 99 for standard access lists
and 100 to 199 for extended lists. Enter the same number created in
Step 2.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For protocol, enter ip as the protocol name.
For source, enter the number of the network or host from which the
packet is being sent.
For source-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the source. Place ones in the bit positions
that you want to ignore.
For destination, enter the number of the network or host to which
the packet is being sent.
For destination-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the destination. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
25-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Filtering Source-Active Request Messages
By default, only multilayer switches that are caching SA information can respond to SA requests. By
default, such a switch honors all SA request messages from its MSDP peers and supplies the IP addresses
of the active sources.
However, you can configure the switch to ignore all SA requests from an MSDP peer. You can also honor
only those SA request messages from a peer for groups described by a standard access list. If the groups
in the access list pass, SA request messages are accepted. All other such messages from the peer for other
groups are ignored.
Beginning in privileged EXEC mode, follow these steps to configure one of these options:
To return to the default setting, use the no ip msdp filter-sa-request {ip-address | name} global
configuration command.
This example shows how to configure the switch to filter SA request messages from the MSDP peer
at 171.69.2.2. SA request messages from sources on network 192.4.22.0 pass access list 1 and are
accepted; all others are ignored.
Switch(config)# ip msdp filter sa-request 171.69.2.2 list 1
Switch(config)# access-list 1 permit 192.4.22.0 0.0.0.255
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp filter-sa-request ip-address |
name
or
ip msdp filter-sa-request {ip-address |
name} list access-list-number
Filter all SA request messages from the specified MSDP peer.
or
Filter SA request messages from the specified MSDP peer for groups
that pass the standard access list. The access list describes a multicast
group address. The range for the access-list-number is 1 to 99.
Step3 access-list access-list-number {deny |
permit} source [source-wildcard]
Create an IP standard access list, repeating the command as many times
as necessary.
For access-list-number, the range is 1 to 99.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For source, enter the number of the network or host from which the
packet is being sent.
(Optional) For source-wildcard, enter the wildcard bits in dotted
decimal notation to be applied to the source. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
25-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Controlling Source Information that Your Switch Forwards
By default, the multilayer switch forwards all SA messages it receives to all its MSDP peers. However,
you can prevent outgoing messages from being forwarded to a peer by using a filter or by setting a
time-to-live (TTL) value. These methods are described in the next sections.
Using a Filter
By creating a filter, you can perform one of these actions:
Filter all source/group pairs
Specify an IP extended access list to pass only certain source/group pairs
Filter based on match criteria in a route map
Beginning in privileged EXEC mode, follow these steps to apply a filter:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp sa-filter out ip-address | name
or
ip msdp sa-filter out {ip-address | name}
list access-list-number
or
ip msdp sa-filter out {ip-address | name}
route-map map-tag
Filter all SA messages to the specified MSDP peer.
or
To the specified peer, pass only those SA messages that pass the IP
extended access list. The range for the extended access-list-number
is 100 to 199.
If both the list and the route-map keywords are used, all conditions
must be true to pass any (S,G) pair in outgoing SA messages.
or
To the specified MSDP peer, pass only those SA messages that meet the
match criteria in the route map map-tag.
If all match criteria are true, a permit from the route map passes routes
through the filter. A deny filters routes.
25-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
To remove the filter, use the no ip msdp sa-filter out {ip-address | name} [list access-list-number]
[route-map map-tag] global configuration command.
This example shows how to allow only (S,G) pairs that pass access list 100 to be forwarded in an SA
message to the peer named switch.cisco.com:
Switch(config)# ip msdp peer switch.cisco.com connect-source gigabitethernet0/1
Switch(config)# ip msdp sa-filter out switch.cisco.com list 100
Switch(config)# access-list 100 permit ip 171.69.0.0 0.0.255.255 224.20 0 0.0.255.255
Step3 access-list access-list-number {deny |
permit} protocol source source-wildcard
destination destination-wildcard
(Optional) Create an IP extended access list, repeating the command as
many times as necessary.
For access-list-number, enter the number specified in Step 2.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For protocol, enter ip as the protocol name.
For source, enter the number of the network or host from which the
packet is being sent.
For source-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the source. Place ones in the bit positions
that you want to ignore.
For destination, enter the number of the network or host to which
the packet is being sent.
For destination-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the destination. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
25-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Using TTL to Limit the Multicast Data Sent in SA Messages
You can use a TTL value to control what data is encapsulated in the first SA message for every source.
Only multicast packets with an IP-header TTL greater than or equal to the ttl argument are sent to the
specified MSDP peer. For example, you can limit internal traffic to a TTL of 8. If you want other groups
to go to external locations, you must send those packets with a TTL greater than 8.
Beginning in privileged EXEC mode, follow these steps to establish a TTL threshold:
To return to the default setting, use the no ip msdp ttl-threshold {ip-address | name} global
configuration command.
Controlling Source Information that Your Switch Receives
By default, the multilayer switch receives all SA messages that its MSDP Reverse-Path Forwarding
peers send to it. However, you can control the source information that you receive from MSDP peers by
filtering incoming SA messages. In other words, you can configure the switch to not accept them.
You can perform one of these actions:
Filter all incoming SA messages from an MSDP peer
Specify an IP extended access list to pass certain source/group pairs
Filter based on match criteria in a route map
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp ttl-threshold {ip-address | name}
ttl
Limit which multicast data is encapsulated in the first SA message to
the specified MSDP peer.
For ip-address | name, enter the IP address or name of the MSDP
peer to which the TTL limitation applies.
For ttl, enter the TTL value. The default is 0, which means all
multicast data packets are forwarded to the peer until the TTL is
exhausted. The range is 0 to 255.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
25-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Beginning in privileged EXEC mode, follow these steps to apply a filter:
To remove the filter, use the no ip msdp sa-filter in {ip-address | name} [list access-list-number]
[route-map map-tag] global configuration command.
This example shows how to filter all SA messages from the peer named switch.cisco.com:
Switch(config)# ip msdp peer switch.cisco.com connect-source gigabitethernet0/1
Switch(config)# ip msdp sa-filter in switch.cisco.com
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp sa-filter in ip-address | name
or
ip msdp sa-filter in {ip-address | name}
list access-list-number
or
ip msdp sa-filter in {ip-address | name}
route-map map-tag
Filter all SA messages from the specified MSDP peer.
or
From the specified peer, pass only those SA messages that pass the IP
extended access list. The range for the extended access-list-number
is 100 to 199.
If both the list and the route-map keywords are used, all conditions
must be true to pass any (S,G) pair in incoming SA messages.
or
From the specified MSDP peer, pass only those SA messages that meet
the match criteria in the route map map-tag.
If all match criteria are true, a permit from the route map passes routes
through the filter. A deny will filter routes.
Step3 access-list access-list-number {deny |
permit} protocol source source-wildcard
destination destination-wildcard
(Optional) Create an IP extended access list, repeating the command as
many times as necessary.
For access-list-number, enter the number specified in Step 2.
The deny keyword denies access if the conditions are matched. The
permit keyword permits access if the conditions are matched.
For protocol, enter ip as the protocol name.
For source, enter the number of the network or host from which the
packet is being sent.
For source-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the source. Place ones in the bit positions
that you want to ignore.
For destination, enter the number of the network or host to which
the packet is being sent.
For destination-wildcard, enter the wildcard bits in dotted decimal
notation to be applied to the destination. Place ones in the bit
positions that you want to ignore.
Recall that the access list is always terminated by an implicit deny
statement for everything.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
25-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Configuring an MSDP Mesh Group
An MSDP mesh group is a group of MSDP speakers that have fully meshed MSDP connectivity among
one another. Any SA messages received from a peer in a mesh group are not forwarded to other peers in
the same mesh group. Thus, you reduce SA message flooding and simplify peer-RPF flooding. Use the
ip msdp mesh-group global configuration command when there are multiple RPs within a domain. It is
especially used to send SA messages across a domain. You can configure multiple mesh groups (with
different names) in a single multilayer switch.
Beginning in privileged EXEC mode, follow these steps to create a mesh group:
To remove an MSDP peer from a mesh group, use the no ip msdp mesh-group name
{ip-address | name} global configuration command.
Shutting Down an MSDP Peer
If you want to configure many MSDP commands for the same peer and you do not want the peer to
become active, you can shut down the peer, configure it, and later bring it up. When a peer is shut down,
the TCP connection is terminated and is not restarted. You can also shut down an MSDP session without
losing configuration information for the peer.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp mesh-group name {ip-address |
name}
Configure an MSDP mesh group, and specify the MSDP peer belonging
to that mesh group.
By default, the MSDP peers do not belong to a mesh group.
For name, enter the name of the mesh group.
For ip-address | name, enter the IP address or name of the MSDP
peer to be a member of the mesh group.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
Step6 Repeat this procedure on each MSDP peer in the group.
25-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Beginning in privileged EXEC mode, follow these steps to shut down a peer:
To bring the peer back up, use the no ip msdp shutdown {peer-name | peer address} global
configuration command. The TCP connection is reestablished
Including a Bordering PIM Dense-Mode Region in MSDP
You can configure MSDP on a multilayer switch that borders a PIM sparse-mode region with a
dense-mode region. By default, active sources in the dense-mode region do not participate in MSDP.
Note We do not recommend using the ip msdp border sa-address global configuration command. It is
better to configure the border router in the sparse-mode domain to proxy-register sources in the
dense-mode domain to the RP of the sparse-mode domain and have the sparse-mode domain use
standard MSDP procedures to advertise these sources.
Beginning in privileged EXEC mode, follow these steps to configure the border router to send SA
messages for sources active in the dense-mode region to the MSDP peers:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp shutdown {peer-name | peer
address}
Administratively shut down the specified MSDP peer without losing
configuration information.
For peer-name | peer address, enter the IP address or name of the MSDP
peer to shut down.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp border sa-address type number Configure the switch on the border between a dense-mode and
sparse-mode region to send SA messages about active sources in the
dense-mode region.
For type number, specify the interface type and number from which the
IP address is derived and used as the RP address in SA messages.
The IP address of the interface is used as the Originator-ID, which is the
RP field in the SA message.
Step3 ip msdp redistribute [list
access-list-name] [asn
aspath-access-list-number] [route-map
map]
Configure which (S,G) entries from the multicast routing table are
advertised in SA messages.
For more information, see the Redistributing Sources section on
page 25-9.
Step4 end Return to privileged EXEC mode.
25-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Configuring MSDP
Note that the ip msdp originator-id global configuration command also identifies an interface type and
number to be used as the RP address. If both the ip msdp border sa-address and the ip msdp
originator-id global configuration commands are configured, the address derived from the ip msdp
originator-id command determines the RP address.
To return to the default setting (active sources in the dense-mode region do not participate in MSDP),
use the no ip msdp border sa-address type number global configuration command.
Configuring an Originating Address other than the RP Address
You can allow an MSDP speaker that originates an SA message to use the IP address of the interface as
the RP address in the SA message by changing the Originator ID. You might change the Originator ID
in one of these cases:
If you configure a logical RP on multiple multilayer switches in an MSDP mesh group.
If you have a multilayer switch that borders a PIM sparse-mode domain and a dense-mode domain.
If a switch borders a dense-mode domain for a site, and sparse-mode is being used externally, you
might want dense-mode sources to be known to the outside world. Because this switch is not an RP,
it would not have an RP address to use in an SA message. Therefore, this command provides the RP
address by specifying the address of the interface.
Beginning in privileged EXEC mode, follow these steps to allow an MSDP speaker that originates an
SA message to use the IP address on the interface as the RP address in the SA message:
If both the ip msdp border sa-address and the ip msdp originator-id global configuration commands
are configured, the address derived from the ip msdp originator-id command determines the address of
the RP.
To prevent the RP address from being derived in this way, use the no ip msdp originator-id type number
global configuration command.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip msdp originator-id type number Configures the RP address in SA messages to be the address of the
originating device interface.
For type number, specify the interface type and number on the local
switch.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entries.
Step5 copy running-config startup-config (Optional) Save your entries in the configuration file.
25-19
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Monitoring and Maintaining MSDP
Monitoring and Maintaining MSDP
To monitor MSDP SA messages, peers, state, or peer status, use one or more of the privileged EXEC
commands in Table 25-1:
To clear MSDP connections, statistics, or SA cache entries, use the privileged EXEC commands in
Table 25-2:
Table25-1 Commands for Monitoring and Maintaining MSDP
Command Purpose
debug ip msdp [peer-address | name] [detail] [routes] Debugs an MSDP activity.
debug ip msdp resets Debugs MSDP peer reset reasons.
show ip msdp count [autonomous-system-number] Displays the number of sources and groups originated in SA
messages from each autonomous system. The ip msdp
cache-sa-state command must be configured for this command
to produce any output.
show ip msdp peer [peer-address | name] Displays detailed information about an MSDP peer.
show ip msdp sa-cache [group-address | source-address |
group-name | source-name] [autonomous-system-number]
Displays (S,G) state learned from MSDP peers.
show ip msdp summary Displays MSDP peer status and SA message counts.
Table25-2 Commands for Clearing MSDP Connections, Statistics, or SA Cache Entries
Command Purpose
clear ip msdp peer peer-address | name Clears the TCP connection to the specified MSDP peer, resetting all
MSDP message counters.
clear ip msdp statistics [peer-address | name] Clears statistics counters for one or all the MSDP peers without resetting
the sessions.
clear ip msdp sa-cache [group-address | name] Clears the SA cache entries for all entries, all sources for a specific group,
or all entries for a specific source/group pair.
25-20
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter25 Configuring MSDP
Monitoring and Maintaining MSDP
C H A P T E R
26-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
26
Configuring Fallback Bridging
This chapter describes how to configure fallback bridging on your switch. With fallback bridging, you
can forward non-IP protocols that the multilayer switch does not route between VLAN bridge domains
and routed ports.
To use this feature, you must have the enhanced multilayer software (EMI) image installed on your
switch. All Catalyst 3550 Gigabit Ethernet switches ship with the EMI installed. Catalyst 3550 Fast
Ethernet switches can be shipped with either the standard multilayer software image (SMI) or EMI
pre-installed. You can order the Enhanced Multilayer Software Image Upgrade kit to upgrade
Catalyst 3550 Fast Ethernet switches from the SMI to the EMI.
Note For complete syntax and usage information for the commands used in this chapter, refer to the Cisco
IOS Bridging and IBM Networking Command Reference for Release 12.1.
This chapter consists of these sections:
Understanding Fallback Bridging, page 26-1
Configuring Fallback Bridging, page 26-3
Monitoring and Maintaining the Network, page 26-12
Understanding Fallback Bridging
With fallback bridging, the switch bridges together two or more VLANs or routed ports, essentially
connecting multiple VLANs within one bridge domain. Fallback bridging forwards traffic that the
multilayer switch does not route and forwards traffic belonging to a nonroutable protocol such as
DECnet.
Fallback bridging does not allow the spanning trees from the VLANs being bridged to collapse; each
VLAN has its own Spanning Tree Protocol (STP) instance and a separate spanning tree, called the
VLAN-bridge spanning tree, which runs on top of the bridge group to prevent loops.
A VLAN bridge domain is represented using the switch virtual interface (SVI). A set of SVIs and routed
ports (which do not have any VLANs associated with them) can be configured to form a bridge group.
Recall that an SVI represents a VLAN of switch ports as one interface to the routing or bridging function
in the system. Only one SVI can be associated with a VLAN, and it is only necessary to configure an
SVI for a VLAN when you want to route between VLANs, to fallback-bridge nonroutable protocols
between VLANs, or to provide IP host connectivity to the switch. A routed port is a physical port that
26-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Understanding Fallback Bridging
acts like a port on a router, but it is not connected to a router. A routed port is not associated with a
particular VLAN, does not support VLAN subinterfaces, but behaves like a normal routed interface. For
more information about SVIs and routed ports, see Chapter 8, Configuring Interface Characteristics.
A bridge group is an internal organization of network interfaces on a switch. Bridge groups cannot be
used to identify traffic switched within the bridge group outside the switch on which they are defined.
Bridge groups on the same switch function as distinct bridges; that is, bridged traffic and bridge protocol
data units (BPDUs) cannot be exchanged between different bridge groups on a switch. An interface can
be a member of only one bridge group. Use a bridge group for each separately bridged (topologically
distinct) network connected to the switch.
The purpose of placing network interfaces into a bridge group is twofold:
To bridge all nonrouted traffic among the network interfaces making up the bridge group. If the
packet destination address is in the bridge table, it is forwarded on a single interface in the bridge
group. If the packet destination address is not in the bridge table, it is flooded on all forwarding
interfaces in the bridge group. The bridge places source addresses in the bridge table as it learns
them during the bridging process.
To participate in the spanning-tree algorithm by receiving, and in some cases sending, BPDUs on
the LANs to which they are attached. A separate spanning process runs for each configured bridge
group. Each bridge group participates in a separate spanning-tree instance. A bridge group
establishes a spanning-tree instance based on the BPDUs it receives on only its member interfaces.
Figure 26-1 shows a fallback bridging network example. The multilayer switch has two interfaces
configured as SVIs with different assigned IP addresses and attached to two different VLANs. Another
interface is configured as a routed port with its own IP address. If all three of these ports are assigned to
the same bridge group, non-IP protocol frames can be forwarded among the end stations connected to
the switch.
Figure26-1 Fallback Bridging Network Example
Si
Host A
Host C
SVI 1 172.20.128.1 172.20.129.1
Routed port
172.20.130.1
SVI 2
Catalyst 3550 switch
with enhanced
multilayer
software image
VLAN 20
Host B
VLAN 30
4
9
5
6
5
26-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
Configuring Fallback Bridging
This section describes how to configure fallback bridging on your switch. It contains this configuration
information:
Default Fallback Bridging Configuration, page 26-3
Creating a Bridge Group, page 26-4
Preventing the Forwarding of Dynamically Learned Stations, page 26-5
Configuring the Bridge Table Aging Time, page 26-6
Filtering Frames by a Specific MAC Address, page 26-6
Adjusting Spanning-Tree Parameters, page 26-7
Default Fallback Bridging Configuration
Table 26-1 shows the default fallback bridging configuration.
Table26-1 Default Fallback Bridging Configuration
Feature Default Setting
Bridge groups None are defined or assigned to an interface. No
VLAN-bridge STP is defined.
Switch forwards frames for stations that it has
dynamically learned
Enabled.
Bridge table aging time for dynamic entries 300 seconds.
MAC-layer frame filtering Disabled.
Spanning tree parameters:
Switch priority
Interface priority
Interface path cost
Hello BPDU interval
Forward-delay interval
Maximum idle interval
32768.
128.
10 Mbps: 100.
100 Mbps: 19.
1000 Mbps: 4.
2 seconds.
20 seconds.
30 seconds.
26-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
Creating a Bridge Group
To configure fallback bridging for a set of SVIs or routed ports, these interfaces must be assigned to
bridge groups. All interfaces in the same group belong to the same bridge domain. Each SVI or routed
port can be assigned to only one bridge group. A maximum of 31 bridge groups can be configured on
the switch.
Note The protected port feature is not compatible with fallback bridging. When fallback bridging is
enabled, it is possible for packets to be forwarded from one protected port on a switch to another
protected port on the same switch if the ports are in different VLANs.
Beginning in privileged EXEC mode, follow these steps to create a bridge group and assign an interface
to it:
To remove a bridge group, use the no bridge bridge-group protocol vlan-bridge global configuration
command. To remove an interface from a bridge group, use the no bridge-group bridge-group interface
configuration command.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group protocol
vlan-bridge
Assign a bridge group number, and specify the VLAN-bridge
spanning-tree protocol to run in the bridge group. The ibm and dec
keywords are not supported.
For bridge-group, specify the bridge group number. The range is 1
to 255. You can create up to 31 bridge groups.
Frames are bridged only among interfaces in the same group.
Step3 interface interface-id Enter interface configuration mode, and specify the interface on which
you want to assign the bridge group.
The specified interface must be one of these:
A routed port: a physical port that you have configured as a Layer 3
port by entering the no switchport interface configuration
command.
An SVI: a VLAN interface that you created by using the interface
vlan vlan-id global configuration command.
These ports must have IP addresses assigned to them. For more
information, see the Configuring Layer 3 Interfaces section on
page 8-22.
Step4 bridge-group bridge-group Assign the interface to the bridge group created in Step 2.
By default, the interface is not assigned to any bridge group. An
interface can be assigned to only one bridge group.
Step5 end Return to privileged EXEC mode.
Step6 show running-config Verify your entries.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.
26-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
This example shows how to create bridge group 10, specify the VLAN-bridge STP to run in the bridge
group, and assign an interface to the bridge group:
Switch(config)# bridge 10 protocol vlan-bridge
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# no switchport
Switch(config-if)# bridge-group 10
Preventing the Forwarding of Dynamically Learned Stations
By default, the switch forwards any frames for stations that it has dynamically learned. By disabling this
activity, the switch only forwards frames whose addresses have been statically configured into the
forwarding cache.
Beginning in privileged EXEC mode, follow these steps to prevent the switch from forwarding frames
for stations that it has dynamically learned:
To cause the switch to forward frames to stations that it has dynamically learned, use the bridge
bridge-group acquire global configuration command.
This example shows how to prevent the switch from forwarding frames for stations that it has
dynamically learned in bridge group 10:
Switch(config)# no bridge 10 acquire
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 no bridge bridge-group acquire Enable the switch to stop forwarding any frames for stations that it has
dynamically learned through the discovery process and to limit frame
forwarding to statically configured stations.
The switch filters all frames except those whose destined-to addresses
have been statically configured into the forwarding cache. To configure
a static address, use the bridge bridge-group address mac-address
{forward | discard} global configuration command.
For bridge-group, specify the bridge group number. The range is 1
to 255.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
26-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
Configuring the Bridge Table Aging Time
A switch forwards, floods, or drops packets based on the bridge table. The bridge table maintains both
static and dynamic entries. Static entries are entered by you or learned by the switch. Dynamic entries
are entered by the bridge learning process. A dynamic entry is automatically removed after a specified
length of time, known as aging time, from the time the entry was created or last updated.
If you are likely to move hosts on a switched network, decrease the aging-time to enable the switch to
quickly adapt to the change. If hosts on a switched network do not continuously send packets, increase
the aging time to keep the dynamic entries for a longer time and thus reduce the possibility of flooding
when the hosts send again.
Beginning in privileged EXEC mode, follow these steps to configure the aging time:
To return to the default aging-time interval, use the no bridge bridge-group aging-time global
configuration command.
This example shows how to change the bridge table aging time to 200 seconds for bridge group 10:
Switch(config)# bridge 10 aging-time 200
Filtering Frames by a Specific MAC Address
A switch examines frames and sends them through the internetwork according to the destination address;
a switch does not forward a frame back to its originating network segment. You can use the software to
configure specific administrative filters that filter frames based on information other than the paths to
their destinations.
You can filter frames with a particular MAC-layer station destination address. Any number of addresses
can be configured in the system without a performance penalty.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group aging-time seconds Specify the length of time that a dynamic entry remains in the bridge
table from the time the entry was created or last updated.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For seconds, enter a number from 0 to 1000000. The default is 300
seconds.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
26-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
Beginning in privileged EXEC mode, follow these steps to filter by the MAC-layer address:
To disable the frame forwarding ability, use the no bridge bridge-group address mac-address global
configuration command.
This example shows how to forward a frame with MAC address 0800.cb00.45e9 through an interface in
bridge group 1:
Switch(config)# bridge 1 address 0800.cb00.45e9 forward gigabitethernet0/1
Adjusting Spanning-Tree Parameters
You might need to adjust certain spanning-tree parameters if the default values are not suitable for your
switch configuration. Parameters affecting the entire spanning tree are configured with variations of the
bridge global configuration command. Interface-specific parameters are configured with variations of
the bridge-group interface configuration command.
You can adjust spanning-tree parameters by performing any of the tasks in these sections:
Changing the Switch Priority, page 26-8
Changing the Interface Priority, page 26-8
Assigning a Path Cost, page 26-9
Adjusting BPDU Intervals, page 26-10
Disabling the Spanning Tree on an Interface, page 26-12
Note Only network administrators with a good understanding of how switches and STP function should
make adjustments to spanning-tree parameters. Poorly planned adjustments can have a negative
impact on performance. A good source on switching is the IEEE 802.1d specification; for more
information, refer to the References and Recommended Reading appendix in the Cisco IOS
Configuration Fundamentals Command Reference.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group address mac-address
{forward | discard} [interface-id]
Specify the MAC address to discard or forward.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For address mac-address, specify the MAC-layer destination
address to be filtered.
Specify forward if you want the frame destined to the specified
interface to be forwarded. Specify discard if you want the frame to
be discarded.
(Optional) For interface-id, specify the interface on which the
address can be reached.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
26-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
Changing the Switch Priority
You can globally configure the priority of an individual switch when two switches tie for position as the
root switch, or you can configure the likelihood that a switch will be selected as the root switch. This
priority is determined by default; however, you can change it.
Beginning in privileged EXEC mode, follow these steps to change the switch priority:
No no form of this command exists. To return to the default setting, use the bridge bridge-group
priority number global configuration command, and set the priority to the default value. To change the
priority on an interface, use the bridge-group priority interface configuration command (described in
the next section).
This example shows how to set the switch priority to 100 for bridge group 10:
Switch(config)# bridge 10 priority 100
Changing the Interface Priority
You can change the priority for an interface. When two switches tie for position as the root switch, you
configure an interface priority to break the tie. The switch with the lowest interface value is elected.
Beginning in privileged EXEC mode, follow these steps to change the interface priority:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group priority number Change the priority of the switch.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For number, enter a number from 0 to 65535. The default is 32768.
The lower the number, the more likely the switch will be chosen as
the root.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to set the
priority.
Step3 bridge-group bridge-group priority
number
Change the priority of an interface.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For number, enter a number from 0 to 255. The lower the number,
the more likely that the interface on the switch will be chosen as the
root. The default is 128.
Step4 end Return to privileged EXEC mode.
26-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
No no form of this command exists. To return to the default setting, use the bridge-group bridge-group
priority number interface configuration command.
This example shows how to change the priority of an interface to 20 in bridge group 10:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# bridge-group 10 priority 20
Assigning a Path Cost
Each interface has a path cost associated with it. By convention, the path cost is 1000/data rate of the
attached LAN, in Mbps.
Beginning in privileged EXEC mode, follow these steps to assign a path cost:
To return to the default path cost, use the no bridge-group bridge-group path-cost cost interface
configuration command.
This example shows how to change the path cost on an interface to 10 in bridge group 10:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# bridge-group 10 path-cost 20
Step5 show running-config Verify your entry.
Step6 copy running-config startup-config (Optional) Save your entry in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface to set the
path cost.
Step3 bridge-group bridge-group path-cost
cost
Assign the path cost of an interface.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For cost, enter a number from 1 to 65536. The higher the value, the
higher the cost.
For 10 Mbps, the default path cost is 100.
For 100 Mbps, the default path cost is 19.
For 1000 Mbps, the default path cost is 4.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entry.
Step6 copy running-config startup-config (Optional) Save your entry in the configuration file.
26-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
Adjusting BPDU Intervals
You can adjust BPDU intervals as described in these sections:
Adjusting the Interval between Hello BPDUs
Defining the Forward Delay Interval
Defining the Maximum Idle Interval
Note Each switch in a spanning tree adopts the interval between hello BPDUs, the forward delay interval,
and the maximum idle interval parameters of the root switch, regardless of what its individual
configuration might be.
Adjusting the Interval between Hello BPDUs
Beginning in privileged EXEC mode, follow these step to adjust the interval between hello BPDUs:
To return to the default setting, use the no bridge bridge-group hello-time global configuration
command.
This example shows how to change the hello interval to 5 seconds in bridge group 10:
Switch(config)# bridge 10 hello-time 5
Changing the Forward-Delay Interval
The forward-delay interval is the amount of time spent listening for topology change information after
an interface has been activated for switching and before forwarding actually begins.
Beginning in privileged EXEC mode, follow these steps to change the forward-delay interval:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group hello-time seconds Specify the interval between hello BPDUs.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For seconds, enter a number from 1 to 10. The default is 2 seconds.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group forward-time
seconds
Specify the forward-delay interval.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For seconds, enter a number from 10 to 200. The default is 20
seconds.
26-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Configuring Fallback Bridging
To return to the default setting, use the no bridge bridge-group forward-time seconds global
configuration command.
This example shows how to change the forward-delay interval to 10 seconds in bridge group 10:
Switch(config)# bridge 10 forward-time 10
Changing the Maximum-Idle Interval
If a switch does not hear BPDUs from the root switch within a specified interval, it recomputes the
spanning-tree topology.
Beginning in privileged EXEC mode, follow these steps to change the maximum-idle interval
(maximum aging time):
To return to the default setting, use the no bridge bridge-group max-age global configuration command.
This example shows how to change the maximum-idle interval to 30 seconds in bridge group 10:
Switch(config)# bridge 10 max-age 30
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
Command Purpose
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 bridge bridge-group max-age seconds Specify the interval the switch waits to hear BPDUs from the root
switch.
For bridge-group, specify the bridge group number. The range is 1
to 255.
For seconds, enter a number from 10 to 200. The default is 30
seconds.
Step3 end Return to privileged EXEC mode.
Step4 show running-config Verify your entry.
Step5 copy running-config startup-config (Optional) Save your entry in the configuration file.
26-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter26 Configuring Fallback Bridging
Monitoring and Maintaining the Network
Disabling the Spanning Tree on an Interface
When a loop-free path exists between any two switched subnetworks, you can prevent BPDUs generated
in one switching subnetwork from impacting devices in the other switching subnetwork, yet still permit
switching throughout the network as a whole. For example, when switched LAN subnetworks are
separated by a WAN, BPDUs can be prevented from traveling across the WAN link.
Beginning in privileged EXEC mode, follow these steps to disable spanning tree on an interface:
To re-enable spanning tree on the interface, use the no bridge-group bridge-group spanning-disabled
interface configuration command.
This example shows how to disable spanning tree on an interface in bridge group 10:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# bridge group 10 spanning-disabled
Monitoring and Maintaining the Network
To monitor and maintain the network, use one or more of the privileged EXEC commands in Table 26-2:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the interface ID.
Step3 bridge-group bridge-group
spanning-disabled
Disable spanning tree on the interface.
For bridge-group, specify the bridge group number. The range is 1
to 255.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entry.
Step6 copy running-config startup-config (Optional) Save your entry in the configuration file.
Table26-2 Fallback Bridging Commands for Monitoring and Maintaining the Network
Command Purpose
clear bridge bridge-group Removes any learned entries from the forwarding
database and clears the transmit and receive counts for
any statically configured entries.
show bridge [bridge-group] Displays details about the bridge group.
show bridge [bridge-group] [interface-id]
[address] [group] [verbose]
Displays classes of entries in the bridge forwarding
database.
C H A P T E R
27-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
27
Troubleshooting
This chapter describes how to identify and resolve software problems related to the IOS software.
Depending on the nature of the problem, you can use the command-line interface (CLI) or the Cluster
Management Suite (CMS) to identify and solve problems.
Note For complete syntax and usage information for the commands used in this chapter, refer to the
Catalyst 3550 Multilayer Switch Command Reference for this release and the Cisco IOS Command
Summary for Release 12.1.
This chapter consists of these sections:
Using Recovery Procedures, page 27-1
Preventing Autonegotiation Mismatches, page 27-10
Diagnosing Connectivity Problems, page 27-11
Using Debug Commands, page 27-14
Using the show forward Command, page 27-15
Using the crashinfo File, page 27-17
Using Recovery Procedures
These recovery procedures require that you have physical access to the switch:
Recovering from Corrupted Software, page 27-2
Recovering from a Lost or Forgotten Password, page 27-3
Recovering from a Command Switch Failure, page 27-7
Recovering from Lost Member Connectivity, page 27-10
27-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Recovering fromCorrupted Software
Switch software can be corrupted during an upgrade, by downloading the wrong file to the switch, and
by deleting the image file. In all of these cases, the switch does not pass the power-on self-test (POST),
and there is no connectivity.
This procedure uses the XMODEM Protocol to recover from a corrupt or wrong image file. There are
many software packages that support the XMODEM protocol, and this procedure is largely dependent
on the emulation software you are using.
Step 1 Connect a PC with terminal-emulation software supporting the XMODEM Protocol to the switch
console port.
Step 2 Set the line speed on the emulation software to 9600 baud.
Step 3 Unplug the switch power cord.
Step 4 Press the Mode button, and at the same time, reconnect the power cord to the switch.
You can release the Mode button a second or two after the LED above port 1X goes off. Several lines of
information about the software appear along with instructions:
The system has been interrupted prior to initializing the flash file system. The following
commands will initialize the flash file system, and finish loading the operating system
software:
flash_init
load_helper
boot
Step 5 Initialize the Flash file system:
switch: flash_init
Step 6 If you had set the console port speed to anything other than 9600, it has been reset to that particular
speed. Change the emulation software line speed to match that of the switch console port.
Step 7 Load any helper files:
switch: load_helper
Step 8 Start the file transfer by using the XMODEM protocol.
switch: copy xmodem: flash:image_filename.bin
Step 9 After the XMODEM request appears, use the appropriate command on the terminal-emulation software
to start the transfer and to copy the software image into Flash memory.
27-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Recovering froma Lost or Forgotten Password
The default configuration for Catalyst 3550 switches allows an end user with physical access to the
switch to recover from a lost password by interrupting the boot process during power-on and by entering
a new password.
Note On Catalyst 3550 Fast Ethernet switches, a system administrator can disable some of the
functionality of this feature by allowing an end user to reset a password only by agreeing to return
to the default configuration. If you are an end user trying to reset a password on a Catalyst 3550 Fast
Ethernet switch and password recover has been disabled, a status message shows this during the
recovery process.
Follow the steps in this procedure if you have forgotten or lost the switch password.
Step 1 Connect a terminal or PC with terminal-emulation software to the switch console port.
Step 2 Set the line speed on the emulation software to 9600 baud.
Step 3 Unplug the switch power cord.
Step 4 Press the Mode button, and at the same time, reconnect the power cord to the switch.
You can release the Mode button a second or two after the LED above port 1X turns off. Several lines
of information about the software appear with instructions, informing you if the password recovery
procedure has been disabled or not.
If you see a message that begins with this:
The system has been interrupted prior to initializing the flash file system. The
following commands will initialize the flash file system
proceed to the Password Recovery with Password Recovery Enabled section on page 27-3, and
follow the steps.
If you see a message that begins with this:
The password-recovery mechanism has been triggered, but
is currently disabled.
proceed to the Procedure with Password Recovery Disabled section on page 27-5, and follow the
steps.
Password Recovery with Password Recovery Enabled
If the password-recovery mechanism is enabled, this message appears:
The system has been interrupted prior to initializing the flash file system. The following
commands will initialize the flash file system, and finish loading the operating system
software:
flash_init
load_helper
boot
Step 1 Initialize the Flash file system:
switch: flash_init
27-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Step 2 If you had set the console port speed to anything other than 9600, it has been reset to that particular
speed. Change the emulation software line speed to match that of the switch console port.
Step 3 Load any helper files:
switch: load_helper
Step 4 Display the contents of Flash memory:
switch: dir flash:
The switch file system is displayed:
Directory of flash:
13 drwx 192 Mar 01 1993 22:30:48 c3550-i5q3l2-mz-121-0.0.53
11 -rwx 5825 Mar 01 1993 22:31:59 config.text
17 -rwx 27 Mar 01 1993 22:30:57 env_vars
5 -rwx 90 Mar 01 1993 22:30:57 system_env_vars
18 -rwx 720 Mar 01 1993 02:21:30 vlan.dat
16128000 bytes total (10003456 bytes free)
Step 5 Rename the configuration file to config.text.old.
This file contains the password definition.
switch: rename flash:config.text flash:config.text.old
Step 6 Boot the system:
switch: boot
You are prompted to start the setup program. Enter N at the prompt:
Continue with the configuration dialog? [yes/no]: N
Step 7 At the switch prompt, enter privileged EXEC mode:
Switch> enable
Step 8 Rename the configuration file to its original name:
Switch# rename flash:config.text.old flash:config.text
Step 9 Copy the configuration file into memory:
Switch# copy flash:config.text system:running-config
Source filename [config.text]?
Destination filename [running-config]?
Press Return in response to the confirmation prompts.
The configuration file is now reloaded, and you can change the password.
Step 10 Enter global configuration mode:
Switch# configure terminal
Step 11 Change the password:
Switch (config)# enable secret password
The secret password can be from 1 to 25 alphanumeric characters, can start with a number, is case
sensitive, and allows spaces but ignores leading spaces.
27-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Step 12 Return to privileged EXEC mode:
Switch (config)# exit
Switch#
Step 13 Write the running configuration to the startup configuration file:
Switch# copy running-config startup-config
The new password is now in the startup configuration.
Note This procedure is likely to leave your switch virtual interface in a shutdown state. You can see which
interface is in this state by entering the show running-config privileged EXEC command. To
re-enable the interface, enter the interface vlan vlan-id global configuration command, and specify
the VLAN ID of the shutdown interface. With the switch in interface configuration mode, enter the
no shutdown command.
Procedure with Password Recovery Disabled
If the password-recovery mechanism is disabled, this message appears:
The password-recovery mechanism has been triggered, but
is currently disabled. Access to the boot loader prompt
through the password-recovery mechanism is disallowed at
this point. However, if you agree to let the system be
reset back to the default system configuration, access
to the boot loader prompt can still be allowed.
Would you like to reset the system back to the default configuration (y/n)?
Caution Returning the switch to the default configuration results in the loss of all existing configurations. We
recommend that you contact your system administrator to verify if there are backup switch and
VLAN configuration files.
If you enter n (no), the normal boot process continues as if the Mode button had not been pressed;
you cannot access the boot loader prompt, and you cannot enter a new password. You see the
message:
Press Enter to continue........
If you enter y (yes), the configuration file in Flash memory and the VLAN database file are deleted.
When the default configuration loads, you can reset the password.
Step 1 Elect to continue with password recovery and lose the existing configuration:
Would you like to reset the system back to the default configuration (y/n)? Y
Step 2 Load any helper files:
Switch: load_helper
27-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Step 3 Display the contents of Flash memory:
switch: dir flash:
The switch file system is displayed:
Directory of flash:
13 drwx 192 Mar 01 1993 22:30:48 c3550-i5q3l2-mz-121-0.0.53
17 -rwx 27 Mar 01 1993 22:30:57 env_vars
5 -rwx 90 Mar 01 1993 22:30:57 system_env_vars
16128000 bytes total (10003456 bytes free)
Step 4 Boot the system:
Switch: boot
You are prompted to start the setup program. To continue with password recovery, enter N at the prompt:
Continue with the configuration dialog? [yes/no]: N
Step 5 At the switch prompt, enter privileged EXEC mode:
Switch> enable
Step 6 Enter global configuration mode:
Switch# configure terminal
Step 7 Change the password:
Switch (config)# enable secret password
The secret password can be from 1 to 25 alphanumeric characters, can start with a number, is case
sensitive, and allows spaces but ignores leading spaces.
Step 8 Return to privileged EXEC mode:
Switch (config)# exit
Switch#
Step 9 Write the running configuration to the startup configuration file:
Switch# copy running-config startup-config
The new password is now in the startup configuration.
Note This procedure is likely to leave your switch virtual interface in a shutdown state. You can see which
interface is in this state by entering the show running-config privileged EXEC command. To
re-enable the interface, enter the interface vlan vlan-id global configuration command, and specify
the VLAN ID of the shutdown interface. With the switch in interface configuration mode, enter the
no shutdown command.
Step 10 You must now reconfigure the switch. If the system administrator has the backup switch and VLAN
configuration files available, you should use those.
27-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Recovering froma Command Switch Failure
This section describes how to recover from a failed command switch. You can configure a redundant
command switch group by using the Hot Standby Router Protocol (HSRP). For more information, see
Chapter 5, Clustering Switches and Chapter 23, Configuring HSRP.
Note HSRP is the preferred method for supplying redundancy to a cluster.
If you have not configured a standby command switch, and your command switch loses power or fails
in some other way, management contact with the member switches is lost, and you must install a new
command switch. However, connectivity between switches that are still connected is not affected, and
the member switches forward packets as usual. You can manage the members as standalone switches
through the console port or, if they have IP addresses, through the other management interfaces.
You can prepare for a command switch failure by assigning an IP address to a member switch or another
switch that is command-capable, making a note of the command-switch password, and cabling your
cluster to provide redundant connectivity between the member switches and the replacement command
switch. This section describes two solutions for replacing a failed command switch:
Replacing a failed command switch with a cluster member
Replacing a failed command switch with another switch
For information on command-capable switches, refer to the release notes.
Replacing a Failed Command Switch with a Cluster Member
To replace a failed command switch with a command-capable member in the same cluster, follow these
steps:
Step 1 Disconnect the command switch from the member switches, and physically remove it from the cluster.
Step 2 Insert the member switch in place of the failed command switch, and duplicate its connections to the
cluster members.
Step 3 Start a CLI session on the new command switch.
You can access the CLI by using the console port or, if an IP address has been assigned to the switch, by
using Telnet. For details about using the console port, refer to the switch hardware installation guide.
Step 4 At the switch prompt, enter privileged EXEC mode:
Switch> enable
Switch#
Step 5 Enter the password of the failed command switch.
Step 6 Enter global configuration mode.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Step 7 Remove the member switch from the cluster.
Switch(config)# no cluster commander-address
Step 8 Return to privileged EXEC mode.
Switch(config)# end
Switch#
27-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Step 9 Use the setup program to configure the switch IP information. This program prompts you for IP address
information and passwords. From privileged EXEC mode, enter setup, and press Return.
Switch# setup
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: y
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system
Would you like to enter basic management setup? [yes/no]:
Step 10 Enter Y at the first prompt.
The prompts in the setup program vary depending on the member switch you selected to be the command
switch:
Continue with configuration dialog? [yes/no]: y
or
Configuring global parameters:
If this prompt does not appear, enter enable, and press Return. Enter setup, and press Return to start
the setup program.
Step 11 Respond to the questions in the setup program.
When prompted for the host name, recall that on a command switch, the host name is limited to
28 characters; on a member switch to 31 characters. Do not use -n, where n is a number, as the last
characters in a host name for any switch.
When prompted for the Telnet (virtual terminal) password, recall that it can be from 1 to 25 alphanumeric
characters, is case sensitive, allows spaces, but ignores leading spaces.
Step 12 When prompted for the enable secret and enable passwords, enter the passwords of the failed command
switch again.
Step 13 When prompted, make sure to enable the switch as the cluster command switch, and press Return.
Step 14 When prompted, assign a name to the cluster, and press Return.
The cluster name can be 1 to 31 alphanumeric characters, dashes, or underscores.
Step 15 After the initial configuration displays, verify that the addresses are correct.
Step 16 If the displayed information is correct, enter Y, and press Return.
If this information is not correct, enter N, press Return, and begin again at Step 9.
Step 17 Start your browser, and enter the IP address of the new command switch.
Step 18 From the Cluster menu, select Add to Cluster to display a list of candidate switches to add to the cluster.
27-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Recovery Procedures
Replacing a Failed Command Switch with Another Switch
To replace a failed command switch with a switch that is command-capable but not part of the cluster,
follow these steps:
Step 1 Insert the new switch in place of the failed command switch, and duplicate its connections to the cluster
members.
Step 2 Start a CLI session on the new command switch.
You can access the CLI by using the console port or, if an IP address has been assigned to the switch, by
using Telnet. For details about using the console port, refer to the switch hardware installation guide.
Step 3 At the switch prompt, enter privileged EXEC mode:
Switch> enable
Switch#
Step 4 Enter the password of the failed command switch.
Step 5 Use the setup program to configure the switch IP information.
This program prompts you for IP address information and passwords. From privileged EXEC mode,
enter setup, and press Return.
Switch# setup
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: y
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system
Would you like to enter basic management setup? [yes/no]:
Step 6 Enter Y at the first prompt.
The prompts in the setup program vary depending on the switch you selected to be the command switch:
Continue with configuration dialog? [yes/no]: y
or
Configuring global parameters:
If this prompt does not appear, enter enable, and press Return. Enter setup, and press Return to start
the setup program.
Step 7 Respond to the questions in the setup program.
When prompted for the host name, recall that on a command switch, the host name is limited to 28
characters. Do not use -n, where n is a number, as the last characters in a host name for any switch.
When prompted for the Telnet (virtual terminal) password, recall that it can be from 1 to 25 alphanumeric
characters, is case sensitive, allows spaces, but ignores leading spaces.
Step 8 When prompted for the enable secret and enable passwords, enter the passwords of the failed command
switch again.
Step 9 When prompted, make sure to enable the switch as the cluster command switch, and press Return.
27-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Preventing Autonegotiation Mismatches
Step 10 When prompted, assign a name to the cluster, and press Return.
The cluster name can be 1 to 31 alphanumeric characters, dashes, or underscores.
Step 11 When the initial configuration displays, verify that the addresses are correct.
Step 12 If the displayed information is correct, enter Y, and press Return.
If this information is not correct, enter N, press Return, and begin again at Step 9.
Step 13 Start your browser, and enter the IP address of the new command switch.
Step 14 From the Cluster menu, select Add to Cluster to display a list of candidate switches to add to the cluster.
Recovering fromLost Member Connectivity
Some configurations can prevent the command switch from maintaining contact with member switches.
If you are unable to maintain management contact with a member, and the member switch is forwarding
packets normally, check for these conflicts:
A member switch (Catalyst 3550, Catalyst 3500 XL, Catalyst 2950, Catalyst 2900 XL, Catalyst
2820, and Catalyst 1900 switch) cannot connect to the command switch through a port that is
defined as a network port.
Catalyst 3500 XL, Catalyst 2950, Catalyst 2900 XL, Catalyst 2820, and Catalyst 1900 member
switches must connect to the command switch through a port that belongs to the same management
VLAN.
A member switch (Catalyst 3550, Catalyst 2950, Catalyst 3500 XL, Catalyst 2900 XL, Catalyst
2820, and Catalyst 1900 switch) connected to the command switch through a secured port can lose
connectivity if the port is disabled because of a security violation.
Preventing Autonegotiation Mismatches
The IEEE 802.3AB autonegotiation protocol manages the switch settings for speed (10 Mbps, 100 Mbps,
and 1000 Mbps excluding GBIC ports) and duplex (half or full). There are situations when this protocol
can incorrectly align these settings, reducing performance. A mismatch occurs under these
circumstances:
A manually-set speed or duplex parameter is different from the manually set speed or duplex
parameter on the connected port.
A port is set to autonegotiate, and the connected port is set to full duplex with no autonegotiation.
To maximize switch performance and ensure a link, follow one of these guidelines when changing the
settings for duplex and speed:
Let both ports autonegotiate both speed and duplex.
Manually set the speed and duplex parameters for the ports on both ends of the connection.
Note If a remote device does not autonegotiate, configure the duplex settings on the two ports to match.
The speed parameter can adjust itself even if the connected port does not autonegotiate.
27-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Diagnosing Connectivity Problems
Diagnosing Connectivity Problems
This section describes how to troubleshoot connectivity problems:
Understanding Ping, page 27-11
Executing Ping, page 27-11
Understanding IP Traceroute, page 27-12
Executing IP Traceroute, page 27-13
Understanding Ping
The switch supports IP ping, which you can use to test connectivity to remote hosts. Ping sends an echo
request packet to an address and waits for a reply. Ping returns one of these responses:
Normal responseThe normal response (hostname is alive) occurs in 1 to 10 seconds, depending
on network traffic.
Destination does not respondIf the host does not respond, a no-answer message is returned.
Unknown hostIf the host does not exist, an unknown host message is returned.
Destination unreachableIf the default gateway cannot reach the specified network, a
destination-unreachable message is returned.
Network or host unreachableIf there is no entry in the route table for the host or network, a
network or host unreachable message is returned.
Executing Ping
If you attempt to ping a host in a different IP subnetwork, you must define a static route to the network
or have IP routing configured to route between those subnets. For more information, see Chapter 22,
Configuring IP Unicast Routing.
IP routing is disabled by default on all switches. If you need to enable or configure IP routing, see
Chapter 22, Configuring IP Unicast Routing.
Beginning in privileged EXEC mode, follow this step to ping another device on the network from the
switch:
Note Though other protocol keywords are available with the ping command, they are not supported in this
release.
Command Purpose
Step1 ping ip host | address Ping a remote host through IP or by supplying the host name or
network address.
27-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Diagnosing Connectivity Problems
This example shows how to ping an IP host:
Switch# ping 172.20.52.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echoes to 172.20.52.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Switch#
Table 27-1 describes the possible ping character output.
To terminate a ping session, enter the escape sequence (Ctrl-^ X by default). You enter the default by
simultaneously pressing and releasing the Ctrl, Shift, and 6 keys, and then pressing the X key.
Understanding IP Traceroute
You can use IP traceroute to identify the path that packets take through the network on a hop-by-hop
basis. The command output displays all network layer (Layer 3) devices, such as routers, that the traffic
passes through on the way to the destination.
Your switches can participate as the source or destination of the traceroute privileged EXEC command
and might or might not appear as a hop in the traceroute command output. If the switch is the destination
of the traceroute, it is displayed as the final destination in the traceroute output. Intermediate switches
do not show up in the traceroute output if they are only bridging the packet from one port to another
within the same VLAN. However, if the intermediate switch is a multilayer switch that is routing a
particular packet, this switch shows up as a hop in the traceroute output.
The traceroute privileged EXEC command uses the Time To Live (TTL) field in the IP header to cause
routers and servers to generate specific return messages. Traceroute starts by sending a User Datagram
Protocol (UDP) datagram to the destination host with the TTL field set to 1. If a router finds a TTL value
of 1 or 0, it drops the datagram and sends back an Internet Control Message Protocol (ICMP)
time-to-live-exceeded message to the sender. Traceroute determines the address of the first hop by
examining the source address field of the ICMP time-to-live-exceeded message.
To identify the next hop, traceroute sends a UDP packet with a TTL value of 2. The first router
decrements the TTL field by 1 and sends the datagram to the next router. The second router sees a TTL
value of 1, discards the datagram, and returns the time-to-live-exceeded message to the source. This
process continues until the TTL is incremented to a value large enough for the datagram to reach the
destination host (or until the maximum TTL is reached).
Table27-1 Ping Output Display Characters
Character Description
! Each exclamation point means receipt of a reply.
. Each period means the network server timed out while waiting for a reply.
U A destination unreachable error PDU was received.
C A congestion experienced packet was received.
I User interrupted test.
? Unknown packet type.
& Packet lifetime exceeded.
27-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Diagnosing Connectivity Problems
To determine when a datagram reaches its destination, traceroute sets the UDP destination port number
in the datagram to a very large value that the destination host is unlikely to be using. When a host
receives a datagram destined to itself containing a destination port number that is unused locally, it sends
an ICMP port unreachable error to the source. Because all errors except port unreachable errors come
from intermediate hops, the receipt of a port unreachable error means this message was sent by the
destination.
Executing IP Traceroute
Beginning in privileged EXEC mode, follow this step to trace the path packets take through the network:
Note Though other protocol keywords are available with the traceroute privileged EXEC command, they
are not supported in this release.
This example shows how to perform a traceroute to an IP host:
Switch# traceroute ip 171.9.15.10
Type escape sequence to abort.
Tracing the route to 171.69.115.10
1 172.2.52.1 0 msec 0 msec 4 msec
2 172.2.1.203 12 msec 8 msec 0 msec
3 171.9.16.6 4 msec 0 msec 0 msec
4 171.9.4.5 0 msec 4 msec 0 msec
5 171.9.121.34 0 msec 4 msec 4 msec
6 171.9.15.9 120 msec 132 msec 128 msec
7 171.9.15.10 132 msec 128 msec 128 msec
Switch#
The display shows the hop count, IP address of the router, and the round-trip time in milliseconds for
each of the three probes that are sent.
Command Purpose
Step1 traceroute ip host Trace the path packets take through the network by using IP.
Table27-2 Traceroute Output Display Characters
Character Description
* The probe timed out.
? Unknown packet type.
A Administratively unreachable. Usually, this output means that an access list is
blocking traffic.
H Host unreachable.
N Network unreachable.
P Protocol unreachable.
Q Source quench.
U Port unreachable.
27-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using Debug Commands
To terminate a trace in progress, enter the escape sequence (Ctrl-^ X by default). You enter the default
by simultaneously pressing and releasing the Ctrl, Shift, and 6 keys, and then pressing the X key.
Using Debug Commands
This section explains how you use debug commands to diagnose and resolve internetworking problems.
It contains this information:
Enabling Debugging on a Specific Feature, page 27-14
Enabling All-System Diagnostics, page 27-15
Redirecting Debug and Error Message Output, page 27-15
Caution Because debugging output is assigned high priority in the CPU process, it can render the system
unusable. For this reason, use debug commands only to troubleshoot specific problems or during
troubleshooting sessions with Cisco technical support staff. It is best to use debug commands during
periods of lower network traffic and fewer users. Debugging during these periods decreases the
likelihood that increased debug command processing overhead will affect system use.
Note For complete syntax and usage information for the Catalyst 3550-specific debug commands, refer to
the Catalyst 3550 Multilayer Switch Command Reference for this release.
Enabling Debugging on a Specific Feature
All debug commands are entered in privileged EXEC mode, and most debug commands take no
arguments. For example, beginning in privileged EXEC mode, enter this command to enable the
debugging for Switch Port Analyzer:
Switch# debug span-session
The switch continues to generate output until you enter the no form of the command.
If you enable a debug command and no output is displayed, consider these possibilities:
The switch might not be properly configured to generate the type of traffic you want to monitor. Use
the show running-config command to check its configuration.
Even if the switch is properly configured, it might not generate the type of traffic you want to
monitor during the particular period that debugging is enabled. Depending on the feature you are
debugging, you can use commands such as the TCP/IP ping command to generate network traffic.
To disable debugging of SPAN, enter this command in privileged EXEC mode:
Switch# no debug span-session
Alternately, in privileged EXEC mode, you can enter the undebug form of the command:
Switch# undebug span-session
To display the state of each debugging option, enter this command in privileged EXEC mode:
Switch# show debugging
27-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using the show forward Command
Enabling All-SystemDiagnostics
Beginning in privileged EXEC mode, enter this command to enable all-system diagnostics:
Switch# debug all
Caution Because debugging output takes priority over other network traffic, and because the debug all
privileged EXEC command generates more output than any other debug command, it can severely
diminish switch performance or even render it unusable. In virtually all cases, it is best to use more
specific debug commands.
The no debug all privileged EXEC command disables all diagnostic output. Using the no debug all
command is a convenient way to ensure that you have not accidentally left any debug commands
enabled.
Redirecting Debug and Error Message Output
By default, the network server sends the output from debug commands and system error messages to the
console. If you use this default, you can use a virtual terminal connection to monitor debug output
instead of connecting to the console port.
Possible destinations include the console, virtual terminals, internal buffer, and UNIX hosts running a
syslog server. The syslog format is compatible with 4.3 Berkeley Standard Distribution (BSD) UNIX
and its derivatives.
Note Be aware that the debugging destination you use affects system overhead. Logging messages to the
console produces very high overhead, whereas logging messages to a virtual terminal produces less
overhead. Logging messages to a syslog server produces even less, and logging to an internal buffer
produces the least overhead of any method.
For more information about system message logging, see Chapter 17, Configuring System Message
Logging.
Using the show forward Command
The output from the show forward privileged EXEC command provides some useful information about
the disposition of a packet entering an interface. Depending upon the parameters entered about the
packet, the output provides lookup table results, maps and masks used to calculate forwarding
destinations, bitmaps, and egress information.
Note For more syntax and usage information for the show forward command, refer to the Catalyst 3550
Multilayer Switch Command Reference for this release.
27-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using the show forward Command
This is an example of the output from the show forward privileged EXEC command for Fast Ethernet
port 8, where VLAN ID, source and destination MAC addresses, and source and destination IP addresses
were provided.
Switch# show forward fa0/8 vlan 8 0000.1111.2222 0022.3355.9800 ip 8.8.8.10 4.4.4.33 255
signature:00000007, comparison ind:10, control info:2000941A control map:00000000
vlan:8, vlanid entry:000C0012 00000000 00000000 04620000
vlan:8, vlanid entry:000C0012 00000000 00000000 04620000
lookup key bk adata rawoff secoff sec
qos 940808080A04040421 800000000000FF0000 0 00000000 006304 004064 4
acl 940808080A04040421 800000000000FF0000 1 00000082 045408 002016 1
learn 187008000011112222 801008002233559800 0 80010003 002176 002176 0
forw 187008000011112222 801008002233559800 1 40020000 043328 010560 5
bridgeDestMap: 00000000 00000000 0000FFFF FFFFFFC7
vlanMask: 00000000 00000000 0000FFFF FFFFFE7F
portMask: 00000000 00000000 00000000 00000080
sourceMask: 00000000 00000000 00000000 00000000
globalMap: 00000000 00000000 00000000 00000000
globalMask: 00000000 00000000 0002FFFF EFFFFC03
forwMap: 00000000 00000000 00000000 00000100
frame notifies:
src u_dat vlan fl q-map
2 00 8 00 00000000 00000000 00000000 00000100
Egress q 8
signature:00000007, comparison ind:10, control info:2000941A control map:00000000
vlan:8, vlanid entry:000C0012 00000000 00000000 04620000
FastEthernet0/9 vlan 8, dst 0022.3355.9800 src 0000.1111.2222, cos 0x0, dscp 0x0
Much of this information is useful mainly for Technical Support personnel, who have access to detailed
information about the switch application-specific integrated circuits (ASICs). However, you can look at
the Egress q section to get information about the output interface. There is an egress section for each
separate destination port. The important information is in the line containing the name of the output
interface, output VLAN ID, and rewritten destination MAC address for the frame. The example shows
that the output interface is Fast Ethernet port 9 and the output VLAN is VLAN 8 and provides the
rewritten source and destination MAC address for the frame.
If the output interface is a trunk port that needs to transmit multiple copies of the frame on different
VLANs (for example, for IP multicast frames), several lines might contain the same output interface
name, but different output VLANs. If output security access control lists (ACLs) are present, it is
possible that one or more of these Egress q sections will not contain a line listing an output port. This
happens when the output ACL denies the packet.
When the CPU is one of the destinations for a packet, a Cpu q section is displayed, followed by a queue
name. This name should correspond to one of the queue names in the output from the show controllers
cpu-interface privileged EXEC command, where statistics are displayed for the number of packets
received at each queue.
This is an example of the Cpu q section display:
Cpu q:100 - routing queue
27-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using the crashinfo File
Using the crashinfo File
The crashinfo file saves information that helps Cisco technical support representatives to debug
problems that caused the IOS image to fail (crash). The switch writes the crash information to the
console at the time of the failure, and the file is created the next time you boot the IOS image after the
failure (instead of while the system is failing).
The information in the file includes the IOS image name and version that failed, a dump of the processor
registers, and a stack trace. You can provide this information to the Cisco technical support
representative by using the show tech-support privileged EXEC command.
All crashinfo files are kept in this directory on the Flash file system:
flash:/crashinfo/crashinfo_n where n is a sequence number.
Each new crashinfo file that is created uses a sequence number that is larger than any previously-existing
sequence number, so the file with the largest sequence number describes the most recent failure. Version
numbers are used instead of a timestamp because the Catalyst 3550 switches do not include a real-time
clock. You cannot change the name of the file that the system will use when it creates the file. However,
after the file is created, you can use the rename privileged EXEC command to rename it, but the contents
of the renamed file will not be displayed by the show stacks or the show tech-support privileged EXEC
command.
You can display the most recent crashinfo file (that is, the file with the highest sequence number at the
end of its filename) by entering the show stacks or the show tech-support privileged EXEC command.
You also can access the file by using any command that can copy or display files, such as the more or
the copy privileged EXEC command.
27-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Chapter27 Troubleshooting
Using the crashinfo File
A-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
A P P E N D I X A
Supported MIBs
This appendix lists the supported management information base (MIBs) for this release. It contains these
sections:
MIB List, page A-1
Using FTP to Access the MIB Files, page A-2
MIB List
RFC 1213
IF-MIB
CISCO-CDP-MIB
CISCO-IMAGE-MIB
CISCO-FLASH-MIB
OLD-CISCO-CHASSIS-MIB
CISCO-PAGP-MIB
CISCO-VTP-MIB
CISCO-HSRP-MIB
OLD-CISCO-TS-MIB
BRIDGE-MIB (RFC1493)
CISCO-VLAN-MEMBERSHIP-MIB
CISCO-VLAN-IFINDEX-RELATIONSHIP-MIB
CISCO-STACK-MIB (only a subset of the available MIB objects are implemented; not all objects
are supported)
RMON 1 MIB (only RMON etherStats, etherHistory, alarms, and events are supported)
IGMP MIB
PIM MIB
CISCO-STP-EXTENSIONS-MIB
OSPF-MIB (RFC 1253)
IPMROUTE-MIB
A-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixA Supported MIBs
Using FTP to Access the MIB Files
CISCO-MEMORY-POOL-MIB
CISCO-RTTMON-MIB (subsystems supported: sub_rtt_rmon and sub_rtt_rmonlib)
CISCO-PROCESS-MIB
OLD-CISCO-SYS-MIB
CISCO-CONFIG-MAN-MIB
CISCO-MAC-NOTIFICATION-MIB
CISCO-IGMP-FILTER-MIB
Using FTP to Access the MIB Files
You can obtain each MIB file by using this procedure:
Step 1 Use FTP to access the server ftp.cisco.com.
Step 2 Log in with the username anonymous.
Step 3 Enter your e-mail username when prompted for the password.
Step 4 At the ftp> prompt, change directories to /pub/mibs/v1 and the /pub/mibs/v2.
Step 5 Use the get MIB_filename command to obtain a copy of the MIB file.
Note You can also access information about MIBs on the Cisco web site:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
B-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
A P P E N D I X B
Working with the IOS File System, Configuration
Files, and Software Images
This appendix describes how to manipulate the Flash file system, how to copy configuration files, and
how to archive (upload and download) software images.
Note For complete syntax and usage information for the commands used in this chapter, refer to the
Catalyst 3550 Multilayer Switch Command Reference for this release and the Cisco IOS
Configuration Fundamentals Command Reference for Release 12.1.
This appendix consists of these sections:
Working with the Flash File System, page B-1
Working with Configuration Files, page B-8
Working with Software Images, page B-19
Working with the Flash File System
The Flash file system on your switch provides several commands to help you manage software image
and configuration files.
The Flash file system is a single Flash device on which you can store files. This Flash device is called
flash:.
This section contains this information:
Displaying Available File Systems, page B-2
Setting the Default File System, page B-3
Displaying Information about Files on a File System, page B-3
Creating and Removing Directories, page B-4
Copying Files, page B-4
Deleting Files, page B-5
Creating, Displaying, and Extracting tar Files, page B-6
Displaying the Contents of a File, page B-8
B-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with the Flash File System
Displaying Available File Systems
To display the available file systems on your switch, use the show file systems privileged EXEC
command as shown in this example:
Switch# show file systems
File Systems:
Size(b) Free(b) Type Flags Prefixes
* 16128000 11118592 flash rw flash:
16128000 11118592 unknown rw zflash:
32768 26363 nvram rw nvram:
- - network rw tftp:
- - opaque rw null:
- - opaque rw system:
- - opaque ro xmodem:
- - opaque ro ymodem:
- - network rw rcp:
- - network rw ftp:
TableB-1 show file systems Field Descriptions
Field Value
Size(b) Amount of memory in the file system in bytes.
Free(b) Amount of free memory in the file system in bytes.
Type Type of file system.
flashThe file system is for a Flash memory device.
nvramThe file system is for a nonvolatile RAM (NVRAM) device.
opaqueThe file system is a locally generated pseudo file system (for example, the system) or a download
interface, such as brimux.
unknownThe file system is an unknown type.
Flags Permission for file system.
roread-only.
rwread/write.
wowrite-only.
Prefixes Alias for file system.
flash:Flash file system.
nvram:NVRAM.
null:Null destination for copies. You can copy a remote file to null to determine its size.
rcp:Remote Copy Protocol (RCP) network server.
system:Contains the system memory, including the running configuration.
tftp:Trivial File Transfer Protocol (TFTP) network server.
xmodem:Obtain the file from a network machine by using the XMODEM protocol.
ymodem:Obtain the file from a network machine by using the YMODEM protocol.
zflash:Read-only file decompression file system, which mirrors the contents of the Flash file system.
B-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with the Flash File System
Setting the Default File System
You can specify the file system or directory that the system uses as the default file system by using the
cd filesystem: privileged EXEC command. You can set the default file system to omit the filesystem:
argument from related commands. For example, for all privileged EXEC commands that have the
optional filesystem: argument, the system uses the file system specified by the cd command.
By default, the default file system is flash:.
You can display the current default file system as specified by the cd command by using the pwd
privileged EXEC command.
Displaying Information about Files on a File System
You can view a list of the contents of a file system before manipulating its contents. For example, before
copying a new configuration file to Flash memory, you might want to verify that the file system does not
already contain a configuration file with the same name. Similarly, before copying a Flash configuration
file to another location, you might want to verify its filename for use in another command.
To display information about files on a file system, use one of the privileged EXEC commands in
Table B-2:
Changing Directories and Displaying the Working Directory
Beginning in privileged EXEC mode, follow these steps to change directories and display the working
directory.
TableB-2 Commands for Displaying Information About Files
Command Description
dir [/all] [filesystem:][filename] Display a list of files on a file system.
show file systems Display more information about each of the files on a file system.
show file information file-url Display information about a specific file.
show file descriptors Display a list of open file descriptors. File descriptors are the internal representations
of open files. You can use this command to see if another user has a file open.
Command Purpose
Step1 dir filesystem: Display the directories on the specified file system.
For filesystem:, use flash: for the system board Flash device.
Step2 cd new_configs Change to the directory of interest.
The command example shows how to change to the directory named
new_configs.
Step3 pwd Display the working directory.
B-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with the Flash File System
Creating and Removing Directories
Beginning in privileged EXEC mode, follow these steps to create and remove a directory:
To delete a directory with all its files and subdirectories, use the delete /force /recursive
filesystem:/file-url privileged EXEC command.
Use the /recursive keyword to delete the named directory and all subdirectories and the files contained
in it. Use the /force keyword to suppress the prompting that confirms a deletion of each file in the
directory. You are prompted only once at the beginning of this deletion process. Use the /force and
/recursive keywords for deleting old software images that were installed by using the archive
download-sw command but are no longer needed.
For filesystem, use flash: for the system board Flash device. For file-url, enter the name of the directory
to be deleted. All the files in the directory and the directory are removed.
Caution When files and directories are deleted, their contents cannot be recovered.
Copying Files
To copy a file from a source to a destination, use the copy [/erase] source-url destination-url privileged
EXEC command. For the source and destination URLs, you can use running-config and startup-config
keyword shortcuts. For example, the copy running-config startup-config command saves the currently
running configuration file to the NVRAM section of Flash memory to be used as the configuration
during system initialization.
You can also copy to and from special file systems (xmodem:, ymodem:) as the source or destination
for the file from a network machine that uses the XMODEM or YMODEM protocol.
Network file system URLs include ftp:, rcp:, and tftp: and have these syntaxes:
File Transfer Protocol (FTP)ftp:[[//username [:password]@location]/directory]/filename
Remote Copy Protocol (RCP)rcp:[[//username@location]/directory]/filename
Trivial File Transfer Protocol (TFTP)tftp:[[//location]/directory]/filename
Local writable file systems include flash:.
Command Purpose
Step1 dir filesystem: Display the directories on the specified file system.
For filesystem:, use flash: for the system board Flash device.
Step2 mkdir old_configs Create a new directory.
The command example shows how to create the directory named old_configs.
Directory names are case sensitive.
Directory names are limited to 45 characters between the slashes (/); the name
cannot contain control characters, spaces, deletes, slashes, quotes, semicolons,
or colons.
Step3 dir filesystem: Verify your entry.
B-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with the Flash File System
Some invalid combinations of source and destination exist. Specifically, you cannot copy these
combinations:
From a running configuration to a running configuration
From a startup configuration to a startup configuration
From a device to the same device (for example, the copy flash: flash: command is invalid)
For specific examples of using the copy command with configuration files, see the Working with
Configuration Files section on page B-8.
To copy software images either by downloading a new version or uploading the existing one, use the
archive download-sw or the archive upload-sw privileged EXEC command. For more information, see
the Working with Software Images section on page B-19.
Deleting Files
When you no longer need a file on a Flash memory device, you can permanently delete it. To delete a
file or directory from a specified Flash device, use the delete [/force] [/recursive] [filesystem:]/file-url
privileged EXEC command.
Use the /recursive keyword for deleting a directory and all subdirectories and the files contained in it.
Use the /force keyword to suppress the prompting that confirms a deletion of each file in the directory.
You are prompted only once at the beginning of this deletion process. Use the /force and /recursive
keywords for deleting old software images that were installed by using the archive download-sw
command but are no longer needed.
If you omit the filesystem: option, the switch uses the default device specified by the cd command. For
file-url, you specify the path (directory) and the name of the file to be deleted.
If you attempt to delete the file specified by the CONFIG_FILE or BOOT environment variable, the
system prompts you to confirm the deletion. If you attempt to delete the last valid system image specified
in the BOOT environment variable, the system prompts you to confirm the deletion.
Caution When files are deleted, their contents cannot be recovered.
This example shows how to delete the file myconfig from the default Flash memory device:
Switch# delete myconfig
B-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with the Flash File System
Creating, Displaying, and Extracting tar Files
You can create a tar file and write files into it, list the files in a tar file, and extract the files from a tar
file as described in the next sections.
Creating a tar File
To create a tar file and write files into it, use this privileged EXEC command:
archive tar /create destination-url flash:/file-url
For destination-url, specify the destination URL alias for the local or network file system and the name
of the tar file to create. These options are supported:
For the local Flash file system, the syntax is
flash:
For the File Transfer Protocol (FTP), the syntax is
ftp:[[//username[:password]@location]/directory]/tar-filename.tar
For the Remote Copy Protocol (RCP), the syntax is
rcp:[[//username@location]/directory]/tar-filename.tar
For the Trivial File Transfer Protocol (TFTP), the syntax is
tftp:[[//location]/directory]/tar-filename.tar
The tar-filename.tar is the tar file to be created.
For flash:/file-url, specify the location on the local Flash file system from which the new tar file is
created. You can also specify an optional list of files or directories within the source directory to write
to the new tar file. If none are specified, all files and directories at this level are written to the newly
created tar file.
This example shows how to create a tar file. This command writes the contents of the new-configs
directory on the local Flash device to a file named saved.tar on the TFTP server at 172.20.10.30:
Switch# archive tar /create tftp:172.20.10.30/saved.tar flash:/new-configs
Displaying the Contents of a tar File
To display the contents of a tar file on the screen, use this privileged EXEC command:
archive tar /table source-url
For source-url, specify the source URL alias for the local or network file system. These options are
supported:
For the local Flash file system, the syntax is
flash:
For the File Transfer Protocol (FTP), the syntax is
ftp:[[//username[:password]@location]/directory]/tar-filename.tar
For the Remote Copy Protocol (RCP), the syntax is
rcp:[[//username@location]/directory]/tar-filename.tar
For the Trivial File Transfer Protocol (TFTP), the syntax is
tftp:[[//location]/directory]/tar-filename.tar
The tar-filename.tar is the tar file to display.
B-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with the Flash File System
You can also limit the display of the files by specifying an optional list of files or directories after the
tar file; then only these files are displayed. If none are specified, all files and directories are displayed.
This example shows how to display the contents of the c3550-i5q3l2-mz.121-6.EA1.tar file that is in
Flash memory:
Switch# archive tar /table flash:c3550-i5q3l2-mz.121-6.EA1.tar
info (219 bytes)
c3550-i5q3l2-mz.121-6.EA1/ (directory)
c3550-i5q3l2-mz.121-6.EA1/html/ (directory)
c3550-i5q3l2-mz.121-6.EA1/html/foo.html (0 bytes)
c3550-i5q3l2-mz.121-6.EA1/c3550-i5q3l2-mz.121-6.EA1.bin (610856 bytes)
c3550-i5q3l2-mz.121-6.EA1/info (219 bytes)
info.ver (219 bytes)
This example shows how to display only the c3550-i5q3l2-mz.121-6.EA1/html directory and its
contents:
Switch# archive tar /table flash:c3550-tv0-m.tar c3550-i5q3l2-mz.121-6.EA1/html
c3550-i5q3l2-mz.121-6.EA1/html/ (directory)
c3550-i5q3l2-mz.121-6.EA1/html/foo.html (0 bytes)
Extracting a tar File
To extract a tar file into a directory on the Flash file system, use this privileged EXEC command:
archive tar /xtract source-url flash:/file-url
For source-url, specify the source URL alias for the local or network file system. These options are
supported:
For the local Flash file system, the syntax is
flash:
For the File Transfer Protocol (FTP), the syntax is
ftp:[[//username[:password]@location]/directory]/tar-filename.tar
For the Remote Copy Protocol (RCP), the syntax is
rcp:[[//username@location]/directory]/tar-filename.tar
For the Trivial File Transfer Protocol (TFTP), the syntax is
tftp:[[//location]/directory]/tar-filename.tar
The tar-filename.tar is the tar file from which to extract files.
For flash:/file-url, specify the location on the local Flash file system into which the tar file is extracted.
You can also specify an optional list of files or directories within the tar file for extraction. If none are
specified, all files and directories are extracted.
This example shows how to extract the contents of a tar file located on the TFTP server at 172.20.10.30.
This command extracts just the new-configs directory into the root directory on the local Flash file
system. The remaining files in the saved.tar file are ignored.
Switch# archive tar /xtract tftp:/172.20.10.30/saved.tar flash:/new-configs
B-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Displaying the Contents of a File
To display the contents of any readable file, including a file on a remote file system, use the more [/ascii
| /binary | /ebcdic] file-url privileged EXEC command:
This example shows how to display the contents of a configuration file on a TFTP server:
Switch# more tftp://serverA/hampton/savedconfig
!
! Saved configuration on server
!
version 11.3
service timestamps log datetime localtime
service linenumber
service udp-small-servers
service pt-vty-logging
!
<output truncated>
Working with Configuration Files
This section describes how to create, load, and maintain configuration files. Configuration files contain
commands entered to customize the function of the Cisco IOS software. To better benefit from these
instructions, your switch must contain a minimal configuration for interacting with the system software.
You can create a basic configuration file by using the setup program or by entering the setup privileged
EXEC command. For more information, see Chapter 4, Assigning the Switch IP Address and Default
Gateway.
You can copy (download) configuration files from a TFTP, FTP, or RCP server to the running
configuration or startup configuration of the switch. You might want to perform this for one of these
reasons:
To restore a backed-up configuration file.
To use the configuration file for another switch. For example, you might add another switch to your
network and want it to have a configuration similar to the original switch. By copying the file to the
new switch, you can change the relevant parts rather than recreating the whole file.
To load the same configuration commands on all the switches in your network so that all the
switches have similar configurations.
You can copy (upload) configuration files from the switch to a file server by using TFTP, FTP, or RCP.
You might perform this task to back up a current configuration file to a server before changing its
contents so that you can later restore the original configuration file from the server.
The protocol you use depends on which type of server you are using. The FTP and RCP transport
mechanisms provide faster performance and more reliable delivery of data than TFTP. These
improvements are possible because FTP and RCP are built on and use the Transmission Control
Protocol/Internet Protocol (TCP/IP) stack, which is connection-oriented.
This section includes this information:
Guidelines for Creating and Using Configuration Files, page B-9
Configuration File Types and Location, page B-9
Creating a Configuration File By Using a Text Editor, page B-10
Copying Configuration Files By Using TFTP, page B-10
B-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Copying Configuration Files By Using FTP, page B-12
Copying Configuration Files By Using RCP, page B-16
Clearing Configuration Information, page B-19
Guidelines for Creating and Using Configuration Files
Creating configuration files can aid in your switch configuration. Configuration files can contain some
or all of the commands needed to configure one or more switches. For example, you might want to
download the same configuration file to several switches that have the same hardware configuration.
Use these guidelines when creating a configuration file:
We recommend that you connect through the console port when using configuration files to
configure the switch. If you configure the switch from a Telnet session, IP addresses are not
changed, and ports and modules are not disabled.
If no passwords have been set on the switch, you must set them on each switch by entering the
enable secret secret-password global configuration command. Enter a blank line for this command.
The password is saved in the configuration file as clear text.
If passwords already exist, you cannot enter the enable secret secret-password global configuration
command in the file because the password verification will fail. If you enter a password in the
configuration file, the switch mistakenly attempts to execute the passwords as commands as it
executes the file.
Note The copy {ftp: | rcp: | tftp:} system:running-config privileged EXEC command loads the
configuration files on the switch as if you were entering the commands at the command line. The
switch does not erase the existing running configuration before adding the commands. If a command
in the copied configuration file replaces a command in the existing configuration file, the existing
command is erased. For example, if the copied configuration file contains a different IP address in a
particular command than the existing configuration, the IP address in the copied configuration is
used. However, some commands in the existing configuration might not be replaced or negated. In
this case, the resulting configuration file is a mixture of the existing configuration file and the copied
configuration file, with the copied configuration file having precedence.
To restore a configuration file to an exact copy of a file stored on a server, copy the configuration file
directly to the startup configuration (by using the copy {ftp: | rcp: | tftp:} nvram:startup-config
privileged EXEC command), and reload the switch.
Configuration File Types and Location
Startup configuration files are used during system startup to configure the software. Running
configuration files contain the current configuration of the software. The two configuration files can be
different. For example, you might want to change the configuration for a short time period rather than
permanently. In this case, you would change the running configuration but not save the configuration by
using the copy running-config startup-config privileged EXEC command.
The running configuration is saved in DRAM; the startup configuration is stored in the NVRAM section
of Flash memory.
B-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Creating a Configuration File By Using a Text Editor
When creating a configuration file, you must list commands logically so that the system can respond
appropriately. This is one method of creating a configuration file:
Step 1 Copy an existing configuration from a switch to a server.
For more information, see the Downloading the Configuration File By Using TFTP section on
page B-11, the Downloading a Configuration File By Using FTP section on page B-13, or the
Downloading a Configuration File By Using RCP section on page B-17.
Step 2 Open the configuration file in a text editor, such as vi or emacs on UNIX or Notepad on a PC.
Step 3 Extract the portion of the configuration file with the desired commands, and save it in a new file.
Step 4 Copy the configuration file to the appropriate server location. For example, copy the file to the TFTP
directory on the workstation (usually /tftpboot on a UNIX workstation).
Step 5 Make sure the permissions on the file are set to world-read.
Copying Configuration Files By Using TFTP
You can configure the switch by using configuration files you create, download from another switch, or
download from a TFTP server. You can copy (upload) configuration files to a TFTP server for storage.
This section includes this information:
Preparing to Download or Upload a Configuration File By Using TFTP, page B-10
Downloading the Configuration File By Using TFTP, page B-11
Uploading the Configuration File By Using TFTP, page B-12
Preparing to Download or Upload a Configuration File By Using TFTP
Before you begin downloading or uploading a configuration file by using TFTP, do these tasks:
Ensure that the workstation acting as the TFTP server is properly configured. On a Sun workstation,
make sure that the /etc/inetd.conf file contains this line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Make sure that the /etc/services file contains this line:
tftp 69/udp
Note You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services
files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot
command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). For
more information on the TFTP daemon, refer to the documentation for your workstation.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in
the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity
to the TFTP server by using the ping command.
B-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Ensure that the configuration file to be downloaded is in the correct directory on the TFTP server
(usually /tftpboot on a UNIX workstation).
For download operations, ensure that the permissions on the file are set correctly. The permission
on the file should be world-read.
Before uploading the configuration file, you might need to create an empty file on the TFTP server.
To create an empty file, enter the touch filename command, where filename is the name of the file
you will use when uploading it to the server.
During upload operations, if you are overwriting an existing file (including an empty file, if you had
to create one) on the server, ensure that the permissions on the file are set correctly. Permissions on
the file should be world-write.
Downloading the Configuration File By Using TFTP
To configure the switch by using a configuration file downloaded from a TFTP server, follow these
steps:
Step 1 Copy the configuration file to the appropriate TFTP directory on the workstation.
Step 2 Verify that the TFTP server is properly configured by referring to the Preparing to Download or Upload
a Configuration File By Using TFTP section on page B-10.
Step 3 Log into the switch through the console port or a Telnet session.
Step 4 Download the configuration file from the TFTP server to configure the switch.
Specify the IP address or host name of the TFTP server and the name of the file to download.
Use one of these privileged EXEC commands:
copy tftp:[[[//location]/directory]/filename] system:running-config
copy tftp:[[[//location]/directory]/filename] nvram:startup-config
The configuration file downloads, and the commands are executed as the file is parsed line-by-line.
This example shows how to configure the software from the file tokyo-confg at IP address 172.16.2.155:
Switch# copy tftp://172.16.2.155/tokyo-confg system:running-config
Configure using tokyo-confg from 172.16.2.155? [confirm] y
Booting tokyo-confg from 172.16.2.155:!!! [OK - 874/16000 bytes]
B-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Uploading the Configuration File By Using TFTP
To upload a configuration file from a switch to a TFTP server for storage, follow these steps:
Step 1 Verify that the TFTP server is properly configured by referring to the Preparing to Download or Upload
a Configuration File By Using TFTP section on page B-10.
Step 2 Log into the switch through the console port or a Telnet session.
Step 3 Upload the switch configuration to the TFTP server. Specify the IP address or host name of the TFTP
server and the destination filename.
Use one of these privileged EXEC commands:
copy system:running-config tftp:[[[//location]/directory]/filename]
copy nvram:startup-config tftp:[[[//location]/directory]/filename]
The file is uploaded to the TFTP server.
This example shows how to upload a configuration file from a switch to a TFTP server:
Switch# copy system:running-config tftp://172.16.2.155/tokyo-confg
Write file tokyo-confg on host 172.16.2.155? [confirm] y
#
Writing tokyo-confg!!! [OK]
Copying Configuration Files By Using FTP
You can copy configuration files to or from an FTP server.
The FTP protocol requires a client to send a remote username and password on each FTP request to a
server. When you copy a configuration file from the switch to a server by using FTP, the Cisco IOS
software sends the first valid username in this list:
The username specified in the copy command if a username is specified.
The username set by the ip ftp username username global configuration command if the command
is configured.
Anonymous.
The switch sends the first valid password in this list:
The password specified in the copy command if a password is specified.
The password set by the ip ftp password password global configuration command if the command
is configured.
The switch forms a password named [email protected]. The variable username is the
username associated with the current session, switchname is the configured host name, and domain
is the domain of the switch.
The username and password must be associated with an account on the FTP server. If you are writing to
the server, the FTP server must be properly configured to accept your FTP write request.
Use the ip ftp username and ip ftp password commands to specify a username and password for all
copies. Include the username in the copy command if you want to specify only a username for that copy
operation.
B-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
If the server has a directory structure, the configuration file is written to or copied from the directory
associated with the username on the server. For example, if the configuration file resides in the home
directory of a user on the server, specify that user's name as the remote username.
For more information, refer to the documentation for your FTP server.
This section includes this information:
Preparing to Download or Upload a Configuration File By Using FTP, page B-13
Downloading a Configuration File By Using FTP, page B-13
Uploading a Configuration File By Using FTP, page B-15
Preparing to Download or Upload a Configuration File By Using FTP
Before you begin downloading or uploading a configuration file by using FTP, do these tasks:
Ensure that the switch has a route to the FTP server. The switch and the FTP server must be in the
same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to
the FTP server by using the ping command.
If you are accessing the switch through the console or a Telnet session and you do not have a valid
username, make sure that the current FTP username is the one that you want to use for the FTP
download. You can enter the show users privileged EXEC command to view the valid username. If
you do not want to use this username, create a new FTP username by using the ip ftp username
username global configuration command during all copy operations. The new username is stored in
NVRAM. If you are accessing the switch through a Telnet session and you have a valid username,
this username is used, and you do not need to set the FTP username. Include the username in the
copy command if you want to specify a username for only that copy operation.
When you upload a configuration file to the FTP server, it must be properly configured to accept the
write request from the user on the switch.
For more information, refer to the documentation for your FTP server.
Downloading a Configuration File By Using FTP
Beginning in privileged EXEC mode, follow these steps to download a configuration file by using FTP:
Command Purpose
Step1 Verify that the FTP server is properly configured by referring
to the Preparing to Download or Upload a Configuration
File By Using FTP section on page B-13.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode on the switch.
This step is required only if you override the default remote
username or password (see Steps 4, 5, and 6).
Step4 ip ftp username username (Optional) Change the default remote username.
Step5 ip ftp password password (Optional) Change the default password.
B-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
This example shows how to copy a configuration file named host1-confg from the netadmin1 directory
on the remote server with an IP address of 172.16.101.101 and to load and run those commands on the
switch:
Switch# copy ftp://netadmin1:[email protected]/host1-confg system:running-config
Configure using host1-confg from 172.16.101.101? [confirm]
Connected to 172.16.101.101
Loading 1112 byte file host1-confg:![OK]
Switch#
%SYS-5-CONFIG: Configured from host1-config by ftp from 172.16.101.101
This example shows how to specify a remote username of netadmin1. The software copies the
configuration file host2-confg from the netadmin1 directory on the remote server with an IP address
of 172.16.101.101 to the switch startup configuration.
Switch# configure terminal
Switch(config)# ip ftp username netadmin1
Switch(config)# ip ftp password mypass
Switch(config)# end
Switch# copy ftp: nvram:startup-config
Address of remote host [255.255.255.255]? 172.16.101.101
Name of configuration file[rtr2-confg]? host2-confg
Configure using host2-confg from 172.16.101.101?[confirm]
Connected to 172.16.101.101
Loading 1112 byte file host2-confg:![OK]
[OK]
Switch#
%SYS-5-CONFIG_NV:Non-volatile store configured from host2-config by ftp from
172.16.101.101
Step6 end Return to privileged EXEC mode.
Step7 copy
ftp:[[[//[username[:password]@]location]/directory]
/filename] system:running-config
or
copy
ftp:[[[//[username[:password]@]location]/directory]
/filename] nvram:startup-config
Using FTP, copy the configuration file from a network server
to the running configuration or to the startup configuration
file.
Command Purpose
B-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Uploading a Configuration File By Using FTP
Beginning in privileged EXEC mode, follow these steps to upload a configuration file by using FTP:
This example shows how to copy the running configuration file named switch2-confg to the netadmin1
directory on the remote host with an IP address of 172.16.101.101:
Switch# copy system:running-config ftp://netadmin1:[email protected]/switch2-confg
Write file switch2-confg on host 172.16.101.101?[confirm]
Building configuration...[OK]
Connected to 172.16.101.101
Switch#
This example shows how to store a startup configuration file on a server by using FTP to copy the file:
Switch# configure terminal
Switch(config)# ip ftp username netadmin2
Switch(config)# ip ftp password mypass
Switch(config)# end
Switch# copy nvram:startup-config ftp:
Remote host[]? 172.16.101.101
Name of configuration file to write [switch2-confg]?
Write file switch2-confg on host 172.16.101.101?[confirm]
![OK]
Command Purpose
Step1 Verify that the FTP server is properly configured by
referring to the Preparing to Download or Upload a
Configuration File By Using FTP section on page B-13.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username or password (see Steps 4, 5, and 6).
Step4 ip ftp username username (Optional) Change the default remote username.
Step5 ip ftp password password (Optional) Change the default password.
Step6 end Return to privileged EXEC mode.
Step7 copy system:running-config
ftp:[[[//[username[:password]@]location]/directory]
/filename]
or
copy nvram:startup-config
ftp:[[[//[username[:password]@]location]/directory]
/filename]
Using FTP, store the switch running or startup configuration
file to the specified location.
B-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Copying Configuration Files By Using RCP
The Remote Copy Protocol (RCP) provides another method of downloading, uploading, and copying
configuration files between remote hosts and the switch. Unlike TFTP, which uses User Datagram
Protocol (UDP), a connectionless protocol, RCP uses TCP, which is connection-oriented.
To use RCP to copy files, the server from or to which you will be copying files must support RCP. The
RCP copy commands rely on the rsh server (or daemon) on the remote system. To copy files by using
RCP, you do not need to create a server for file distribution as you do with TFTP. You only need to have
access to a server that supports the remote shell (rsh). (Most UNIX systems support rsh.) Because you
are copying a file from one place to another, you must have read permission on the source file and write
permission on the destination file. If the destination file does not exist, RCP creates it for you.
The RCP requires a client to send a remote username with each RCP request to a server. When you copy
a configuration file from the switch to a server, the Cisco IOS software sends the first valid username in
this list:
The username specified in the copy command if a username is specified.
The username set by the ip rcmd remote-username username global configuration command if the
command is configured.
The remote username associated with the current TTY (terminal) process. For example, if the user
is connected to the router through Telnet and was authenticated through the username command,
the switch software sends the Telnet username as the remote username.
The switch host name.
For a successful RCP copy request, you must define an account on the network server for the remote
username. If the server has a directory structure, the configuration file is written to or copied from the
directory associated with the remote username on the server. For example, if the configuration file is in
the home directory of a user on the server, specify that user's name as the remote username.
This section includes this information:
Preparing to Download or Upload a Configuration File By Using RCP, page B-16
Downloading a Configuration File By Using RCP, page B-17
Uploading a Configuration File By Using RCP, page B-18
Preparing to Download or Upload a Configuration File By Using RCP
Before you begin downloading or uploading a configuration file by using RCP, do these tasks:
Ensure that the workstation acting as the RCP server supports the remote shell (rsh).
Ensure that the switch has a route to the RCP server. The switch and the server must be in the same
subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the
RCP server by using the ping command.
If you are accessing the switch through the console or a Telnet session and you do not have a valid
username, make sure that the current RCP username is the one that you want to use for the RCP
download. You can enter the show users privileged EXEC command to view the valid username. If
you do not want to use this username, create a new RCP username by using the ip rcmd
remote-username username global configuration command to be used during all copy operations.
The new username is stored in NVRAM. If you are accessing the switch through a Telnet session
and you have a valid username, this username is used, and you do not need to set the RCP username.
Include the username in the copy command if you want to specify a username for only that copy
operation.
B-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
When you upload a file to the RCP server, it must be properly configured to accept the RCP write
request from the user on the switch. For UNIX systems, you must add an entry to the .rhosts file for
the remote user on the RCP server. For example, suppose that the switch contains these
configuration lines:
hostname Switch1
ip rcmd remote-username User0
If the switch IP address translates to Switch1.company.com, the .rhosts file for User0 on the RCP
server should contain this line:
Switch1.company.com Switch1
For more information, refer to the documentation for your RCP server.
Downloading a Configuration File By Using RCP
Beginning in privileged EXEC mode, follow these steps to download a configuration file by using RCP:
This example shows how to copy a configuration file named host1-confg from the netadmin1 directory
on the remote server with an IP address of 172.16.101.101 and load and run those commands on the
switch:
Switch# copy rcp://[email protected]/host1-confg system:running-config
Configure using host1-confg from 172.16.101.101? [confirm]
Connected to 172.16.101.101
Loading 1112 byte file host1-confg:![OK]
Switch#
%SYS-5-CONFIG: Configured from host1-config by rcp from 172.16.101.101
Command Purpose
Step1 Verify that the RCP server is properly configured by
referring to the Preparing to Download or Upload a
Configuration File By Using RCP section on page B-16.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username (see Steps 4 and 5).
Step4 ip rcmd remote-username username (Optional) Specify the remote username.
Step5 end Return to privileged EXEC mode.
Step6 copy
rcp:[[[//[username@]location]/directory]/filename]
system:running-config
or
copy
rcp:[[[//[username@]location]/directory]/filename]
nvram:startup-config
Using RCP, copy the configuration file from a network
server to the running configuration or to the startup
configuration file.
B-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Configuration Files
This example shows how to specify a remote username of netadmin1. Then it copies the configuration
file host2-confg from the netadmin1 directory on the remote server with an IP address of 172.16.101.101
to the startup configuration:
Switch# configure terminal
Switch(config)# ip rcmd remote-username netadmin1
Switch(config)# end
Switch# copy rcp: nvram:startup-config
Address of remote host [255.255.255.255]? 172.16.101.101
Name of configuration file[rtr2-confg]? host2-confg
Configure using host2-confg from 172.16.101.101?[confirm]
Connected to 172.16.101.101
Loading 1112 byte file host2-confg:![OK]
[OK]
Switch#
%SYS-5-CONFIG_NV:Non-volatile store configured from host2-config by rcp from
172.16.101.101
Uploading a Configuration File By Using RCP
Beginning in privileged EXEC mode, follow these steps to upload a configuration file by using RCP:
This example shows how to copy the running configuration file named switch2-confg to the netadmin1
directory on the remote host with an IP address of 172.16.101.101:
Switch# copy system:running-config rcp://[email protected]/switch2-confg
Write file switch-confg on host 172.16.101.101?[confirm]
Building configuration...[OK]
Connected to 172.16.101.101
Switch#
Command Purpose
Step1 Verify that the RCP server is properly configured by
referring to the Preparing to Download or Upload a
Configuration File By Using RCP section on page B-16.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username (see Steps 4 and 5).
Step4 ip rcmd remote-username username (Optional) Specify the remote username.
Step5 end Return to privileged EXEC mode.
Step6 copy system:running-config
rcp:[[[//[username@]location]/directory]/filename]
or
copy nvram:startup-config
rcp:[[[//[username@]location]/directory]/filename]
Using RCP, copy the configuration file from a switch running
or startup configuration file to a network server.
B-19
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
This example shows how to store a startup configuration file on a server:
Switch# configure terminal
Switch(config)# ip rcmd remote-username netadmin2
Switch(config)# end
Switch# copy nvram:startup-config rcp:
Remote host[]? 172.16.101.101
Name of configuration file to write [switch2-confg]?
Write file switch2-confg on host 172.16.101.101?[confirm]
![OK]
Clearing Configuration Information
You can clear the configuration information from the startup configuration. If you reboot the switch with
no startup configuration, the switch enters the setup program so that you can reconfigure the switch with
all new settings.
Clearing the Startup Configuration File
To clear the contents of your startup configuration, use the erase nvram: or the erase startup-config
privileged EXEC command.
Caution You cannot restore the startup configuration file after it has been deleted.
Deleting a Stored Configuration File
To delete a saved configuration from Flash memory, use the delete flash:filename privileged EXEC
command. Depending on the setting of the file prompt global configuration command, you might be
prompted for confirmation before you delete a file. By default, the switch prompts for confirmation on
destructive file operations. For more information about the file prompt command, refer to the Cisco IOS
Command Reference for Release 12.1.
Caution You cannot restore a file after it has been deleted.
Working with Software Images
This section describes how to archive (download and upload) software image files, which contain the
system software, IOS code, and the web management HTML files.
You download a switch image file from a TFTP, FTP, or RCP server to upgrade the switch software. You
can replace the current image with the new one or keep the current image in Flash memory after a
download.
You upload a switch image file to a TFTP, FTP, or RCP server for backup purposes. You can use this
uploaded image for future downloads to the same switch or another of the same type.
The protocol you use depends on which type of server you are using. The FTP and RCP transport
mechanisms provide faster performance and more reliable delivery of data than TFTP. These
improvements are possible because FTP and RCP are built on and use the Transmission Control
Protocol/Internet Protocol (TCP/IP) stack, which is connection-oriented.
B-20
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
This section includes this information:
Image Location on the Switch, page B-20
tar File Format of Images on a Server or Cisco.com, page B-20
Copying Image Files By Using TFTP, page B-21
Copying Image Files By Using FTP, page B-25
Copying Image Files By Using RCP, page B-29
Note For a list of software images and the supported upgrade paths, refer to the release notes that shipped
with your switch.
Image Location on the Switch
The IOS image is stored as a .bin file in a directory that shows the version number. A subdirectory
contains the HTML files needed for web management. The image is stored on the system board Flash
memory (flash:).
You can use the show version privileged EXEC command to see the software version that is currently
running on your switch. In the display, check the line that begins with System image file is... . It
shows the directory name in Flash memory where the image is stored.
You can also use the dir filesystem: privileged EXEC command to see the directory names of other
software images you might have stored in Flash memory.
tar File Format of Images on a Server or Cisco.com
Software images located on a server or downloaded from Cisco.com are provided in a tar file format,
which contains these files:
info file
The info file is always at the beginning of the tar file and contains information about the files within
it.
IOS image
Web management files needed by the HTTP server on the switch
info.ver file
The info.ver file is always at the end of the tar file and contains the same information as the info
file. Because it is the last file in the tar file, its existence means that all files in the image have been
downloaded.
This example shows the information contained in the info and info.ver files:
version_suffix: i5q3l2-121-6.EA1
version_directory: c3550-i5q3l2-mz.121-6.EA1
image_name: c3550-i5q3l2-mz.121-6.EA1.bin
ios_image_file_size: 3049472
total_image_file_size: 4551168
image_feature: LAYER_3|MIN_DRAM_MEG=64
image_family: C3550
info_end:
B-21
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
Copying Image Files By Using TFTP
You can download a switch image from a TFTP server or upload the image from the switch to a TFTP
server.
You download a switch image file from a server to upgrade the switch software. You can overwrite the
current image with the new one or keep the current image after a download.
You upload a switch image file to a server for backup purposes; this uploaded image can be used for
future downloads to the same or another switch of the same type.
This section includes this information:
Preparing to Download or Upload an Image File By Using TFTP, page B-22
Downloading an Image File By Using TFTP, page B-22
Uploading an Image File By Using TFTP, page B-24
TableB-3 info and info.ver File Description
Field Description
version_suffix Specifies the IOS image version string suffix
version_directory Specifies the directory where the IOS image and the HTML subdirectory are installed
image_name Specifies the name of the IOS image within the tar file
ios_image_file_size Specifies the IOS image size in the tar file, which is an approximate measure of how much
Flash space is required to hold just the IOS image
total_image_file_size Specifies the size of all the images (the IOS image and the HTML files) in the tar file, which
is an approximate measure of how much Flash space is required to hold them
image_feature Describes the core functionality of the image
image_family Describes the family of products on which the software can be installed
image_min_dram Specifies the minimum amount of DRAM needed to run this image
B-22
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
Preparing to Download or Upload an Image File By Using TFTP
Before you begin downloading or uploading an image file by using TFTP, do these tasks:
Ensure that the workstation acting as the TFTP server is properly configured. On a Sun workstation,
make sure that the /etc/inetd.conf file contains this line:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Make sure that the /etc/services file contains this line:
tftp 69/udp
Note You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services
files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot
command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). For
more information on the TFTP daemon, refer to the documentation for your workstation.
Ensure that the switch has a route to the TFTP server. The switch and the TFTP server must be in
the same subnetwork if you do not have a router to route traffic between subnets. Check connectivity
to the TFTP server by using the ping command.
Ensure that the image to be downloaded is in the correct directory on the TFTP server (usually
/tftpboot on a UNIX workstation).
For download operations, ensure that the permissions on the file are set correctly. The permission
on the file should be world-read.
Before uploading the image file, you might need to create an empty file on the TFTP server. To
create an empty file, enter the touch filename command, where filename is the name of the file you
will use when uploading the image to the server.
During upload operations, if you are overwriting an existing file (including an empty file, if you had
to create one) on the server, ensure that the permissions on the file are set correctly. Permissions on
the file should be world-write.
Downloading an Image File By Using TFTP
You can download a new image file and replace the current image or keep the current image.
Beginning in privileged EXEC mode, follow Steps 1 through 3 to download a new image from a TFTP
server and overwrite the existing image. To keep the current image, skip Step 3.
Command Purpose
Step1 Copy the image to the appropriate TFTP directory on the
workstation. Make sure the TFTP server is properly configured;
see the Preparing to Download or Upload an Image File By Using
TFTP section on page B-22.
Step2 Log into the switch through the console port or a Telnet session.
B-23
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
The download algorithm verifies that the image is appropriate for the switch model and that enough
DRAM is present, or it aborts the process and reports an error. If you specify the /overwrite option, the
download algorithm removes the existing image on the Flash device whether or not it is the same as the
new one, downloads the new image, and then reloads the software.
Note If the Flash device has sufficient space to hold two images and you want to overwrite one of these
images with the same version, you must specify the /overwrite option.
If you specify the /leave-old-sw, the existing files are not removed. If there is not enough space to install
the new image and keep the current running image, the download process stops, and an error message is
displayed.
The algorithm installs the downloaded image on the system board Flash device (flash:). The image is
placed into a new directory named with the software version string, and the BOOT environment variable
is updated to point to the newly installed image.
If you kept the old image during the download process (you specified the /leave-old-sw keyword), you
can remove it by entering the delete /force /recursive filesystem:/file-url privileged EXEC command.
For filesystem, use flash: for the system board Flash device. For file-url, enter the directory name of the
old image. All the files in the directory and the directory are removed.
Caution For the download and upload algorithms to operate properly, do not rename image names.
Step3 archive download-sw /overwrite /reload
tftp:[[//location]/directory]/image-name.tar
Download the image file from the TFTP server to the switch, and
overwrite the current image.
The /overwrite option overwrites the software image in Flash
with the downloaded image.
The /reload option reloads the system after downloading the
image unless the configuration has been changed and not been
saved.
For //location, specify the IP address of the TFTP server.
For /directory/image-name.tar, specify the directory
(optional) and the image to download. Directory and image
names are case sensitive.
Step4 archive download-sw /leave-old-sw /reload
tftp:[[//location]/directory]/image-name.tar
Download the image file from the TFTP server to the switch, and
keep the current image.
The /leave-old-sw option keeps the old software version after
a download.
The /reload option reloads the system after downloading the
image unless the configuration has been changed and not been
saved.
For //location, specify the IP address of the TFTP server.
For /directory/image-name.tar, specify the directory
(optional) and the image to download. Directory and image
names are case sensitive.
Command Purpose
B-24
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
Uploading an Image File By Using TFTP
You can upload an image from the switch to a TFTP server. You can later download this image to the
switch or to another switch of the same type.
The upload feature is available only if the HTML pages associated with the Cluster Management Suite
(CMS) have been installed with the existing image.
Beginning in privileged EXEC mode, follow these steps to upload an image to a TFTP server:
The archive upload-sw privileged EXEC command builds an image file on the server by uploading
these files in order: info, the IOS image, the HTML files, and info.ver. After these files are uploaded,
the upload algorithm creates the tar file format.
Caution For the download and upload algorithms to operate properly, do not rename image names.
Command Purpose
Step1 Make sure the TFTP server is properly configured; see the
Preparing to Download or Upload an Image File By Using TFTP
section on page B-22.
Step1 Log into the switch through the console port or a Telnet session.
Step2 archive upload-sw
tftp:[[//location]/directory]/image-name.tar
Upload the currently running switch image to the TFTP server.
For //location, specify the IP address of the TFTP server.
For /directory/image-name.tar, specify the directory
(optional) and the name of the software image to be uploaded.
Directory and image names are case sensitive. The
image-name.tar is the name of the software image to be stored
on the server.
B-25
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
Copying Image Files By Using FTP
You can download a switch image from an FTP server or upload the image from the switch to an FTP
server.
You download a switch image file from a server to upgrade the switch software. You can overwrite the
current image with the new one or keep the current image after a download.
You upload a switch image file to a server for backup purposes. You can use this uploaded image for
future downloads to the switch or another switch of the same type.
This section includes this information:
Preparing to Download or Upload an Image File By Using FTP, page B-25
Downloading an Image File By Using FTP, page B-26
Uploading an Image File By Using FTP, page B-28
Preparing to Download or Upload an Image File By Using FTP
You can copy images files to or from an FTP server.
The FTP protocol requires a client to send a remote username and password on each FTP request to a
server. When you copy an image file from the switch to a server by using FTP, the Cisco IOS software
sends the first valid username in this list:
The username specified in the archive download-sw or archive upload-sw privileged EXEC
command if a username is specified.
The username set by the ip ftp username username global configuration command if the command
is configured.
Anonymous.
The switch sends the first valid password in this list:
The password specified in the archive download-sw or archive upload-sw privileged EXEC
command if a password is specified.
The password set by the ip ftp password password global configuration command if the command
is configured.
The switch forms a password named [email protected]. The variable username is the
username associated with the current session, switchname is the configured host name, and domain
is the domain of the switch.
The username and password must be associated with an account on the FTP server. If you are writing to
the server, the FTP server must be properly configured to accept the FTP write request from you.
Use the ip ftp username and ip ftp password commands to specify a username and password for all
copies. Include the username in the archive download-sw or archive upload-sw privileged EXEC
command if you want to specify a username only for that operation.
If the server has a directory structure, the image file is written to or copied from the directory associated
with the username on the server. For example, if the image file resides in the home directory of a user
on the server, specify that user's name as the remote username.
B-26
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
Before you begin downloading or uploading an image file by using FTP, do these tasks:
Ensure that the switch has a route to the FTP server. The switch and the FTP server must be in the
same subnetwork if you do not have a router to route traffic between subnets. Check connectivity to
the FTP server by using the ping command.
If you are accessing the switch through the console or a Telnet session and you do not have a valid
username, make sure that the current FTP username is the one that you want to use for the FTP
download. You can enter the show users privileged EXEC command to view the valid username. If
you do not want to use this username, create a new FTP username by using the ip ftp username
username global configuration command. This new name will be used during all archive operations.
The new username is stored in NVRAM. If you are accessing the switch through a Telnet session
and you have a valid username, this username is used, and you do not need to set the FTP username.
Include the username in the archive download-sw or archive upload-sw privileged EXEC
command if you want to specify a username for that operation only.
When you upload an image file to the FTP server, it must be properly configured to accept the write
request from the user on the switch.
For more information, refer to the documentation for your FTP server.
Downloading an Image File By Using FTP
You can download a new image file and overwrite the current image or keep the current image.
Beginning in privileged EXEC mode, follow Steps 1 through 7 to download a new image from an FTP
server and overwrite the existing image. To keep the current image, skip Step 7.
Command Purpose
Step1 Verify that the FTP server is properly configured by referring
to the Preparing to Download or Upload an Image File By
Using FTP section on page B-25.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username or password (see Steps 4, 5, and 6).
Step4 ip ftp username username (Optional) Change the default remote username.
Step5 ip ftp password password (Optional) Change the default password.
Step6 end Return to privileged EXEC mode.
B-27
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
The download algorithm verifies that the image is appropriate for the switch model and that enough
DRAM is present, or it aborts the process and reports an error. If you specify the /overwrite option, the
download algorithm removes the existing image on the Flash device, whether or not it is the same as the
new one, downloads the new image, and then reloads the software.
Note If the Flash device has sufficient space to hold two images and you want to overwrite one of these
images with the same version, you must specify the /overwrite option.
If you specify the /leave-old-sw, the existing files are not removed. If there is not enough space to install
the new image and keep the running image, the download process stops, and an error message is
displayed.
Step7 archive download-sw /overwrite /reload
ftp:[[//username[:password]@location]/directory]
/image-name.tar
Download the image file from the FTP server to the switch,
and overwrite the current image.
The /overwrite option overwrites the software image in
Flash with the downloaded image.
The /reload option reloads the system after downloading
the image unless the configuration has been changed and
not been saved.
For //username[:password], specify the username and
password; these must be associated with an account on the
FTP server. For more information, see the Preparing to
Download or Upload an Image File By Using FTP
section on page B-25.
For @location, specify the IP address of the FTP server.
For directory/image-name.tar, specify the directory
(optional) and the image to download. Directory and
image names are case sensitive.
Step8 archive download-sw /leave-old-sw /reload
ftp:[[//username[:password]@location]/directory]
/image-name.tar
Download the image file from the FTP server to the switch,
and keep the current image.
The /leave-old-sw option keeps the old software version
after a download.
The /reload option reloads the system after downloading
the image unless the configuration has been changed and
not been saved.
For //username[:password], specify the username and
password. These must be associated with an account on
the FTP server. For more information, see the Preparing
to Download or Upload an Image File By Using FTP
section on page B-25.
For @location, specify the IP address of the FTP server.
For directory/image-name.tar, specify the directory
(optional) and the image to download. Directory and
image names are case sensitive.
Command Purpose
B-28
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
The algorithm installs the downloaded image onto the system board Flash device (flash:). The image is
placed into a new directory named with the software version string, and the BOOT environment variable
is updated to point to the newly installed image.
If you kept the old image during the download process (you specified the /leave-old-sw keyword), you
can remove it by entering the delete /force /recursive filesystem:/file-url privileged EXEC command.
For filesystem, use flash: for the system board Flash device. For file-url, enter the directory name of the
old software image. All the files in the directory and the directory are removed.
Caution For the download and upload algorithms to operate properly, do not rename image names.
Uploading an Image File By Using FTP
You can upload an image from the switch to an FTP server. You can later download this image to the
same switch or to another switch of the same type.
The upload feature is available only if the HTML pages associated with the Cluster Management Suite
(CMS) have been installed with the existing image.
Beginning in privileged EXEC mode, follow these steps to upload an image to an FTP server:
Command Purpose
Step1 Verify that the FTP server is properly configured by referring
to the Preparing to Download or Upload a Configuration
File By Using FTP section on page B-13.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username or password (see Steps 4, 5, and 6).
Step4 ip ftp username username (Optional) Change the default remote username.
Step5 ip ftp password password (Optional) Change the default password.
Step6 end Return to privileged EXEC mode.
Step7 archive upload-sw
ftp:[[//[username[:password]@]location]/directory]/
image-name.tar
Upload the currently running switch image to the FTP server.
For //username:password, specify the username and
password. These must be associated with an account on
the FTP server. For more information, see the
Preparing to Download or Upload an Image File By
Using FTP section on page B-25.
For @location, specify the IP address of the FTP server.
For /directory/image-name.tar, specify the directory
(optional) and the name of the software image to be
uploaded. Directory and image names are case sensitive.
The image-name.tar is the name of the software image
to be stored on the server.
B-29
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
The archive upload-sw command builds an image file on the server by uploading these files in order:
info, the IOS image, the HTML files, and info.ver. After these files are uploaded, the upload algorithm
creates the tar file format.
Caution For the download and upload algorithms to operate properly, do not rename image names.
Copying Image Files By Using RCP
You can download a switch image from an RCP server or upload the image from the switch to an RCP
server.
You download a switch image file from a server to upgrade the switch software. You can overwrite the
current image with the new one or keep the current image after a download.
You upload a switch image file to a server for backup purposes. You can use this uploaded image for
future downloads to the same switch or another of the same type.
This section includes this information:
Preparing to Download or Upload an Image File By Using RCP, page B-29
Downloading an Image File By Using RCP, page B-30
Uploading an Image File By Using RCP, page B-32
Preparing to Download or Upload an Image File By Using RCP
RCP provides another method of downloading and uploading image files between remote hosts and the
switch. Unlike TFTP, which uses User Datagram Protocol (UDP), a connectionless protocol, RCP uses
TCP, which is connection-oriented.
To use RCP to copy files, the server from or to which you will be copying files must support RCP. The
RCP copy commands rely on the rsh server (or daemon) on the remote system. To copy files by using
RCP, you do not need to create a server for file distribution as you do with TFTP. You only need to have
access to a server that supports the remote shell (rsh). (Most UNIX systems support rsh.) Because you
are copying a file from one place to another, you must have read permission on the source file and write
permission on the destination file. If the destination file does not exist, RCP creates it for you.
RCP requires a client to send a remote username on each RCP request to a server. When you copy an
image from the switch to a server by using RCP, the Cisco IOS software sends the first valid username
in this list:
The username specified in the archive download-sw or archive upload-sw privileged EXEC
command if a username is specified.
The username set by the ip rcmd remote-username username global configuration command if the
command is entered.
The remote username associated with the current TTY (terminal) process. For example, if the user
is connected to the router through Telnet and was authenticated through the username command,
the switch software sends the Telnet username as the remote username.
The switch host name.
B-30
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
For the RCP copy request to execute successfully, an account must be defined on the network server for
the remote username. If the server has a directory structure, the image file is written to or copied from
the directory associated with the remote username on the server. For example, if the image file resides
in the home directory of a user on the server, specify that users name as the remote username.
Before you begin downloading or uploading an image file by using RCP, do these tasks:
Ensure that the workstation acting as the RCP server supports the remote shell (rsh).
Ensure that the switch has a route to the RCP server. The switch and the server must be in the same
subnetwork if you do not have a router to route traffic between subnets. Check connectivity to the
RCP server by using the ping command.
If you are accessing the switch through the console or a Telnet session and you do not have a valid
username, make sure that the current RCP username is the one that you want to use for the RCP
download. You can enter the show users privileged EXEC command to view the valid username. If
you do not want to use this username, create a new RCP username by using the ip rcmd
remote-username username global configuration command to be used during all archive
operations. The new username is stored in NVRAM. If you are accessing the switch through a Telnet
session and you have a valid username, this username is used, and there is no need to set the RCP
username. Include the username in the archive download-sw or archive upload-sw privileged
EXEC command if you want to specify a username only for that operation.
When you upload an image to the RCP to the server, it must be properly configured to accept the
RCP write request from the user on the switch. For UNIX systems, you must add an entry to the
.rhosts file for the remote user on the RCP server. For example, suppose the switch contains these
configuration lines:
hostname Switch1
ip rcmd remote-username User0
If the switch IP address translates to Switch1.company.com, the .rhosts file for User0 on the RCP
server should contain this line:
Switch1.company.com Switch1
For more information, refer to the documentation for your RCP server.
Downloading an Image File By Using RCP
You can download a new image file and replace or keep the current image.
Beginning in privileged EXEC mode, follow Steps 1 through 6 to download a new image from an RCP
server and overwrite the existing image. To keep the current image, skip Step 6.
Command Purpose
Step1 Verify that the RCP server is properly configured by
referring to the Preparing to Download or Upload an Image
File By Using RCP section on page B-29.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username (see Steps 4 and 5).
Step4 ip rcmd remote-username username (Optional) Specify the remote username.
B-31
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
The download algorithm verifies that the image is appropriate for the switch model and that enough
DRAM is present, or it aborts the process and reports an error. If you specify the /overwrite option, the
download algorithm removes the existing image on the Flash device whether or not it is the same as the
new one, downloads the new image, and then reloads the software.
Note If the Flash device has sufficient space to hold two images and you want to overwrite one of these
images with the same version, you must specify the /overwrite option.
Step5 end Return to privileged EXEC mode.
Step6 archive download-sw /overwrite /reload
rcp:[[[//[username@]location]/directory]/image-na
me.tar]
Download the image file from the RCP server to the switch,
and overwrite the current image.
The /overwrite option overwrites the software image in
Flash with the downloaded image.
The /reload option reloads the system after
downloading the image unless the configuration has
been changed and not been saved.
For //username, specify the username. For the RCP
copy request to execute successfully, an account must
be defined on the network server for the remote
username. For more information, see the Preparing to
Download or Upload an Image File By Using RCP
section on page B-29.
For @location, specify the IP address of the RCP server.
For /directory/image-name.tar, specify the directory
(optional) and the image to download. Directory and
image names are case sensitive.
Step7 archive download-sw /leave-old-sw /reload
rcp:[[[//[username@]location]/directory]/image-na
me.tar]
Download the image file from the RCP server to the switch,
and keep the current image.
The /leave-old-sw option keeps the old software version
after a download.
The /reload option reloads the system after
downloading the image unless the configuration has
been changed and not been saved.
For //username, specify the username. For the RCP
copy request to execute, an account must be defined on
the network server for the remote username. For more
information, see the Preparing to Download or Upload
an Image File By Using RCP section on page B-29.
For @location, specify the IP address of the RCP server.
For /directory]/image-name.tar, specify the directory
(optional) and the image to download. Directory and
image names are case sensitive.
Command Purpose
B-32
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
If you specify the /leave-old-sw, the existing files are not removed. If there is not enough room to install
the new image an keep the running image, the download process stops, and an error message is
displayed.
The algorithm installs the downloaded image onto the system board Flash device (flash:). The image is
placed into a new directory named with the software version string, and the BOOT environment variable
is updated to point to the newly installed image.
If you kept the old software during the download process (you specified the /leave-old-sw keyword),
you can remove it by entering the delete /force /recursive filesystem:/file-url privileged EXEC
command. For filesystem, use flash: for the system board Flash device. For file-url, enter the directory
name of the old software image. All the files in the directory and the directory are removed.
Caution For the download and upload algorithms to operate properly, do not rename image names.
Uploading an Image File By Using RCP
You can upload an image from the switch to an RCP server. You can later download this image to the
same switch or to another switch of the same type.
The upload feature is available only if the HTML pages associated with the Cluster Management Suite
(CMS) have been installed with the existing image.
Beginning in privileged EXEC mode, follow these steps to upload an image to an RCP server:
Command Purpose
Step1 Verify that the RCP server is properly configured by
referring to the Preparing to Download or Upload an Image
File By Using RCP section on page B-29.
Step2 Log into the switch through the console port or a Telnet
session.
Step3 configure terminal Enter global configuration mode.
This step is required only if you override the default remote
username (see Steps 4 and 5).
Step4 ip rcmd remote-username username (Optional) Specify the remote username.
B-33
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
The archive upload-sw privileged EXEC command builds an image file on the server by uploading
these files in order: info, the IOS image, the HTML files, and info.ver. After these files are uploaded,
the upload algorithm creates the tar file format.
Caution For the download and upload algorithms to operate properly, do not rename image names.
Step5 end Return to privileged EXEC mode.
Step6 archive upload-sw
rcp:[[[//[username@]location]/directory]/image-na
me.tar]
Upload the currently running switch image to the RCP
server.
For //username, specify the username; for the RCP copy
request to execute, an account must be defined on the
network server for the remote username. For more
information, see the Preparing to Download or Upload
an Image File By Using RCP section on page B-29.
For @location, specify the IP address of the RCP server.
For /directory]/image-name.tar, specify the directory
(optional) and the name of the software image to be
uploaded. Directory and image names are case
sensitive.
The image-name.tar is the name of software image to
be stored on the server.
Command Purpose
B-34
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixB Working with the IOS File System, Configuration Files, and Software Images
Working with Software Images
C-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
A P P E N D I X C
Unsupported CLI Commands
This appendix lists the unsupported command-line interface (CLI) commands that are displayed when
you enter the question mark (?) at the switch prompt. The unsupported commands are listed by software
feature and command mode.
Access Control Lists
Unsupported Privileged EXEC Commands
access-enable [host] [timeout minutes]
access-template [access-list-number | name] [dynamic-name] [source] [destination] [timeout minutes]
clear access-template [access-list-number | name] [dynamic-name] [source] [destination].
ARP Commands
Unsupported Global Configuration Commands
arp ip-address hardware-address smds
arp ip-address hardware-address srp-a
arp ip-address hardware-address srp-b
Unsupported Interface Configuration Commands
arp probe
ip probe proxy
C-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
FallBack Bridging
FallBack Bridging
Unsupported Privileged EXEC Commands
clear bridge [bridge-group] multicast [router-ports | groups | counts] [group-address] [interface-unit]
[counts]
clear vlan statistics
show bridge [bridge-group] circuit-group [circuit-group] [src-mac-address] [dst-mac-address]
show bridge [bridge-group] multicast [router-ports | groups] [group-address]
show bridge vlan
show interfaces crb
show interfaces {ethernet | fastethernet} [interface | slot/port] irb
show subscriber-policy range
Unsupported Global Configuration Commands
bridge bridge-group bitswap_l3_addresses
bridge bridge-group bridge ip
bridge bridge-group circuit-group circuit-group pause milliseconds
bridge bridge-group circuit-group circuit-group source-based
bridge cmf
bridge crb
bridge bridge-group domain domain-name
bridge irb
bridge bridge-group mac-address-table limit number
bridge bridge-group multicast-source
bridge bridge-group route protocol
bridge bridge-group subscriber policy policy
subscriber-policy policy [[no | default] packet [permit | deny]]
Unsupported Interface Configuration Commands
bridge-group bridge-group cbus-bridging
bridge-group bridge-group circuit-group circuit-number
bridge-group bridge-group input-address-list access-list-number
bridge-group bridge-group input-lat-service-deny group-list
bridge-group bridge-group input-lat-service-permit group-list
bridge-group bridge-group input-lsap-list access-list-number
C-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
HSRP
bridge-group bridge-group input-pattern-list access-list-number
bridge-group bridge-group input-type-list access-list-number
bridge-group bridge-group lat-compression
bridge-group bridge-group output-address-list access-list-number
bridge-group bridge-group output-lat-service-deny group-list
bridge-group bridge-group output-lat-service-permit group-list
bridge-group bridge-group output-lsap-list access-list-number
bridge-group bridge-group output-pattern-list access-list-number
bridge-group bridge-group output-type-list access-list-number
bridge-group bridge-group sse
bridge-group bridge-group subscriber-loop-control
bridge-group bridge-group subscriber-trunk
bridge bridge-group lat-service-filtering
frame-relay map bridge dlci broadcast
interface bvi bridge-group
x25 map bridge x.121-address broadcast [options-keywords]
HSRP
Unsupported Global Configuration Commands
interface Async
interface BVI
interface Dialer
interface Group-Async
interface Lex
interface Multilink
interface Virtual-Template
interface Virtual-Tokenring
Unsupported Interface Configuration Commands
mtu
standby mac-refresh seconds
standby use-bia
C-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
Interface Configuration Commands
Interface Configuration Commands
switchport broadcast level
switchport multicast level
switchport unicast level
Note These commands were replaced in IOS release 12.1(8)EA1 by the storm-control {broadcast |
multicast | unicast} level level [.level] interface configuration command.
IP Multicast Routing
Unsupported Privileged EXEC Commands
clear ip rtp header-compression [type number]
The debug ip packet command displays packets received by the switch CPU. It does not display packets
that are hardware-switched.
The debug ip mcache command affects packets received by the switch CPU. It does not display packets
that are hardware-switched.
The debug ip mpacket [detail] [access-list-number [group-name-or-address] command affects only
packets received by the switch CPU. Because most multicast packets are hardware-switched, use this
command only when you know that the route will forward the packet to the CPU.
debug ip pim atm
show frame-relay ip rtp header-compression [interface type number]
The show ip mcache command displays entries in the cache for those packets that are sent to the switch
CPU. Because most multicast packets are switched in hardware without CPU involvement, you can use
this command, but multicast packet information is not displayed.
The show ip mpacket commands are supported but are only useful for packets received at the switch
CPU. If the route is hardward-switched, the command has no effect because the CPU does not receive
the packet and cannot display it.
show ip pim vc [group-address | name] [type number]
show ip rtp header-compression [type number] [detail]
Unsupported Global Configuration Commands
ip pim accept-rp {address | auto-rp} [group-access-list-number]
ip pim message-interval seconds
C-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
IP Unicast Routing
Unsupported Interface Configuration Commands
frame-relay ip rtp header-compression [active | passive]
frame-relay map ip ip-address dlci [broadcast] compress
frame-relay map ip ip-address dlci rtp header-compression [active | passive]
ip igmp helper-address ip-address
ip multicast helper-map {group-address | broadcast} {broadcast-address | multicast-address}
extended-access-list-number
ip multicast rate-limit {in | out} [video | whiteboard] [group-list access-list] [source-list access-list]
kbps
ip multicast use-functional
ip pim minimum-vc-rate pps
ip pim multipoint-signalling
ip pim nbma-mode
ip pim vc-count number
ip rtp compression-connections number
ip rtp header-compression [passive]
IP Unicast Routing
Unsupported Privileged EXEC or User EXEC Commands
clear ip accounting [checkpoint]
show cef [drop | not-cef-switched]
show ip vrf [{brief | detail | interfaces}] [vrf-name] [output-modifiers]
show ip accounting [checkpoint] [output-packets | access-violations]
Unsupported Global Configuration Commands
ip accounting-list ip-address wildcard
ip accounting-transits count
ip cef accounting [per-prefix] [non-recursive]
ip cef traffic-statistics [load-interval seconds] [update-rate seconds]]
ip flow-aggregation
ip flow-cache
ip flow-export
ip gratituitous-arps
ip local
C-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
IP Unicast Routing
ip reflexive-list
ip vrf
router bgp
router egp
router-isis
router iso-igrp
router mobile
router odr
router static
Unsupported Interface Configuration Commands
ip accounting
ip load-sharing [per-packet]
ip mtu bytes
ip route-cache
ip verify
ip vrf
ip unnumbered type number
All ip security commands
Unsupported VPN Configuration Commands
All
Unsupported VRF Configuration Commands
All
Unsupported Route Map Commands
set automatic-tag
set ip destination ip-address mask
set ip next-hop ip-address [...ip-address]
set ip next-hop peer-address
set ip precedence value
set ip qos-group
set tag tag-value
C-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
MSDP
MSDP
Unsupported Privileged EXEC Commands
show access-expression
show exception
show location
show pm LINE
show smf [interface-id]
show subscriber-policy [policy-number]
show template [template-name]
Unsupported Global Configuration Commands
ip msdp default-peer ip-address | name [prefix-list list] (Because BGP/MBGP is not supported, use the
ip msdp peer command instead of this command.)
RADIUS
Unsupported Global Configuration Commands
aaa nas port extended
radius-server attribute nas-port
radius-server configure
radius-server extended-portnames
C-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
AppendixC Unsupported CLI Commands
RADIUS
IN-1
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
I N D E X
Numerics
802.1Q
and trunk ports 8-3
configuration limitations 9-24
encapsulation 9-22, 9-24
native VLAN for untagged traffic 9-29
802.1Q trunk mode 3-9
802.1X
See port-based authentication
802.3Z flow control 8-16
A
abbreviating commands 2-3
ABRs 22-35
AC (command switch) 5-12, 5-22
access-class command 19-19
access control entries
See ACEs
access-denied response, VMPS 9-33
access groups
IP 19-20
Layer 3 19-20
viewing 19-21
accessing CMS 3-30
access levels, CMS 3-31
access lists
See ACLs
access modes, CMS 3-31
access ports
defined 8-2
in switch clusters 5-11
accounting with RADIUS 6-27
accounting with TACACS+ 6-11, 6-17
ACEs
and QoS 20-7
defined 19-2
Ethernet 19-2
IP 19-2
Layer 3 parameters 19-10
Layer 4 parameters 19-10
ACLs
ACEs 19-2
any keyword 19-12
applying
on bridged packets 19-40
on multicast packets 19-42
on routed packets 19-41
on switched packets 19-39
time ranges to 19-15
to an interface 19-18
to QoS 20-7
classifying traffic for QoS 20-27
comments in 19-18
compiling 19-22
configuring with VLAN maps 19-36
defined 19-1, 19-6
determining fit in hardware 19-37
displaying interface 19-22
examples of 19-22, 20-27
extended IP
configuring for QoS classification 20-28
creating 19-9
matching criteria 19-7
hardware and software handling 19-5
Index
IN-2
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
ACLs (continued)
host keyword 19-12
IP
applying to interface 19-18
creating 19-6
fragments and QoS guidelines 20-20
implicit deny 19-9, 19-13, 19-15
implicit masks 19-9
matching criteria 19-3, 19-7
named 19-14
options and QoS guidelines 20-20
undefined 19-20
violations, logging 19-15
virtual terminal lines, setting on 19-18
limiting actions 19-37
logging messages 19-9
log keyword 19-15
MAC extended 19-28, 20-29
matching 19-6, 19-20
monitoring 19-20
named 19-14
number per QoS class map 20-20
numbers 19-7
policy maps and QoS classification 20-20
protocol parameters 19-10
QoS 20-7, 20-27
router 19-2
standard IP
configuring for QoS classification 20-27
creating 19-8
matching criteria 19-7
supported features 19-5
support for 1-3
time ranges 19-15
unsupported features 19-6
using router ACLs with VLAN maps 19-36
ACLs (continued)
VLAN maps
configuration guidelines 19-28
configuring 19-27
defined 19-3
active router 23-1
addresses
displaying the MAC address table 6-57
dynamic
accelerated aging 10-10
changing the aging time 6-53
default aging 10-10
defined 6-51
learning 6-52
preventing frame forwarding 26-5
removing 6-54
filtering frames by MAC address 26-6
multicast
group address range 24-1
STP address management 10-8
static
adding and removing 6-56
defined 6-51
address resolution 22-10
Address Resolution Protocol
See ARP
adjacency tables, with CEF 22-53
administrative distances
defined 22-62
OSPF 22-41
routing protocol defaults 22-56
advertisements
CDP 13-1
IGRP 22-30
RIP 22-25
VTP 9-4, 9-5, 9-25
aggregated ports
See EtherChannel
aggregate policers 20-37
Index
IN-3
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
aggregate policing 1-4
aging, accelerating 10-10
aging time
accelerated for STP 10-10, 10-29
bridge table for fallback bridging 26-6
MAC address table 6-53
maximum for STP 10-18, 10-30
alarms, RMON 16-3
allowed-VLAN list 9-27
alternate routes, IGRP 22-31
Apply button 3-29
area border routers
See ABRs
ARP
configuring 22-11
defined 22-10
encapsulation 22-12
static cache configuration 22-11
support for 1-2
ASBRs 22-35
attributes, RADIUS
vendor-proprietary 6-29
vendor-specific 6-28
audience xxvii
authentication
EIGRP 22-50
HSRP 23-8
local mode with AAA 6-31
NTP associations 6-35
RADIUS
key 6-21
login 6-23
See also port-based authentication
TACACS+
defined 6-11
key 6-13
login 6-14
authentication keys, and routing protocols 22-63
authoritative time source, described 6-32
authorization with RADIUS 6-26
authorization with TACACS+ 6-11, 6-16
authorized ports with 802.1X 7-4
autoconfiguration 4-3
automatic discovery
adding member switches 5-20
considerations
beyond a non-candidate device 5-8, 5-9
brand new switches 5-11
connectivity 5-4
different VLANs 5-7
management VLANs 5-8, 5-9
non-CDP-capable devices 5-6
non-cluster-capable devices 5-6
routed ports 5-10
creating a cluster standby group 5-22
in switch clusters 5-4
See also CDP
automatic recovery, clusters 5-12
See also HSRP
autonegotiation
duplex mode 1-2
interface configuration guidelines 8-14
mismatches 27-10
autonomous system boundary routers
See ASBRs
Auto-RP, described 24-8
autosensing, port speed 1-2
B
BackboneFast 1-3, 10-18, 10-36
bandwidth, graphs 3-8
bandwidth for QoS
allocating 20-50
described 20-13
Index
IN-4
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
banners
configuring
login 6-51
message-of-the-day login 6-50
default configuration 6-49
when displayed 6-49
binding cluster group and HSRP group 23-9
blocking packets 12-6
booting
boot loader, function of 4-2
boot process 4-1
manually 4-13
specific image 4-14
boot loader
accessing 4-15
described 4-2
environment variables 4-15
prompt 4-15
trap-door mechanism 4-2
bootstrap router (BSR), described 24-8
BPDU guard, STP 1-3, 10-11, 10-33
bridged packets, ACLs on 19-40
bridge groups
See fallback bridging
Bridge Protocol Data Unit
See BPDU
broadcast flooding 22-20
broadcast packets
directed 22-17
flooded 22-17
broadcast storm-control command 12-3
broadcast storms 12-1, 22-17
browser configuration 3-1, 5-1
buttons, CMS 3-29
C
cables, monitoring for unidirectional links 14-1
Cancel button 3-29
candidate switch
adding 5-20
automatic discovery 5-4
defined 5-3
HC 5-22
passwords 5-20
requirements 5-3
standby group 5-22
See also command switch, cluster standby group, and
member switch
caution, described xxx
CC (command switch) 5-22
CDP
automatic discovery in switch clusters 5-4
configuring 13-2
default configuration 13-2
described 13-1
disabling for routing device 13-3, 13-4
enabling and disabling on an interface 13-4
enabling and disabling on a switch 13-3
monitoring 13-5
overview 13-1
support for 1-2
transmission timer and holdtime, setting 13-2
updates 13-2
CEF 22-53
CGMP
as IGMP snooping learning method 11-6
clearing cached group entries 24-58
enabling server support 24-38
FastLeave feature 24-13
hosts
joining a group 24-12
leaving a group 24-13
joining multicast group 11-2
overview 24-11
server support only 24-11
switch support of 1-2
change notification, CMS 3-32
Index
IN-5
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Cisco Discovery Protocol
See CDP
Cisco Express Forwarding
See CEF
Cisco Group Management Protocol
See CGMP
Cisco Technical Assistance Center xxxiii
CiscoWorks 2000 1-6, 18-3
classless routing 22-8
class maps for QoS
configuring 20-30
described 20-7
displaying 20-56
class of service
See CoS
clearing interfaces 8-20
CLI, managing clusters in 5-25
client mode, VTP 9-4
clock
See system clock
Cluster Management Suite
See CMS
clusters, switch
accessing 5-15
adding member switches 5-20
automatic discovery 5-4
automatic recovery 5-12
benefits 1-6
command switch configuration 5-19
compatibility 5-4
creating 5-18
creating a cluster standby group 5-22
described 5-1
LRE profile considerations 5-17
managing
through CLI 5-25
through SNMP 5-26
clusters, switch (continued)
planning considerations
automatic discovery 5-4
automatic recovery 5-12
CLI 5-25
described 5-4
host names 5-16
IP addresses 5-15
LRE profiles 5-17
passwords 5-16
SNMP 5-16, 5-26
switch-specific features 5-18
TACACS+ 5-17
redundancy 5-22
See also candidate switch, command switch, cluster
standby group, member switch, and standby
command switch
troubleshooting 5-24
verifying 5-24
cluster standby group
automatic recovery 5-13
considerations 5-14
creating 5-22
defined 5-2
requirements 5-3
virtual IP address 5-13
See also HSRP
cluster standby-group and HSRP group 23-9
cluster tree
described 3-5
icons 3-5
CMS
accessing 3-30
access levels 3-31
benefits 1-6
change notification 3-32
cluster tree 3-5
described 1-1, 1-5, 3-1
different versions of 3-33
Index
IN-6
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
CMS (continued)
displaying system messages 3-19
error checking 3-32
features 3-2
Front Panel images 3-6
Front Panel view 3-4
interaction modes 3-26
menu bar 3-15
privilege level 3-31
requirements 3-30
saving configuration changes 3-32
toolbar 3-21
tool tips 3-27
Topology view 3-10
verifying configuration changes 3-32
window components 3-28
wizards 3-26
CMS online help 3-27
Collapse Cluster view 3-11
command-line interface
abbreviating commands 2-3
command modes 2-1
described 1-5
editing features
enabling and disabling 2-6
keystroke editing 2-6
wrapped lines 2-8
error messages 2-4
filtering command output 2-8
getting help 2-3
history
changing the buffer size 2-5
described 2-5
disabling 2-5
recalling commands 2-5
no and default forms of commands 2-4
command modes 2-1
commands
abbreviating 2-3
no and default 2-4
setting privilege levels 6-8
command switch
active (AC) 5-12, 5-22
command switch with HSRP disabled (CC) 5-22
configuration conflicts 27-10
defined 5-2
enabling 5-19
passive (PC) 5-12, 5-22
password privilege levels 5-25
priority 5-12
recovery
from failure 27-7
from lost member connectivity 27-10
recovery from command-switch failure 5-12
redundant 5-12, 5-22
replacing
with another switch 27-9
with cluster member 27-7
requirements 5-2
See also candidate switch, cluster standby group,
member switch, and standby command switch
standby (SC) 5-12, 5-22
community strings
configuring 5-16, 18-5
for cluster switches 18-3
in clusters 5-16
overview 18-3
SNMP 5-16
config.text 4-12
configuration changes, saving 3-32
configuration conflicts, recovering from lost member
connectivity 27-10
configuration examples, network 1-7
Index
IN-7
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
configuration files
clearing the startup configuration B-19
creating using a text editor B-10
default name 4-12
deleting a stored configuration B-19
described B-8
downloading
automatically 4-12
preparing B-10, B-13, B-16
reasons for B-8
using FTP B-13
using RCP B-17
using TFTP B-11
guidelines for creating and using B-9
invalid combinations when copying B-5
limiting TFTP server access 18-9
obtaining with DHCP 4-7
password recovery disable considerations 6-5
specifying the filename 4-13
system contact and location information 18-9
types and location B-9
uploading
preparing B-10, B-13, B-16
reasons for B-8
using FTP B-15
using RCP B-18
using TFTP B-12
VMPS database 9-34
configuration settings, saving 4-10
configure terminal command 8-7
conflicts, configuration 27-10
congestion-avoidance techniques 20-13
congestion-management techniques 20-13, 20-15
connectivity problems 27-11
consistency checks in VTP version 2 9-6
conventions
command xxx
for examples xxx
publication xxx
text xxx
CoS 1-4, 20-2
CoS-to-DSCP map for QoS 20-39
CoS-to-egress-queue map 20-45
counters, clearing interface 8-20
Cpu q, in show forward command output 27-16
crashinfo file 27-17
cross-stack UplinkFast, STP
configuring 10-35
connecting stack ports 10-16
described 10-13
fast-convergence events 10-15
Fast Uplink Transition Protocol 10-14
limitations 10-16
normal-convergence events 10-15
Stack Membership Discovery Protocol 10-14
support for 1-3
D
database, VTP 9-15, 9-17
daylight saving time 6-44
debugging
enabling all system diagnostics 27-15
enabling for a specific feature 27-14
redirecting error message output 27-15
using commands 27-14
default commands 2-4
default configuration
802.1X 7-6
banners 6-49
booting 4-12
CDP 13-2
DNS 6-48
EIGRP 22-47
Index
IN-8
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
default configuration (continued)
EtherChannel 21-7
fallback bridging 26-3
HSRP 23-3
IGMP 24-31
IGMP filtering 11-20
IGMP snooping 11-5
IGRP 22-30
initial switch information 4-3
IP addressing, IP routing 22-4
IP multicast routing 24-13
Layer 2 interfaces 8-13
MAC address table 6-53
MSDP 25-4
MVR 11-15
NTP 6-35
OSPF 22-36
password and privilege level 6-3
QoS 20-18
RADIUS 6-20
RIP 22-25
RMON 16-3
SNMP 18-4
SPAN 15-7
STP 10-21
system message logging 17-3
system name and prompt 6-46
TACACS+ 6-13
UDLD 14-3
VLAN, Layer 2 Ethernet interfaces 9-24
VLANs 9-15
VMPS 9-37
VTP 9-8
default gateway 4-10, 22-15
default networks 22-56
default routes 22-56
default routing 22-2
deleting VLAN from database 9-18
description command 8-17
designing your network, examples 1-7
destination addresses, in ACLs 19-11
device discovery protocol 13-1
device icons
Front Panel view 3-5
Topology view 3-12
device labels 3-13
Device Manager 3-2
See also Switch Manager
device pop-up menu
Front Panel view 3-22
Topology view 3-24
DHCP
autoconfiguration example 4-8
client request message exchange 4-4
configuring
client side 4-3
DNS 4-6
relay device 4-6
server-side 4-5
TFTP server 4-5
lease options
for IP address information 4-5
for receiving the configuration file 4-5
overview 4-3
relationship to BOOTP 4-3
support for 1-2
DHCP relay 1-5
Differentiated Services architecture, QoS 20-1
Differentiated Services Code Point 20-2
Diffusing Update Algorithm (DUAL) 22-46
directed unicast requests 1-2
directories
changing B-3
creating and removing B-4
displaying the working B-3
discovery, clusters
See automatic discovery
display options, Topology view 3-14
Index
IN-9
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
Disqualification Code option 3-25
Distance Vector Multicast Routing Protocol
See DVMRP
distance-vector protocols 22-2
distribute-list command 22-62
DNS
and DHCP-based autoconfiguration 4-6
default configuration 6-48
displaying the configuration 6-49
overview 6-47
setting up 6-48
support for 1-2
documentation
feedback xxxii
obtaining
CD-ROM xxxi
world wide web xxxi
ordering xxxii
related xxxi
document conventions xxx
domain names
DNS 6-47
VTP 9-8
Domain Name System
See DNS
downloading
configuration files
preparing B-10, B-13, B-16
reasons for B-8
using FTP B-13
using RCP B-17
using TFTP B-11
image files
deleting old image B-23
preparing B-22, B-25, B-29
reasons for B-19
using FTP B-26
using RCP B-30
using TFTP B-22
DSCP 1-4, 20-2
DSCP-to-CoS map for QoS 20-42
DSCP-to-DSCP-mutation map for QoS 20-43
DSCP-to-threshold map for QoS 20-47
DTP 1-3, 9-22
DUAL finite state machine, EIGRP 22-46
duplex mode, configuring 8-14
DVMRP
all-DVMRP-routers multicast group address 24-11
autosummarization
configuring a summary address 24-54
disabling 24-56
connecting PIM domain to DVMRP router 24-46
enabling unicast routing 24-50
interoperability
with Cisco devices 24-44
with IOS software 24-11
mrinfo requests, responding to 24-49
neighbors
advertising the default route to 24-48
discovery with Probe messages 24-11, 24-44
displaying information 24-49
prevent peering with nonpruning 24-52
rejecting nonpruning 24-51
overview 24-11
routes
adding a metric offset 24-56
advertising all 24-56
advertising the default route to neighbors 24-48
caching DVMRP routes learned in report
messages 24-50
changing the threshold for syslog messages 24-54
deleting 24-58
displaying 24-58
favoring one over another 24-56
limiting the number injected into MBONE 24-53
limiting unicast route advertisements 24-44
route table, building 24-11
source distribution tree, building 24-11
Index
IN-10
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
DVMRP (continued)
support for 1-5
tunnels
configuring 24-46
displaying neighbor information 24-49
dynamic access mode 3-9
dynamic access ports
characteristics 9-3
configuring 9-38
defined 8-2
limit on number of hosts 9-40
dynamic addresses
See addresses
Dynamic Host Configuration Protocol
See DHCP
dynamic port VLAN membership
configuration example 9-40
overview 9-34
reconfirming 9-39
troubleshooting 9-40
types of connections 9-38
VMPS database configuration file 9-34
dynamic routing 22-2
Dynamic Trunking Protocol
See DTP
E
editing features
enabling and disabling 2-6
keystrokes used 2-6
wrapped lines 2-8
Egress q, in show forward command output 27-16
EIGRP
and IGRP 22-48
authentication 22-50
components 22-46
configuring 22-48
default configuration 22-47
EIGRP (continued)
definition 22-46
interface parameters, configuring 22-49
monitoring 22-51
support for 1-4
enable password 6-4
enable secret password 6-4
encapsulation types, Ethernet trunk 9-24
encryption for passwords 6-4
Enhanced IGRP
See EIGRP
environment variables
function of 4-16
location in Flash 4-15
equal-cost routing 1-4, 22-54
error checking, CMS 3-32
error messages
during command entry 2-4
setting the display destination device 17-4
severity levels 17-8
system message format 17-2
EtherChannel
automatic creation of 21-3
channel groups
binding physical and logical interfaces 21-2
numbering of 21-2
configuration guidelines 21-8
configuring
Layer 2 interfaces 21-9
Layer 3 physical interfaces 21-12
Layer 3 port-channel logical interfaces 21-11
default configuration 21-7
destination MAC address forwarding 21-5
detecting misconfigurations 10-37
displaying status 21-16
forwarding methods 21-5, 21-13
interaction
with STP 21-8
with VLANs 21-8
Index
IN-11
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
EtherChannel (continued)
Layer 3 interface 22-3
load balancing 21-5, 21-13
logical interfaces, described 21-2
number of interfaces per 21-1
overview 21-1
PAgP
aggregate-port learners 21-5
compatibility with Catalyst 1900 21-14
displaying status 21-16
interaction with other features 21-5
learn method and priority configuration 21-14
modes 21-4
overview 21-3
silent mode 21-4
support for 1-2
port-channel interfaces
described 21-2
numbering of 21-2
port groups 8-3
source MAC address forwarding 21-5
support for 1-2
Ethernet VLAN
defaults and ranges 9-16
modifying 9-18
events, RMON 16-3
examples
conventions for xxx
network configuration 1-7
Expand Cluster view 3-11
expedite queue for QoS
10/100 Ethernet ports
allocating bandwidth 20-54
configuring 20-54
described 20-15
expedite queue for QoS (continued)
Gigabit-capable Ethernet ports
allocating bandwidth 20-50
configuring 20-50
described 20-13
expert mode 3-26
extended system ID for STP 10-3, 10-23
Extensible Authentication Protocol over LAN 7-1
exterior routes, IGRP 22-30
F
fallback bridging
and protected ports 26-4
bridge groups
creating 26-4
described 26-2
displaying 26-12
function of 26-2
number supported 26-4
removing 26-4
bridge table
changing the aging time 26-6
clearing 26-12
displaying 26-12
connecting interfaces with 8-6
default configuration 26-3
described 26-1
frame forwarding
filtering by MAC address 26-6
flooding packets 26-2
for static addresses 26-5
forwarding packets 26-2
preventing for dynamically learned stations 26-5
to static addresses 26-5
overview 26-1
Index
IN-12
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
fallback bridging (continued)
STP
disabling on an interface 26-12
forward-delay interval 26-10
hello BPDU interval 26-10
interface priority 26-8
maximum-idle interval 26-11
path cost 26-9
switch priority 26-8
VLAN-bridge STP 26-1, 26-2
support for 1-4
SVIs and routed ports 26-1
VLAN-bridge STP 10-9
fallback VLAN name 9-34
fan fault indication 3-5
Fast Uplink Transition Protocol 10-14
feedback to Cisco Systems, web xxxii
FIB 22-53
fiber-optic, detecting unidirectional links 14-1
files
copying B-4
crashinfo
description 27-17
displaying the contents of 27-17
location 27-17
deleting B-5
displaying the contents of B-8
tar
creating B-6
displaying the contents of B-6
extracting B-7
image file format B-20
file system
displaying available file systems B-2
displaying file information B-3
local file system names B-1
network file system names B-4
setting the default B-3
filtering
in a VLAN 19-27
non-IP traffic 19-28
show and more command output 2-8
with fallback bridging 26-6
filters, IP
See ACLs, IP
Flash device, number of B-1
flash updates, IGRP 22-31
flooded traffic, blocking 12-6
flow-based packet classification 1-4
flowcharts
QoS classification 20-6
QoS policing and marking 20-10
QoS queueing and scheduling
10/100 ports 20-15
Gigabit-capable ports 20-12
flow control 1-2, 8-16
forward-delay time, STP 10-7, 10-29
Forwarding Information Base
See FIB
forwarding non-routable protocols 26-1
Front Panel images, CMS 3-6
Front Panel view
cluster tree 3-5
described 3-4
pop-up menus 3-22
port icons 3-6
port LEDs 3-8
RPS LED 3-7
switch images 3-6
FTP
accessing MIB files A-2
configuration files
downloading B-13
overview B-12
preparing the server B-13
uploading B-15
Index
IN-13
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
FTP (continued)
image files
deleting old image B-28
downloading B-26
preparing the server B-25
uploading B-28
G
GBICs
1000BASE-LX/LH module 1-9
1000BASE-SX module 1-9
1000BASE-T module 1-9
1000BASE-ZX module 1-9
GigaStack 1-9
get-bulk-request operation 18-2
get-next-request operation 18-2, 18-3
get-request operation 18-2, 18-3
get-response operation 18-2
Gigabit GBIC modules
See GBICs
Gigabit Interface Converters
See GBICs
GigaStack GBIC
fast transition of redundant link 10-13
See also GBICs
global configuration mode 2-2
graphs, bandwidth 3-8
guide
audience xxvii
organization of xxviii
purpose of xxvii
guide mode 1-6, 3-26
H
hardware, determining ACL configuration fit 19-37
HC (candidate switch) 5-22
hello time, STP 10-29
help, for the command line 2-3
Help button, CMS 3-29
Help Contents 3-27
history
changing the buffer size 2-5
described 2-5
disabling 2-5
recalling commands 2-5
history table, level and number of syslog messages 17-10
host name list, CMS 3-28
host names
abbreviations appended to 5-22
in clusters 5-16
hosts, limit on dynamic ports 9-40
Hot Standby Router Protocol
See HSRP
HP OpenView 1-6
HSRP
authentication string 23-8
automatic cluster recovery 5-13
binding to cluster group 23-9
cluster standby group considerations 5-14
command-switch redundancy 1-1
configuring 23-3
default configuration 23-3
definition 23-1
monitoring 23-10
overview 23-1
priority 23-6
routing redundancy 1-4
timers 23-8
tracking 23-6
See also clusters, cluster standby group, and standby
command switch
HTTP access 3-30, 3-31
Hypertext Transfer Protocol
See HTTP access
Index
IN-14
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
I
ICMP
redirect messages 22-15
support for 1-5
time exceeded messages 27-12
traceroute and 27-12
unreachable messages 19-5
unreachables and ACLs 19-6
ICMP ping
executing 27-11
overview 27-11
ICMP Router Discovery Protocol
See IRDP
icons
cluster tree 3-5
colors
cluster tree 3-5
Topology view 3-14
editable table cell 3-29
Front Panel view 3-6
multilink 3-23
sorting 3-29
toolbar 3-21
Topology view 3-12
web link 3-29
IFS 1-2
IGMP
configuring the switch
as a member of a group 24-34
statically connected member 24-36
controlling access to groups 24-35
default configuration 24-31
deleting cache entries 24-58
displaying groups 24-58
fast switching 24-37
host-query interval, modifying 24-36
joining multicast group 11-2
join messages 11-2
IGMP (continued)
leave processing, enabling 11-9
leaving multicast group 11-4
multicast reachability 24-34
overview 24-3
queries 11-3
support for 1-2
Version 1
changing to Version 2 24-32
hosts joining a group 24-3
hosts leaving a group 24-3
membership queries 24-3
overview 24-3
query-response model 24-3
Version 2
changing to Version 1 24-32
enhancements over Version 1 24-4
hosts leaving a group 24-4
maximum query response time value 24-33
new features 24-4
overview 24-4
pruning groups 24-33
query timeout value 24-32
IGMP filtering
configuring 11-20
default configuration 11-20
described 11-20
monitoring 11-24
IGMP groups, setting the maximum number 11-23
IGMP profile
applying 11-22
configuration mode 11-20
configuring 11-21
IGMP snooping
configuring 11-5
default configuration 11-5
definition 11-1
enabling and disabling 11-5
global configuration 11-5
Index
IN-15
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
IGMP snooping (continued)
Immediate Leave 11-4
method 11-6
monitoring 11-9
support for 1-2
VLAN configuration 11-6
IGP 22-35
IGRP
advertisements 22-30
alternate routes 22-31
configuring 22-32
default configuration 22-30
described 22-30
exterior routes 22-30
flash updates 22-31
interior routes 22-30
load balancing 22-31
poison-reverse updates 22-31
split horizon 22-34
support for 1-4
system routes 22-30
traffic sharing 22-32
unequal-cost load balancing 22-31
Immediate-Leave, IGMP 11-4
interaction modes, CMS 3-26
interface
number 8-7
range macros 8-11
interface command 8-7
interface configuration mode 2-2
interfaces
configuration guidelines 8-14
configuring 8-7
configuring duplex mode 8-14
configuring speed 8-14
counters, clearing 8-20
described 8-17
descriptive name, adding 8-17
displaying information about 8-18
interfaces (continued)
flow control 8-16
management 1-5
monitoring 8-18
naming 8-17
physical, identifying 8-7
range of 8-9
restarting 8-21
shutting down 8-21
supported 8-6
types of 8-1
interfaces range macro command 8-11
Interior Gateway Protocol
See IGP
Interior Gateway Routing Protocol
See IGRP
interior routes, IGRP 22-30
Internet Control Message Protocol
See ICMP
Internet Group Management Protocol
See IGMP
Inter-Switch Link
See ISL
inter-VLAN routing 1-4, 22-2
inventory, cluster 5-24
IOS File System
See IFS
ip access group command 19-20
IP ACLs
applying to an interface 19-18
extended, creating 19-9
for QoS classification 20-7
implicit deny 19-9, 19-13, 19-15
implicit masks 19-9
logging 19-15
named 19-14
standard, creating 19-8
undefined 19-20
virtual terminal lines, setting on 19-18
Index
IN-16
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
IP addresses
candidate or member 5-3, 5-15
classes of 22-5
cluster access 5-2
command switch 5-2, 5-13, 5-15
default configuration 22-4
for IP routing 22-4
MAC address association 22-10
monitoring 22-21
redundant clusters 5-13
standby command switch 5-13, 5-15
See also IP information
IP broadcast address 22-20
ip cef command 22-53
IP directed broadcasts 22-17
ip igmp profile command 11-20
IP information
assigned
manually 4-10
through DHCP-based autoconfiguration 4-3
default configuration 4-3
IP multicast routing
addresses
all-hosts 24-1
all-multicast-routers 24-1
all-PIM-routers 24-10
Cisco-RP-Announce 24-8
Cisco-RP-Discovery 24-8
host group address range 24-1
administratively-scoped boundaries, described 24-42
and IGMP snooping 11-1, 11-5
IP multicast routing (continued)
Auto-RP
adding to an existing sparse-mode cloud 24-19
benefits of 24-18
clearing the cache 24-58
configuration guidelines 24-15
IOS release 24-5
overview 24-8
preventing candidate RP spoofing 24-21
preventing join messages to false RPs 24-20
setting up in a new internetwork 24-19
using with BSR 24-27
bootstrap router
configuration guidelines 24-15
configuring candidate BSRs 24-25
configuring candidate RPs 24-26
defining the IP multicast boundary 24-24
defining the PIM domain border 24-22
IOS release 24-5
overview 24-8
using with Auto-RP 24-27
Cisco implementation 24-2
configuring
basic multicast routing 24-15
IP multicast boundary 24-42
TTL threshold 24-40
default configuration 24-13
enabling
multicast forwarding 24-15
PIM mode 24-16
group-to-RP mappings
Auto-RP 24-8
BSR 24-8
Index
IN-17
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
IP multicast routing (continued)
MBONE
deleting sdr cache entries 24-58
described 24-39
displaying sdr cache 24-59
enabling sdr listener support 24-39
limiting DVMRP routes advertised 24-53
limiting sdr cache entry lifetime 24-39
SAP packets for conference session
announcement 24-39
Session Directory (sdr) tool, described 24-39
monitoring
packet rate loss 24-59
peering devices 24-59
tracing a path 24-59
multicast forwarding, described 24-9
PIMv1 and PIMv2 interoperability 24-14
protocol interaction 24-2
reverse path check (RPF) 24-9
routing table
deleting 24-58
displaying 24-58
RP
assigning manually 24-17
configuring Auto-RP 24-18
configuring PIMv2 BSR 24-22
monitoring mapping information 24-27
using Auto-RP and BSR 24-27
statistics, displaying system and network 24-58
TTL thresholds, described 24-40
See also CGMP
See also DVMRP
See also IGMP
See also PIM
IP precedence 20-2
IP-precedence-to-DSCP map for QoS 20-40
IP protocols
in ACLs 19-11
routing 1-4
IP routes, monitoring 22-64
IP routing
connecting interfaces with 8-6
enabling 22-24
IP traceroute
executing 27-13
overview 27-12
IP unicast routing
address resolution 22-10
administrative distances 22-56, 22-62
ARP 22-10
assigning IP addresses to Layer 3 interfaces 22-6
authentication keys 22-63
broadcast address 22-20
broadcast flooding 22-20
broadcast packets 22-17
broadcast storms 22-17
classless routing 22-8
configuring static routes 22-55
default addressing configuration 22-4
default gateways 22-15
default networks 22-56
default routes 22-56
default routing 22-2
directed broadcasts 22-17
dynamic routing 22-2
enabling 22-24
EtherChannel Layer 3 interface 22-3
IGP 22-35
inter-VLAN 22-2
IP addressing
classes 22-5
configuring 22-4
IRDP 22-15
Layer 3 interfaces 22-3
MAC address and IP address 22-10
passive interfaces 22-61
Index
IN-18
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
IP unicast routing (continued)
protocols
distance-vector 22-2
dynamic 22-2
link-state 22-2
proxy ARP 22-10
redistribution 22-57
reverse address resolution 22-10
routed ports 22-3
static routing 22-2
steps to configure 22-3
subnet mask 22-5
subnet zero 22-8
supernet 22-8
UDP 22-19
with SVIs 22-3
See also EIGRP
See also IGRP
See also OSPF
See also RIP
ip unreachables command 19-5
IRDP
configuring 22-16
definition 22-15
support for 1-5
ISL
and trunk ports 8-3
encapsulation 1-3, 9-22, 9-24
ISL trunk mode 3-9
J
Java plug-in configuration 3-1, 5-1
join messages, IGMP 11-2
L
Layer 2 frames, classification with CoS 20-2
Layer 2 interfaces, default configuration 8-13
Layer 2 trunks 9-22
Layer 3 features 1-4
Layer 3 interfaces
assigning IP addresses to 22-6
changing from Layer 2 mode 22-6
types of 22-3
Layer 3 packets, classification methods 20-2
Layer 3 parameters of ACEs 19-10
Layer 4 parameters of ACEs 19-10
leave processing, IGMP 11-9
LEDs
port 3-8
port modes 3-8
RPS 3-7
legend, CMS icons and labels 3-20
line configuration mode 2-2
link icons, Topology view 3-13
link labels 3-13
link pop-up menu, Topology view 3-23
links, unidirectional 14-1
link state advertisements (LSAs) 22-39
link-state protocols 22-2
lists, CMS 3-29
load balancing, IGRP 22-31
logging messages, ACL 19-9
login authentication with RADIUS 6-23
login authentication with TACACS+ 6-14
login banners 6-49
log messages
See system message logging
Long-Reach Ethernet (LRE) technology 1-8
Index
IN-19
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
M
MAC addresses
aging time 6-53
and VLAN association 6-52
building the address table 6-52
default configuration 6-53
displaying 6-57
dynamic
learning 6-52
removing 6-54
in ACLs 19-28
IP address association 22-10
static
adding 6-56
characteristics of 6-56
removing 6-56
MAC address multicast entries, monitoring 11-10
MAC address-to-VLAN mapping 9-33
MAC extended access lists 19-28, 20-4, 20-29
manageability features 1-2
management
interfaces 1-5
options 1-5
management options, CMS 3-1
management VLAN
considerations in clusters 5-8, 5-9
mapping tables for QoS
configuring
CoS-to-DSCP 20-39
CoS-to-egress-queue 20-45
DSCP 20-39
DSCP-to-CoS 20-42
DSCP-to-DSCP-mutation 20-43
DSCP-to-threshold 20-47
IP-precedence-to-DSCP 20-40
policed-DSCP 20-41
described 20-11
marking
action in policy map 20-32
action with aggregate policers 20-37
described 20-3, 20-8
matching, ACLs 19-6
maximum aging time, STP 10-30
maximum-paths command 22-54
membership mode, VLAN port 3-9, 9-3
member switch
adding 5-20
automatic discovery 5-4
defined 5-2
managing 5-25
passwords 5-15
recovering from lost connectivity 27-10
requirements 5-3
See also candidate switch, cluster standby group, and
standby command switch
memory, optimizing 6-57
menu bar
described 3-15
variations 3-15
messages
logging ACL violations 19-15
system 3-19
to users through banners 6-49
metric translations, between routing protocols 22-60
MIBs
accessing files with FTP A-2
location of files A-2
overview 18-1
SNMP interaction with 18-3
supported A-1
minimum-reserve levels
assigning to a queue 20-15, 20-53
configuring the buffer size 20-16, 20-53
default size 20-15
mini-point-of-presence
See POP
Index
IN-20
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
mirroring traffic for analysis 15-1
mismatches, autonegotiation 27-10
Mode button 3-8
modes
access to CMS 3-31
port 3-8
VLAN port membership 3-9
Modify button 3-29
modules, GBIC
1000BASE-LX/LH 1-9
1000BASE-SX 1-9
1000BASE-T 1-9
1000BASE-ZX 1-9
GigaStack 1-9
monitoring
access groups 19-20
ACLs 19-20
cables for unidirectional links 14-1
CDP 13-5
CEF 22-54
EIGRP 22-51
fallback bridging 26-12
features 1-5
HSRP 23-10
IGMP filters 11-24
IGMP snooping 11-9
interfaces 8-18
IP address tables 22-21
IP multicast routing 24-57
IP routes 22-64
MSDP peers 25-19
multicast router interfaces 11-10
MVR 11-18
network traffic for analysis with probe 15-1
OSPF 22-44
port blocking 12-11
port protection 12-11
RP mapping information 24-27
source-active messages 25-19
monitoring (continued)
speed and duplex mode 8-15
traffic flowing among switches 16-1
traffic suppression 12-11
VLAN
filters 19-33
maps 19-33
VMPS 9-40
VTP 9-13
VTP database 9-21
MSDP
and dense-mode regions
sending SA messages to 25-17
specifying the originating address 25-18
benefits of 25-3
clearing MSDP connections and statistics 25-19
controlling source information
forwarded by switch 25-12
originated by switch 25-8
received by switch 25-14
default configuration 25-4
filtering
incoming SA messages 25-14
SA messages to a peer 25-12
SA requests from a peer 25-11
join latency, defined 25-6
meshed groups
configuring 25-16
defined 25-16
originating address, changing 25-18
overview 25-1
peer-RPF flooding 25-2
peers
configuring a default 25-4
monitoring 25-19
peering relationship, overview 25-1
requesting source information from 25-8
shutting down 25-16
Index
IN-21
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
MSDP (continued)
source-active messages
caching 25-6
clearing cache entries 25-19
defined 25-2
filtering from a peer 25-11
filtering incoming 25-14
filtering to a peer 25-12
limiting data with TTL 25-14
monitoring 25-19
restricting advertised sources 25-9
multicast groups
and IGMP snooping 11-5
Immediate Leave 11-4
joining 11-2
leaving 11-4
static joins 11-8
multicast packets
ACLs on 19-42
blocking 12-6
multicast router interfaces, monitoring 11-10
multicast router ports, adding 11-7
Multicast Source Discovery Protocol
See MSDP
multicast storm-control command 12-3
multicast storms 12-1
Multicast VLAN Registration
See MVR
Multilink Decomposer window 3-23
multilink icon 3-23
MVR
configuring interfaces 11-16
default configuration 11-15
described 11-12
modes 11-16
monitoring 11-18
setting global parameters 11-15
support for 1-2
N
named IP ACLs 19-14
native VLANs 9-29
negotiate trunk mode 3-9
neighbor discovery/recovery, EIGRP 22-46
neighboring devices, types of 3-12
network configuration examples
increasing network performance 1-7
large network 1-13
providing network services 1-8
small to medium-sized network 1-11
network design
performance 1-7
services 1-8
network management
configuring CDP 13-1
configuring RMON 16-1
configuring SNMP 18-1
Network Time Protocol
See NTP
no commands 2-4
non-IP traffic filtering 19-28
nontrunking mode 9-23
no switchport command 8-4
note, described xxx
not-so-stubby areas
See NSSA
NSSA, OSPF 22-39
NTP
associations
authenticating 6-35
defined 6-33
enabling broadcast messages 6-37
peer 6-36
server 6-36
default configuration 6-35
displaying the configuration 6-41
overview 6-32
Index
IN-22
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
NTP (continued)
restricting access
creating an access group 6-39
disabling NTP services per interface 6-40
source IP address, configuring 6-40
stratum 6-32
support for 1-2
synchronizing devices 6-36
time
services 6-33
synchronizing 6-32
O
OK button 3-29
online help 3-27
Open Shortest Path First
See OSPF
optimizing system resources 6-57
options, management 1-5
OSPF
area parameters, configuring 22-39
configuring 22-37
default configuration
metrics 22-41
route 22-41
settings 22-36
described 22-35
interface parameters, configuring 22-38
LSA group pacing 22-43
monitoring 22-44
router IDs 22-43
route summarization 22-41
support for 1-4
virtual links 22-41
out-of-profile markdown 1-4
output interface, getting information about 27-16
overheating indication, switch 3-5
P
packet modification, with QoS 20-17
PAgP
See EtherChannel
parallel links 9-29
parallel paths, in routing tables 22-54
passive interfaces
configuring 22-61
OSPF 22-42
passwords
default configuration 6-3
disabling recovery of 6-5
encrypting 6-4
for security 1-3
in clusters 5-16, 5-20
in CMS 3-30
overview 6-1
recovery of 27-3
setting
enable 6-3
enable secret 6-4
Telnet 6-6
with usernames 6-7
VTP domain 9-9
path cost, STP 10-27
PC (passive command switch) 5-12, 5-22
performance, network design 1-7
performance features 1-2
per-VLAN Spanning Tree (PVST) 1-3, 10-2
per-VLAN Spanning Tree+ (PVST+) 10-8
physical ports 8-2
Index
IN-23
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
PIM
default configuration 24-13
dense mode
(S,G) notation 24-6
graft messages 24-6
overview 24-5
pruning and SPT 24-5
rendezvous point (RP), described 24-7
RPF lookups 24-10
displaying neighbors 24-59
enabling a mode 24-16
neighbor discovery and adjacencies 24-10
overview 24-5
router-query message interval, modifying 24-30
shared tree and source tree, overview 24-28
shortest path tree, delaying the use of 24-29
sparse mode
(*,G) notation 24-7
join messages and shared tree 24-7
overview 24-7
prune messages 24-8
RPF lookups 24-10
support for 1-5
versions
interoperability 24-14
supported 24-5
troubleshooting interoperability problems 24-28
v2 improvements 24-5
PIM-DVMRP, as snooping method 11-6
ping
character output description 27-12
executing 27-11
overview 27-11
planning considerations, switch clusters
LRE profiles 5-17
switch-specific features 5-18
poison-reverse updates, IGRP 22-31
policed-DSCP map for QoS 20-41
policers
configuring
for each matched traffic class 20-32
for more than one traffic class 20-37
described 20-3
displaying 20-56
number of 1-4, 20-9
types of 20-8
policing
described 20-3
token bucket algorithm 20-8
policy maps for QoS
characteristics of 20-32
configuring 20-32
described 20-7
displaying 20-56
POP 1-14
Port Aggregation Protocol
See EtherChannel
See PAgP
port-based authentication
authentication server
defined 7-2
RADIUS server 7-2
client, defined 7-2
configuration guidelines 7-7
configuring
manual re-authentication of a client 7-11
quiet period 7-11
RADIUS server 7-10
RADIUS server parameters on the switch 7-9
switch-to-client frame-retransmission number 7-13
switch-to-client retransmission time 7-12
default configuration 7-6
described 7-1
device roles 7-2
displaying statistics 7-14
EAPOL-start frame 7-3
EAP-request/identity frame 7-3
Index
IN-24
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
port-based authentication (continued)
EAP-response/identity frame 7-3
enabling
802.1X authentication 7-8
periodic re-authentication 7-10
encapsulation 7-2
initiation and message exchange 7-3
method lists 7-8
ports
authorization state and dot1x port-control
command 7-4
authorized and unauthorized 7-4
resetting to default values 7-14
switch
as proxy 7-2
RADIUS client 7-2
topologies, supported 7-4
port blocking 1-2, 12-6
port-channel
See EtherChannel
Port Fast, STP 9-36, 10-10, 10-32
Port Fast mode 1-3
port icons, Front Panel view 3-6
port LEDs 3-8
DUPLX 3-8
port modes 3-8
SPEED 3-8
STAT 3-8
port membership modes, VLAN 3-9, 9-3
port modes
described 3-8
LEDs 3-8
port pop-up menu, Front Panel view 3-22
port priority, STP 10-26
ports
802.1Q trunk 3-9
access 8-2
blocking 12-6
dynamic access 3-9, 9-3
ports (continued)
dynamic VLAN membership, reconfirming 9-39
forwarding, resuming 12-7
ISL trunk 3-9
negotiate trunk 3-9
protected 12-5
routed 8-4
secure 12-8
static-access 3-9, 9-3, 9-19
switch 8-2
trunks 9-3, 9-22
VLAN assignments 9-19
port security
configuring 12-9
default configuration 12-9
described 12-8
displaying 12-11
violations 12-8
with other features 12-9
port-shutdown response, VMPS 9-33
preferential treatment of traffic
See QoS
preventing unauthorized access 6-1
priority, HSRP 23-6
private VLAN edge ports
See protected ports
privileged EXEC mode 2-2
privilege levels
access modes
read-only 3-31
read-write 3-31
changing the default for lines 6-9
CMS 3-31
command switch 5-25
exiting 6-10
logging into 6-10
mapping on member switches 5-25
overview 6-2, 6-8
setting a command with 6-8
Index
IN-25
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
protected ports 1-3, 12-5
protocol-dependent modules, EIGRP 22-47
Protocol-Independent Multicast Protocol
See PIM
proxy ARP
configuring 22-13
definition 22-10
with IP routing disabled 22-14
pruning, VTP
enabling 9-13
enabling on a port 9-28
examples 9-7
overview 9-6
pruning-eligible list
changing 9-28
VLANs 9-13
publications, related xxxi
PVST 1-3
Q
QoS
basic model 20-3
classification
class maps, described 20-7
defined 20-3
flowchart 20-6
forwarding treatment 20-3
in frames and packets 20-2
IP ACLs, described 20-5, 20-7
MAC ACLs, described 20-4, 20-7
policy maps, described 20-7
port default, described 20-4
trust DSCP, described 20-4
trusted CoS, described 20-4
trust IP precedence, described 20-4
types for IP traffic 20-5
types for non-IP traffic 20-4
QoS (continued)
class maps
configuring 20-30
displaying 20-56
configuration examples
common wiring closet 20-57
distribution layer 20-59
intelligent wiring closet 20-58
configuration guidelines 20-20
configuring
aggregate policers 20-37
default port CoS value 20-24
DSCP maps 20-39
DSCP trust states bordering another domain 20-25
egress queues on 10/100 Ethernet ports 20-51
egress queues on Gigabit-capable Ethernet
ports 20-44
IP extended ACLs 20-28
IP standard ACLs 20-27
MAC ACLs 20-29
policy maps 20-32
port trust states within the domain 20-22
default configuration 20-18
displaying statistics 20-56
enabling globally 20-21
flowcharts
classification 20-6
policing and marking 20-10
queueing and scheduling 20-12, 20-15
implicit deny 20-7
Index
IN-26
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
QoS (continued)
mapping tables
CoS-to-DSCP 20-39
CoS-to-egress-queue 20-45
displaying 20-56
DSCP-to-CoS 20-42
DSCP-to-DSCP-mutation 20-43
DSCP-to-threshold 20-47
IP-precedence-to-DSCP 20-40
policed-DSCP 20-41
types of 20-11
marked-down actions 20-35
marking, described 20-3, 20-8
overview 20-1
packet modification 20-17
policers
configuring 20-35, 20-37
described 20-8
displaying 20-56
number of 20-9
types of 20-8
policies, attaching to an interface 20-9
policing
described 20-3, 20-8
token bucket algorithm 20-8
policy maps
characteristics of 20-32
configuring 20-32
displaying 20-56
queueing, defined 20-3
QoS (continued)
queues
CoS-to-egress-queue map 20-45
for 10/100 Ethernet ports 20-15
high priority (expedite) 20-13, 20-50
minimum-reserve levels 20-53
serviced by WRR 20-13, 20-16
size of 20-13, 20-15
size ratios 20-46
tail-drop threshold percentages 20-13, 20-47
WRED drop-percentage thresholds 20-13, 20-48
WRR scheduling 20-50
scheduling
allocating bandwidth on 10/100 Ethernet ports 20-54
allocating bandwidth on Gigabit-capable ports 20-50
defined 20-3
support for 1-4
tail drop
configuring drop threshold percentages 20-47
described 20-13
trust states 20-4
WRED
configuring drop-percentage thresholds 20-48
described 20-14
WRR scheduling 20-50
quality of service
See QoS
queries, IGMP 11-3
R
RADIUS
attributes
vendor-proprietary 6-29
vendor-specific 6-28
Index
IN-27
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
RADIUS (continued)
configuring
accounting 6-27
authentication 6-23
authorization 6-26
communication, global 6-21, 6-28
communication, per-server 6-20, 6-21
multiple UDP ports 6-20
default configuration 6-20
defining AAA server groups 6-24
displaying the configuration 6-30
identifying the server 6-20
limiting the services to the user 6-26
method list, defined 6-19
operation of 6-19
overview 6-18
suggested network environments 6-18
tracking services accessed by user 6-27
Random Early Detection, described 20-14
range
macro 8-11
of interfaces 8-9
RARP 22-10
rcommand command 5-25
RCP
configuration files
downloading B-17
overview B-16
preparing the server B-16
uploading B-18
image files
deleting old image B-32
downloading B-30
preparing the server B-29
uploading B-32
read-only access mode 3-31
read-write access mode 3-31
reconfirmation interval, VMPS, changing 9-39
recovery procedures 27-1
redundancy
EtherChannel 21-1
features 1-3
HSRP 23-1
STP
backbone 10-9
multidrop backbone 10-13
path cost 9-32
port priority 9-30
redundant clusters
See cluster standby group
redundant power system
See RPS
Refresh button 3-29
reliable transport protocol, EIGRP 22-46
reloading software 4-17
Remote Authentication Dial-In User Service
See RADIUS
Remote Copy Protocol
See RCP
Remote Network Monitoring
See RMON
remove vlan-list parameter 9-27
resetting a UDLD-shutdown interface 14-4
restricting access
NTP services 6-38
overview 6-1
passwords and privilege levels 6-2
RADIUS 6-17
TACACS+ 6-10
retry count, VMPS, changing 9-39
reverse address resolution 22-10
Reverse Address Resolution Protocol
See RARP
RFC
1058, RIP 22-25
1112, IP multicast and IGMP 11-2
1157, SNMPv1 18-2
1166, IP addresses 22-5
Index
IN-28
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
RFC (continued)
1253, OSPF 22-35
1305, NTP 6-32
1587, NSSAs 22-35
1757, RMON 16-2
1901, SNMPv2C 18-2
1902 to 1907, SNMPv2 18-2
2236, IP multicast and IGMP 11-2
RIP
advertisements 22-25
authentication 22-28
configuring 22-26
default configuration 22-25
described 22-25
hop counts 22-25
split horizon 22-29
summary addresses 22-29
support for 1-4
RMON
default configuration 16-3
displaying status 16-6
enabling alarms and events 16-3
groups supported 16-2
overview 16-1
statistics
collecting group Ethernet 16-5
collecting group history 16-5
support for 1-5
root guard, STP 1-3, 10-20, 10-36
root switch, STP 10-22
route calculation timers, OSPF 22-42
routed packets, ACLs on 19-41
routed ports
configuring 22-3
defined 8-4
in switch clusters 5-10
routed ports, IP addresses on 8-22, 22-3
router ACLs 19-2
router ID, OSPF 22-43
route summarization, OSPF 22-41
routing
default 22-2
dynamic 22-2
redistribution of information 22-57
static 22-2
Routing Information Protocol
See RIP
routing protocol administrative distances 22-56
RPS LED 3-7
running configuration, saving 4-10
S
saving changes in CMS 3-32
SC (standby command switch) 5-12, 5-22
scheduled reloads 4-17
SDM
configuring 6-59
described 6-57
templates
number of 6-57
resources used for Fast Ethernet switches 6-58
resources used for Gigabit Ethernet switches 6-58
secure ports, configuring 12-8
security, port 12-8
security features 1-3
sequence numbers in log messages 17-8
server mode, VTP 9-4
set-request operation 18-3
setup program, failed command switch replacement 27-7,
27-9
severity levels, defining in system messages 17-8
show access-lists hw-summary command 19-6
show cdp traffic command 13-5
show cluster members command 5-25
show configuration command 8-17
show fm commands 19-37
show forward command 27-15
Index
IN-29
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
show interfaces command 8-15, 8-17
show running-config command
displaying ACLs 19-19, 19-30, 19-32
interface description in 8-17
shutdown command on interfaces 8-21
Simple Network Management Protocol
See SNMP
SNAP 13-1
SNMP
accessing MIB variables with 18-3
agent
described 18-3
disabling 18-5
community strings
configuring 18-5
for cluster switches 18-3
overview 18-3
configuration examples 18-10
default configuration 18-4
in-band management 1-2
in clusters 5-16
limiting access by TFTP servers 18-9
limiting system log messages to NMS 17-10
manager functions 1-6, 18-2
managing clusters with 5-26
MIBs
location of A-2
supported A-1
overview 18-1, 18-3
status, displaying 18-10
system contact and location 18-9
trap manager, configuring 18-8
traps
described 18-2
enabling 18-7
enabling MAC address notification 6-54
overview 18-1, 18-3
types of 18-7
versions supported 18-2
snooping, IGMP 11-1
software images
location in Flash B-20
recovery procedures 27-2
scheduling reloads 4-17
tar file format, described B-20
See also downloading and uploading
source addresses, in ACLs 19-11
SPAN
configuration guidelines 15-7
default configuration 15-7
destination ports 15-4
displaying status 15-13
interaction with other features 15-5
monitored ports 15-4
monitoring ports 15-4
overview 1-5, 15-1
received traffic 15-3
sessions
creating 15-8
defined 15-2
limiting source traffic to specific VLANs 15-12
monitoring VLANs 15-11
removing destination (monitoring) ports 15-10
removing source (monitored) ports 15-10
specifying monitored ports 15-8
source ports 15-4
transmitted traffic 15-3
VLAN-based 15-5
Spanning Tree Protocol
See STP
speed, configuring on interfaces 8-14
split horizon
IGRP 22-34
RIP 22-29
Stack Membership Discovery Protocol 10-14
Standby Command Configuration window 5-23
Index
IN-30
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
standby command switch
configuring 5-22
considerations 5-14
defined 5-2
priority 5-12
requirements 5-3
virtual IP address 5-13
See also cluster standby group and HSRP
standby group, cluster
See cluster standby group and HSRP
standby ip command 23-4
standby router 23-1
standby timers, HSRP 23-8
startup configuration
booting
manually 4-13
specific image 4-14
clearing B-19
configuration file
automatically downloading 4-12
specifying the filename 4-13
default boot configuration 4-12
static access mode 3-9
static access ports
assigning to VLAN 9-19
defined 8-2, 9-3
static addresses
See addresses
static IP routing 1-4
static MAC addressing 1-3
static routes, configuring 22-55
static routing 22-2
static VLAN membership 9-2
statistics
802.1X 7-14
CDP 13-5
interface 8-18
IP multicast routing 24-58
OSPF 22-44
statistics (continued)
QoS ingress and egress 20-56
RMON group Ethernet 16-5
RMON group history 16-5
SNMP input and output 18-10
VTP 9-13
storm control
configuring 12-3
definition 12-1
displaying 12-11
thresholds 12-1
STP
accelerating root port selection 10-12
BackboneFast, described 10-18
BPDU guard, described 10-11
BPDU message exchange 10-4
configuring
BackboneFast 10-36
BPDU guard 10-33
cross-stack UplinkFast 10-35
disable 10-22
forward-delay time 10-29
hello time 10-29
in cascaded stack 10-30
maximum aging time 10-30
path cost 10-27
Port Fast 10-32
port priority 10-26
root guard 10-36
root switch 10-22
secondary root switch 10-24
switch priority 10-28
UplinkFast with redundant links 10-34
cross-stack UplinkFast, described 10-13
default configuration 10-21
designated switch, defined 10-4
detecting indirect link failures 10-18
displaying status 10-31
Index
IN-31
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
STP (continued)
EtherChannel guard
described 10-20
enabling 10-37
extended system ID
affects on root switch 10-23
affects on the secondary root switch 10-24
overview 10-3
unexpected behavior 10-23
features 1-3
interface state, blocking to forwarding 10-10
interface states
blocking 10-7
disabled 10-8
forwarding 10-7, 10-8
learning 10-7
listening 10-7
overview 10-6
limitations with 802.1Q trunks 10-8
load sharing
overview 9-29
using path costs 9-32
using port priorities 9-30
loops 9-24
multicast addresses, affect of 10-8
overview 10-2
path costs 9-32
Port Fast
configuring 10-32
described 10-10
mode 9-36
port priorities 9-30
preventing root switch selection 10-20
redundant connectivity 10-9
root guard, described 1-3, 10-20
root port, defined 10-4
STP (continued)
root switch
affects of extended system ID 10-3, 10-23
configuring 10-23
election 10-3
unexpected behavior 10-23
settings in a cascaded stack 10-30
shutdown Port Fast-configured interface 10-11
supported number of spanning-tree instances 10-2
timers, described 10-5
UplinkFast, described 10-12
VLAN-bridge 10-9
stratum, NTP 6-32
stub areas, OSPF 22-39
subnet mask 22-5
subnet zero 22-8
summer time 6-44
SunNet Manager 1-6
supernet 22-8
SVIs
and IP unicast routing 22-3
and router ACLs 19-2
connecting VLANs 8-5
defined 8-4
routing between VLANs 9-2
switch clustering technology 1-1, 1-6, 5-1
See also CMS and clusters
switch clusters, planning considerations
LRE profiles 5-17
switch-specific features 5-18
switch console port 1-2
switched packets, ACLs on 19-39
switched ports 8-2
Switch Manager 3-2, 3-33
See also Device Manager
switchport block multicast command 12-6
switchport block unicast command 12-6
switchport command 8-12
switchport protected command 12-5
Index
IN-32
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
switch priority, STP 10-28
switch software features 1-1
switch virtual interface
See SVI
syslog
See system message logging
system clock
configuring
daylight saving time 6-44
manually 6-42
summer time 6-44
time zones 6-43
displaying the time and date 6-42
overview 6-32
See also NTP
System Database Management
See SDM
system message logging
default configuration 17-3
defining error message severity levels 17-8
disabling 17-4
displaying the configuration 17-12
enabling 17-4
facility keywords, described 17-12
level keywords, described 17-9
limiting messages 17-10
message format 17-2
overview 17-1
sequence numbers, enabling and disabling 17-8
setting the display destination device 17-4
synchronizing log messages 17-6
syslog facility 1-5
timestamps, enabling and disabling 17-7
UNIX syslog servers
configuring the daemon 17-11
configuring the logging facility 17-11
facilities supported 17-12
system messages 3-19
system name
default configuration 6-46
default setting 6-46
manual configuration 6-46
See also DNS
system prompt
default setting 6-46
manual configuration 6-47
system resource templates 6-57
system routes, IGRP 22-30
T
tables, CMS 3-29
tabs, CMS 3-29
TAC
inquiries xxxiii
toll-free telephone numbers xxxiv
website xxxiii
TACACS+
accounting, defined 6-11
authentication, defined 6-11
authorization, defined 6-11
configuring
accounting 6-17
authentication key 6-13
authorization 6-16
login authentication 6-14
default configuration 6-13
displaying the configuration 6-17
identifying the server 6-13
in clusters 5-17
limiting the services to the user 6-16
operation of 6-12
overview 6-10
support for 1-4
tracking services accessed by user 6-17
Index
IN-33
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
tail drop
described 20-13
support for 1-4
tar files
creating B-6
displaying the contents of B-6
extracting B-7
image file format B-20
technical assistance
Cisco.com xxxiii
TAC xxxiii
TAC website xxxiii
toll-free telephone numbers xxxiv
Telnet
number of connections 1-2
setting a password 6-6
templates, system resources 6-57
Terminal Access Controller Access Control System Plus
See TACACS+
terminal lines, setting a password 6-6
TFTP
configuration files
downloading B-11
preparing the server B-10
uploading B-12
configuration files in base directory 4-6
configuring for autoconfiguration 4-5
image files
deleting B-23
downloading B-22
preparing the server B-22
uploading B-24
limiting access by servers 18-9
TFTP server 1-2
threshold, traffic level 12-2
time
See NTP and system clock
time-range command 19-15
time ranges in ACLs 19-15
timestamps in log messages 17-7
time zones 6-43
Token Ring VLANs
support for 9-15
TrCRF and TrBRF 9-6
toolbar 3-21
tool tips 3-27
Topology view
Collapse Cluster view 3-11
colors 3-14
described 3-10
device icons 3-12
device labels 3-13
display options 3-14
Expand Cluster view 3-11
icons 3-12
link icons 3-13
link labels 3-13
multilink icon 3-23
neighboring devices 3-12
pop-up menus 3-23
TOS 1-4
traceroute command 27-13
See also IP traceroute
traffic
blocking flooded 12-6
fragmented 19-4
unfragmented 19-4
traffic policing 1-4
traffic suppression 12-1
transparent mode, VTP 9-4, 9-11
trap-door mechanism 4-2
traps
configuring MAC address notification 6-54
configuring managers 18-7
defined 18-2
enabling 6-54, 18-7
notification types 18-7
overview 18-1, 18-3
Index
IN-34
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
troubleshooting
connectivity problems 27-11
detecting
EtherChannel misconfigurations 10-37
unidirectional links 14-1
determining packet disposition 27-15
displaying crash information 27-17
PIMv1 and PIMv2 interoperability problems 24-28
show forward command 27-15
with CiscoWorks 18-3
with debug commands 27-14
with ping 27-11
with system message logging 17-1
with traceroute 27-12
trunking encapsulation 1-3
trunk ports
configuring 9-25
defined 8-3, 9-3
encapsulation 9-25, 9-31, 9-32
trunks
allowed-VLAN list 9-27
configuring 9-25, 9-31, 9-32
encapsulation 9-24
Fast Ethernet 9-22
Gigabit Ethernet 9-22
interacting with other features 9-24
ISL 9-22
load sharing
setting STP path costs 9-32
using STP port priorities 9-30
native VLAN for untagged traffic 9-29
parallel 9-32
pruning-eligible list 9-28
to non-DTP device 9-23
understanding 9-22
twisted-pair Ethernet, detecting unidirectional links 14-1
type-of-service
See TOS
U
UDLD
default configuration 14-3
echoing detection mechanism 14-2
enabling
globally 14-3
per interface 14-4
link-detection mechanism 14-1
neighbor database 14-2
overview 14-1
resetting an interface 14-4
status, displaying 14-5
support for 1-3
UDP, configuring 22-19
unauthorized ports with 802.1X 7-4
unequal-cost load balancing, IGRP 22-31
unicast storm control command 12-3
unicast storms 12-1
unicast traffic, blocking 12-6
UniDirectional Link Detection protocol
See UDLD
UNIX syslog servers
daemon configuration 17-11
facilities supported 17-12
message logging configuration 17-11
unrecognized Type-Length-Value (TLV) support 9-6
upgrading software images
See downloading
UplinkFast
described 10-12
redundant links 10-34
support for 1-3
Index
IN-35
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
uploading
configuration files
preparing B-10, B-13, B-16
reasons for B-8
using FTP B-15
using RCP B-18
using TFTP B-12
image files
preparing B-22, B-25, B-29
reasons for B-19
using FTP B-28
using RCP B-32
using TFTP B-24
URLs, Cisco xxxi
User Datagram Protocol
See UDP
user EXEC mode 2-2
username-based authentication 6-7
V
verifying changes in CMS 3-32
version-dependent transparent mode 9-6
virtual IP address
cluster standby group 5-13, 5-22
command switch 5-13, 5-22
See also IP addresses
virtual router 23-1, 23-2
VLAN ACLs
See VLAN maps
VLAN configuration mode 2-2
VLAN management domain 9-4
VLAN Management Policy Server
See VMPS
VLAN map entries, order of 19-28
VLAN maps
applying 19-32
common uses for 19-33
configuration example 19-34
configuration guidelines 19-28
configuring 19-27
creating 19-30
defined 19-2
denying access example 19-35
denying and permitting packets 19-30
displaying 19-33
examples 19-35
support for 1-3
usage 19-3
with router ACLs 19-42
VLAN membership
confirming 9-39
modes 3-9, 9-3
VLAN port membership modes 3-9
VLAN Query Protocol (VQP) 9-33
VLANs
adding to VTP database 9-17
aging dynamic addresses 10-10
allowed on trunk 9-27
changing 9-18
configuration guidelines 9-16
configuring 9-1
configuring in VTP database 9-17
connecting through SVIs 8-5
default configuration 9-15
deleting from VTP database 9-18
described 8-2, 9-1
features 1-3
illustrated 9-2
in the VTP database 9-17
ISL 9-22
limiting source traffic with SPAN 15-12
modifying 9-18
monitoring with SPAN 15-11
Index
IN-36
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
VLANs (continued)
native, configuring 9-29
number supported 1-3, 9-2
port membership modes 9-3
static-access ports 9-18, 9-19
STP and 802.1Q trunks 10-8
supported 9-2
Token Ring 9-15
VLAN-bridge STP 10-9, 26-1
VTP database and 9-15
VTP modes 9-4
VLAN Trunking Protocol
See VTP
VLAN trunks 9-22
VMPS
administering 9-40
configuration guidelines 9-36
default configuration 9-37
dynamic port membership
example 9-40
overview 9-34
reconfirming 9-39
troubleshooting 9-40
entering server address 9-37
mapping MAC addresses to VLANs 9-33
monitoring 9-40
reconfirmation interval, changing 9-39
reconfirming membership 9-39
retry count, changing 9-39
voice VLANs
See VVIDs
VQP 1-3
VTP
advertisements 9-5, 9-25
client mode, configuring 9-11
configuration
guidelines 9-8
requirements 9-9
VTP (continued)
configuration requirements 9-9
configuring
client mode 9-11
server mode 9-10
transparent mode 9-11
consistency checks 9-6
database 9-17
configuring VLANs 9-17
displaying 9-21
parameters 9-15
default configuration 9-8
described 9-3
disabling 9-11
domain names 9-8
domains 9-4
modes
client 9-4, 9-11
server 9-4, 9-10
transitions 9-4
transparent 9-4, 9-11
monitoring 9-13
passwords 9-9
pruning
disabling 9-13
enabling 9-13
examples 9-7
overview 9-6
pruning-eligible list, changing 9-28
server mode, configuring 9-10
statistics 9-13
support for 1-3
Token Ring support 9-6
transparent mode, configuring 9-11
using 9-3
version, guidelines 9-9
version 1 9-6
Index
IN-37
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03
VTP (continued)
version 2
configuration guidelines 9-9
disabling 9-12
enabling 9-12
overview 9-6
VLAN parameters 9-15
VTP monitoring 9-13
VTP pruning 1-3
VVIDs 1-8
W
web-based management software
See CMS
Weighted Random Early Detection
See WRED
Weighted Round Robin
See WRR
weighted round robin, described 20-3
window components, CMS 3-28
wizards 1-6, 3-26
WRED 1-4, 20-14
WRR 1-4, 20-3
X
XMODEM protocol 27-2
Index
IN-38
Catalyst 3550Multilayer Switch Software Configuration Guide
78-11194-03