Beruflich Dokumente
Kultur Dokumente
Roland Ducomble TAC Technical Leader CCIE 3745 rducombl@cisco.com August 2006
2004 Cisco Systems, Inc. All rights reserved.
Agenda
Ethernet /Autonegotiation / Bridging Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking Some Additional IOS Caveats VTP Etherchannel SPAN RSPAN
LAN ATTT
Wait according to a random Binary Exponential Backoff (BEB) algorithm, and then try again. After 16 consecutive collisions,give up and discard the frame.
Collision detected
LAN ATTT
LAN ATTT
Fast Ethernet
Uses original Ethernet MAC frame, but operates at 10 times the speed of regular Ethernet. Retains everything that original ethernet has, except the InterFrameGap. Decreased from 9.6s to 0.96s.
LAN ATTT
Gigabit Ethernet
Comes in 2 flavors 1000Base-T and 1000Base-X 1000Base-T Ethernet 1000Base-T scrambles each byte in the MAC frame to randomize the bit sequence before it is encoded using Forward Error Correction method. It is using the 4 wire pair. Each transmitted frame is encapsulated with start-of-stream and end-of-stream delimiters. 1000Base-T supports both half-duplex and full-duplex operation. Cisco only does full.
1000Base-X Ethernet
Transmission coding is based on the ANSI Fibre Channel 8B/10B encoding scheme. Each 8-bit data byte is mapped into a 10-bit code-group for bit-serial transmission
All three 1000Base-X versions support full-duplex binary transmission at 1250 Mbps over two strands of optical fiber or two STP copper wire-pairs All 1000Base-X physical layers support both half-duplex and full-duplex operation
LAN ATTT
Auto-negotiation Overview
Auto-negotiation is used on 10/100 M port to negotiate speed and duplex between two peers. Standard defined by IEEE : 802.1u
LAN ATTT
LAN ATTT
LAN ATTT
S0 to S4 tells the protocol (802.3 in most cases) A0 to A7 : capability (100 base TX FD, ) Ack bit : set on receipt of 3 consecutive and consistent LCW from peer RF bit : remote fault indication NP : next page bit
LAN ATTT
10
LAN ATTT
11
2.100Base-T4
3.100Base-TX 4.10Base-T Full Duplex 5.10Base-T
LAN ATTT
12
FLP
A and B exchange FLP for auto-negotiation and because of a cable fault A never receive FLP from B and as such assume a fault and set the RF bit in the FLP it sends to B
Negotiation cannot be completed
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
13
LAN ATTT
14
Parallel detection
The Parallel Detection Function is an auto-negotiating device's means to establish links with non-negotiating, fixed speed devices. If an auto-negotiating device receives either 10BaseT or T4 Link Test Pulses or the idle stream of a TX device, it should do one of two things:
enable the link at the received pulse speed if it supports it
A device can never parallel detect to a full duplex link, however. Thus in parallel detection mode WE ARE ALWAYS IN HALFDUPLEX
LAN ATTT
15
Auto-negotiation summary
Config Peer 1 Config Peer 2 Auto 100 FD 100 FD 100 HD Auto Auto 100 FD Auto Result on Peer 1 100 FD 100 FD 100 FD 100 HD Result on Peer 2 100 FD 100 HD 100 FD 100 HD Comments Correct nego when both peer are capable of 100 FD DUPLEX MISMATCH Correct manual config
Link is established, but peer 2 does not see any auto-negotiation information from NIC and defaults to half-duplex. Link is established, but peer 2 will not see FLP and will default to 10 half-duplex.
10 HD 10 FD
Auto 100 FD
10 HD No link
10 HD No link
Mbps
SPEED MISMATCH
LAN ATTT
16
Auto-Negotiation
Upon initialization, each device transmits a 16-bit message (called a Fast Link Pulse Burst) to its link partner, which is used to negotiate:
Speed supported by partner;
Duplex mode supported by partner; Flow control support via MAC control pause frames; and It also can be used to indicate a fault and specify the type of fault.
The 16-bit negotiation message should be sent repeatedly until acknowledged by partner.
An acknowledgement should be sent after 3 consecutive messages confirming capabilities. Auto-negotiation signaling is independent of the signaling/encoding used for normal data.
LAN ATTT
17
LAN ATTT
18
Avoid :
Auto to Fix speed/duplex
LAN ATTT
19
LAN ATTT
20
LAN ATTT
21
Gigabit auto-negotiation
Auto-negotiation in 1000baseX is different than in 10/100 What does auto-negotiation at gig speed :
Duplex negotiation
LAN ATTT
22
Gigabit auto-negotiation
Exchange word in similar way as 10/100 nego Duplex and flow control info in the negotiation word depends on capability and config Once capability has been exchange, we decide on link settings Duplex : Full duplex is the priority regarding half duplex Flow control : PAUSE frame are enable in sending and/or receiving direction
LAN ATTT
23
Nego needs to be enable on both side or the link or disable on both side of the link.
LAN ATTT
24
Review
What is the result of PC 10/100 NIC auto sensing to a switch port fix in 100M full Duplex ? What is the result of connecting to 1000 base-X devices where one side negotiate and the other has negotiation disable If Gig nego is disable on both side of a connection, what will happen is I unplug Rx Strand of fiber on one side ?
LAN ATTT
25
DA SA(>1500)
Data
FCS
Ethernet_II
1972: Work began on the original version of Ethernet, Ethernet Version 1, at the Xerox Palo Alto Research Center. 1980: Ethernet Version 1 was released in 1980 by a consortium of companies consisting of DEC, Intel, and Xerox. 1980: IEEE meetings on Ethernet began. 1982: DIX (DEC/Intel/Xerox) consortium releases Version II Ethernet
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
26
DA SA(>1500)
Data
FCS
Ethernet_II
DA SA
Data
FCS
1983: Novell NetWare '86 was released with a proprietary frame format based on a preliminary release of the 802.3 specification.
LAN ATTT
27
DA SA(>1500)
Data
FCS
Ethernet_II
DA SA
Data
FCS
DA SA Length
Data
FCS
SAP (8023)
Ethernet_802.2
28
DA SA(>1500)
Data
FCS
Ethernet_II
DA SA
Data
FCS
DA SA Length
Data
FCS
SAP (8023)
Ethernet_802.2
DA SA
DSAP SSAPControl OUI Type AA 03 (3) (2) Length AA (1) (1) (1)
Data
FCS
SNAP
SNAP (snap)
Ethernet_SNAP
Finally, the 802.3 SNAP format was created to address backwards compatibility issues between Version 2 and 802.3 Ethernet.
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
29
Hub
LAN ATTT
30
Hub
LAN ATTT
31
What is a Collision Domain? What is a Broadcast Domain? How many of each do we have here?
LAN ATTT
32
LAN ATTT
33
LAN ATTT
34
LAN ATTT
35
Floor #3
Floor #2
Floor #1
LAN ATTT
36
Floor #3
Floor #2
Floor #1
LAN ATTT
37
Floor #3
Floor #2
Floor #1
LAN ATTT
38
Floor #3
Half-Duplex
Floor #2
Half-Duplex
Floor #1
LAN ATTT
39
Floor #3
Floor #2
Floor #1
LAN ATTT
40
Floor #3
Floor #2
Floor #1
LAN ATTT
41
Bridge Functionality
Segment
Port E0
Port E1
Segment
Four major functions: Learning MAC addresses; Forwarding/filtering frames; Forwarding broadcasts; and Loop avoidance - Spanning Tree
LAN ATTT
42
A1
0260.8c01.1111
B1
Port E0
Port E1
0260.8c01.3333
A2
0260.8c01.2222
Por t E2
C1 C2
0260.8c01.6666
B2
0260.8c01.4444
0260.8c01.5555
Source MAC address is associated with NIC Addresses are learned from SA field of ethernet frame.
43
A1
0260.8c01.1111
B1
Port E0
Port E1
0260.8c01.3333
A2
0260.8c01.2222
Por t E2
C1 C2
0260.8c01.6666
B2
0260.8c01.4444
0260.8c01.5555
LAN ATTT
44
A1
0260.8c01.1111
B1
Port E0
Port E1
0260.8c01.3333
A2
0260.8c01.2222
Por t E2
C1 C2
0260.8c01.6666
B2
0260.8c01.4444
0260.8c01.5555
LAN ATTT
45
A1
0260.8c01.1111
B1
Port E0
Port E1
0260.8c01.3333
A2
0260.8c01.2222
Por t E2
C1 C2
0260.8c01.6666
B2
0260.8c01.4444
0260.8c01.5555
LAN ATTT
46
A1
0260.8c01.1111
B1
Port E0
Port E1
0260.8c01.3333
A2
0260.8c01.2222
Por t E2
C1 C2
0260.8c01.6666
B2
0260.8c01.4444
0260.8c01.5555
LAN ATTT
47
A1
0260.8c01.1111
B1
0260.8c01.3333
Port E0
Port E1
A2
0260.8c01.2222
Por t E2
C1 C2
0260.8c01.6666
B2
0260.8c01.4444
0260.8c01.5555
LAN ATTT
48
Frame Forwarding
MAC Address Table E0: E0: E1: E1: E2: E2: 0260.8c01.1111 0260.8c01.2222 0260.8c01.3333 0260.8c01.4444 0260.8c01.5555 0260.8c01.6666
A1
0260.8c01.1111
B1
0260.8c01.3333
E0
E1
E2
A2
0260.8c01.2222
B2
0260.8c01.4444
C1
C2
0260.8c01.6666
0260.8c01.5555
49
Frame Filtering
MAC Address Table E0: E0: E1: E1: E2: E2: 0260.8c01.1111 0260.8c01.2222 0260.8c01.3333 0260.8c01.4444 0260.8c01.5555 0260.8c01.6666
A1
0260.8c01.1111
B1
0260.8c01.3333
E0
A2
0260.8c01.2222
E1
X
C1
0260.8c01.5555
E2
B2
0260.8c01.4444
C2
0260.8c01.6666
50
Handling Broadcasts
MAC Address Table E0: E0: E1: E1: E2: E2: 0260.8c01.1111 0260.8c01.2222 0260.8c01.3333 0260.8c01.4444 0260.8c01.5555 0260.8c01.6666
A1
0260.8c01.1111
B1
0260.8c01.3333
E0
E1
E2
A2
0260.8c01.2222
B2
0260.8c01.4444
C1
C2
0260.8c01.6666
0260.8c01.5555
51
Agenda
Ethernet / Bridging
Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking
LAN ATTT
52
Address Learning
What are the elements that actually accomplish address learning?
EARL = Enhanced Address Recognition Logic
The EARL is the logic that maintains the MAC address table just like any learning bridge. The table where these addresses are stored is referred to as the CAM (content-addressable memory) because it is hashed by MAC address. Each entry is a MAC address, port association (based on SA), and VLAN ID.
LAN ATTT
53
CAM Table
The EARL consults the CAM table for a MAC corresponding to the destination address (DA) of each frame, to determine the egress port(s). DAs that are not already known are flooded to all ports in the same VLAN as the inbound frame. Entries are added by the source address (SA) of the frame. By default, entries will age out at 300 seconds.
LAN ATTT
54
LAN ATTT
55
The Switching/Data Bus (usually called Dbus): Catalyst 5000/5500: Dbus has a data transfer rate of 1.2 Gbps. The 5500 series has 3-1.2 Gb buses. Catalyst 6000/6500: Dbus has a data transfer rate of 16-Gbps.
A bus access arbitration scheme is implemented on the supervisor engine, and all line modules and the supervisor have equal access to the switching bus. The Management Bus: Carries configuration information from the NMP to each module and statistical information from each module to the NMP, using SCP. Also called MBUS or EOBC (Ethernet Out Of Band Channel). The Results/Index Bus: Carries port-select (LTL, CBL, etc.) information from the central EARL to the ports. This information determines which ports forward the packet and which flush it from the buffer. It is also called RBUS.
LAN ATTT
56
6509-NEB 6509
6513 6506
6503
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
57
Routing-Engines
MSFC MSFC2 MSFC3
Switching-Engines
Cafe2 PFC PFC2 PFC3
LAN ATTT
58
LAN ATTT
59
LAN ATTT
60
LAN ATTT
61
LAN ATTT
62
Agenda
Ethernet / Bridging
Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking
LAN ATTT
63
LAN ATTT
64
Catos
Pure L2 software (only L2 functionality no routing) One ip address at a time used for management No config mode or anything like that Config done per set command Verification done per show command Sh tech supported
LAN ATTT
65
IOS
More and more widespread for most of the new catalyst Allow configuring L2 feature (Catos like feature) And L3 feature (like pure ios on routers) A port can be a L2 port or an L3 Port (on some catalyst)
LAN ATTT
66
Cat6500 Cases
Cat 6500 is composed of a supervisor (called SP or PFC) and a routing engine (called MSFC) MSFC is daughter on supervisor (not user visible and no separate console) Two software option :
Hybrid : CatOS on sup and IOS on MSFC 2 config files, 2 separate software
Native: Unique bundled IOS image running on both sup and MSFC unique IOS file and unique config file.
LAN ATTT
67
Multiple modes of operation (EXEC, Privileged EXEC, Global Config, Interface Config, etc).
Designed primarily for Layer-3, routing operations. Ports are disabled by default. Must issue no shut command. Command syntax varies.
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
Virtually all config commands begin with set (i.e. set vlan 99).
68
LAN ATTT
69
Customers become tired of shuffling back and forth between two operating systems.
There is a big push to get rid of CatOS and make everything IOS.
LAN ATTT
70
LAN ATTT
71
Agenda
Ethernet / Bridging
Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking
LAN ATTT
72
Floor #3
Floor #2
Floor #1
LAN ATTT
73
Floor #3
Floor #2
Floor #1
LAN ATTT
74
Floor #3
Bridge A
B2 B1 B1, B2
B3 B4
Floor #2
Floor #1
LAN ATTT
75
Floor #3
Bridge A
B2 B1 B1, B2
B3 B4
B3, B4 Bridge B
Floor #2
Floor #1
LAN ATTT
76
Floor #3 1.
B2 B1 B1, B2
Bridge A
Each floor needs its own switch Router interfaces are expensive
B3, B4 Bridge B
B3 B4
2.
Floor #2
Floor #1
LAN ATTT
77
The SolutionVLANs!!
VLAN = Method of micro-segmenting an L2 / L3 topology. Each VLAN is a separate broadcast domain. Any port on a Catalyst switch can be in any VLAN. Inter-VLAN communication requires a L3 routing device.
78
LAN ATTT
79
VLAN Tagging
FCS is checked on a frame at the ingress port. If the FCS is good, the VLAN id tag is added to the frame before it is placed on the switching bus. VLAN belonging to this port. Port ID of this port. The tag is removed at the egress port(s).
LAN ATTT
80
LAN ATTT
81
Enter vlan database 3524XL#vlan database Must be in server mode 3524XL(vlan)#vtp server Add vlan 3524XL(vlan)#vlan 2 Remove vlan 3524XL(vlan)#no vlan 2 Enter Global Config 4500#config t Must be in server mode 4500(config)#vtp server Add vlan 4500(config)#vlan 2 Remove vlan 4500(config)#no vlan 2
82
VLAN Caveats
What happens if I delete a VLANand there are still ports assigned to that VLAN?
LAN ATTT
83
VLAN Caveats
Creating VLAN 60 and assigning it to port 3/21.
LAN ATTT
84
VLAN Caveats
Verifying
LAN ATTT
85
VLAN Caveats
Now I delete the VLANwithout first moving the port to an alternate VLAN.
LAN ATTT
86
VLAN Caveats
So whats the status now of port 3/21?? Deactivated!!
LAN ATTT
87
Building 1
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
Building 2
88
Building 1
Building 2
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
89
Building 1
Building 2
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
90
Building 2
91
Building 1 Answer: Too many ports are used just for switch-to-switch connections!
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
Building 2
92
LAN ATTT
93
Problem: How do you identify which frame belongs to which VLAN if all VLANs are carried in a single link?
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
94
95
Trunking Methods
There are two trunking protocols. ISL = Cisco proprietary 802.1q = IEEE specification Trunking status can be negotiated on a link.
LAN ATTT
96
ISL Overview
All frames are encapsulated. Adds 26 byte ISL header and 4 byte CRC to ethernet frame. VLAN ID is carried in ISL header. ISL is sent as a giant, MAC-layer multicast: (01-00-0C-CC-CCCC ether type 2004).
LAN ATTT
97
Data
FCS
TAG
DA SA
Type/ Length
Data
FCS
FCS
LAN ATTT
98
LAN ATTT
99
DA SA
Type/ Length
Data
Type/ Length
FCS
DA
SA
TAG
Data
FCS
(802.1Q Tag)
LAN ATTT
100
DA
SA
TAG 4 Bytes
Type/Len
Data
FCS
101
LAN ATTT
102
Layer 2 802.1Q/p
PREAM. SFD DA SA TAG Type 4 Bytes Len DATA FCS
CoS
TPID 0x8100
16bits
VLAN ID 0-4095
12bits
CFI
3bits 1bit
LAN ATTT
103
LAN ATTT
104
DTP Feature
Dynamic negotiation of trunking mode :
To trunk or not ? Trunk ISL or trunk dot1q ? (ISL preferred)
DTP
DTP
DTP
LAN ATTT
105
Syntax: set trunk <mod_num/port_num> [on|off|desirable|auto|nonegotiate] [vlans] [trunk_type] (vlans = 1..1005 An example of vlans is 2-10,1005)(trunk_type = isl,dot1q,dot10,lane,negotiate) Example: set trunk 1/1 desirable dot1q On Trunk is manually on regardless of what the other side can/cannot do. DTP frames sent. Off Trunk is manually turned off, regardless of possible receipt of DTP frames from remote end of link. Auto Trunk is in a passive state waiting for receipt of DTP frames. Will not originate DTP frames. Desirable Port wishes to become trunk. Will source/originate DTP frames to remote port. Nonegotiate - Trunk is manually on regardless of what the other side can/cannot do. DTP frames NOT sent.
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
106
Or dot1q
LAN ATTT
107
LAN ATTT
108
Native VLAN
Native VLAN is the VLAN a port would be assigned to if it was not participating in a trunk In 802.1q, frames in the native VLAN are not tagged at all by default Native VLAN on each end of a trunk MUST match for correct operation
LAN ATTT
109
Pruning VLANs
By default a trunk allow all Vlan from 1 to 4096 You can prune some Vlan manually which means that you will disallow some Vlan on the trunk
When new vlan are added, pay attention to allow them on the trunks.
LAN ATTT
110
LAN ATTT
111
LAN ATTT
112
LAN ATTT
113
Cat6k based
Supports both isl and dot1q on all port
LAN ATTT
114
Status -----------trunking
Vlans allowed on trunk -------------------------------------------------1-1005 Vlans allowed and active in management domain --------------------------------------------------1-2,101-109,151-152,500,999-1000
Port Vlans in spanning tree forwarding state and not pruned -------- -----------------------------------------------------4/3 1-2,101-109,151-152,500,999-1000 Taras> (enable)
LAN ATTT
115
Sh interface [fa|gig] x/x switchport XL family switches do not support DTP 2950 only support dot1q and DTP 3550/3750/4k sup3/sup4 and 6k native do support both isl and dot1q and they supports DTP
LAN ATTT
116
Brush#sh int gig 0/1 switchport Name: Gi0/1 Switchport: Enabled Administrative mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
117
LAN ATTT
118
LAN ATTT
119
Vlans allowed on trunk 1,10-199,222,4000 Vlans allowed and active in management domain 1,10-11,100-102,155,161,166,171-173,198-199,222,4000 Vlans in spanning tree forwarding state and not pruned 1,10-11,100-102,155,161,166,171-173,198-199,222,4000
LAN ATTT
120
Trunking summary
In case of trunk problem or connectivity problem get on both side :
Sh trunk (or sh int x/x switchport)
LAN ATTT
121
Agenda
Ethernet / Bridging
Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking
LAN ATTT
122
LAN ATTT
123
Cat4k# conf t Enter configuration commands, one per line. End with CNTL/Z.
LAN ATTT
124
Cat4k# conf t Enter configuration commands, one per line. End with CNTL/Z. Cat4k(config)# interface fastethernet 3/1
LAN ATTT
125
Cat4k# conf t Enter configuration commands, one per line. End with CNTL/Z. Cat4k(config)# interface fastethernet 3/1 Cat4k(config-if)# switchport
Different defaults per IOS version. Dynamic Auto Dynamic Desirable
LAN ATTT
126
Cat4k# conf t Enter configuration commands, one per line. End with CNTL/Z. Cat4k(config)# interface fastethernet 3/1 Cat4k(config-if)# switchport Cat4k(config-if)# switchport mode access
Forces the port to be a switchport. Will not send, or respond to, DTP. In VLAN 1 by default
LAN ATTT
127
Cat4k# conf t Enter configuration commands, one per line. End with CNTL/Z. Cat4k(config)# interface fastethernet 3/1 Cat4k(config-if)# switchport Cat4k(config-if)# switchport mode access Cat4k(config-if)# switchport access vlan 2 Cat4k(config-if)# end Cat4k#
LAN ATTT
128
Configuration Task
Pause the presentation now and do the following on your ownon a piece of paper: You are on a switch at the following prompt:
Router > Catalyst IOS Switch
Move on to the next slide when you think you have the answer.
LAN ATTT
129
Router# configure terminal Router (config)# vlan 55 this creates the VLAN Router (config-vlan)# exit Router(config)# interface fastethernet 3/1 Router (config-if)# switchport this ensures the port is a Layer-2 switching port
Router(config-if)# switchport mode access this ensures that the port will NOT become a trunk
Router (config-if)# switchport access vlan 55 port is now in VLAN 55 Router (config-if)# no shut
LAN ATTT
130
LAN ATTT
131
LAN ATTT
132
Routed: L3 ports
Direct interface as in any router today. sub-interface support on 6500 sup720 Whats the Default? Depends on platform. On Cat6ks with Native IOS, ports are routed and shutdown like IOS. CAT can have a mixture of above ports configured in one box (should we call it interfaces?).
LAN ATTT
133
Port Type
Hybrid model: Router has only logical int. Cosmos handles both logical and physical. SVI (logical int) created with int vlan command. If underlying !=L2 then SVI down. Bridge-groups supported but no BVIno needuse CAT.
SVIs are optional; you can route to VLAN N, but not to VLAN 3 in this case
Router
SVI
VLAN 1
VLAN 2
VLAN 3
VLAN N
Physical Ports
Port 1 Port 2 Port 3 Port 4
Port M
Trunk Port
Routed Port
Routed Port
134
Configuration Task
Pause the presentation now and do the following on your ownon a piece of paper: You are on an IOS-based switch at the following prompts:
Router > Write down the command(s) (using only Catalyst IOS) to: Configure interface Fastethernet 5/6 as a desirable 802.1q trunk.
The switch contains NO passwords. Move on to the next slide when you think you have the answer
LAN ATTT
135
Router# configure terminal Router(config)# interface fastethernet 5/6 Router (config-if)# switchport this ensures the port is a Layer-2 switching port Router(config-if)# switchport trunk encapsulation dot1q you must configure the trunking
encapsulation BEFORE you configure the trunking mode.
LAN ATTT
136
With Layer-3 switches (Cat6k, 3550, 4500, etc) you place the IP address on an SVI (Switched Virtual Interface) to have the same effect:
SVI Cat6k# config t Cat6k(config)# interface vlan 1 Cat6k(config-if)# ip address 1.1.1.1 255.0.0.0
Default gateway address for hosts in VLAN 1
LAN ATTT
137
Vlan-2
Vlan-3
2.2.2.1 /8
3.3.3.1 /8
LAN ATTT
138
Cat6k# config t Cat6k(config)# interface vlan 2 Cat6k(config-if)# ip address 2.2.2.2 255.0.0.0 Cat6k(config)# interface vlan 3 Cat6k(config-if)# ip address 3.3.3.2 255.0.0.0
2.2.2.1 /8
3.3.3.1 /8
LAN ATTT
139
NOTE: A space is required before and after all hyphens and commas.
LAN ATTT
140
Review
What kind of interface can we have an a sup720 running native ?
Switchport :
L2 Trunk
L2 access No switchport : Main interface Subinterface SVI Portchannel either L2 trunk, L2 access, L3 main or L3 subinterface !!!
LAN ATTT
141
Int gig 2/1 Switchport Ip address 1.1.1.1 255.255.255.0 Int gig 3/1 No switchport Ip address 2.2.2.2 255.255.255.0 Can we route with that config between a frame in vlan 3 incoming ongig 1/1 towards a port 3/1 ? Can we route with that config between a frame in vlan 3 incoming ongig 1/1 towards a port 2/1 ?
LAN ATTT
142
Can we route a packet incoming from 3/1 with source ip 2.2.2.10 towards a destination in vlan 4 ?
Interface gig 1/1 Switchport Switchport trunk encaps dot1q Switchport trunk allowed vlan 2,3,4 Switchport mode trunk
Int gig 2/1 Switchport Switchport mode access Switchport access vlan 3 Int gig 3/1 No switchport Ip address 2.2.2.2 255.255.255.0 Int vlan 3 Ip address 3.3.3.1 255.255.255.0
LAN ATTT
143
Is it a valid config ?
Int gig 1/1.1 Encapsulation dot1q 3 Ip address 3.3.3.1 255.255.255.0 Int vlan 3
LAN ATTT
144
Agenda
Ethernet / Bridging Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking Some Additional IOS Caveats VTP
Etherchannel
LAN ATTT
145
LAN ATTT
146
VTP
VTP is Cisco proprietary. It is managed through layer 2 multicast packets. It only works over established trunks (cant do through a router). VTP packet only goes over vlan 1 on trunk
LAN ATTT
147
VTP Domains
VTP domain is empty by default (no name configured). A VTP domain must be configured before VLANs can be created on a switch.
CatOS: set vtp domain {name} *case sensitive, must be exact Catalyst IOS: Switch# config t Switch(config)# vtp domain {name} *case sensitive, must be exact
LAN ATTT
148
LAN ATTT
149
LAN ATTT
150
LAN ATTT
151
LAN ATTT
152
ISL
ISL
HeyI have some VLANs you should know about!
VTP Client
VTP information is distributed throughout the network
LAN ATTT
153
ISL
ISL
HeyI have some VLANs you should know about!
Great! Now I can add those new VLANs and Ill also pass them on!
VTP Client
LAN ATTT
154
ISL
ISL
HeyI have some VLANs you should know about!
Great! Now I can add those new VLANs and Ill also pass them on!
VTP Client
LAN ATTT
155
ISL
ISL
HeyI have some VLANs you should know about!
Great! Now I can add those new VLANs and Ill also pass them on!
VTP Client
LAN ATTT
156
If a switch receives a VTP packet with a configuration revision that is higher than its own, stored, number, the action specified in that packet is acted upon.
If it is lower or equal, the packet is ignored.
LAN ATTT
157
An existing VTP domain is running well Add a new switch Almost all production VLANs get deleted everywhere!
LAN ATTT
158
VLAN 1
VTP Rev 4
VTP Rev 4
VTP Rev 4
LAN ATTT
159
VTP
VLAN 1
VTP Rev 7 VTP Rev 4
VTP Rev 4
VTP Rev 4
LAN ATTT
160
VTP
VLAN 1
VTP Rev 7 VTP Rev 4 7
VTP Rev 4 7
VTP Rev 4
LAN ATTT
161
VTP
VLAN 1
VTP Rev 7 VTP Rev 4 7
VTP Rev 4 7
VTP Rev 4
LAN ATTT
162
VTP
VLAN 1
VTP Rev 7 VTP Rev 4 7
VTP Rev 4 7
VTP Rev 4 7
LAN ATTT
163
VTP
The revision number is incremented each time a VLAN is added or deleted via the set vlan and clear vlan commands Revision must be synched across entire VTP domain VLANs not known to the server of highest revision will be deleted
LAN ATTT
164
Switch> show vtp domain Domain VTP Domain Name Index Version ----------------- ----mydomain 1 2 Vlan-count ---------15
Password -----------
LAN ATTT
165
LAN ATTT
166
LAN ATTT
167
VTP Pruning
If there are no ports on the switch in a given VLAN, packets will not get flooded across the trunk to that switch.
STP still runs on all pruned VLANs. Manually clearing trunks will remove STP from the trunk.
LAN ATTT
168
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
169
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
170
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
171
swit ch 1
VLAN 10
Configuration Register = 4
LAN ATTT
172
swit ch 2
VLAN 10
swit ch 1
VLAN 10
VTP Advertisement Request sent by switch 2, My configuration register is lower than yours. Please send me your list of VLANs.
LAN ATTT
173
swit ch 2
VLAN 10
swit ch 1
VLAN 10
VTP Subset Advertisement sent by switch 1, I have VLANs 1 and 10. Configuration Register = 4
LAN ATTT
174
swit ch 2
VLAN 10
VLAN 10
2
swit ch 1
Broadcast generated by PC 2
LAN ATTT
175
swit ch 2
VLAN 10
VLAN 10
2
swit ch 1
Broadcast is forwarded through all ports in VLAN 10 including all VLAN trunks
Inefficient utilization of trunk bandwidththeres nobody on switch 2 who cares about the broadcast so why send it to switch 2?
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
176
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
177
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
178
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
179
swit ch 2
VTP Summary Advertisement sent by switch 1, I have some VLANs Configuration Register = 4
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
180
swit ch 2
VLAN 10
swit ch 1
VLAN 10
VTP Advertisement Request sent by switch 2, My configuration register is lower than yours. Please send me your list of VLANs
LAN ATTT
181
swit ch 2
VLAN 10
swit ch 1
VLAN 10
VTP Subset Advertisement sent by switch 1, I have VLANs 1 and 10 Configuration Register = 4
LAN ATTT
182
swit ch 2
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
183
swit ch 2
VLAN 10
Each VLAN in a VTP Join message contains a 1-bit flood descriptor If bit for VLAN = 1 then it means flooding is allowed across the trunk. If bit for VLAN = 0 then it means flooding for this VLAN is not allowed across the trunk. Please dont flood any traffic to me on VLAN 10
LAN ATTT
184
swit ch 2
VLAN 10
VLAN 10
2
swit ch 1
Broadcast generated by PC 2
LAN ATTT
185
swit ch 2
VLAN 10
X
swit ch 1
VLAN 10
2
Broadcast is forwarded all ports in VLAN 10but pruned from trunk to switch 2.
LAN ATTT
186
swit ch 2
VLAN 10
VLAN 10
swit ch 1
VLAN 10
LAN ATTT
187
swit ch 2
swit ch 1
VLAN 10
Bits for VLAN 1 and VLAN 10 both set to 1 If you need to flood traffic to me on either VLAN 1 or VLAN 10, thats okay.
LAN ATTT
188
LAN ATTT
189
Quiz!!
Name some of the reasons a company may choose to implement VLANs on their switches.
LAN ATTT
190
Quiz!!
Name some of the reasons a company may choose to implement VLANs on their switches.
To isolate broadcasts into segmented broadcast domains. To implement a basic form of security. To be able to implement common QoS policies based on distinct groupings of people or departments.
LAN ATTT
191
Quiz!!
What kind of networking device is required for interVLAN communications?
LAN ATTT
192
Quiz!!
What kind of networking device is required for interVLAN communications?
A router
LAN ATTT
193
Quiz!!
What is the purpose of a VLAN trunk?
LAN ATTT
194
Quiz!!
What is the purpose of a VLAN trunk?
To extend VLANs across two or more switches and conserve on the quantity of ports needed to do so.
LAN ATTT
195
Quiz!!
How many Ethernet trunking protocols can you currently configure on a Catalyst switchand which one (if any) is an IEEE standard?
LAN ATTT
196
Quiz!!
How many Ethernet trunking protocols can you currently configure on a Catalyst switchand which one (if any) is an IEEE standard?
TwoISL and 802.1Q (802.1Q is an IEEE standard)
LAN ATTT
197
Quiz!!
Can you configure an ISL trunk between a Cisco Catalyst switch and a non-Cisco switch?
LAN ATTT
198
Quiz!!
Can you configure an ISL trunk between a Cisco Catalyst switch and a non-Cisco switch?
NoISL is Cisco-proprietary.
LAN ATTT
199
Quiz!!
Explain the concept of a Native VLAN as it applies to VLAN trunks.
LAN ATTT
200
Quiz!!
Explain the concept of a Native VLAN as it applies to VLAN trunks.
A Native VLAN:
Is the default VLAN for that port. In other words, the VLAN that port would revert back to if trunking failed.
Is non tag in default implementation of dot1q trunking by cisco.. However latest soft allows on each switch to configure the tagging of native vlan.
LAN ATTT
201
Quiz!!
If switches do not pay attention to Layer 3 (IP addresses) and you cant place an IP address on a switchport how can you telnet to a switch running CaTos?
See next slide for the answer
LAN ATTT
202
LAN ATTT
203
10.1.0.1 /16
B
Console> (enable) show port Port Name Status Vlan Level Duplex Speed Type ----- ------------------ ---------- ---------- ------ ------ ----- -----------2/1 notconnect 1 normal full 1000 1000BaseSX 2/2 notconnect 1 normal full 1000 1000BaseSX 2/3 connected 1 normal a-full a-100 10/100BaseTX 2/4 connected 5 normal a-full a-100 10/100BaseTX 2/5 connected 10 normal a-full a-100 10/100BaseTX
2/4
A
10.0.0.1 /8
2/3 2/5
C
10.1.0.2 /16
Question Which PC will be able to ping the switch given the above configuration?
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
204
An Important Note
Only switches running CatOS have an SC0 interface. SC0 does NOT exist in switches running IOS. There is no need for it.
LAN ATTT
205
Agenda
Ethernet / Bridging Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking Some Additional IOS Caveats VTP
Etherchannel
LAN ATTT
206
Why Etherchannel?
Cat 6500-A
Non-Channel
5/6 5/7 5/6 5/7
Cat 6500-B
Under normal configuration, Spanning Tree would block one connection. Blocked Link = Wasted Bandwidth;
Solution
LAN ATTT
207
Etherchannel
The purpose of channeling is to aggregate ports for additional bandwidth utilization.
LAN ATTT
208
Etherchannel
Cat 6500-A
5/6 5/7
Channel
5/6 5/7
Cat 6500-B
Since an etherchannel is considered one port for STP, full bandwidth utilization is achieved. Etherchannel is built in redundancy. If one link fails, other links in the etherchannel will pick up the traffic. There is minimal traffic loss after link failure. No STP convergence is required.
LAN ATTT
209
LAN ATTT
210
Etherchannel - Configuration
FEC/GEC bundling modes (Cat OS)
ON: Can form a channel only with a partner also in ON mode. PAgP packets are not sent. AUTO: Can form a channel only with a partner in DESIRABLE mode. AUTO does not initiate negotiation. DESIRABLE: (recommended) Can form a channel with a partner in either AUTO or DESIRABLE modes. OFF: Can not form a channel with any port.
LAN ATTT
211
Etherchannel - Configuration
IOS configuration note: 2900/3500XL
EtherChannel has to be created manually because Catalyst 2900XL/3500XL switches do not support Port Aggregation Protocol.
If the Etherchannel is connected to a CAT OS switch, the Cat OS switch must be in the ON mode.
LAN ATTT
212
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_6_3/confg_gd/cha nnel.htm
LAN ATTT
213
**Note: When configuring the individual ports/interfaces, ensure that all configuration matches between all ports BEFORE configuring the channel-group command. Also ensure that all ports are up and functional.
**Note: Once the port-channel interface is createdall subsequent modifications to the Etherchannel should be configured within this interface, NOT the physical interfaces.
LAN ATTT
214
LAN ATTT
215
Native IOS Equivalent = show pagp x counters where x is your port-channel number.
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
216
LAN ATTT
217
LAN ATTT
218
Quiz!!
Two switches are connected by an ISL trunk. The trunk is fully functional and has no problems. One switch is configured to be a VTP serverthe other a VTP client. However, the VTP client is not receiving any new VLANs (or deleted VLANs) from the VTP server. Why might this be?
LAN ATTT
219
Quiz!!
Two switches are connected by an ISL trunk. The trunk is fully functional and has no problems. One switch is configured to be a VTP serverthe other a VTP client. However, the VTP client is not receiving any new VLANs (or deleted VLANs) from the VTP server. Why might this be?
The two switches arent in the same VTP domain. VTP passwords have been configured on one switch but not the other. VTP passwords have been configured on both switches but there is a misspelling in one switch.
LAN ATTT
220
Quiz!!
Will VTP announcements pass through a router?
LAN ATTT
221
Quiz!!
Will VTP announcements pass through a router?
No
LAN ATTT
222
Quiz!!
If you need to temporarily modify VLANs on a production switch, but you dont want those modifications spread to other switches via VTP, what should you do?
LAN ATTT
223
Quiz!!
If you need to temporarily modify VLANs on a production switch, but you dont want those modifications spread to other switches via VTP, what should you do?
Configure the switch as VTP transparent while you make your temporary modifications. Then set it back to VTP client.
LAN ATTT
224
Quiz!!
In an Etherchannel consisting of 4 links, what will happen to traffic that was previously directed to the fourth link if that link fails?
LAN ATTT
225
Quiz!!
In an Etherchannel consisting of 4-links, what will happen to traffic that was previously directed to the fourth link if that link fails?
It will be redirected to one of the other functional links in the channel.
LAN ATTT
226
Quiz!!
When configuring individual links to be part of an Etherchannel, the most important thing to remember is that all the links must have ______________ configuration.
LAN ATTT
227
Quiz!!
When configuring individual links to be part of an Etherchannel, the most important thing to remember is that all the links must have ______________ configuration.
Exactly the same
LAN ATTT
228
Quiz!!
On a Catalyst 6000/6500 running Native IOS, by default, when you enable a port it is (routed, access, or trunk) __________?
LAN ATTT
229
Quiz!!
On a Catalyst 6000/6500 running Native IOS, by default, when you enable a port it is __________?
A routed, Layer 3 port
LAN ATTT
230
Quiz!!
On a Catalyst 6000/6500 series switch running Native IOS, what is the first command you would use on an interface (that has never been configured) before you start configuring it as a Layer 2 access port?
LAN ATTT
231
Quiz!!
On a Catalyst 6000/6500 series switch running Native IOS, what is the first command you would use on an interface (that has never been configured) before you start configuring it as a Layer 2 access port?
You must first use the switchport command.
LAN ATTT
232
Quiz!!
If I have the following configuration, will a person connected to interface fastethernet 2/1 be able to communicate with a person connected to interface fastethernet 2/2?
Interface vlan 2 ip address 2.2.2.2 255.0.0.0 no shut interface vlan 3 no shut Interface fastethernet 2/1 switchport switchport access vlan 2 no shut Interface fastethernet 2/2 switchport switchport access vlan 3 no shut
LAN ATTT
233
Quiz!!
If I have the following configuration, will a person connected to interface fastethernet 2/1 be able to communicate with a person connected to interface fastethernet 2/2?
Interface vlan 2 ip address 2.2.2.2 255.0.0.0 no shut interface vlan 3 no shut Interface fastethernet 2/1 switchport switchport access vlan 2 no shut Interface fastethernet 2/2 switchport switchport access vlan 3 no shut
No, they would not be able to communicate because routing is not possible between VLANs 2 and 3 in this configuration.
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
234
Quiz!!
1.
2.
On a piece of paper or on your computer, create the configuration for a Catalyst 6000/6500 in Native IOS so that it meets the following criteria: It contains three VLANs (VLANs 50, 60, and 70) VLAN 50 is in the 50.0.0.x /8 subnet. VLAN 60 is in the 60.0.0.x /8 subnet. VLAN 70 is in the 70.0.0.x /8 subnet. User A has the following parameters: Is in VLAN 50; Is connected to interface fastethernet 3/1 (as an Access Port); and Can talk to other users in both VLANs 60 and 70
LAN ATTT
235
Quiz (Continued)
3.
Interface FastEthernet 3/2 is a trunk with the following parameters: It is using ISL encapsulation It is statically configured to be a trunk. It will send DTP but not negotiate. This Etherchannel should also be an 802.1Q trunk that is statically configured (no negotiation) It should NOT negotiate and NOT send out PAgP frames
4.
LAN ATTT
236
Solution (1)
Solution (part-1): Router (config)# vlan database Router (vlan)# vlan 50 Router (vlan)# vlan 60 Router (vlan)# vlan 70 Router (vlan)# exit Router (config)# interface vlan 50 Router (config-if)# ip address 50.0.0.1 255.0.0.0 Router (config-if)# no shut Router (config-if)# interface vlan 60 Router (config-if)# ip address 60.0.0.1 255.0.0.0 Router (config-if)# no shut Router (config-if)# interface vlan 70 Router (config-if)# ip address 70.0.0.1 255.0.0.0 Router (config-if)# no shut
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
237
Solution (2)
Solution (part-2): Router (config-if)# interface fastethernet 3/1 Router (config-if)#switchport Router (config-if)#switchport mode access Router (config-if)#switchport access vlan 50 Router (config-if)#no shut
LAN ATTT
238
Solution (3)
Solution (part-3): Router (config-if)#interface fastethernet 3/2 Router (config-if)#switchport Router (config-if)#switchport trunk encapsulation isl Router (config-if)# switchport mode trunk
Router (config-if)#switchport trunk encapsulation dot1q Router (config-if)# switchport mode trunk Router (config-if)# channel-group 1 mode on
LAN ATTT
239
Agenda
Ethernet /Autonegotiation / Bridging Introduction to Architecture/ Cat6k Overview CatOS / IOS Introduction VLANS / Trunking Some Additional IOS Caveats VTP Etherchannel SPAN RSPAN
LAN ATTT
240
SPAN
The goal of span is to mirror traffic Rx or Tx (or both) on one or more port to a monitoring port for analysis :
Either to a sniffer
Either to an IDS
LAN ATTT
241
SPAN terminology
Ingress traffic: traffic entering the switch Egress traffic: traffic leaving the switch
Source (SPAN) Port: port that is monitored using the SPAN feature.
Destination (SPAN) Port: a port that is monitoring source ports, usually where a network analyser is connected.
LAN ATTT
242
SPAN terminology
PSPAN: stands for port-based SPAN. The user specifies one or several source ports on the switch and one destination port.
VSPAN: stands for VLAN-based SPAN. On a given switch, the user can choose to monitor all the ports belonging to a particular VLAN in a single command.
LAN ATTT
243
LAN ATTT
244
RSPAN example
LAN ATTT
245
SPAN session
We call a SPAN session a set :
One or more SPAN source port/VLAN One SPAN destination port Session Number
LAN ATTT
246
LAN ATTT
247
SPAN source
A source SPAN port can be spanned in egress/ingress or both. If a VLAN is specified as source SPAN that means all port of the vlan are considered as span source. The same port can be source span port for several session
LAN ATTT
248
PC A
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
249
PC A
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
250
LAN ATTT
251
VSPAN source
VLAN can be spanned in egress, ingress or both direction. Trunk are included in oper list of source for all VLAN that are in admin source list.
LAN ATTT
252
LAN ATTT
253
Inpkts disable
By default a span destination port cannot receive packet from the sniffer/IDS If inpkts option is enable we do allow span destination port to receive traffic But it still do not participate to STP Watch out to STP loop if put in a looped topology !!!
LAN ATTT
254
100BaseT Hub
Span dest
Span dest
Intranet -- Internet
LAN ATTT 255
LAN ATTT
256
Span
Dest
Egress SPAN
PC A
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved.
257
LAN ATTT
258
LAN ATTT
259
LAN ATTT
260
LAN ATTT
261
Conclusion : Packet not seen on sniffer do not necessarily mean packet lost. Might be packet corrupted.
LAN ATTT
262
LAN ATTT
263
RSPAN support
RSPAN is currently supported in the following platform :
6k hybrid and native
4k sup1/sup2
2950 3550
LAN ATTT
264
RSPAN
RSPAN do have all the feature of SPAN except that the Span Source and Span destination can be located on different switches
LAN ATTT
265
RSPAN topology
LAN ATTT
266
RSPAN Terminology
RSPAN Source are the port that will be mirrored to the RSPAN vlan Packet from source RSPAN port are flooded to the RSPAN VLAN RSPAN Destination are the port that will receive the RSPANned traffic. RSPAN destination are part of the RSPAN Vlan
Intermediate switch should support RSPAN VLAN and RSPAN VLAN needs to be defined on each intermediate switch
We need one unique RSPAN VLAN per RSPAN session (the RSPAN vlan is the only identifier of the RSPAN session the RSPAN session number is a local parameter)
LAN ATTT
267
LAN ATTT
268
LAN ATTT
269
Config CatOS
Defining RSPAN VLAN
Console> (enable) set vlan 500 rspan vlan 500 configuration successful
LAN ATTT
270
Config IOS
Router(config)# vlan x Router (config-vlan)# remote-span Router(config)# monitor session session_number source {{single_interface | interface_list | interface_range | mixed_interface_list | single_vlan | vlan_list | vlan_range | mixed_vlan_list} [rx | tx | both]} | {remote vlan rspan_vlan_ID}} Router(config)# monitor session session_number destination {single_interface | interface_list | interface_range | mixed_interface_list} | {remote vlan rspan_vlan_ID}}
LAN ATTT
271
LAN ATTT
2004 Cisco Systems, Inc. All rights reserved. 2002, Cisco Systems, Inc. All rights reserved.
272