Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
29
Note
For complete syntax and usage information for the commands used in this chapter, refer to these
publications:
Note
IPX traffic is fast switched on the MSFC. For more information, refer to this URL:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fatipx_c/index.htm
For information about IP multicast Layer 3 switching, see Chapter 31, Configuring IPv4 Multicast
Layer 3 Switching.
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 15 S
OL-10113-33
29-1
Chapter 29
Hardware access control list (ACL) switching for policy-based routing (PBR)
Hardware NetFlow switching for TCP intercept, reflexive ACL forwarding decisions
Hardware Cisco Express Forwarding (CEF) switching for all other IP unicast traffic
Hardware Layer 3 switching on the PFC supports modules that do not have a DFC. The MSFC forwards
traffic that cannot be Layer 3 switched.
Traffic is hardware Layer 3 switched after being processed by access lists and quality of service (QoS).
Hardware Layer 3 switching makes a forwarding decision locally on the ingress-port module for each
packet and sends the rewrite information for each packet to the egress port, where the rewrite occurs
when the packet is transmitted from the Cisco 7600 series router.
Hardware Layer 3 switching generates flow statistics for Layer 3-switched traffic. Hardware Layer 3
flow statistics can be used for NetFlow Data Export (NDE). (See Chapter 56, Configuring NetFlow
and NDE.)
Note
Layer 3 checksum
Packets are rewritten with the encapsulation appropriate for the next-hop subnet.
If Source A and Destination B are in different subnets and Source A sends a packet to the MSFC to be
routed to Destination B, the router recognizes that the packet was sent to the Layer 2 (MAC) address of
the MSFC.
To perform Layer 3 switching, the router rewrites the Layer 2 frame header, changing the Layer 2
destination address to the Layer 2 address of Destination B and the Layer 2 source address to the Layer 2
address of the MSFC. The Layer 3 addresses remain the same.
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 15 S
29-2
OL-10113-33
Chapter 29
In IP unicast and IP multicast traffic, the router decrements the Layer 3 TTL value by 1 and recomputes
the Layer 3 packet checksum. The router recomputes the Layer 2 frame checksum and forwards (or, for
multicast packets, replicates as necessary) the rewritten packet to Destination Bs subnet.
A received IP unicast packet is formatted (conceptually) as follows:
Layer 2 Frame Header
Layer 3 IP Header
Data FCS
Destination
Source
Destination
Source
TTL
Checksum
MSFC MAC
Source A MAC
Destination B IP
Source A IP
calculation1
Layer 3 IP Header
Source
Destination
Data FCS
Source
TTL Checksum
calculation2
Source IP
Address
Destination
IP Address
Rewrite Src/Dst
MAC Address
Destination
VLAN
171.59.1.2
171.59.3.1
Dd:Bb
Marketing
171.59.1.2
171.59.2.2
Dd:Cc
Engineering
171.59.2.2
171.59.1.2
Dd:Aa
Sales
MAC = Bb
MAC = Dd
MSFC
ne
Subnet 1/Sales
Sub
net
Host A
171.59.1.2
2/E
ngin
Host B
171.59.3.1
eeri
ng MAC = Cc
Host C
171.59.2.2
Data 171.59.1.2:171.59.2.2 Dd:Cc
44610
Sub
MAC = Aa
ng
keti
ar
t 3/M
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 15 S
OL-10113-33
29-3
Chapter 29
Feature
Default Value
Hardware Layer 3 switching supports the following ingress and egress encapsulations:
Ethernet V2.0 (ARPA)
802.3 with 802.2 with 1 byte control (SAP1)
802.3 with 802.2 and SNAP
For information on configuring unicast routing on the MSFC, see Chapter 22, Configuring Layer 3
Interfaces.
Hardware Layer 3 switching is permanently enabled. No configuration is required.
To display information about Layer 3-switched traffic, perform this task:
Command
Purpose
1
This example shows how to display information about hardware Layer 3-switched traffic on Fast
Ethernet port 3/3:
Router# show interface fastethernet 3/3 | begin L3
L3 in Switched: ucast: 0 pkt, 0 bytes - mcast: 12 pkt, 778 bytes mcast
L3 out Switched: ucast: 0 pkt, 0 bytes - mcast: 0 pkt, 0 bytes
4046399 packets input, 349370039 bytes, 0 no buffer
Received 3795255 broadcasts, 2 runts, 0 giants, 0 throttles
<...output truncated...>
Router#
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 15 S
29-4
OL-10113-33
Chapter 29
Note
The Layer 3 switching packet count is updated approximately every five seconds.
Cisco IOS CEF and dCEF are permanently enabled. No configuration is required to support hardware
Layer 3 switching.
With a PFC (and DFCs, if present), hardware Layer 3 switching uses per-flow load balancing based on
IP source and destination addresses. Per-flow load balancing avoids the packet reordering that can be
necessary with per-packet load balancing. For any given flow, all PFC- and DFC-equipped switches
make exactly the same load-balancing decision, which can result in nonrandom load balancing.
The Cisco IOS CEF ip load-sharing per-packet, ip cef accounting per-prefix, and ip cef accounting
non-recursive commands are not supported on the C7600 series routers.
For information about Cisco IOS CEF and dCEF on the MSFC, refer to these publications:
The Cisco IOS Switching Services Command Reference publication at this URL:
http://www.cisco.com/en/US/docs/ios/12_2/switch/command/reference/fswtch_r.html
Purpose
slot/port} |
Purpose
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 15 S
OL-10113-33
29-5
Chapter 29
Protocol Interface
IP
GigabitEthernet9/5
Note
Address
172.20.53.206(11)
504 packets, 6110 bytes
00605C865B82
000164F83FA50800
ARP
03:49:31
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 15 S
29-6
OL-10113-33