Cisco SWITCHING
Cisco SWITCHING
Cisco SWITCHING
MULTICAST
NOW TO CONFIFURE –
Start 1) ip multicast-routing
2) interface mode – ip pim dense/sparse/sparse-dense
AUTO-RP-
Switch(config)#ip pim send-rp-announce fastEthernet 0/2 scope 4
(in this fas0/2 ip address identifies the ip addess this router uses to announce itself as RP)
ON MAPPING AGENT U WILL CONFIGURE – IP PIM SEND_RP_DISCOVERY
--------------------------------------------------------------------------------------------------------------------------------------------------
======================================================================
HSRP<<<<<follow rule higher is better as ,, REMEMBER LIKE THIS HSRP FOR ROUTER
SWITCH-B#sh standby
FastEthernet0/23 - Group 1
State is Active<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
11 state changes, last state change 00:05:26
Virtual IP address is 1.1.1.3
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.068 secs
Preemption disabled
Active router is local<<<<<active local though standby has higher priority because preempt not enabled
Standby router is 1.1.1.4, priority 100 (expires in 9.064 sec)
Priority 98 (configured 110)<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Priority 98 , configured 110 ,,,because
Track interface FastEthernet0/2 state Down decrement 12
IP redundancy name is "hsrp-Fa0/23-1" (default)
1)
2)
3)
=========================================
IPV6 ::/0-any
================================================
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fas
Switch(config)#int fastEthernet 0/1
Switch(config-if)#switchport
Switch(config-if)#ip access-group 1 in
Switch(config-if)#ip access-group 12 ? <<<<<<when int layer 2 port acl and only inbound
in inbound packets
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fastEthernet 0/1
Switch(config-if)#no switchport <<<<<<<<<<<<<<<<<when layer 3 interface Router acl , has both option inbound
and outbound
Switch(config-if)#ip access-group 1 ?
in inbound packets
out outbound packets
Once u enable IPV6 enable then , link local ip address is automatically assigned.
MULTILINK CONFIGURATIOn –
interface Multilink1
ip address 1.1.1.1 255.255.255.252
ppp multilink
ppp multilink fragment delay 10<<<<LFI
ppp multilink interleave
ppp multilink group 1
!
interface Serial0/0
ip address 1.1.1.2 255.255.255.252
max-reserved-bandwidth 100
service-policy input TEST1
encapsulation ppp
serial restart-delay 0
ppp multilink
ppp multilink group 1
FOR IN OR OUT TRAFFIC FLOW---- THINK UR SELF AS ROUTER NOW TO APPLY ON INT SE0/0
THINK SE 0/0 as ur right arm ,, now lift and see incoming traffic is traffic coming in to u and outgoing traffic going
out from u (away from u)..THINK FROM PRESPECTIVE OF ROUTER
VVV IMP – FOR LAYER THREE SVI to COME UP --- U shold create layer 2 VLAN of same no….
550A#config t
Enter configuration commands, one per line. End with CNTL/Z.
3550A(config)#vlan 11
3550A(config-vlan)#^Z
R --- S
When on s/w trunk port to R then on R make subinterface
When on s/w access port to R then configuration on physical port of R
R7 (7.7.7.7) (Gi0/1)-----(vlan7)S/w—R3
|
R8 (8.8.8.8) (Gi0/1)------(Vlan8)
FROM GOLD LAB
R7#sh running-config
Building configuration...
no ip routing<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
interface GigabitEthernet0/1
ip address 7.7.7.7 255.255.255.0 <<<<<<<<<<<<<<<<<<<<<<
no ip route-cache
duplex full
speed 100
media-type rj45
negotiation auto
R8#sh running-config
Building configuration...
no ip routing<<<<<<<<<<<<<<<<<<<<<<<<<<
interface GigabitEthernet0/1
ip address 8.8.8.8 255.255.255.0<<<<<<<<<<<<<<<<<<<
no ip route-cache
duplex full
speed 100
media-type rj45
negotiation auto
S/W-
B(config)#vlan 7-8<<<<<<<<<CREATE VLAN
B(config-vlan)#^Z
Building configuration...
B#
R3 ROUTERONSTICK
R3-ROUTERONSTICK#sh running-config
Building configuration...
interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1.1
encapsulation isl 7
ip address 7.7.7.1 255.255.255.0
no ip redirects
no snmp trap link-status
!
interface FastEthernet0/1.2<<<<<<<<<<<<CREATE SUBINTERFACE SO THAT ROUTER HAS
SAME INTERFACE CONNECTED TO DO IP ROUTING.
encapsulation isl 8
ip address 8.8.8.1 255.255.255.0 no ip redirects
no snmp trap link-status
R7#ping 8.8.8.8
3550A#
+ ip routing enable
NOW FILTERING USING VLAN ACCESS_MAP
vlan access-map B 10
action drop
match ip address 102
Now SEE U APPLY FILTER TO TELL ON WHICH VLANS PORTS ( WHICH ARE IN THIS
VLAN TO APPLY FILTER )… IF U SAY 12 in filtering , nmo filtering as port connected to R1 is in
vlan 11.
3560 has 2 –
G iSWITCHING-----
SH CDP NEIGHBOURS
For transparent mode create extended range vlans (greater than 1005)
Interface vlan
Ip address
Sh int vlan
ON SWITCH , port if u give ( no swichport ) its layer 3 and if switchport mode access
( then layer 2 port )
BASIC conf—
Ip domain –name ---- the dns ip to be used for name resolutipon by switch
MAC-ADDRESS FILTERING
ONLY UNICAST MAC-ADDRES CAN BE FILTERED
THISE CAN]’t BE FILTERED ARE – MULTICAST , BROADCAST AND ROUTER
MAC
COMMAND TO FILTER-
If u add mac-add static ( mac) vlan int and after that next line drop command …. Then
frame withis source or destination dropped …But if drop command first and int later then
not droped ,, entry static added ( which ever last statement of two takes effect).
Line vty 04
Password
e.g,
TACAS-SERVER HOST (ip) port (of tcas to use default 49) TIME-out(time it will wait
for reply from tacas) Key ---
aaa new-model
server 1.0.0.1
server 2.0.0.1
aaa group server tacacas+ --- is used to define the tacas+ servers ip address out of
those mentioned via ( tacacas server host ) ,,,, use these for special service like ppp
authentication here
Line vty 0 4
Login authentication (list-name)
Authorization ---
MYSER(config)#aa authorization ?
auth-proxy For Authentication Proxy Services
cache For AAA cache configuration
commands For exec (shell) commands.
config-commands For configuration mode commands.
configuration For downloading configurations from AAA server
console For enabling console authorization
exec For starting an exec (shell).
network For network services. (PPP, SLIP, ARAP)
reverse-access For reverse access connections
template Enable template authorization
MYSER(config)#aaa accounting ?
auth-proxy For authentication proxy events.
commands For exec (shell) commands.
connection For outbound connections. (telnet, rlogin)
delay-start Delay PPP Network start record until peer IP address is
known.
exec For starting an exec (shell).
gigawords 64 bit interface counters to support Radius attributes 52 &
53.
nested When starting PPP from EXEC, generate NETWORK records
before EXEC-STOP record.
network For network services. (PPP, SLIP, ARAP)
resource For resource events.
send Send records to accounting server.
session-duration Set the preference for calculating session durations
suppress Do not generate accounting records for a specific type of
user.
system For system events.
MYSER(config)#aaa accounting
EXAME ---
Uses Radius for authorization if radius was used for authentication otherwise use
local database
Same with tacacas+
AAA authorization exec tacacas+ local
Commands
802.1X
Before on port the user are authenticated ,,, protocols allowed are
stp,cdp,EXTENSIVE AUTH PROTOCOL OVER LAN,
Clent responsible to encapsulate frame in EAPOL and send it to switch which
transparently fwd these to authentication server , which reply as per authentication.
SWITCH CHECKS EAP MESSAGES RESPNSE TO MESSAGES SENT TO
CLIENT , if no replies it tries MAC ADDRESS BASED AUTHENTICATION.
Switch can use the Client MAC address for authorization
Command
DOT1X port control auto ( in this case switch sends the EAP fromes to Client to ask
for authentication as soon as line protocol of protocol comes up.)
On intf ---
Accounting –
pkt coming from the interface (access port) is untagged , the vlan configured on that
port from which frame is coming. If frame is tagged with dot1q or isl the discareded
if coming on acess port.
TRUNK-
Isl – all frame received by isl trunk prt are expected to be isl tagged , if any
NATIVE(UNTAGGED) frame received are dropped.
.1Q- supports tagged and untagged traffic..1Q trunk port is assigned a port default
vlanid (PVID). IF frame with untagged and tagged with NULL VLAN ID gothrough
port default vlanid.Any frames from PVID are sent untagged , res all are tagged.
Tunnel ports are used in SP network to segregate the customer traffic from other
customer traffic using same vlan no.
Customer taraffice coming on a tunnel port of SP for that customer ….. tags the
incoming traffic with a a unique vlan tag for customer (which is unique in SP
network) called metro tag and is removed when frame reaches egress tunnel port of
SP.and via this original vlan information of customer is intact.
ROUTED port—
On interface – no switchport and globally ip routring
When u connect 3560 it has ports forts for RJ45 and SFP to uplink switch ,,which
ever connected first is taken and its non-redundant,,,,if u want to manually select
that then media-type…(AUTO/RJ45/SFP)
In RJ 45 or SFP other ports dispbled no redundancy if fails.
Name : Fa0/2
Administrative Speed: auto
When there is congestion the device can send the other device pause frame to tell it
that there is congestion , to stop sending frames until conestion…..
Chapter-12
VOICE VLAN---- USES one VLAN FOR VOICE TRAFFIC OF IP PHONE AND
SECOND VLAN FOR DATA TRAFFIC.
IF one vlan one STP (PVSTP) ,,,TOTAL ALLOWED ONN SWITCH STP is 128 and
IF THESE VLANS USED THEN NEW VLAN WILL NOT RUN STP.
So to AVOID THIS GROUP MANY VLAN AND RUN 1 STP (MSTP)
IF VTP mode is transparent and VLAN DATABASE AND VTP DOMAIN NAME
FROM VLAN DATABASE AND STARTUP CONFIG MATCh,VLAN DATABASE
CLEARED AND STARTUP config’s USED.IF the VTP DOMAIN AND VLAN
DATABASE DON’T MATCH THEN THAT IN VLAN DATABASE IS TAKEN.
Switch(config)#vlan 2
Switch(config-vlan)#name ANKUR
Switch(config-vlan)#mtu 1500
Switch#sh vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1
Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
2 enet 100002 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0 <<<<<<<<<<<<
1003 tr 101003 1500 - - - - srb 0 0 <<<<<<<<<<<<<
1004 fdnet 101004 1500 - - - ieee - 0 0 <<<<<<<<
1005 trnet 101005 1500 - - - ibm - 0 0 <<<<
interface FastEthernet0/1
switchport access vlan 3
switchport mode access
When an interface is made for routed port then automatically and extended range
vlan id is given to it
VLAN Usage
---- --------------------
1025 FastEthernet0/4
TRUNK-
It’s a point-to-point link between switch and another switch or router,,,,,to acrry
multiple vlan onthis Trunk port.
desirable actively participates in truck making –if ne side desirable other side
can be desirable/auto/trunk.
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
Switchport trunk allowed vlan remove (79)---to remove specific vlan out of range
vlan allowed
For VTP pruning to be effective, all devices in the management domain must either support VTP pruning or,
on devices that do not support VTP pruning, you must manually configure the VLANs allowed on trunks.
Figure 9-1 shows a switched network without VTP pruning enabled. Interface 1 on Switch 1 and Interface 2
on Switch 4 are assigned to the Red VLAN. A broadcast is sent from the host connected to Switch 1. Switch
1 floods the broadcast and every network device in the network receives it, even though Switches 3, 5, and
6 have no interfaces in the Red VLAN.
You can enable pruning globally on the Catalyst 4000 family switch (see the "Enabling VTP Pruning"
section).
Figure 9-2 shows the same switched network with VTP pruning enabled. The broadcast traffic from Switch 1
is not forwarded to Switches 3, 5, and 6 because traffic for the Red VLAN has been pruned on the links
indicated (Interface 5 on Switch 2 and Interface 4 on Switch 4).
Enabling VTP pruning on a VTP server enables pruning for the entire management domain. VTP pruning
takes effect several seconds after you enable it. By default, VLANs 2 through 1000 are eligible for pruning.
VTP pruning does not prune traffic from pruning-ineligible VLANs. VLAN 1 is always eligible for pruning;
traffic from VLAN 1 cannot be pruned.
To configure VTP pruning on a trunking LAN interface, use the switchport trunk pruning vlan command.
VTP pruning operates when a LAN interface is trunking. You can set VLAN pruning eligibility regardless of
whether VTP pruning is enabled or disabled for the VTP domain, whether any given VLAN exists, and
regardless of whether the LAN interface is currently trunking.
Dot 1 q recoievs both tagged and untagged traffic and untagged traffic sent in vlan 1
( native vlan)
EACH VLAN IN A trunk is FWD or blocking for same vlan in other port……
To configure –
To see ---
Switch#sh vmps
VQP Client Status:
--------------------
VMPS VQP Version: 1
Reconfirm Interval: 60 min
Server Retry Count: 3
VMPS domain server: 100.100.100.100 (primary, current)
Reconfirmation status
---------------------
VMPS Action: No Dynamic Port
VTP----
When VTP updates go they send layer 2 only as VTP is layer 2 protocol ,,, so it will
send the vlan created by vlan () command.
E,g, of vtp
A(config)#vtp domain AN
Changing VTP domain name from ANKUR to AN
A(config)#^Z
A#sh vtp st
A#sh vtp status
VTP Version :2
Configuration Revision : 0<<<<<
Maximum VLANs supported locally : 1005
Number of existing VLANs : 11
VTP Operating Mode : Client
VTP Domain Name : AN
Switches in transparent mode don’t exachange vtp messages with other switches so
no need to configure vtp domain on it .
Pruning—
By default vlan 2-1001 are prune eliglible and see this via - sh int () switchport.
To seee if pruning enabled – sh vtp status.
Prunning not on vlan 1,1002-1005,extended vlan, TANSPARENT MODE SWITCH.
To see VTP password - sh VTP password.
Switches in transparent mode don’t exachange vtp messages with other switches so
no need to configure vtp domain on it .
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
U can configure many isolated vlans but only one can be mapped to primary vlan –
Cat4k#sh vlan private-vlan
Cat4k(config)#vlan 100
Cat4k(config-vlan)#private primary
Cat4k(config-vlan)#vlan 200
Cat4k(config-vlan)#private-vlan isolated
Cat4k(config-vlan)#exit
Cat4k(config)#vlan 100
Cat4k(config-vlan)#private-vlan association ?
WORD VLAN IDs of the private VLANs to be configured
add Add a VLAN to private VLAN list
remove Remove a VLAN from private VLAN list
Cat4k(config-vlan)#exit
Cat4k(config-if)#^Z
Cat4k#
DO EXAMPLE PAGE 102 from LAB SWITCHING RAMU .
Voice vlan-
Voice vlan enables the access port to carry ip voice traffic from ip phone.When
switch connected to 7960 ip phone , ip phone sends traffic with L3 ip prec and L2
COS of 5 default.
Switch(config)#int fastEthernet 0/1
Switch(config-if)#switchport voice vlan dot1p
% Voice VLAN does not exist. Creating vlan 0
Switch(config-if)#^Z
Switch#sh int fastEthernet 0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: down
Administrative Trunking Encapsulation: negotiate
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: dot1p<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Switch(config)#int fastEthernet 0/8
Switch(config-if)#no sh
Switch(config-if)#switchport access vlan 5<<configured iin case trunking fails.
Switch(config-if)#switchport mode ?
access Set trunking mode to ACCESS unconditionally
dot1q-tunnel set trunking mode to TUNNEL unconditionally
dynamic Set trunking mode to dynamically negotiate access or trunk mode
trunk Set trunking mode to TRUNK unconditionally
CONFIG ---
-----------------------------------------------------------------------------------------------------------------
B(config)#int fas
B(config)#int fastEthernet 0/23
B(config-if)#no sh
B(config-if)#switchport trunk encapsulation dot1q
B(config-if)#switchport mode trunk
B#sh int fastEthernet 0/23 trunk
------------------------------------------------------------------------------------------------------------------
A(config)#int fastEthernet 0/23
A(config-if)#no sh
A(config-if)#switchport mode trunk
A(config-if)#switchport trunk encapsulation dot1q
A(config-if)#switchport mode trunk
A(config-if)#no sh
A(config-if)#^Z
A(config-if)#int fas0/7
A(config-if)#no sh
A(config-if)#switchport mode dot1q-tunnel
A(config-if)#switchport access vlan 100
A(config-if)#no sh
A(config-if)#^Z
A#config t
Enter configuration commands, one per line. End with CNTL/Z.
A(config)#int fas
A(config)#int fastEthernet 0/7
A(config-if)#swi
A(config-if)#switchport ac
A(config-if)#switchport access vl
A(config-if)#switchport access vlan 200<<<<<<<<<<<<<<<<<<<<<<<WHEN I CJHANGE
VLAN 100 TO 200 IN SP EDGE SWITCH A ,,PING FAILS.
% Access VLAN does not exist. Creating vlan 200
A(config-if)#
09:21:08: %DOT1Q_TUNNELLING-4-MTU_WARNING:
System MTU of 1500 might be insufficient for 802.1Q tunnelling.
802.1Q tunnelling requires system MTU size of 1504 to handle maximum size ethernet
frames.
A(config-if)#exit
A(config)#sy
A(config)#system mtu
A(config)#system mtu 1504
Changes to the System MTU will not take effect until the next reload is done.
A(config)#^Z
A#s
09:21:51: %SYS-5-CONFIG_I: Configured from console by consoleh run int fas
A#sh run int fastEthernet 0/7
Building configuration...
A#config t
Enter configuration commands, one per line. End with CNTL/Z.
A(config)#sy
A(config)#system mt
A(config)#system mtu 1504
A(config)#^Z
A#wr
Building configuration...
---------------------------------------------------------------------------------------------------------------------
R7 -----interface GigabitEthernet0/0
no ip address
duplex full
speed 100
media-type rj45
negotiation auto
!
interface GigabitEthernet0/0.1
encapsulation dot1Q 12
ip address 1.1.1.1 255.255.255.252
no snmp trap link
----------------------------------------------------------------------------------------------------------------------
RESULTS-
R1#ping 1.1.1.1
A#config t
Enter configuration commands, one per line. End with CNTL/Z.
A(config)#int fas
A(config)#int fastEthernet 0/7
A(config-if)#swi
A(config-if)#switchport ac
A(config-if)#switchport access vl
A(config-if)#switchport access vlan 200<<<<<<<<<<<<<<<<<<<<<<<WHEN I CJHANGE
VLAN 100 TO 200 IN SP EDGE SWITCH A ,,PING FAILS.
% Access VLAN does not exist. Creating vlan 200
R1#ping 1.1.1.1
WHEN YOU RESTORE IT BACK TO VLAN 100 --it takes some time some pings drops...---
L2protocol tunnel-
EARLY-
R1#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
---------------------------------------------------------------------------------------------------------------
B(config-if)#l2protocol-tunnel stp
B(config-if)#l2protocol-tunnel vtp
B(config-if)#l2protocol-tunnel cdp
B(config-if)#l2protocol-tunnel drop-threshold 1000
B(config-if)#l2protocol-tunnel shutdown-threshold 1500
B(config-if)#exit
B(config)#l2protocol-tunnel cos 7
B(config)#^Z
B#sh l2protocol-tunnel
COS for Encapsulated Packets: 7
Drop Threshold for Encapsulated Packets: 0
---------------------------------------------------------------------------------------------------------------
A#sh l2protocol-tunnel
COS for Encapsulated Packets: 7
Drop Threshold for Encapsulated Packets: 0
A#
----------------------------------------------------------------------------------------------------------
To see sh l2protocol-tunnel
STP---
STP DECISION-
PVST+ -- 802.1D
RAPID PVST+- 802.1W
SPANNING TREE—
EXAMPLE—
GOLD LAB
S/W A F0/23 ------------ F0/23S/W B
F0/24------------- F0/24
Switch(config)#vlan 100
Switch(config-vlan)#name ANKUR
Switch(config-vlan)#exit
Switch(config)#spanning-tree vlan 100
Switch(config)#spanning-tree mode pvst
Switch(config)#int fastEthernet 0/23
Switch(config-if)#no sh
Switch(config-if)#int fas
Switch(config-if)#int fas0/24
Switch(config-if)#no sh
Switch(config-if)#^Z
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 32868
Address 000e.8307.6b80
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Switch(config)#vlan 100
Switch(config-vlan)#name ANKUR
Switch(config-vlan)#exit
Switch(config)#int fas
Switch(config)#int fastEthernet 0/23
Switch(config-if)#no sh
Switch(config-if)#int fas
Switch(config-if)#int fas0/24
Switch(config-if)#no sh
Switch(config-if)#exit
Switch(config)#spanning-tree vlan 100
Switch(config)#spanning-tree mode pvst
Switch(config)#^Z
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 32868
Address 000e.8307.6b80
Cost 19
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 24676
Address 000e.830d.8280
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Address 000e.830d.8280
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 15
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 24676
Address 000e.830d.8280
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 24676
Address 000e.830d.8280
Cost 19
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
AFTER
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 4196
Address 000e.8307.6b80
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 4196
Address 000e.8307.6b80
Cost 19
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
B#config t
Enter configuration commands, one per line. End with CNTL/Z.
B(config)#int fastEthernet 0/24
B(config-if)#spanning-tree cost 1
B(config-if)#^Z
B#sh spanning-tree vlan 100
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 4196
Address 000e.8307.6b80
Cost 1
Port 24 (FastEthernet0/24)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
B#
EARLY ----
B#sh spanning-tree vlan 100
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 4196
Address 000e.8307.6b80
Cost
19<<<<<<<<<<<<<<<<<<<<<<<THE
SE ARE OF ROOT BRIDGE
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20
sec Forward Delay 15 sec
Bridge ID Priority 4196 (priority 4096 sys-id-ext 100)
Address 000e.830d.8280<<<<<<<<<<<<LOCAL SWITCH.
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 15
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 4196
Address 000e.830d.8280
This bridge is the root
Hello Time 4 sec Max Age 40 sec Forward Delay 30 sec
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 4196
Address 000e.830d.8280
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Switch#
FOR UPLINK FAST LINKS NEED TO BE ACCES LINKS AND WHEN ONE
LINK TO UPLINK S/W fails OTHER ALKES OVER IMMIDIALTELY IN FWD
STATE.
Switch#
INT 802.1D ----- after convergence only root bridge sends BPDU.
1 and 2
1 send s proposal flag set to 2 I’m root ,,,,,if 2 agrees it replies with aggrement
flag set…This is very fast and they transition to FORWARDING .THIS
HAPPENSS ON POIN-To-POINT FULL DUPLEX LINKS.
MSTP----
When u create an instance any (1-15)( THESE ARE CALLED MSTI) ,,0 created
automatically called IST.BY default all vlans are part of IST.
To see
1) region name
2) revision number
3)) vlan to instance mapping.
ONE BPDU FOR ALL INSTANCES BY every switch by IST. …….IF ONE
MSTI IS FWD ALL VLANS WITHIN IT ARE FWD AND IF ITS BLOCKING
ALL VLAN WITHIN IT ARE BOCKING.
Port fast casnt be enabled on potrts to pc or routers that don’t generate BPDU.
Switch(config)#spanning-tree portfast
bpduguard ?
default Enable bdpu guard by default
on all portfast ports
B#sh spanning-tree m
B#sh spanning-tree mst 1
B#
U making in MST few ports in a instance for vlan 1-2 FWd on B ,,,as B root for
this ,,,and A not...
MST1<<<<vlan 1 in MST1
Spanning tree enabled protocol mstp
Root ID Priority 4097
Address 000e.830d.d480
Cost 200000
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
A#
A#config t
Enter configuration commands, one per line. End with CNTL/Z.
A(config)#spanning-tree mst 1 priority 0
A(config)#^Z
A#sh spanning-tree mst 1
A#config t
Enter configuration commands, one per line. End with CNTL/Z.
A(config)#spanning-tree mst hello-time 4
A(config)#spanning-tree mst forward-time 30
A(config)#spanning-tree mst max-age 34
A(config)#^Z
A#
FLEX LINKS.-----
Backup=----
On main port—
Gig0/1
Switchport backup int g0/2 or Switchport backup int g0/2 preempt
forced/bandwidth
MAC _ADDRESS MOVE UPDATE
SWITCH A CONF—
INt PORT1 –
AND GLOBALLY –
On switch –
Mac-addre
DHCP SNOOPING –
NOW if DHCP SNOOPING ENABLED THEN S/W keeps track of macadress and
vlan and interface where received…etc….
Dynamic arp inspection ---
IGMP SNOOPING----
Configuring layer 2 devices so that multicast traffic is fwd to only that devices that
are in that multicast group.When a s/w receives the join report from host ,,it add
that host in the fwd table with the group of multicast address for that group…when
it receives leave request then removes that host entry from fwd table.This happens
when router sends querries for particular group and hosts interested reply with join
report and are added to to fwd table of s/w .
Via igmp snooping s/w dynamically lerans the multicast ip groups…u can make this
static by ---- so that a vlan on interface is statically bound to multicast address.
IT MANAGES TRAFFIC AT LAYER 2 ONLY.
IGMP snooping does not restrict Layer 2 multicast packets generated by routing
protocols.
IGMP IS LANGUAGE WITH WITH HOST AND ROUTER SPEWAK ……S/W with
IGMP SNOOPING ENABLED LISTENS TO THIS COMMUNICATION AND MAKES
ITS ENTRIES ,,,,AS PER JOIN REPORT AND LEAVE REQUEST.
SNMP VERSION –
1 and 2c community based
3 based on auth , privacy
Switch# sh access-lists 1
Standard IP access list 1
20 permit 1.1.1.1
30 deny 2.2.2.2
10 permit 2.2.2.0, wildcard bits 0.0.0.255
When u configure access-list in switc the entries with host come at top and shown at
top….although sequence of acces-list application is sa,me as configured ---
Switch# sh access-lists 1
Standard IP access list 1
20 permit 1.1.1.1
30 deny 2.2.2.2
10 permit 2.2.2.0, wildcard bits 0.0.0.255
QOS
Tos –
DSCP
DIFFSERV MODEL-
WHEN PACKET arrives at ingress port it is plavced into ingress que, so that
packets are stored until CPU is busy fwd current packets……THERE ARE 2 QUES
at ingress STRICK PRIORITY QUE AND STANDARD que.
ALL PACKETS WITH COS VALUE 5 or EF are placed in STRICKT PRIORITY
QUE.
POLICING- TO RATE LIMIT THE TRAFFIC or bring down dscp value of packet.
Moicroflow policer- keep track of bandwidth b/w source and destination ports.
Aggregate policer-Monitors the traffic on one port.
SCHEDDULING- after pkt ready for forwarding are placed into egress que and and
que are serviced according to predined configurable parameters for congestion
maintance
There are multiple ques at egres pport strict proiority que ( EF) and standard que.
In this we have 1st standar que, 2nd standar que ,,,,
For diff cos values ranges…..
Like cos 0- 3 in 1st standard que
SCHEDULING IS CONGESTION MANAGEMENT … WE CAN DO THIS
USING WRR….IN THIS EACH QUE GIVEN WT,,,, DEPENDING ON THAT IT
IS SERVICED ( HIGHER WT QUE SERVICED BEFORE LOWER WT QUE)
QUES SERVICED IN ROUND-ROBIN FASHION ,,,EXCEPT PROIORITY QUE
WHICH IS ALWAYS SERVICED.
TAIL DROP
WRED--- different threshold for diff cos values …..COS 0 -2 thresold 50% and cos
3-4 threshold 69 %.When load of 50 % cos 0 and 1 packets start dropping and when
69 % load thresholad reached cos 3 and cos 4 start dropping but after cos 1 and 2
are dropped.HIGHER THE QUE NO MORE PRIORITY IT HAS.,
xPyQzT
s/w port has 1 strict priority que and 3 standard ques with 2 threshold..
if strict que not used then 4 standard ques with 2 thresholds.
CONFIG-
1) TRUST CONFIGURED ON INTERFACE BASIS
3)
AF 10 is same as CS 1 as CLASS
SELECTOR1 .dont confuse with
COS that’s different(for layer 2
frame)
CS5 is 46
Cs 6 and 7 same as AF60 or AF70
are for routing protocols.
to change parameters like DSCP.
COS,IPPREC and mapping
,trust
use mls
4) DEFINE POLICYING-
Switch(config-cmap)#match ?
access-group Access group
class-map Class map
ip IP specific values
vlan VLANs to match
Switch(config)#policy-map A
Switch(config-pmap)#class ANKU
Switch(config-pmap-c)#?
QoS policy-map class configuration commands:
exit Exit from QoS class action configuration mode
no Negate or set default values of a command
police Police
set Set QoS values
trust Set trust value for the class
You can set in policy map ,,,, by matching traffic of class -----you can set ip prec/DSCP., trust dscp/COS/Iprec
Switch(config-pmap)#class ANKU
Switch(config-pmap-c)#police ?
<8000-1000000000> Bits per second
aggregate Choose aggregate policer for current class
you can put exceed/violate/confirm action forward/drop/markdown dscp values.
5) SHAPING
To service ques
In this standard q 1 has wt of 4 and q 2 has 255 , so q 2 has 64 more times wt than q1 ,, so q2 is serviced when 1
packet sent out of q1 , in turn for q2 in sends 64 packets.
To see
7) AT egress
Switch(config-if)#wrr-queue cos-map 2 3 4
Switch(config-if)#priority-queue out
8) to put WRED –
on uinterface
wrr-que randomdetect
To see
Switch(config-if)#switchport priority ?
extend Set appliance 802.1p priority
Switch(config-if)#switchport priority ex
Switch(config-if)#switchport priority extend ?
cos Override 802.1p priority of devices on appliance<<<<<<<<<<<<<<<<
trust Trust 802.1p priorities of devices on appliance
VOD ----QOS
ADAPTIVE RATE ------THOSE SEND DATA DEPENDING ON LINK STATE (if conjstion lesss speed)
FastEthernet0/1
Input Output
Protocol Packet Count Packet Count
Byte Count Byte Count
5 minute bit rate (bps) 5 minute bit rate (bps)
------------------------ ------------------------ ------------------------
bgp 0 0
0 0
0 0
citrix 0 0
0 0
0 0
cuseeme 0 0
0 0
0 0
custom-01 0 0
0 0
0 0
EXAMPLE CONFIGURATION OF matching via class-map (access-list ) and SETTING DSCP VALUES ( in policy
map , under class) FOR FTP<TELNET
QOSROUTER#sh running-config
Building configuration...
ip cef
class-map match-all EF
match access-group 105
class-map match-all AF4
match access-group 104
class-map match-all AF3
match access-group 103
class-map match-all AF2
match access-group 102
class-map match-all AF1
match access-group 101
class-map match-all any
match access-group name any
!
!
policy-map SETDSCP
class AF1
set dscp cs1<<<<AF10
class AF2
set dscp cs2<<<<AF20
class AF3
set dscp cs3
class AF4
set dscp cs4
class EF
set dscp ef
class any
set dscp af41
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
service-policy input SETDSCP
!
ip access-list extended any
permit ip any any
access-list 101 permit tcp any any eq telnet
access-list 102 permit tcp any any eq ftp
access-list 103 permit tcp any any eq www
access-list 104 permit udp any any eq domain
access-list 105 permit udp any any eq 16384
policy-map VOIPGENRICFORALLCUSTOMER
class GOLD
bandwidth percent 50<<<<<50% of overall bandwidth for class GOLD(DSCP EF)
class SILVER
bandwidth percent 20
class BRONZE
bandwidth percent 10
random-detect dscp-based
random-detect dscp 16 18 28 <<<FOR AF20 ( at out to congestion avoid , wred min threshold 18 and max is
28)
random-detect dscp 24 28 38
class PLATINUM
drop <<<<<drop all packets of this class
Voice is very smooth and predicatable howmuch bandwidth each call will take---IF G.711 used each cakl takes
(80kbps)
FOR IN OR OUT TRAFFIC FLOW---- THINK UR SELF AS ROUTER NOW TO APPLY ON INT SE0/0
THINK SE 0/0 as ur right arm ,, now lift and see incoming traffic is traffic coming in to u and outgoing traffic going
out from u (away from u)..THINK FROM PRESPECTIVE OF ROUTER
Router#sh class-map
Class Map match-any class-default (id 0)
Match any
TRUST DSCP <<<<<NOT ALLOWED IN OUBOUND POLICY MAP <<<ONLY ALLOWED IN INBOUND POLICY MAP.
ALSO MLS QOS COMMANS ONLY ON SWITCH ,,,IF U APPLY MLS QOS TRUST ON INTERFACE AND THEN APPLY
SERVICE POLICY ON THAT INTERFACE OR VICEVERSA THEN ORIGNAL IS REMOVED NEW TALKES OVER.
If R1-R2-R3-R4
U open packet till layer 7 use NBAR to classify packet ,,,,and don’t mark it the next router R2 will have to do same
again ,,,,,,,,,,but if u mark classified packets then its easy for remote route like R2 to read the marking that it
already knows …so less utilization of CPU on R2.
=======================================================
IN INBOUND POLICY ---- USE ONLY POLICING, set dscp/cos/ipprec ,,,
otheres BANDWIDTH ,,, etc cant be used inbound
R103(config)#class-map A
R103(config-cmap)#match any
R103(config-cmap)#exit
R103(config)#policy-map B
R103(config-pmap)#class A
R103(config-pmap-c)#bandwidth percent 50
R103(config-pmap-c)#exit
R103(config-pmap)#int se 0/0
R103(config-if)#service-policy input B
CBWFQ : Can be enabled as an output feature only
R103(config-if)#<<<<<<BANDWIDT CAN’t BE THER IN INPUT POLICY ,,,,
ONLY POLICYING AND SET IP IPPREC/QOS/DSCP can be there
NO ISSUE WITH POUTBOUND POLICY
======================================================
TOPOLOGY ---
R100(0)---(0)R101(1)---(0)R102(1)-(0)R103
R100#sh running-config
Building configuration...
R101#sh running-config
Building configuration...
R102#sh running-config
Building configuration...
R103#sh running-config
Building configuration...
R103#
BEFORE ----
R100#ping 3.3.3.1
R100#telnet 3.3.3.1
Trying 3.3.3.1 ... Open
Password:
NOW IN A QUE THERE CAN BE CONGESTION AND A LOT OF MECHANISM FOR CONGESTION MANAGEMENT ---
OTHER WRR
QUEING ---
FIFO
PRIORITY QUEING –
4 shoroom
What u do buy as many from SMART ,,,if out of stock go to LEE and bug 1 ( as it is 10 times ,m you go back again
to SMART ASK IF ANY AVAILBALE ,,,IF NOT THEN BUY ONE MORE FROM LEE) SO ON
You Buy from pepe only when SMART AND LEE out of stock.
CUSTOM QUEING –
1
2
3
4
5
=
=
=
16
You send all data in each que and then move to next que….. this doesn’t guarantee delay.You can give bandwidth
to each que.ITS ROUND ROBIN METHOD.
EXAMPLE there are lot of people in a meeting ,,,taking ,,,,, everybody tlking except ANKUR ……NOW WHEN
SUDDENLY ANKUR SAYS SOMETHING EVERYBODY SHOCKED AND LISTEN TO HIM.
SAME IS WFQ , it says I have HIGH SPEAKING TRAFFIC OF N/W( LIKE HTTP) ,,,,, and low speaking traffic
( TELNET VERY SMALL TRAFFIC) ,,,, WHAT IT DOES IS GIVES PRIORITY TO SMALL TRAFFIC OVER HIGH
VOLUME TRAFFIC.
NOW –
CBWFQ
LLQ
PQ + CQ+ WFQ
PQ NOW U set BANDWIDTH ( PRIORITY --- means 1st % defined and in CBWQ U CAN GET BANDWIDTH ANY
WHERE ) ,, it can’t excedd that.
LLQ FUNDA
NOW MAKE POLICIE AT R2 and match protocol http and FTP at R2 and set DSCP VALUES AND APPLY POLICY
MAP AT INPUT R2 E0 int ..
AND MATCH ASAME TRAFFICE WITH DSCP SET ON R1 and set BANDWIDTH and APLLY TO E0 output.,.,,,,,u see
no change in speed of download on http or FTP….coz this tales place when congestion occurs and in e segment
a lot of bandwisth m,,,,,CONGESTION OCCURING AT S of R1 AND R2 where no policyyyy ,,,if u apply policy at So
of R2 and set priority (LLQ for http to 100%)…..U see that (U see in ip nbar protocol discover) that rest ftp packet
drops and vanishes as no bandwidth for it and http rate of download increases
Configt
PUT RANDOM-detect DSCP-BASED<<<<<<This is tht Cisco has predefinedmin and max THRESHOLDu use for
each DSCP VALUE
ON SILVER ALSO
U see
dscp Transmitted Random drop Tail drop Minimum Maximum Mark <<<<WHEN
pkts/bytes pkts/bytes pkts/bytes thresh thresh prob
af11 0/0 0/0 0/0 32 40 1/10
af12 0/0 0/0 0/0 28 40 1/10
af13 0/0 0/0 0/0 24 40 1/10
af21 0/0 0/0 0/0 32 40 1/10
af22 0/0 0/0 0/0 28 40 1/10
af23 0/0 0/0 0/0 24 40 1/10
af31 0/0 0/0 0/0 32 40 1/10
af32 0/0 0/0 0/0 28 40 1/10
af33 0/0 0/0 0/0 24 40 1/10
af41 0/0 0/0 0/0 32 40 1/10
af42 0/0 0/0 0/0 28 40 1/10
af43 0/0 0/0 0/0 24 40 1/10
cs1 0/0 0/0 0/0 22 40 1/10
cs2 0/0 0/0 0/0 24 40 1/10
cs3 0/0 0/0 0/0 26 40 1/10
cs4 0/0 0/0 0/0 28 40 1/10
cs5 0/0 0/0 0/0 30 40 1/10
cs6 0/0 0/0 0/0 32 40 1/10
cs7 0/0 0/0 0/0 34 40 1/10
ef 0/0 0/0 0/0 36 40 1/10
rsvp 0/0 0/0 0/0 36 40 1/10
default 0/0 0/0 0/0 20 40 1/10
NOW IN DS BYTE
IF R1 see congestion send packet to R2 with EXCN SET AND R2 REPLIES WITH ECN –CHO to acknowledge
FOR this APPLICATIONS ON PC NEED TO ECN AWARE.
POLICY-map TEST2
CLASS GOLD
Random-detect ECN.
COMMPRESSION TECHNIQUES _--
Int se 0/0
Commression stack
2) PREDICTOR sacrifices memory to compess data
3) MPPC
HEADER COMPRESSION----
For RTP and tcp etc header.
R101(config)#policy-map TEST
R101(config-pmap)#class GOLD
R101(config-pmap-c)#compression header ip ?
rtp configure rtp header compression
tcp configure tcp header compression
<cr>
R101(config-pmap-c)#compression header ip rt
AS PER STANDARD VOICE SHOULD NOT HAVE MORE THAN 150 MS DELAY
============================================================
QUES xPyQzT in switches.--------used in each swich congestion avoidance.
This threshold is per standard que.
CAT_3550(config-if)#wrr-queue cos-map ?
<1-4> enter cos-map queue id
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<TO PUT EACH COS VALUE INTO A STANDARD QUE.IN
3550 que 4 is PRIORITY QUE, If not used it will be standard que.
CAT_3550(config-if)#wrr-queue cos-map 1 ?
<0-7> CoS values separated by spaces (up to 8 values total)
CAT_3550(config-if)#wrr-queue cos-map 1 0 1 2 ?
<0-7> CoS values separated by spaces (up to 8 values total)
<cr>
CAT_3550(config-if)#wrr-queue cos-map 1
--------------------------------------------------------------------
CAT_3550(config-if)#mls qos cos 4<<<<<<<<<TO HARD CODE THAT ANY PAVCKET RECEIVED ON FAST0/1 is
mARKED COS 4
CAT_3550(config-if)#
===============================================================
IpPrecedence-dscp map:
ipprec: 0 1 2 3 4 5 6 7
--------------------------------
dscp: 0 8 16 24 32 40 48 56
Cos-dscp map:
cos: 0 1 2 3 4 5 6 7
--------------------------------
dscp: 0 1 2 3 4 5 6 7 <<<<SEE CHANGES DSCP VALUES CORRESPONDING TO COS
IpPrecedence-dscp map:
ipprec: 0 1 2 3 4 5 6 7
--------------------------------
dscp: 0 8 16 24 32 40 48 56
IF U TRUST DSCP VALUES SET BY A DEVICE LIKE IP PHONE ----MLS QOS TRUST
POLICYING – mostly for not so important traffic ,,,,,,,and LLQ for important traffic like voice.
FOR TCP --- IF CONGESTION AND TRAFFIC DROP ,,TCP DECREASES WINDOW SIZE BY HALF
SHAPING ---
Shaping –
Shape ( AVERAGE/PEAK)
AVERAGE-----to shape at Bc
PEAK ---to shape at Be ( which is risky as DE bits set can be dropeed by service provider during congestion)
Router#
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fas
Router(config)#int fastEthernet 0/1
Router(config-if)#ser
Router(config-if)#service-policy in
Router(config-if)#service-policy input SHAPE_500<<<<<<<<<<SHAPING CAN’t be applied to input like bandwidth.
GTS : Can be enabled as an output feature only
Router(config-if)#servic
Router(config-if)#service-policy ou
Router(config-if)#service-policy output SHAPE_500
Router(config-if)#
One is CIR and one is LINE RATE ---when router sees that line rate is T1 ,,,it tries sending packet at that rate ,
although the CIR is 500000 ,,,,eventually packet drop.
Class-map DATA
Match protocol http
Class-map VOICE
Match protocol rtp
Policy-map PRIORITY
Class DATA
Bandwidth 50000
Class VOICE
Priority 50000
Class ALL_TRAFFIC
Policy-map shape_500
Class ALL_TRAFFIC
Shape average 50000 <<<<<<<<<<<<<<,shaping
Service policy priority<<<<<<<<<<<<<to apply priority
BECN ---
R 1 sends traffic to fr cloud , if congestion the R2 sets back BECN in ACK ( which can be for TCP) to R1 so that to
tell it to slow down traffic rate.
If R1 sends udp traffic in that case ….. fr coud sets the FECN to tell R2 that congestion,,,,,R2 sends special frame
caleedd Q.922 ,, reading which Fr cloud sets BECN to R1.
Router(config)#policy-map shape_500
Router(config-pmap)#class ALL_TRAFFIC
Router(config-pmap-c)#shape fecn-adapt
Router(config-pmap-c)#
SAA – Cisco service assurance agent----- to send packets of paticularr typoe and see sla meet or not. Earlier
RTR.
1)
Router(config)#rtr 2
Router(config-rtr)#type ?
dhcp DHCP Operation
dlsw DLSW Operation
dns DNS Query Operation
echo Echo Operation
frame-relay Perform frame relay operation
ftp FTP Operation
http HTTP Operation
jitter Jitter Operation
pathEcho Path Discovered Echo Operation
pathJitter Path Discovered Jitter Operation
slm SLM Operation
tcpConnect TCP Connect Operation
udpEcho UDP Echo Operation
Router(config)#rtr schedule 2 start-time now life 300<<<schedule the probing in rtr entry 2 ,,, start now an for
5min.
Entry number: 2
Start Time Index: *02:17:32.695 UTC Mon Mar 1 1993
Number of successful operations: 0
Number of operations over threshold: 0
Number of failed operations due to a Disconnect: 0
Number of failed operations due to a Timeout: 0
Number of failed operations due to a Busy: 0
Number of failed operations due to a No Connection: 0
Number of failed operations due to an Internal Error: 5
Number of failed operations due to a Sequence Error: 0
Number of failed operations due to a Verify Error: 0
NOW 1st configure mls qos trus dscp/cos/ipprec on interface basis ---------
Then mls qos map which check the trust and accordingly map to use for it.
NORMAL----
Mls qos srr-que input-threshold ( que id ) ( thresholod id ) ( next que id ) (next thresholod id )
NOW U MAP EACH PACKET’s DSCP OR COS VALUE TO A QUE AND ASSIGN THAT QUE A THRESHOLD IF ITS
NORMAL QUE.
Mls qos srr-que input dscp-map que (que is) (dscp 1 ..8) (Threhold)
MLS QOS TRUST COS ( MEANS ONLY COS TRUSTED ,, u HAVE TOP MAUNALLY CONFIGURE COST TO DSCP
MAPPING )
MPLS QOS DSCP ( MEANS ANY COS OR IPPREC COMES SWITCH AUTOMATICALLY CONVERTS IT TO DSCP)
EXAMLE OF THIS IS
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#mls
Switch(config)#mls qo
Switch(config)#mls qos ma
Switch(config)#mls qos map co
Switch(config)#mls qos map ds
Switch(config)#mls qos map dscp-c
Switch(config)#mls qos map dscp-cos ?
<0-63> DSCP values separated by spaces (up to 8 values total)
Di and d2 combined show dscp values and intersection sows ( outpurt for XX where XX is sh mls qos map dscp-
XX)
Switch(config)#int fa
Switch(config)#int fastEthernet 0/2
Switch(config-if)#mls qos dscp-mutation anki
QOS DID FROM 1) SACHIN VOD 2) QOS –DOC CD 3) THIS WORD DOC MADE ( but most topics not written int this
just give bird eyeview of doc cd qos chapter )
ETHERCHANNEL-
COMBINING MULTIPLE LINKS between routers /Switches/Servers to increase bandwidth and if one link fails
other links backup that sharing its load.ETHERCHANNLE CAN CONSIST UPTO 8 compatible Ethernet ports.
ETHERCHANNLE CAN OPERATE IN 2 MODES – PAGP and LACP.
WHEN U CONFIGURE ETHERCHANNEL IN ON MODE NO NEGOTIATION TAKES PLACE, THE SWITCH FORCES
ALL COMPATIBLE PORTS TO BECOME ACTIVE IN ETHERCHANNEL.THE OTHER END MUST BE CONFIgured in
on mode otherwise there IS PACKET loss.
If u make any spanning tree changes on member port of etehrchannel make chages on all member ports of
etherchannel ---changes like –spanning tree port cost , port priority,port fast,allowed vlan
SPAN DEST PORT/private vlan /secure port CAN’t BE MEMBER OF ETHERCHANNEL
ALL ports of etherchannel should be in same vlan or if trunk all should be trunk.
VVVIMP-
FOR LAYER 3 ETHERCHANNEL DON’t ASSIGN IP ADDRESS TO PORTS BUT ASSIGN IP TO PORT CHANNEL.
L2 etherchannnel ---
On eteher port
Channel-group 1 mode
L3 etherchannel –
Int Port-channel 1
Ip add
To check –
Sh etherchannel ( ) detail
ON SWITCH
PORT
Int fas0/5
No switchport
Channel-group ( ) mode
LOAD BALANCING –
Port-channel load balance ( source ip /destr….)
SWITCH CAN LEARN MAC BY AGGREGATE PORT ( PORT CHANNEL) or PHYSICAL PORTS
Pagp you have to configure –
Pagp learn method ( physical port /) <<<<<,default is aggregate
With this port channel load vanlance src-mac
Lacp port-priority
(lower the value better )
PAGP port priority its opposite higher the value better it is.
CONFIGURATION L2 ETHERCHANNEL –
B(config-if)#int fas0/24
B(config-if)#channel-group 1 mode desirable<<<<this channl group no. is locally significant to bind port to port-
channel
Same on switch A-
Then –
B#sh int port-channel 1
Port-channel1 is up, line protocol is up (connected)<<<<<<<<<<<<<<
Hardware is EtherChannel, address is 000b.fd92.7118 (bia 000b.fd92.7118)
MTU 1504 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
if u remove one link from port-channle or make it down ,,, port-channl is up…if bot ,links removed ,,port-channel
goes down.
B(config)#port-channel load-balance ?
dst-mac Dst Mac Addr
src-mac Src Mac Addr
L3 ETHERCHANNEL-
A#config t
Enter configuration commands, one per line. End with CNTL/Z.
A(config)#int port-channel 18
A(config-if)#no sh
A(config-if)#no sw<<<<<<<<<<<<<<<<<<<<<<<<<<<<
A(config-if)#ip address 1.1.1.13 255.255.255.248
A(config-if)#exit
A(config)#int fastEthernet 0/23
A(config-if)#no sh
A(config-if)#no sw
A(config-if)#channel-group 18 mode passive
A(config-if)#exit
A(config)#int fas
A(config)#int fastEthernet 0/24
A(config-if)#channel-group 18 mode passive
Command rejected (Port-channel18, Fa0/24): Either port is L2 and port-channel is L3, or vice-versa
A(config-if)#no sh
A(config-if)#no sw
A(config-if)#channel-group 18 mode passive
A(config-if)#^Z
A#sh int por
A#sh int port-channel 18
Port-channel18 is up, line protocol is up (connected)
Hardware is EtherChannel, address is 000e.830d.d480 (bia 000e.830d.d480)
B(config)#int port-channel 12
B(config-if)#ip add?
% Unrecognized command
B(config-if)#no sw
B(config-if)#ip address 1.1.1.12 255.255.255.248
B(config-if)#no sh
B(config-if)#exit
B(config)#int fas
B(config)#int fastEthernet 0/23
B(config-if)#cha
B(config-if)#channel-g
B(config-if)#channel-group 12 mode active
Command rejected (Port-channel12, Fa0/23): Either port is L2 and port-channel is L3, or vice-versa
B(config-if)#no sw
B(config-if)#channel-group 12 mode active
B(config-if)#int fas
B(config-if)#int fas0/23
B(config-if)#channel-group 12 mode ac
B(config-if)#^Z
B#
A#ping 1.1.1.12
B(config-if)#pagp learn-method ?
aggregation-port Learns the destination on the agport
physical-port Learns the destination on the physical port
B#sh etherchannel 12 detail
Group state = L3
Ports: 2 Maxports = 16
Port-channels: 1 Max Port-channels = 1
Protocol: LACP
Ports in the group:
-------------------
Port: Fa0/23
------------
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/23 SA bndl 109 0xC 0xC 0x1F 0x3D <<<<change by lacp port-priority
Partner's information:
Port: Fa0/24
------------
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/24 SA bndl 32768 0xC 0xC 0x24 0x3D
Partner's information:
B#
IP ROUTING on switch
By default on switch ip routing is disabled , enable it .
Ip forward-protocol------
RIP –
For NBMA
Router rip
Neighbour (ip address)
IPV6----
LINK LOCAL
R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int se 0/0
R2(config-if)#ipv
R2(config-if)#ipv6 en
R2(config-if)#ipv6 enable ^Z
R2#
R2#sh ipv6 interface se0/0
Serial0/0 is administratively down, line protocol is down
IPv6 is enabled, link-local address is FE80::20E:D7FF:FE3F:EE0 [TENTATIVE]
No global unicast address is configured
Joined group address(es):
FF02::1
FF02::1:FF3F:EE0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds