19.07.2013 Views

Advanced CCIE Routing & Switching 4.0 VOLI - The Cisco Learning ...

Advanced CCIE Routing & Switching 4.0 VOLI - The Cisco Learning ...

Advanced CCIE Routing & Switching 4.0 VOLI - The Cisco Learning ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong><br />

<strong>CCIE</strong> <strong>Routing</strong> & <strong>Switching</strong><br />

<strong>4.0</strong><br />

www.MicronicsTraining.com<br />

Narbik Kocharians<br />

<strong>CCIE</strong> #12410<br />

R&S, Security, SP<br />

VOL­I<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 1 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Table of Content:<br />

Subject Page Volume<br />

Topology 8 Vol­I<br />

3560 <strong>Switching</strong><br />

Lab 1 Basic 3560 configuration ­ I 14 Vol­I<br />

Lab 2 Basic 3560 configuration ­ II 51 Vol­I<br />

Lab 3 Configuring Trunks 84 Vol­I<br />

Lab 4 Configuring EtherChannels 136 Vol­I<br />

Lab 5 <strong>Advanced</strong> STP Configuration 156 Vol­I<br />

Lab 6 Multiple Spanning­tree (802.1s) 180 Vol­I<br />

Lab 7 Configuring Private VLANs 190 Vol­I<br />

Lab 8 QinQ Tunneling 217 Vol­I<br />

Lab 9 Fallback Bridging 235 Vol­I<br />

Frame­relay<br />

Lab 1 Hub­n­Spoke Using Frame Map Statements 242 Vol­I<br />

Lab 2 Hub­n­Spoke Frame­relay Point­to­point 257 Vol­I<br />

Lab 3 Mixture of P2P and Multipoint 262 Vol­I<br />

Lab 4 Multipoint Frame­relay W/O Frame maps 267 Vol­I<br />

Lab 5 Frame­relay and Authentication 273 Vol­I<br />

Lab 6 Frame­relay End­to­End Keepalives 282 Vol­I<br />

Lab 7 Tricky Frame­relay Configuration 297 Vol­I<br />

Lab 8 Frame­relay Multilinking 305 Vol­I<br />

Lab 9 Back­to­Back Frame­relay connection 312 Vol­I<br />

ODR<br />

Lab 1 On Demand <strong>Routing</strong> 321 Vol­I<br />

RIPv2<br />

Lab 1 RIPv2 and Frame­relay 327 Vol­I<br />

Lab 2 RIPv2 Authentication 335 Vol­I<br />

Lab 3 <strong>Advanced</strong> RIPv2 Mini Mock Lab 340 Vol­I<br />

EIGRP<br />

Lab 1 Eigrp configuration 362 Vol­I<br />

Lab 2 <strong>Advanced</strong> Eigrp Stub Configuration 398 Vol­I<br />

Lab 3 Eigrp & Default­information 407 Vol­I<br />

Lab 4 Eigrp Filtering 418 Vol­I<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 2 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Table of Content:<br />

Subject Page Volume<br />

OSPF<br />

Lab 1 Advertising Networks 427 Vol­I<br />

Lab 2 Optimization of OSPF & Adjusting Timers 430 Vol­I<br />

Lab 3 OSPF Authentication 437 Vol­I<br />

Lab 4 OSPF Cost 462 Vol­I<br />

Lab 5 OSPF Summarization 467 Vol­I<br />

Lab 6 Virtual­links and GRE Tunnels 474 Vol­I<br />

Lab 7 OSPF Stub, T/Stub, and NSSAs 484 Vol­I<br />

Lab 8 OSPF Filtering 495 Vol­I<br />

Lab 9 Additional OSPF Filtering 522 Vol­I<br />

Lab 10 Redirecting Traffic in OSPF 531 Vol­I<br />

Lab 11 Database Overload Protection 537 Vol­I<br />

Lab 12 OSPF Non­Broadcast Networks 542 Vol­I<br />

Lab 13 OSPF Broadcast Networks 551 Vol­I<br />

Lab 14 OSPF Point­to­Point Networks 555 Vol­I<br />

Lab 15 OSPF Point­to­Multipoint Networks 559 Vol­I<br />

Lab 16 OSPF Point­to­Multi Network – II 566 Vol­I<br />

Lab 17 OSPF P­to­M Non­Broadcast Net 573 Vol­I<br />

Lab 18 OSPF and NBMA 579 Vol­I<br />

Lab 19 Forward Address Suppression 588 Vol­I<br />

Lab 20 OSPF NSSA no­redistribution & Injection<br />

of default routes<br />

BGP<br />

600 Vol­I<br />

Lab 1 Establishing Neighbor Adjacency 609 Vol­I<br />

Lab 2 Route Reflectors 626 Vol­I<br />

Lab 3 Conditional Adv & Back door 642 Vol­I<br />

Lab 4 Route Dampening 657 Vol­I<br />

Lab 5 Route Aggregation 666 Vol­I<br />

Lab 6 <strong>The</strong> community Attribute 686 Vol­I<br />

Lab 7 BGP Cost Community 702 Vol­I<br />

Lab 8 BGP & Load Balancing – I 711 Vol­I<br />

Lab 9 BGP Load Balancing – II 715 Vol­I<br />

Lab 10 BGP Unequal Cost Load Balancing 719 Vol­I<br />

Lab 11 BGP Local Preference – I 727 Vol­I<br />

Lab 12 BGP Local Preference – II 738 Vol­I<br />

Lab 13 <strong>The</strong> AS­Path Attribute 746 Vol­I<br />

Lab 14 <strong>The</strong> Weight Attribute 754 Vol­I<br />

Lab 15 MED 761 Vol­I<br />

Lab 16 Filtering Using ACLs & Prefix­lists 778 Vol­I<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 3 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Lab 17 Regular Expressions 788 Vol­I<br />

Lab 18 Adv BGP Configurations 805 Vol­I<br />

Lab 19 Administrative Distance 816 Vol­I<br />

Lab 20 BGP Confederation 824 Vol­I<br />

Lab 21 BGP Hiding Local AS Number 829 Vol­I<br />

Lab 22 BGP Allowas­in 837 Vol­I<br />

Policy Based <strong>Routing</strong><br />

Lab 1 PBR based on Source IP address 843 Vol­I<br />

Redistribution<br />

Lab 1 Basics of Redistribution­I 854 Vol­I<br />

Lab 2 Basics of Redistribution­II 874 Vol­I<br />

Lab 3 <strong>Advanced</strong> Redistribution 890 Vol­I<br />

Lab 4 <strong>Routing</strong> Loops 919 Vol­I<br />

IP SLA<br />

Lab 1 IP SLA 938 Vol­I<br />

Lab 2 Reliable Static <strong>Routing</strong> using IP SLA 944 Vol­I<br />

Lab 3 Reliable Conditional Default Route<br />

Injection using IP SLA<br />

951 Vol­I<br />

Lab 4 Object Tracking in HSRP Using SLA 964 Vol­I<br />

Lab 5 Object Tracking 974 Vol­I<br />

GRE Tunnels<br />

Lab 1 Basic Configuration of GRE Tunnels 988 Vol­I<br />

Lab 2 Configuration of GRE Tunnels II 1000 Vol­I<br />

Lab 3 Configuration of GRE Tunnels III 1010 Vol­I<br />

Lab 4 GRE & Recursive loops 1017 Vol­I<br />

QOS<br />

Lab 1 MLS QOS 14 Vol­II<br />

Lab 2 DSCP Mutation 30 Vol­II<br />

Lab 3 DSCP­CoS Mapping 38 Vol­II<br />

Lab 4 CoS­DSCP Mapping 43 Vol­II<br />

Lab 5 IP­Precedence­DSCP Mapping 49 Vol­II<br />

Lab 6 Individual rate Policing 54 Vol­II<br />

Lab 7 Policed DSCP 60 Vol­II<br />

Lab 8 Aggregate Policer 65 Vol­II<br />

Lab 9 Priority Queuing 70 Vol­II<br />

Lab 10 Custom Queuing 76 Vol­II<br />

Lab 11 WFQ 80 Vol­II<br />

Lab 12 RSVP 84 Vol­II<br />

Lab 13 Match Access­group 90 Vol­II<br />

Lab 14 Match Destination & Source Add MAC 95 Vol­II<br />

Lab 15 Match Input­Interface 101 Vol­II<br />

Lab 16 Match FR­de & Packet Length 104 Vol­II<br />

Lab 17 Match IP Precedence vs. Match Precedence 112 Vol­II<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 4 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Lab 18 Match Protocol HTTP URL, MIME & Host 123 Vol­II<br />

Lab 19 Match Fr­dlci 131 Vol­II<br />

Lab 20 Frame­relay Traffic Shaping 135 Vol­II<br />

Lab 21 Frame­relay Traffic­shaping – II 142 Vol­II<br />

Lab 22 Frame­relay Fragmentation 151 Vol­II<br />

Lab 23 Frame­relay PIPQ 155 Vol­II<br />

Lab 24 Frame­relay DE 162 Vol­II<br />

Lab 25 Frame­relay and Compression 165 Vol­II<br />

Lab 26 CBWFQ 178 Vol­II<br />

Lab 27 CBWFQ – II 184 Vol­II<br />

Lab 28 Converting Custom Queuing to CBWFQ 186 Vol­II<br />

Lab 29 LLQ 189 Vol­II<br />

Lab 30 CAR 193 Vol­II<br />

Lab 31 Class Based Policing – I 200 Vol­II<br />

Lab 32 CB Policing – II 210 Vol­II<br />

Lab 33 WRED & CB WRED 215 Vol­II<br />

NAT<br />

Lab 1 Static NAT Configuration 221 Vol­II<br />

Lab 2 <strong>Advanced</strong> Static NAT Configuration 227 Vol­II<br />

Lab 3 Configuration of Dynamic NAT – I 231 Vol­II<br />

Lab 4 Configuration of Dynamic NAT – II 234 Vol­II<br />

Lab 5 Configuration of Dynamic NAT – III 237 Vol­II<br />

Lab 6 NAT and Load Balancing 241 Vol­II<br />

Lab 7 Configuring PAT 244 Vol­II<br />

Lab 8 Configuring PAR 249 Vol­II<br />

Lab 9 Configuring Static NAT Redundancy W/HSRP 253 Vol­II<br />

Lab 10 Stateful Translation Failover With HSRP 258 Vol­II<br />

Lab 11 Translation of the Outside Source 264 Vol­II<br />

Lab 12NAT on a Stick 267 Vol­II<br />

IP Services<br />

Lab 1 DHCP Configuration 273 Vol­II<br />

Lab 2 HSRP Configuration 277 Vol­II<br />

Lab 3 VRRP Configuration 286 Vol­II<br />

Lab 4 GLBP Configuration 293 Vol­II<br />

Lab 5 IRDP Configuration 305 Vol­II<br />

Lab 6 Configuring DRP 312 Vol­II<br />

Lab 7 Configuring WCCP 314 Vol­II<br />

Lab 8 Core Dump Using FTP 315 Vol­II<br />

Lab 9 HTTP Connection Management 317 Vol­II<br />

Lab 10 Configuting NTP 320 Vol­II<br />

Lab 11 More IP Stuff 329 Vol­II<br />

IP Prefix­List<br />

Lab 1 Prefix­Lists 337 Vol­II<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 5 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


IPv6<br />

Lab 1 Configuring Basic IPv6 364 Vol­II<br />

Lab 2 Configuring OSPFv3 385 Vol­II<br />

Lab 3 Configuring OSPFv3 Multi­Area 394 Vol­II<br />

Lab 4 Summarization of Internal & External N/W 399 Vol­II<br />

Lab 5 OSPFv3 Stub, T/Stub and NSSA networks 408 Vol­II<br />

Lab 6 OSPFv3 Cost and Auto­cost 420 Vol­II<br />

Lab 7 Tunneling IPv6 Over IPv4 426 Vol­II<br />

Lab 8 Eigrp and IPv6 452 Vol­II<br />

Security<br />

Lab 1 Basic Router Security Configuration 477 Vol­II<br />

Lab 2 Standard Named Access List 484 Vol­II<br />

Lab 3 Controlling Telnet Access and SSH 488 Vol­II<br />

Lab 4 Extended Access List IP and ICMP 495 Vol­II<br />

Lab 5 Extended Access List OSPF & Eigrp 501 Vol­II<br />

Lab 6 Using MQC as a Filtering tool 505 Vol­II<br />

Lab 7 Extended Access List With Established 509 Vol­II<br />

Lab 8 Dynamic Access List 512 Vol­II<br />

Lab 9 Reflexive Access­Lists 522 Vol­II<br />

Lab 10 Access­list & Time Range 529 Vol­II<br />

Lab 11 Configuring Basic CBAC 533 Vol­II<br />

Lab 12 Configuring CBAC 535 Vol­II<br />

Lab 13 Configuring CBAC & Java Blocking 542 Vol­II<br />

Lab 14 Configuring PAM 544 Vol­II<br />

Lab 15 Configuring uRPF 546 Vol­II<br />

Lab 16 Configuring Zone Based Firewall 552 Vol­II<br />

Lab 17 Control Plane Policing 559 Vol­II<br />

Lab 18 Configuring IOS IPS 566 Vol­II<br />

Lab 19 Attacks 576 Vol­II<br />

Lab 20 AAA Authentication 587 Vol­II<br />

Multicasting<br />

Lab 1 Configuring IGMP 592 Vol­II<br />

Lab 2 Dense Mode 610 Vol­II<br />

Lab 3 Static RP Configuration 628 Vol­II<br />

Lab 4 Auto­RP 643 Vol­II<br />

Lab 5 Auto­RP Filtering & Listener 665 Vol­II<br />

Lab 6 Configuring BSR 687 Vol­II<br />

Lab 7 Configuring MSDP 702 Vol­II<br />

Lab 8 Anycast RP 720 Vol­II<br />

Lab 9 MSDP/MP­BGP 730 Vol­II<br />

Lab 10 Configuring SSM 749 Vol­II<br />

Lab 11 Helper­Map 760 Vol­II<br />

Lab 12 Bidirectional PIM 767 Vol­II<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 6 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


MPLS & L3VPNs<br />

Lab 1 Configuring Label Distribution Protocol 785 Vol­II<br />

Lab 2 Static & RIPv2 <strong>Routing</strong> in a VPN 855 Vol­II<br />

Lab 3 OSPF <strong>Routing</strong> in a VPN 886 Vol­II<br />

Lab 4 Backdoor links & OSPF 905 Vol­II<br />

Lab 5 Eigrp <strong>Routing</strong> in a VPN 921 Vol­II<br />

Lab 6 BGP <strong>Routing</strong> in a VPN 937 Vol­II<br />

Lab 7 Complex VPNs and Filters 954 Vol­II<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 7 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 8 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


<strong>The</strong> Serial connection between R1 and R3<br />

<strong>The</strong> Serial connection between R4 and R5<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 9 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Frame­relay Switch connections<br />

R1<br />

R2<br />

R3<br />

R4<br />

R5<br />

R6<br />

S0/1<br />

S0/0<br />

S0/0<br />

S0/0<br />

S0/0<br />

S0/0<br />

S0/0<br />

S0/0<br />

S0/1<br />

S0/2<br />

S0/3<br />

S1/0<br />

S1/1<br />

S1/2<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 10 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Frame­relay DLCI connections:<br />

Router Local DLCI Connecting to:<br />

R1 102<br />

112<br />

103<br />

104<br />

105<br />

106<br />

R2 201<br />

211<br />

203<br />

204<br />

205<br />

206<br />

R3 301<br />

302<br />

304<br />

305<br />

306<br />

R4 401<br />

402<br />

403<br />

405<br />

406<br />

R5 501<br />

502<br />

503<br />

504<br />

506<br />

R6 601<br />

602<br />

603<br />

604<br />

605<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 11 of 87<br />

© 2011 Narbik Kocharians. All rights reserved<br />

R2<br />

R2<br />

R3<br />

R4<br />

R5<br />

R6<br />

R1<br />

R1<br />

R3<br />

R4<br />

R5<br />

R6<br />

R1<br />

R2<br />

R4<br />

R5<br />

R6<br />

R1<br />

R2<br />

R3<br />

R5<br />

R6<br />

R1<br />

R2<br />

R3<br />

R4<br />

R6<br />

R1<br />

R2<br />

R3<br />

R4<br />

R5


F0/21<br />

F0/18<br />

F0/19<br />

F0/20<br />

SW1 SW2<br />

F0/22<br />

F0/23<br />

F0/24<br />

F0/24<br />

F0/19<br />

F0/20<br />

F0/23<br />

SW3 SW4<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 12 of 87<br />

© 2011 Narbik Kocharians. All rights reserved<br />

F0/22<br />

F0/21


Task 1<br />

<strong>The</strong> first switch should be configured with a hostname of SW1 and the second switch<br />

should be configured with a hostname of SW2<br />

On the First Switch<br />

Switch(config)#Hostname SW1<br />

On the Second Switch<br />

Switch(config)#Hostname SW2<br />

Task 2<br />

Shutdown ports F0/21­24 on SW1 and SW2<br />

On Both Switches:<br />

SWx(config)#int range f0/21­24<br />

SWx(config­if­range)#Shut<br />

On SW1<br />

Task 3<br />

Configure trunking between SW1 and SW2 using ports F0/19 and F0/20. Use an industry<br />

standard trunking protocol for this purpose. Assign a brief meaningful description to<br />

these interfaces.<br />

SW1(config)#Interface range f0/19­20<br />

Lab 7<br />

Configuring Private VLANs<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 13 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


SW1(config­if­range)#Switch trunk encap dot1q<br />

SW1(config­if­range)#Switch mode trunk<br />

SW1(config­if­range)#Description Trunk to SW2<br />

On SW2<br />

SW2(config)#Interface range f0/19­20<br />

SW2(config­if­range)#Switch trunk encap dot1q<br />

SW2(config­if­range)#Switch mode trunk<br />

SW2(config­if­range)#Description Trunk to SW1<br />

To verify the configuration:<br />

On SW1<br />

SW1#Show int trunk<br />

Port Mode Encapsulation Status Native vlan<br />

Fa0/19 on 802.1q trunking 1<br />

Fa0/20 on 802.1q trunking 1<br />

Port Vlans allowed on trunk<br />

Fa0/19 1­4094<br />

Fa0/20 1­4094<br />

Port Vlans allowed and active in management domain<br />

Fa0/19 1<br />

Fa0/20 1<br />

Port Vlans in spanning tree forwarding state and not pruned<br />

Fa0/19 1<br />

Fa0/20 none<br />

On SW2<br />

SW2#Show int trunk<br />

Port Mode Encapsulation Status Native vlan<br />

Fa0/19 on 802.1q trunking 1<br />

Fa0/20 on 802.1q trunking 1<br />

Port Vlans allowed on trunk<br />

Fa0/19 1­4094<br />

Fa0/20 1­4094<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 14 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Port Vlans allowed and active in management domain<br />

Fa0/19 1<br />

Fa0/20 1<br />

Port Vlans in spanning tree forwarding state and not pruned<br />

Fa0/19 1<br />

Fa0/20 1<br />

On R1<br />

Task 4<br />

Assign IP addressing to the interface of the routers using the following chart and ensure<br />

that these routers can ping each other: You should assign a brief meaningful interface<br />

description on the switchports.<br />

Router Interface IP address and Subnet mask<br />

R1 F0/0 200.1.1.1 /24<br />

R2 F0/0 200.1.1.2 /24<br />

R3 F0/1 200.1.1.3 /24<br />

R4 F0/0 200.1.1.4 /24<br />

R5 F0/1 200.1.1.5 /24<br />

R6 F0/1 200.1.1.6 /24<br />

BB1 F0/1 200.1.1.7 /24<br />

BB2 F0/0 200.1.1.8 /24<br />

BB3 F0/0 200.1.1.9 /24<br />

R1(config)#Int F0/0<br />

R1(config­if)#Ip address 200.1.1.1 255.255.255.0<br />

R1(config­if)#No shut<br />

On R2<br />

R2(config)#Int F0/0<br />

R2(config­if)#Ip address 200.1.1.2 255.255.255.0<br />

R2(config­if)#No shut<br />

On R3<br />

R3(config)#Int F0/1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 15 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R3(config­if)#Ip address 200.1.1.3 255.255.255.0<br />

R3(config­if)#No shut<br />

On R4<br />

R4(config)#Int F0/0<br />

R4(config­if)#Ip address 200.1.1.4 255.255.255.0<br />

R4(config­if)#No shut<br />

On R5<br />

R5(config)#Int F0/1<br />

R5(config­if)#Ip address 200.1.1.5 255.255.255.0<br />

R5(config­if)#No shut<br />

On R6<br />

R6(config)#Int F0/1<br />

R6(config­if)# Ip address 200.1.1.6 255.255.255.0<br />

R6(config­if)#No shut<br />

On BB1<br />

BB1(config)#Int F0/1<br />

BB1(config­if)# Ip address 200.1.1.7 255.255.255.0<br />

BB1(config­if)#No shut<br />

On BB2<br />

BB2(config)#int F0/0<br />

BB2(config­if)#ip address 200.1.1.8 255.255.255.0<br />

BB2(config­if)#No shut<br />

On BB3<br />

BB3(config)#int F0/0<br />

BB3(config­if)#ip address 200.1.1.9 255.255.255.0<br />

BB3(config­if)#No shut<br />

On SW1<br />

SW1(config)#Int F0/1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 16 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


SW1(config­if)#Description R1’s F0/0<br />

SW1(config)#Int F0/2<br />

SW1(config­if)#Description R2’s F0/0<br />

SW1(config)#Int range F0/3 , F0/5­9 , F0/12­18 , F0/21­24<br />

SW1(config­if­range)#Description ­­<br />

SW1(config)#Int F0/4<br />

SW1(config­if)#Description R4’s F0/0<br />

SW1(config)#Int F0/12<br />

SW1(config­if)#Description BB2’s F0/0<br />

SW1(config)#Int F0/13<br />

SW1(config­if)#Description BB3’s F0/0<br />

On SW2<br />

SW2(config)#Int range F0/1­2 , F0/4 , F0/10­18 , F0/21­24<br />

SW2(config­if­range)#Description ­­<br />

SW2(config)#Int F0/3<br />

SW2(config­if)#Description R3’s F0/1<br />

SW2(config)#Int F0/5<br />

SW2(config­if)#Description R5’s F0/1<br />

SW2(config)#Int F0/6<br />

SW2(config­if)#Description R6’s F0/1<br />

SW2(config)#Int F0/11<br />

SW2(config­if)#Description BB1’s F0/1<br />

To test and verify the configuration:<br />

On R1<br />

R1#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 17 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R1#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 18 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

On SW1<br />

Task 5<br />

Configure the switches such that the ports that are not used are in Administratively down<br />

state. Use minimum number of commands for this task.<br />

SW1(config)#int range F0/3 , F0/5 , F0/10, F0/14­18 , F0/21­24<br />

SW1(config­if­range)#Shut<br />

To verify the configuration:<br />

On SW1<br />

SW1#Sh int status | Inc Port|connected<br />

Port Name Status Vlan Duplex Speed Type<br />

Fa0/1 R1's F0/0 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/2 R2's F0/0 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/4 R4's F0/0 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/12 BB2's F0/0 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/13 BB3's F0/0 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/19 Trunk to SW2 connected trunk a­full a­100 10/100BaseTX<br />

Fa0/20 Trunk to SW2 connected trunk a­full a­100 10/100BaseTX<br />

On SW2<br />

SW2(config)#int range F0/1­2 , F0/4 , F0/8­10, F0/12­18 , F0/21­24<br />

SW2(config­if)#Shut<br />

To verify the configuration:<br />

On SW2<br />

SW2# Sh int status | Inc Port|connected<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 19 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Port Name Status Vlan Duplex Speed Type<br />

Fa0/3 R3's F0/1 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/5 R5's F0/1 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/6 R6's F0/1 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/11 BB1's F0/1 connected 1 a­full a­100 10/100BaseTX<br />

Fa0/19 Trunk to SW1 connected trunk a­full a­100 10/100BaseTX<br />

Fa0/20 Trunk to SW1 connected trunk a­full a­100 10/100BaseTX<br />

Note the interface description can be extremely helpful especially if the switches are configured in<br />

transparent mode, and/or the task asks for the configuration of allowed VLANs on the trunks.<br />

Task 6<br />

Configure Private VLANs based on the following policy:<br />

Router Interface VLAN­Type VLAN­ID<br />

R1 F0/0 Primary 10<br />

R2 F0/0 Community 20<br />

R3 F0/1 Community 20<br />

R4 F0/0 Community 30<br />

R5 F0/1 Community 30<br />

R6 F0/1 Isolated 40<br />

BB1 F0/1 Isolated 40<br />

BB2 F0/0 Isolated 40<br />

BB3 F0/0 Isolated 40<br />

Private­VLANs are typically seen in service provider networks, this feature addresses two major<br />

problems that the providers used to face:<br />

1. Number of Clients: If every client was in a VLAN of their own, the provider<br />

will be restricted to 4094 clients, which is the maximum number of VLANs<br />

on a given switch.<br />

2. <strong>Routing</strong> between VLANs & IP addressing: <strong>Routing</strong> between VLANs will be a<br />

nightmare, and the number of wasted IP addresses that result from<br />

Subnetting will be enormous.<br />

Private­VLANs solves these two issues, with Private­VLANs a VLAN is sub­divided into sub­<br />

VLANs or sub­domains.<br />

Private­VLANs consist of one primary, and one or more secondary VLANs, the secondary VLANs<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 20 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


can be either Community VLANs or Isolated VLANs.<br />

A Primary VLAN can have many Community VLANs, but it can ONLY have a Single Isolated<br />

VLAN.<br />

Ports in a Private­VLAN:<br />

<strong>The</strong>re are three types of ports in Private­VLAN and they are as follows:<br />

1. Promiscuous: A promiscuous port belongs to the primary VLAN; this port<br />

can communicate with all ports that are member of a secondary VLAN/s<br />

(Community and/or Isolated) that are associated with the primary VLAN<br />

that it belongs.<br />

2. Isolated: An isolated port is a host port that belongs to an isolated secondary<br />

VLAN. <strong>The</strong> host ports that are member of a given Isolated VLAN can NOT<br />

Communicate with each other. <strong>The</strong>se ports can ONLY communicate with the<br />

Port configured as Promiscuous port.<br />

3. Community: A community port is a host port that belongs to a community<br />

Secondary VLAN. Community ports can communicate with ports in the same<br />

Community VLAN and with the port that is configured as promiscuous ports.<br />

<strong>The</strong>se ports can’t Communicate with other ports in other Community VLANs.<br />

On Both Switches:<br />

In order to configure private­vlans, the switches must be configured in Transparent mode as<br />

follows:<br />

SWx(config)#vtp mode transparent<br />

<strong>The</strong> following commands configures the primary VLAN<br />

SWx(config)#vlan 10<br />

SWx(config­vlan)#private­vlan primary<br />

SWx(config­vlan)#Exit<br />

<strong>The</strong> following two VLANs are defined as the community secondary VLANs, there could be many<br />

community VLANs:<br />

SWx(config)#vlan 20<br />

SWx(config­vlan)#private­vlan community<br />

SWx(config)#vlan 30<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 21 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


SWx(config­vlan)#private­vlan community<br />

<strong>The</strong>re can ONLY be one isolated secondary VLAN:<br />

SWx(config)#vlan 40<br />

SWx(config­vlan)#private­vlan isolated<br />

<strong>The</strong> following command associates the secondary VLANs to the primary:<br />

SWx(config)#vlan 10<br />

SWx(config­vlan)#private­vlan association add 20,30,40<br />

To verify the configuration:<br />

On Both Switches:<br />

SWx#Show vlan private­vlan<br />

Primary Secondary Type Ports<br />

­­­­­­­ ­­­­­­­­­ ­­­­­­­­­­­­­­­­­ ­­­­­­­­­­­­­­­­<br />

10 20 community<br />

10 30 community<br />

10 40 isolated<br />

<strong>The</strong> output of the above show command displays the secondary VLANs that are created so far and<br />

the primary VLAN to which they are associated.<br />

On SW1<br />

<strong>The</strong> following command sets F0/1 interface in promiscuous mode, assigns the port to primary<br />

VLAN 10 and maps VLANs 20, 30 and 40 to this interface:<br />

SW1(config)#Int F0/1<br />

SW1(config­if)#Switchport mode private­vlan promiscuous<br />

SW1(config­if)#Switchport private­vlan mapping 10 add 20,30,40<br />

<strong>The</strong> ports that belong to a given secondary VLAN must be configured in host mode. <strong>The</strong> following<br />

command sets F0/2 interface in a host mode, associates this port to VLAN 10 (<strong>The</strong> primary VLAN)<br />

and assigns this port to VLAN 20 which was configured as a community secondary VLAN earlier:<br />

SW1(config­if)#Int F0/2<br />

SW1(config­if)#Switchport mode private­vlan host<br />

SW1(config­if)#Switchport private­vlan host­association 10 20<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 22 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


<strong>The</strong> following command sets F0/4 interface in a host mode, associates this port to VLAN 10 (<strong>The</strong><br />

primary VLAN) and assigns this port to VLAN 30 which was configured as a community secondary<br />

VLAN earlier:<br />

SW1(config­if)#Int F0/4<br />

SW1(config­if)#Switchport mode private­vlan host<br />

SW1(config­if)#switchport private­vlan host­association 10 30<br />

<strong>The</strong> following command sets F0/12 and F0/13 interfaces in a host mode, associates these ports to<br />

VLAN 10 (<strong>The</strong> primary VLAN) and assigns these ports to VLAN 40 which was configured as an<br />

isolated secondary VLAN earlier:<br />

SW1(config)#Int range F0/12­13<br />

SW1(config­if)#Switchport mode private­vlan host<br />

SW1(config­if)#Switchport private­vlan host­association 10 40<br />

To verify the configuration:<br />

On SW1<br />

SW1#Sh vlan pri<br />

Primary Secondary Type Ports<br />

­­­­­­­ ­­­­­­­­­ ­­­­­­­­­­­­­­­­­ ­­­­­­­­­­­­­­­­­­­­­­­­­­<br />

10 20 community Fa0/1, Fa0/2<br />

10 30 community Fa0/1, Fa0/4<br />

10 40 isolated Fa0/1, Fa0/12, Fa0/13<br />

On SW2<br />

SW2(config)#Int F0/3<br />

SW2(config­if)#Switchport mode private­vlan host<br />

SW2(config­if)#Switchport private­vlan host­association 10 20<br />

SW2(config)#Int F0/5<br />

SW2(config­if)#Switchport mode private­vlan host<br />

SW2(config­if)#Switchport private­vlan host­association 10 30<br />

SW2(config)#Int range F0/6 , F0/11<br />

SW2(config­if)#Switchport mode private­vlan host<br />

SW2(config­if)#switchport private­vlan host­association 10 40<br />

To verify the configuration:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 23 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On SW2<br />

SW2#Show vlan private­vlan<br />

Primary Secondary Type Ports<br />

­­­­­­­ ­­­­­­­­­ ­­­­­­­­­­­­­­­­­ ­­­­­­­­­­­­­­­­<br />

10 20 community Fa0/3<br />

10 30 community Fa0/5<br />

10 40 isolated Fa0/6, Fa0/11<br />

To test the configuration:<br />

On R1<br />

R1#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

R1#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.6<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 24 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R1#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

Note R1 is able to ping all routers because it is configured to be in promiscuous mode, this interface<br />

can be thought of as the default gateway.<br />

On R2<br />

R2#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

R2#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 25 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Note R2 is able to ping R1 which is the port in the primary VLAN and R3 which is in the same<br />

community VLAN. R2 can NOT communicate with the hosts in the other secondary VLANs. <strong>The</strong><br />

following verifies this information:<br />

R2#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R2#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R2#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R2#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R2#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R2#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 26 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R3<br />

R3#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R3#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

Note R3 is able to ping R1 which is the port in primary VLAN and the router in its own community<br />

secondary VLAN, which is R2.<br />

R3#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R3#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R3#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R3#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.10, timeout is 2 seconds:<br />

.....<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 27 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Success rate is 0 percent (0/5)<br />

R3#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R3#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.10, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

Note R3 can NOT ping the other routers because they are in another secondary VLAN.<br />

On R4<br />

R4#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R4#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

Note R4 is able to ping R1 which is the port in primary VLAN and the router in its own community<br />

secondary VLAN, which is R5.<br />

R4#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R4#Ping 200.1.1.3<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 28 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R4#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R4#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R4#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R4#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

Note R4 can NOT ping the other routers because they are in another secondary VLAN.<br />

On R5<br />

R5#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R5#Ping 200.1.1.4<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 29 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

Note R5 is able to ping R1 which is the port in primary VLAN and the router in its own community<br />

secondary VLAN (R2).<br />

R5#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R5#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R5#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R5#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R5#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R5#Ping 200.1.1.9<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 30 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

Note R5 can NOT ping the other routers because they are in another secondary VLAN.<br />

On R6<br />

R6#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

Note R6 is able to ping R1 which is the port in primary VLAN but it can NOT ping any other<br />

router, even though BB1, BB2 and BB3 are in the same VLAN, but remember that the VLAN is<br />

defined as isolated; the hosts in isolated VLAN do NOT have reachability to each other.<br />

R6#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R6#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R6#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R6#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 31 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R6#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R6#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R6#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

On BB1<br />

BB1#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

Note BB1 is able to ping R1 which is the port in primary VLAN but it can NOT ping any other<br />

router, even though R6, BB2 and BB3 are in the same VLAN, but remember that the VLAN is<br />

defined as an isolated secondary VLAN; the hosts in isolated VLAN do NOT have reachability to<br />

each other.<br />

BB1#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 32 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


BB1#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB1#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB1#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB1#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB1#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB1#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

On BB2<br />

BB2#Ping 200.1.1.1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 33 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

Note BB2 is able to ping R1 which is the port in primary VLAN but it can NOT ping any other<br />

router, even though R6, BB1 and BB3 are in the same VLAN, but remember that the VLAN is<br />

defined as an isolated secondary VLAN; the hosts in isolated VLAN do NOT have reachability to<br />

each other.<br />

BB2#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB2#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB2#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB2#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB2#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 34 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


BB2#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB2#Ping 200.1.1.9<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.9, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

On BB3<br />

BB3#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

Note BB3 is able to ping R1 which is the port in primary VLAN but it can NOT ping any other<br />

router, even though R6, BB1 and BB2 are in the same VLAN, but remember that the VLAN is<br />

defined as an isolated secondary VLAN; the hosts in isolated VLAN do NOT have reachability to<br />

each other.<br />

BB3#Ping 200.1.1.2<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.2, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB3#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB3#Ping 200.1.1.4<br />

Type escape sequence to abort.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 35 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Sending 5, 100­byte ICMP Echos to 200.1.1.4, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB3#Ping 200.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.5, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB3#Ping 200.1.1.6<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.6, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB3#Ping 200.1.1.7<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.7, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

BB3#Ping 200.1.1.8<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.8, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

Task 7<br />

Reconfigure the IP addressing of the hosts that belong to the two community secondary<br />

VLANs based on the following chart and provide InterVlan routing between them: <strong>The</strong><br />

hosts in the other secondary VLANs should still be able to reach the host in the primary<br />

VLAN. You can use static routes and any IP addressing to accomplish this task.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 36 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R2<br />

Routers / Interface IP address VLAN­ID<br />

R2 – F0/0<br />

202.1.1.2 /24 20<br />

R3 – F0/1<br />

202.1.1.3 /24 20<br />

R4 – F0/0<br />

203.1.1.4 /24 30<br />

R5 – F0/1<br />

203.1.1.5 /24 30<br />

R2(config)#int f0/0<br />

R2(config­if)#ip addr 202.1.1.2 255.255.255.0<br />

R2(config)#ip route 0.0.0.0 0.0.0.0 202.1.1.100<br />

On R3<br />

R3(config)#int f0/1<br />

R3(config­if)#ip addr 202.1.1.3 255.255.255.0<br />

R3(config)#ip route 0.0.0.0 0.0.0.0 202.1.1.100<br />

On R4<br />

R4(config)#int f0/0<br />

R4(config­if)#ip addr 203.1.1.4 255.255.255.0<br />

R4(config)#ip route 0.0.0.0 0.0.0.0 203.1.1.100<br />

On R5<br />

R5(config)#int f0/1<br />

R5(config­if)#ip addr 203.1.1.5 255.255.255.0<br />

R5(config)#ip route 0.0.0.0 0.0.0.0 203.1.1.100<br />

On SW1<br />

SW1(config)#IP routing<br />

Note two IP addresses are configured under interface VLAN 10, a primary and a secondary, the<br />

primary IP address is used by the hosts in VLAN 20 and the secondary is used by the hosts in<br />

VLAN 30.<br />

<strong>The</strong> “Private­vlan mapping” command maps the secondary VLANs to their layer 3 VLAN<br />

interface, in this case VLAN 10 which is the layer 3 interface of the primary VLAN.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 37 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


SW1(config)#int vlan 10<br />

SW1(config­if)#ip address 202.1.1.100 255.255.255.0<br />

SW1(config­if)#ip address 203.1.1.100 255.255.255.0 sec<br />

SW1(config­if)#private­vlan mapping 20,30<br />

With the “Private­vlan mapping” interface configuration command, secondary VLANs can be<br />

added or removed using the “Private­vlan mapping add, or Private­vlan mapping remove”<br />

interface configuration command. After this command is entered, you should get the following<br />

messages:<br />

%PV­6­PV_MSG: Created a private vlan mapping, Primary 10, Secondary 20<br />

%PV­6­PV_MSG: Created a private vlan mapping, Primary 10, Secondary 30<br />

To verify the configuration:<br />

On SW1<br />

SW1#Show interfaces private­vlan mapping<br />

Interface Secondary VLAN Type<br />

­­­­­­­­­ ­­­­­­­­­­­­­­ ­­­­­­­­­­­­­­­­­<br />

vlan10 20 community<br />

vlan10 30 community<br />

To test the configuration:<br />

On R2<br />

R2#Ping 203.1.1.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 203.1.1.4, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

R2#Ping 203.1.1.5<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 203.1.1.5, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (4/5), round­trip min/avg/max = 1/1/4 ms<br />

On BB1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 38 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


BB1#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/2/4 ms<br />

Task 8<br />

Erase the startup config and reload the routers before proceeding to the next task.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 39 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


<strong>Advanced</strong><br />

<strong>CCIE</strong> <strong>Routing</strong> & <strong>Switching</strong><br />

<strong>4.0</strong><br />

www.MicronicsTraining.com<br />

Narbik Kocharians<br />

<strong>CCIE</strong> #12410<br />

R&S, Security, SP<br />

Frame­relay<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 40 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Lab 1 – Hub­n­Spoke using Frame­relay map<br />

statements<br />

R1 R1<br />

10.1.100.4 /24<br />

R4<br />

S0/0<br />

10.1.100.1 /24<br />

401<br />

104<br />

103<br />

10.1.100.3 /24<br />

R3<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 41 of 87<br />

© 2011 Narbik Kocharians. All rights reserved<br />

S0/0<br />

301<br />

S0/0<br />

102<br />

IP addressing and DLCI information Chart:<br />

201<br />

S0/0<br />

10.1.100.2 /24<br />

Routers IP address Local DLCI Connecting to:<br />

R1’s Frame­relay interface S0/0 10.1.100.1 /24 102<br />

103<br />

104<br />

R2’s Frame­relay interface S0/0 10.1.100.2 /24 201 R1<br />

R3’s Frame­relay interface S0/0 10.1.100.3 /24 301 R1<br />

R4’s Frame­relay interface S0/0 10.1.100.4 /24 401 R1<br />

R2<br />

R2<br />

R3<br />

R4


On R1<br />

Task 1<br />

Configure a frame­relay Hub and spoke using frame­relay map statements. Use the IP<br />

addressing in the above chart.<br />

Disable inverse­arp such that the routers do not generate inverse­arp request packets, and<br />

ensure that only the assigned DLCIs are used and mapped, these mappings should be as<br />

follows:<br />

On R1: DLCIs 102, 103 and 104 should be mapped to R2, R3 and R4<br />

respectively.<br />

On R2, R3 and R4: DLCIs 201, 301 and 401 should be used on R2, R3 and R4<br />

respectively for their mapping to R1 (<strong>The</strong> hub).<br />

In the future Eigrp routing protocol will be configured on these routers, ensure that the<br />

routers can handle the Multicast traffic generated by the Eigrp routing protocol. DO NOT<br />

configure any sub­interface(s) to accomplish this task.<br />

R1(config)#Int S0/0<br />

R1(config­if)#IP address 10.1.100.1 255.255.255.0<br />

R1(config­if)#Encapsulation frame<br />

R1(config­if)#Frame­relay map ip 10.1.100.2 102 broadcast<br />

R1(config­if)#Frame­relay map ip 10.1.100.3 103 broadcast<br />

R1(config­if)#Frame­relay map ip 10.1.100.4 104 broadcast<br />

R1(config­if)#NO frame­relay inverse­arp<br />

R1(config­if)#NO shut<br />

To verify the configuration:<br />

On R1<br />

R1#Show frame­relay map<br />

Serial0/0 (up): ip 10.1.100.2 dlci 102(0x66,0x1860), static,<br />

broadcast,<br />

CISCO, status defined, inactive<br />

Serial0/0 (up): ip 10.1.100.3 dlci 103(0x67,0x1870), static,<br />

broadcast,<br />

CISCO, status defined, inactive<br />

Serial0/0 (up): ip 10.1.100.4 dlci 104(0x68,0x1880), static,<br />

broadcast,<br />

CISCO, status defined, inactive<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 42 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Note you may see DLCIs 105 and 106 mapped to 0.0.0.0 IP address, these dynamic mappings may not<br />

affect Unicast traffic, but they will affect Multicast and/or Broadcast traffic, therefore, they should be<br />

removed from the mapping table. <strong>The</strong> “clear frame­relay inarp” command will NOT have any effect<br />

on these entries, whereas, saving the configuration and then reloading the routers will definitely clear<br />

the 0.0.0.0 mappings. Another way to clear the “0.0.0.0” mapping is to remove the encapsulation and<br />

reconfigure the encapsulation back again, but once the encapsulation is removed, the frame­relay<br />

commands configured under the interface are also removed.<br />

<strong>The</strong> output of the above show command shows that the DLCIs are all in “inactive” status, this means<br />

that the problem is on the other side of the VC, in this case, the other end of these VCs are not<br />

configured yet, and once they are configured, the status should transition to active state.<br />

Let’s configure the spoke routers:<br />

On R2<br />

R2(config)#Int S0/0<br />

R2(config­if)#Ip address 10.1.100.2 255.255.255.0<br />

R2(config­if)#Encapsulation frame<br />

R2(config­if)#Frame­relay map ip 10.1.100.1 201 broadcast<br />

R2(config­if)#NO frame­relay inverse­arp<br />

R2(config­if)#NO shut<br />

To verify the configuration:<br />

On R2<br />

Let’s start with layer one and see if we have a serial cable connected to the Frame­relay switch, if so,<br />

which end of the cable is connected to our router, DTE or DCE?<br />

<strong>The</strong> output of the following show command shows that the DTE end of the cable is connected to our<br />

local router, and the “clocks detected” tells us that we are receiving clocking from a DCE device. This<br />

should always be the first step in troubleshooting frame­relay. If the output of the following command<br />

showed that we have the DCE end of the cable connected to our router, then, the local router has to<br />

provide clocking, which means that the “clockrate” command MUST be configured or else the VC will<br />

NOT transition into UP/UP state.<br />

R2#Show controller S0/0 | Inc clocks<br />

DTE V.35 TX and RX clocks detected.<br />

In the next step, we should see if the local router is exchanging LMIs with the frame­relay switch.<br />

NOTE: Keepalive LMIs are exchanged every 10 seconds, which means that if the frame­relay switch is<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 43 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


configured correctly and the LMI types are also configured correctly (<strong>The</strong>y match on both ends), then,<br />

you should see the number of status Enquires sent and received increment every 10 seconds.<br />

R2#Show frame­relay lmi | Inc Num<br />

Num Status Enq. Sent 68 Num Status msgs Rcvd 69<br />

Num Update Status Rcvd 0 Num Status Timeouts 0<br />

R2#Show frame­relay lmi | Inc Num<br />

Num Status Enq. Sent 69 Num Status msgs Rcvd 70<br />

Num Update Status Rcvd 0 Num Status Timeouts 0<br />

Next the frame­relay maps are checked:<br />

R2#Show frame­relay map 201<br />

Serial0/0 (up): ip 10.1.100.1 dlci 201(0xC9,0x3090), static,<br />

broadcast,<br />

CISCO, status defined, active<br />

NOTE: <strong>The</strong> output of the above show command reveals that the remote IP address of 10.1.100.1 is<br />

mapped to the local DLCI of 201. Make sure you see the correct IP address.<br />

In the paranthesis, DLCI 201, is presented in Hexadecimal and Q922 format. If the Hexadecimal value<br />

of 0xC9 is converted to decimal, the result is 201, which is the local DLCI number.<br />

<strong>The</strong> second Hexadecimal value of 0x3090, indicates how the DLCI is split into two sections within the<br />

Frame­relay header; a DLCI is a 10 bit digit and the first 6 bits (<strong>The</strong> most significant 6 bits) are in the<br />

first byte and the last 4 bits of the DLCI, is found in the beginning of the second byte of the Frame­<br />

relay frame, as follows:<br />

Frame Relay header structure<br />

Notice how the 10 bits are divided? 6 bits are in the first BYTE and the remaining 4 bits are in the<br />

second Byte.<br />

If the hex value of 0x3090 is converted to decimal, you will once again see a DLCI value of 201. As<br />

follows:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 44 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Convert 0x3090 to Binary:<br />

3 0 9 0<br />

0011 0 0 0 0 1001 0000<br />

Take the most significant 6 bits, in this case: 001100<br />

Take the most significant 4 bits of the second byte, in this case: 1001<br />

Note the most significant 6 bits of the first byte and the most significant 4 bits of the second byte are<br />

concatenated into a 10 bit value, as follows:<br />

0011001001<br />

If the above binary number is converted to decimal (1 + 8 + 64 + 128), you should get 201.<br />

In the final step, an end to end reachability is tested:<br />

R2#Ping 10.1.100.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 56/56/60 ms<br />

Let’s configure R3:<br />

On R3<br />

R3(config)#Int S0/0<br />

R3(config­if)#Ip address 10.1.100.3 255.255.255.0<br />

R3(config­if)#Encapsulation frame<br />

R3(config­if)#Frame­relay map ip 10.1.100.1 301 broadcast<br />

R3(config­if)#NO frame­relay inverse­arp<br />

R3(config­if)#NO shut<br />

To verify the configuration:<br />

On R3<br />

R3#Ping 10.1.100.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.1, timeout is 2 seconds:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 45 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 56/56/60 ms<br />

R3#Show frame map<br />

Serial0/0 (up): ip 10.1.100.1 dlci 301(0x12D,0x48D0), static,<br />

broadcast,<br />

CISCO, status defined, active<br />

Let’s configure R4:<br />

On R4<br />

R4(config)#Int S0/0<br />

R4(config)#Ip address 10.1.100.4 255.255.255.0<br />

R4(config)#Encapsulation frame<br />

R4(config)#Frame­relay map ip 10.1.100.1 401 broadcast<br />

R4(config)#NO frame­relay inverse­arp<br />

R4(config)#NO shut<br />

To verify the configuration:<br />

On R4<br />

R4#Ping 10.1.100.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 48/50/52 ms<br />

R4#Show frame­relay map<br />

Serial0/0 (up): ip 10.1.100.1 dlci 401(0x191,0x6410), static,<br />

broadcast,<br />

CISCO, status defined, active<br />

Task 2<br />

Ensure that every router can ping every IP address connected to the cloud. When<br />

configuring this task, ensure that the hub router does NOT receive redundant routing<br />

traffic.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 46 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


NOTE: Every IP address connected to the cloud also includes the local router’s IP address. Let’s test<br />

the existing situation:<br />

On R1<br />

R1#Ping 10.1.100.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.1, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

<strong>The</strong> ping is NOT successful. Let’s enable the “Debug Frame­relay packet” and try the ping again:<br />

R1#Debug Frame­relay packet<br />

Frame Relay packet debugging is on<br />

R1#Ping 10.1.100.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.1, timeout is 2 seconds:<br />

Serial0/0:Encaps failed­­no map entry link 7(IP).<br />

Serial0/0:Encaps failed­­no map entry link 7(IP).<br />

Serial0/0:Encaps failed­­no map entry link 7(IP).<br />

Serial0/0:Encaps failed­­no map entry link 7(IP).<br />

Serial0/0:Encaps failed­­no map entry link 7(IP).<br />

Success rate is 0 percent (0/5)<br />

Let’s disable the debug:<br />

On R1<br />

R1#u all<br />

<strong>The</strong> output of the above debug states that there is NO mapping and encapsulation failed because of<br />

that; Frame­relay can be configured in two different ways: Multipoint and Point­to­point.<br />

<strong>The</strong>re is ONLY one way to configure frame­relay in a point­to­point manner, and that’s through a<br />

point­to­point sub­interface configuration, whereas, a multipoint can be configurd in two ways:<br />

• Perform the entire configuration directly under the main interface.<br />

• Configure a sub­interface in a multipoint manner.<br />

Since the entire configuration was performed without the use of sub­interfaces, this is a multipoint<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 47 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


interface. In a multipoint frame­relay configuration, two conditions must be met before an IP address<br />

is reachable:<br />

A. <strong>The</strong> destination IP address must be in the routing table with a valid next hop.<br />

B. <strong>The</strong>re must be a frame­relay mapping for that destination.<br />

In this case the destination IP address is in the routing table, but the frame­relay mapping is missing.<br />

When configuring the frame­relay mapping, you can use any active DLCI:<br />

On R1<br />

R1(config)#Interface S0/0<br />

R1(config­if)#Frame­relay map ip 10.1.100.1 102<br />

NOTE: Since the local router will NOT be sending Multicast or Broadcast traffic to itself, there is no<br />

need to add the “broadcast” keyword for this configuration.<br />

To verify the configuration:<br />

On R1<br />

R1#Ping 10.1.100.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 100/101/108 ms<br />

Let’s test R2’s reachability, we already know that it needs a frame­relay map or else it will not be able<br />

to ping its own IP address, let’s configure one and test:<br />

On R2<br />

R2(config)#Int S0/0<br />

R2(config­if)#Frame­relay map ip 10.1.100.2 201<br />

To test the configuration:<br />

On R2<br />

R2#Ping 10.1.100.2<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 48 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.2, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 96/100/108 ms<br />

Let’s see if R2 can ping the other spokes:<br />

On R2<br />

R2#Ping 10.1.100.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

R2#Ping 10.1.100.34<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.34, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

Do we have a frame­relay mappings for these destinations? Let’s check:<br />

On R2<br />

R2#Show frame­relay map<br />

Serial0/0 (up): ip 10.1.100.2 dlci 201(0xC9,0x3090), static,<br />

CISCO, status defined, active<br />

Serial0/0 (up): ip 10.1.100.1 dlci 201(0xC9,0x3090), static,<br />

broadcast,<br />

CISCO, status defined, active<br />

NOTE: <strong>The</strong>re are two frame­relay mappings, one for 10.1.100.2 and the second one is for 10.1.100.1 IP<br />

addresses. Let’s add two more frame­relay mappings, one for 10.1.100.3 and the second one for<br />

10.1.100.4:<br />

On R2<br />

R2(config)#Int S0/0<br />

R2(config­if)#Frame­relay map ip 10.1.100.3 201<br />

R2(config­if)#Frame­relay map ip 10.1.100.4 201<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 49 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


<strong>The</strong>re are two points that you need to remember:<br />

a. <strong>The</strong> destination IP address must be in the routing table with a valid next hop.<br />

b. <strong>The</strong>re must be a frame­relay mapping for that destination.<br />

To test the configuration:<br />

On R2<br />

R2#Ping 10.1.100.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

Let’s turn on the “Debug Frame­relay packet” and ping again and see the result:<br />

On R2<br />

R2#Deb frame pack<br />

Frame Relay packet debugging is on<br />

R2#Ping 10.1.100.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.3, timeout is 2 seconds:<br />

Serial0/0(o): dlci 201(0x3091), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/0(o): dlci 201(0x3091), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/0(o): dlci 201(0x3091), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/0(o): dlci 201(0x3091), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/0(o): dlci 201(0x3091), pkt type 0x800(IP), datagramsize 104.<br />

Success rate is 0 percent (0/5)<br />

It seems like the local router (R2) is sending the packets out, let’s enable the same debugging on R3 and<br />

see the result:<br />

On R2<br />

R2#Ping 10.1.100.3<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 50 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

On R3<br />

Serial0/0(i): dlci 301(0x48D1), pkt type 0x800, datagramsize 104<br />

Serial0/0:Encaps failed­­no map entry link 7(IP)<br />

It looks like R3 is missing frame­relay map back to R2. Let’s configure a frame­relay map on R3 for<br />

R2 and test again:<br />

On R3<br />

R3(config)#Int S0/0<br />

R3(config­if)#Frame­relay map ip 10.1.100.2 301<br />

To verify the configuration:<br />

On R2<br />

R2#Ping 10.1.100.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.3, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 100/100/100 ms<br />

Perfect…..Let’s do the same on R4.<br />

On R4<br />

R4(config)#Int S0/0<br />

R4(config­if)#Frame­relay map ip 10.1.100.2 401<br />

To verify the configuration:<br />

On R2<br />

R2#Ping 10.1.100.4<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.100.4, timeout is 2 seconds:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 51 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 96/100/108 ms<br />

When configuring the frame­relay mapping from one spoke to another spoke, the “broadcast”<br />

keyword should not be used, if this keyword is used, the hub router will receive redundant routing<br />

traffic. This can be verified by running RIPv2 and performing a “debug ip rip” command on the hub<br />

router.<br />

Task 3<br />

Configure the routers such that the LMI status inquiries are sent every 5 seconds and Full<br />

Status LMI requests are sent every 3 cycles instead of 6.<br />

By default frame­relay routers generate LMI Status inquiries every 10 seconds, and a full status<br />

inquiry every 6 th cycle (Every 60 seconds). <strong>The</strong> interval for status inquiries can be changed using the<br />

“Keepalive” command, whereas, the “Frame­relay lmi­n391dte” command can be used to change the<br />

interval for the complete status inquiries.<br />

NOTE: <strong>The</strong> output of the following debug command reveals the status inquiries and full status<br />

inquiries:<br />

On R1<br />

R1#Debug frame lmi<br />

Serial0/0(out): StEnq, myseq 125, yourseen 124, DTE up<br />

datagramstart = 0x3F401ED4, datagramsize = 14<br />

FR encap = 0x00010308<br />

00 75 95 01 01 01 03 02 7D 7C<br />

Serial0/0(in): Status, myseq 125, pak size 14<br />

RT IE 1, length 1, type 1<br />

KA IE 3, length 2, yourseq 125, myseq 125<br />

Serial0/0(out): StEnq, myseq 126, yourseen 125, DTE up<br />

datagramstart = 0x3F6B0294, datagramsize = 14<br />

FR encap = 0x00010308<br />

407: 00 75 95 01 01 01 03 02 7E 7D<br />

Serial0/0(in): Status, myseq 126, pak size 14<br />

RT IE 1, length 1, type 1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 52 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


KA IE 3, length 2, yourseq 126, myseq 126<br />

Serial0/0(out): StEnq, myseq 127, yourseen 126, DTE up<br />

datagramstart = 0x3F400C14, datagramsize = 14<br />

FR encap = 0x00010308<br />

00 75 95 01 01 01 03 02 7F 7E<br />

Serial0/0(in): Status, myseq 127, pak size 14<br />

RT IE 1, length 1, type 1<br />

KA IE 3, length 2, yourseq 127, myseq 127<br />

Serial0/0(out): StEnq, myseq 128, yourseen 127, DTE up<br />

datagramstart = 0x3F6AF394, datagramsize = 14<br />

FR encap = 0x00010308<br />

00 75 95 01 01 01 03 02 80 7F<br />

Serial0/0(in): Status, myseq 128, pak size 14<br />

RT IE 1, length 1, type 1<br />

KA IE 3, length 2, yourseq 128, myseq 128<br />

Serial0/0(out): StEnq, myseq 129, yourseen 128, DTE up<br />

datagramstart = 0x3F644ED4, datagramsize = 14<br />

FR encap = 0x00010308<br />

00 75 95 01 01 01 03 02 81 80<br />

Serial0/0(in): Status, myseq 129, pak size 14<br />

RT IE 1, length 1, type 1<br />

KA IE 3, length 2, yourseq 129, myseq 129<br />

Serial0/0(out): StEnq, myseq 130, yourseen 129, DTE up<br />

datagramstart = 0x3F6B03D4, datagramsize = 14<br />

FR encap = 0x00010308<br />

00 75 95 01 01 00 03 02 82 81<br />

Serial0/0(in): Status, myseq 130, pak size 59<br />

RT IE 1, length 1, type 0<br />

KA IE 3, length 2, yourseq 130, myseq 130<br />

PVC IE 0x7 , length 0x3 , dlci 102, status 0x2<br />

PVC IE 0x7 , length 0x3 , dlci 103, status 0x2<br />

PVC IE 0x7 , length 0x3 , dlci 104, status 0x2<br />

PVC IE 0x7 , length 0x3 , dlci 105, status 0x0<br />

PVC IE 0x7 , length 0x3 , dlci 106, status 0x0<br />

Note the status inquiries are sent every 10 seconds, these messages are “type 1s”, whereas, the complete<br />

status inquiries are generated by the local router every 6 th cycle, these message are “type 0” messages,<br />

and when the frame­relay switch receives these messages it responds with all the DLCIs that are<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 53 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


configured for that given router.<br />

To change these timers:<br />

On all routers<br />

Rx(config)#Interface S0/0<br />

Rx(config­if)#Keepalive 5<br />

Rx(config­if)#Frame­relay lmi­n391dte 3<br />

To test the configuration:<br />

Rx#Debug frame LMI<br />

*Nov 24 20:13:52.411: Serial0/0(out): StEnq, myseq 221, yourseen 220, DTE up<br />

*Nov 24 20:13:52.411: datagramstart = 0x3F6AEFD4, datagramsize = 14<br />

*Nov 24 20:13:52.411: FR encap = 0x00010308<br />

*Nov 24 20:13:52.411: 00 75 95 01 01 01 03 02 DD DC<br />

*Nov 24 20:13:52.415: Serial0/0(in): Status, myseq 221, pak size 14<br />

*Nov 24 20:13:52.415: RT IE 1, length 1, type 1<br />

*Nov 24 20:13:52.415: KA IE 3, length 2, yourseq 221, myseq 221<br />

*Nov 24 20:13:57.411: Serial0/0(out): StEnq, myseq 222, yourseen 221, DTE up<br />

*Nov 24 20:13:57.411: datagramstart = 0x3F400D54, datagramsize = 14<br />

*Nov 24 20:13:57.411: FR encap = 0x00010308<br />

*Nov 24 20:13:57.411: 00 75 95 01 01 01 03 02 DE DD<br />

*Nov 24 20:13:57.415: Serial0/0(in): Status, myseq 222, pak size 14<br />

*Nov 24 20:13:57.415: RT IE 1, length 1, type 1<br />

*Nov 24 20:13:57.415: KA IE 3, length 2, yourseq 222, myseq 222<br />

*Nov 24 20:14:02.411: Serial0/0(out): StEnq, myseq 223, yourseen 222, DTE up<br />

*Nov 24 20:14:02.411: datagramstart = 0x3F6AF394, datagramsize = 14<br />

*Nov 24 20:14:02.411: FR encap = 0x00010308<br />

*Nov 24 20:14:02.411: 00 75 95 01 01 00 03 02 DF DE<br />

*Nov 24 20:14:02.423: Serial0/0(in): Status, myseq 223, pak size 59<br />

*Nov 24 20:14:02.423: RT IE 1, length 1, type 0<br />

*Nov 24 20:14:02.423: KA IE 3, length 2, yourseq 223, myseq 223<br />

*Nov 24 20:14:02.423: PVC IE 0x7 , length 0x3 , dlci 102, status 0x2<br />

*Nov 24 20:14:02.423: PVC IE 0x7 , length 0x3 , dlci 103, status 0x2<br />

*Nov 24 20:14:02.423: PVC IE 0x7 , length 0x3 , dlci 104, status 0x2<br />

*Nov 24 20:14:02.423: PVC IE 0x7 , length 0x3 , dlci 105, status 0x0<br />

*Nov 24 20:14:02.423: PVC IE 0x7 , length 0x3 , dlci 106, status 0x0<br />

Note initially the router and the frame­relay switch exchange two “type 1” inquiries, and the third<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 54 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


message that the local router generates is a “type 0” messages which tells the switch to respond with all<br />

the DLCIs.<br />

Task 4<br />

Erase the startup configuration and reload the routers before proceeding to the next lab.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 55 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Lab 9 – Back­to­Back Frame­relay connection<br />

IP addressing:<br />

Task 1<br />

Router Interface / IP address DLCI assignment<br />

R1 S0/1 = 200.1.1.1 /24 113<br />

R3 S0/1 = 200.1.1.3 /24 113<br />

Configure Frame­relay between R1 and R3, you should use the IP address, interface and<br />

the DLCIs provided in the IP Addressing table above.<br />

In this scenario we do not have a frame­relay switch connecting the routers; these routers are<br />

connected back to back using a DTE DCE serial cable. <strong>The</strong> router that is connected to the DCE<br />

side should provide the clocking using the “Clock rate” interface configuration command, the DCE<br />

side can be determined using the “Show controller S 0/1” command as follows:<br />

R1#Sh controller S 0/1 | Inc clock<br />

DCE V.35, clock rate 64000<br />

In this case since the frame­relay switch does NOT exist, the LMIs should be disabled using the “No<br />

Keepalive” interface configuration command, and the frame­relay mapping should be done statically.<br />

When configuring the Frame­relay mapping, the DLCIs should be identical on both ends.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 56 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R1<br />

R1(config)#interface Serial0/1<br />

R1(config­if)#ip address 200.1.1.1 255.255.255.0<br />

R1(config­if)#encapsulation frame­relay<br />

R1(config­if)#NO keepalive<br />

R1(config­if)#clock rate 64000<br />

R1(config­if)#frame­relay map ip 200.1.1.3 113<br />

R1(config­if)#NO shut<br />

On R3<br />

R3(config)#interface Serial0/1<br />

R3(config­if)#ip address 200.1.1.3 255.255.255.0<br />

R3(config­if)#encapsulation frame­relay<br />

R3(config­if)#NO keepalive<br />

R3(config­if)#frame­relay map ip 200.1.1.1 113<br />

To verify & test the configuration:<br />

On R1<br />

R1#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 28/29/32 ms<br />

R1#Show frame­relay lmi<br />

R1#<br />

Note there are no LMIs, because they are disabled.<br />

R1#Show frame­relay pvc<br />

PVC Statistics for interface Serial0/1 (Frame Relay DTE)<br />

Active Inactive Deleted Static<br />

Local 1 0 0 0<br />

Switched 0 0 0 0<br />

Unused 0 0 0 0<br />

DLCI = 113, DLCI USAGE = LOCAL, PVC STATUS = STATIC, INTERFACE = Serial0/1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 57 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


input pkts 5 output pkts 10 in bytes 520<br />

out bytes 1040 dropped pkts 0 in pkts dropped 0<br />

out pkts dropped 0 out bytes dropped 0<br />

in FECN pkts 0 in BECN pkts 0 out FECN pkts 0<br />

out BECN pkts 0 in DE pkts 0 out DE pkts 0<br />

out bcast pkts 0 out bcast bytes 0<br />

5 minute input rate 0 bits/sec, 0 packets/sec<br />

5 minute output rate 0 bits/sec, 0 packets/sec<br />

pvc create time 00:03:53, last time pvc status changed 00:02:39<br />

R1#Show frame­relay map<br />

Serial0/1 (up): ip 200.1.1.3 dlci 113(0x71,0x1c10), static,<br />

CISCO<br />

Task 2<br />

Configure the routers such that R1 uses DLCI 103 to send and DLCI 301 to receive<br />

packets, whereas, R3 should use DLCI 301 to send and DLCI 103 to receive packets.<br />

You should configure interface S0/1 to accomplish this task.<br />

In this task we are asked to configure these routers to use different DLCIs, 103 connecting R1 to R3<br />

and 301 connecting R3 to R1.<br />

On R1<br />

R1(config)#interface Serial0/1<br />

R1(config­if)#ip address 200.1.1.1 255.255.255.0<br />

R1(config­if)#encapsulation frame­relay<br />

R1(config­if)#NO keepalive<br />

R1(config­if)#clock rate 64000<br />

<strong>The</strong> following command removes the frame­relay mapping that was configured in the previous task<br />

and adds the new mapping:<br />

R1(config­if)#NO frame­relay map ip 200.1.1.3 113<br />

R1(config­if)#frame­relay map ip 200.1.1.3 103<br />

On R3<br />

R3(config)#interface Serial0/1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 58 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R3(config­if)#ip address 200.1.1.3 255.255.255.0<br />

R3(config­if)#encapsulation frame­relay<br />

R3(config­if)#NO keepalive<br />

R3(config­if)#NO frame­relay map ip 200.1.1.1 113<br />

R3(config­if)#frame­relay map ip 200.1.1.1 301<br />

To verify and test the configuration:<br />

On Both Routers:<br />

#Debug Frame­relay packet<br />

On R1<br />

R1#Ping 200.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.3, timeout is 2 seconds:<br />

.....<br />

Success rate is 0 percent (0/5)<br />

You should see the following debug output on R1 and R3:<br />

On R1<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104.<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104.<br />

On R3<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 103<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 103<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 103<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 103<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 103<br />

NOTE: <strong>The</strong> output of the debug messages on R3 reveals the reason that the ping was NOT successful.<br />

It’s telling us that it received 5 invalid and unexpected packets on DLCI 103. <strong>The</strong> reason the local<br />

router (R3) sees R1’s DLCI is because they are directly connected.<br />

To fix this problem, R3 can be configured to receive data on DLCI 103 and send on DLCI 301, as<br />

follows:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 59 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R3<br />

R3(config)#int S0/1<br />

R3(config­if)#frame­relay interface­dlci 103<br />

To verify and test the configuration:<br />

On R1<br />

R1#Ping 200.1.1.3 repeat 4<br />

On R3<br />

Serial0/1(i): dlci 103(0x1871), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 301(0x48D1), pkt type 0x800(IP), datagramsize 104<br />

Serial0/1(i): dlci 103(0x1871), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 301(0x48D1), pkt type 0x800(IP), datagramsize 104<br />

Serial0/1(i): dlci 103(0x1871), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 301(0x48D1), pkt type 0x800(IP), datagramsize 104<br />

Serial0/1(i): dlci 103(0x1871), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 301(0x48D1), pkt type 0x800(IP), datagramsize 104<br />

Note the incoming traffic uses DLCI 103, whereas, the outgoing traffic uses DLCI 301. Let’s try to ping<br />

R1 and see why the pings are unsuccessful:<br />

To test the configuration:<br />

On R3<br />

R3#Ping 200.1.1.1 repeat 4<br />

On R1<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 301<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 301<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 301<br />

Serial0/1: FR invalid/unexpected pak received on DLCI 301<br />

Note we are experiencing the same problem on R3, the traffic comes in on DLCI 301 and the local<br />

router is NOT aware of this DLCI. To fix this problem:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 60 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R1(config)#int S0/1<br />

R1(config­if)#frame­relay interface­dlci 301<br />

To verify and test the configuration:<br />

On R3<br />

R3#Ping 200.1.1.1 repeat 4<br />

Type escape sequence to abort.<br />

Sending 4, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!<br />

Success rate is 100 percent (4/4), round­trip min/avg/max = 28/29/32 ms<br />

On R1<br />

Serial0/1(i): dlci 301(0x48D1), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104<br />

Serial0/1(i): dlci 301(0x48D1), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104<br />

Serial0/1(i): dlci 301(0x48D1), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104<br />

Serial0/1(i): dlci 301(0x48D1), pkt type 0x800, datagramsize 104<br />

Serial0/1(o): dlci 103(0x1871), pkt type 0x800(IP), datagramsize 104<br />

R1#Show frame map<br />

Serial0/1 (up): ip 200.1.1.3 dlci 103(0x67,0x1870), static,<br />

CISCO<br />

On R3<br />

R3#Show frame map<br />

Serial0/1 (up): ip 200.1.1.1 dlci 301(0x12D,0x48D0), static,<br />

CISCO<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 61 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R1<br />

Task 3<br />

Re­configure R1 as a frame­relay switch and a router connecting to R3, whereas, R3<br />

should be configured as a router connecting to R1 using S0/1 interface. R1 should use<br />

DLCI 103 for its connection to R3 and R3 should use DLCI 301 for its connection to R1.<br />

You should NOT disable LMIs to accomplish this task.<br />

R1(config)#frame switching<br />

R1(config)#int S0/1<br />

R1(config­if)#ip addr 200.1.1.1 255.255.255.0<br />

R1(config­if)#encap frame­relay<br />

R1(config­if)#clock rate 64000<br />

R1(config­if)#frame map ip 200.1.1.3 103<br />

R1(config­if)#frame interface­dlci 301<br />

R1(config­if)#frame­relay intf­type dce<br />

On R3<br />

R3(config­if)#int S0/1<br />

R3(config­if)#ip addr 200.1.1.3 255.255.255.0<br />

R3(config­if)#encap frame­relay<br />

R3(config­if)#frame map ip 200.1.1.1 301<br />

To verify and test the configuration:<br />

On R1<br />

R1#Show frame lmi | B Num<br />

Num Status Enq. Rcvd 11 Num Status msgs Sent 11<br />

Num Update Status Sent 0 Num St Enq. Timeouts 0<br />

On R3<br />

R3#Show frame­relay lmi | B Num<br />

Num Status Enq. Sent 18 Num Status msgs Rcvd 19<br />

Num Update Status Rcvd 0 Num Status Timeouts 0<br />

Last Full Status Req 00:00:00 Last Full Status Rcvd 00:00:00<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 62 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R3#Show frame­relay map<br />

Serial0/1 (up): ip 200.1.1.1 dlci 301(0x12D,0x48D0), static,<br />

CISCO, status defined, active<br />

R3#Ping 200.1.1.1<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 200.1.1.1, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 28/30/33 ms<br />

Task 4<br />

Erase the startup configuration and reload the routers before proceeding to the next lab.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 63 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Lab Setup:<br />

Configure F0/19 interface of SW1 and SW2 as a Dot1Q trunk.<br />

Configure SW1 and SW2 in VTP domain called TST<br />

Configure F0/1 and F0/2 interface of SW1 in VLAN 100.<br />

Configure F0/3 interface of SW2 as a Dot1Q trunk.<br />

Configure F0/1 interface of R3 as a Dot1Q trunk for VLAN 100.<br />

You can copy and paste the initial configuration from the init directory<br />

IP addressing:<br />

Lab 1 – MLS QOS<br />

Router Interface / IP address VLAN<br />

R1 F0/0 = 10.1.1.1 /24 100<br />

R2 F0/0 = 10.1.1.2 /24 100<br />

R3 F0/1.100 = 10.1.1.3 /24 100<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 64 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Task 1<br />

On Switch 1<br />

Assign a hostname of SW1 to Switch 1 and a hostname of SW2 to Switch 2. Shutdown<br />

all unused ports on these switches.<br />

Switch(config)#Host SW1<br />

SW1(config)#Int range f0/3­18 , F0/20­24<br />

SW1(config­if­range)#Shut<br />

On Switch 2<br />

Switch(config)#Host SW2<br />

SW2(config)#Int range f0/1­2 , F0/4­18 , F0/20­24<br />

SW2(config­if­range)#Shut<br />

Task 2<br />

Configure SW1’s port F0/2 such that it marks All ingress traffic with a CoS marking of 2.<br />

For verification purpose, R3 should be configured to match on CoS values of 0 – 7<br />

ingress on its F0/1.100 sub­interface.<br />

In this step R3 is configured to match on incoming CoS values of 0 – 7, this is done so the policy can be<br />

tested and verified.<br />

On R3<br />

R3(config)#class­map cos0<br />

R3(config­cmap)#match CoS 0<br />

R3(config)#class­map cos1<br />

R3(config­cmap)#match CoS 1<br />

R3(config)#class­map cos2<br />

R3(config­cmap)#match CoS 2<br />

R3(config)#class­map cos3<br />

R3(config­cmap)#match CoS 3<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 65 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R3(config)#class­map cos4<br />

R3(config­cmap)#match CoS 4<br />

R3(config)#class­map cos5<br />

R3(config­cmap)#match CoS 5<br />

R3(config)#class­map cos6<br />

R3(config­cmap)#match CoS 6<br />

R3(config)#class­map cos7<br />

R3(config­cmap)#match CoS 7<br />

R3(config)#Policy­map TST<br />

R3(config­pmap)#Class cos0<br />

R3(config­pmap)#Class cos1<br />

R3(config­pmap)#Class cos2<br />

R3(config­pmap)#Class cos3<br />

R3(config­pmap)#Class cos4<br />

R3(config­pmap)#Class cos5<br />

R3(config­pmap)#Class cos6<br />

R3(config­pmap)#Class cos7<br />

R3(config)#Int F0/1.100<br />

R3(config­subif)#Service­policy in TST<br />

On SW1<br />

By default, QOS is disabled and the switch will NOT modify the CoS, IP­Precedence or the DSCP<br />

values of received traffic. To verify:<br />

SW1#Show mls qos<br />

QoS is disabled<br />

QoS ip packet dscp rewrite is enabled<br />

<strong>The</strong> following command enables MLS QOS; to perform any kind of QOS configuration, MLS QOS<br />

must be enabled.<br />

SW1(config)#MLS QOS<br />

To verify the configuration:<br />

On SW1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 66 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


SW1#Show mls qos<br />

QoS is enabled<br />

QoS ip packet dscp rewrite is enabled<br />

To continue with the configuration:<br />

SW1(config)#int F0/1<br />

<strong>The</strong> following command assigns a default CoS value of 2 to untagged traffic received through this<br />

interface.<br />

SW1(config­if)#mls qos cos 2<br />

To verify the configuration:<br />

On SW1<br />

SW1#Show mls qos inter f0/1<br />

FastEthernet0/1<br />

trust state: not trusted<br />

trust mode: not trusted<br />

trust enabled flag: ena<br />

COS override: dis<br />

default COS: 2<br />

DSCP Mutation Map: Default DSCP Mutation Map<br />

Trust device: none<br />

qos mode: port­based<br />

To test the configuration:<br />

On R1<br />

R1#Ping 10.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

.!!!!<br />

Success rate is 80 percent (4/5), round­trip min/avg/max = 1/1/4 ms<br />

To verify the test:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 67 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R3<br />

R3#Show policy­map interface | S cos0<br />

Class­map: cos0 (match­all)<br />

4 packets, 472 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 0<br />

R3#Show policy­map interface | S cos2<br />

Class­map: cos2 (match­all)<br />

0 packets, 0 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 2<br />

Note, even though the interface is configured with “Mls qos cos 2” the traffic coming in on that<br />

interface is NOT affected. To mark ALL traffic with a CoS marking of 2, which means all traffic<br />

regardless of their marking, the port must be configured to override the existing CoS.<br />

<strong>The</strong> “mls qos cos” command on its own does NOTHING, it should be combined with either the “Mls<br />

qos cos override” or “Mls qos trust cos”. When its combined with “MLS qos trust cos”, ONLY the<br />

untagged traffic is affected, but if it’s combined with “MLS qos cos override”, then, all traffic (Tagged<br />

or untagged) is affected.<br />

<strong>The</strong> following command configures the switch port to trust the CoS value in ALL incoming traffic<br />

through F0/2 interface, the “Mls qos cos override” command will be tested later:<br />

SW1(config)#int F0/1<br />

SW1(config­if)#mls qos trust cos<br />

To verify the configuration:<br />

On SW1<br />

SW1#Sh mls qos interface f0/1<br />

FastEthernet0/1<br />

trust state: trust cos<br />

trust mode: trust cos<br />

trust enabled flag: ena<br />

COS override: dis<br />

default COS: 2<br />

DSCP Mutation Map: Default DSCP Mutation Map<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 68 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Trust device: none<br />

qos mode: port­based<br />

To test the configuration:<br />

On R3<br />

R3#Clear counters<br />

Clear "show interface" counters on all interfaces [confirm]<br />

Press Enter to allow the counters to be cleared<br />

On R1<br />

R1#Ping 10.1.1.3<br />

Type escape sequence to abort.<br />

Sending 5, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!<br />

Success rate is 100 percent (5/5), round­trip min/avg/max = 1/1/4 ms<br />

To verify the test:<br />

On R3<br />

R3#Sh policy­map inter | S cos0<br />

Class­map: cos0 (match­all)<br />

0 packets, 0 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 0<br />

R3#Show policy­map interface | S cos2<br />

Class­map: cos2 (match­all)<br />

5 packets, 590 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 2<br />

Note the output of the above show command reveals that all traffic that sourced from R1 is marked<br />

with a CoS value of 0; the reason for this outcome is because SW1 is configured with “Mls qos” global<br />

configuration command, therefore, the switch will mark all untagged incoming traffic through its F0/1<br />

interface with a CoS value of 2.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 69 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On SW1<br />

Task 3<br />

Configure SW1 and R1 as follows:<br />

• F0/1 interface of SW1 should be configured as a Dot1q trunk.<br />

• Disable “Mls QOS” and remove the “Mls qos cos 2” command from F0/1<br />

interface of SW1.<br />

• Configure F0/0.100 sub­interface on R1, this sub­interface should be configured<br />

based on the following:<br />

• R1’s F0/0.100 interface should be configured as trunk for VLAN 100<br />

• R1’s F0/0.100 should be assigned an IP address of 10.1.1.1 /24<br />

• R1’s F0/0.100 should be configured to mark all egress traffic with a CoS<br />

value of 6.<br />

SW1(config)#int F0/1<br />

SW1(config­if)#Default inter f0/1<br />

SW1(config)#int F0/1<br />

SW1(config­if)#swi trunk enc do<br />

SW1(config­if)#swi mode trunk<br />

SW1(config)#NO Mls qos<br />

To verify the configuration<br />

On SW1<br />

SW1#Show int trunk<br />

Port Mode Encapsulation Status Native vlan<br />

Fa0/1 on 802.1q trunking 1<br />

Fa0/19 on 802.1q trunking 1<br />

Port Vlans allowed on trunk<br />

Fa0/1 1­4094<br />

Fa0/19 1­4094<br />

Port Vlans allowed and active in management domain<br />

Fa0/1 1,100<br />

Fa0/19 1,100<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 70 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Port Vlans in spanning tree forwarding state and not pruned<br />

Fa0/1 none<br />

Fa0/19 1,100<br />

On R1<br />

R1(config)#Default inter F0/0<br />

R1(config­if)#int F0/0.100<br />

R1(config­subif)#encap dot1 100<br />

R1(config­subif)#ip addr 10.1.1.1 255.255.255.0<br />

R1(config)#Policy­map TST<br />

R1(config­pmap)#class class­default<br />

R1(config­pmap­c)#set cos 6<br />

R1(config­pmap­c)#int F0/0.100<br />

R1(config­subif)#service­policy out TST<br />

To test the configuration:<br />

On R3<br />

R3#Clear counters<br />

On R1<br />

R1#Ping 10.1.1.3 rep 60<br />

Type escape sequence to abort.<br />

Sending 60, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (60/60), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

R3#Sh policy­map inter | S cos60<br />

Class­map: cos6 (match­all)<br />

60 packets, 7080 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 6<br />

Note traffic generated by R1 has a CoS marking of 6.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 71 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On SW1<br />

Task 4<br />

SW1 should be configured to trust the CoS marking of any traffic coming through its<br />

F0/1 interface.<br />

SW1(config)#mls qos<br />

SW1(config)#int F0/1<br />

SW1(config­if)#mls qos trust CoS<br />

To test the configuration<br />

On R3<br />

R3#Clear counters<br />

On R1<br />

R1#Ping 10.1.1.3 repeat 60<br />

Type escape sequence to abort.<br />

Sending 60, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (60/60), round­trip min/avg/max = 1/1/4 ms<br />

Note the output of the following show command reveals that the traffic retained its CoS marking.<br />

On R3<br />

R3#Show policy­map interface | S cos6<br />

Class­map: cos6 (match­all)<br />

60 packets, 7080 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 6<br />

Task 5<br />

Configure R1, R2 & SW1 using the following policy:<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 72 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


1. If the ingress traffic from R2 is NOT marked with a CoS value, SW1 should be<br />

configured to mark that traffic with a CoS value of 0.<br />

2. If the ingress traffic from R1 is NOT tagged, SW1 should be configured to rewrite<br />

the CoS value to 1, however, if the traffic is tagged, SW1 should NOT rewrite the<br />

CoS value of the incoming traffic.<br />

To configure the first policy:<br />

Since the “Mls Qos” command is configured on SW1, when traffic without a CoS marking enters any<br />

port on SW1, that traffic is marked with a CoS value of 0, therefore, SW1 does NOT need to be<br />

configured for this policy:<br />

To verify and test the first policy:<br />

On R3<br />

R3#Clear counter<br />

On R2<br />

R2#Ping 10.1.1.3 rep 60<br />

Type escape sequence to abort.<br />

Sending 60, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (60/60), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

Since the traffic generated by R2 did not have a CoS marking, the traffic will arrive with a CoS<br />

marking of zero.<br />

R3#Show policy­map interface | S cos6<br />

Class­map: cos6 (match­all)<br />

0 packets, 0 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 6<br />

R3#Show policy­map interface | S cos0<br />

Class­map: cos0 (match­all)<br />

60 packets, 7080 bytes<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 73 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


5 minute offered rate 0 bps<br />

Match: cos 0<br />

To configure the second policy:<br />

<strong>The</strong> “Mls qos trust cos” command that was configured in the previous task will trust the CoS value in<br />

the incoming traffic and will NOT rewrite the CoS value; since the task stats that the untagged traffic<br />

should be re­written to a CoS value of 1, whereas, the tagged traffic should NOT be affected at all, the<br />

following should be configured:<br />

To test the configuration:<br />

On R3<br />

R3#Clear counters<br />

On SW1<br />

SW1(config)#Int F0/1<br />

SW1(config­if)#mls qos cos 1<br />

<strong>The</strong> above command ONLY affects the untagged traffic, since R1’s F0/1 interface is configured as a<br />

truck link, this configuration should NOT have any affect. <strong>The</strong> following show command reveals this<br />

information:<br />

On R1<br />

R1#Ping 10.1.1.3 repeat 10<br />

Type escape sequence to abort.<br />

Sending 10, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!<br />

Success rate is 100 percent (10/10), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

<strong>The</strong> output of the following show command reveals that the traffic from R1 retained its CoS value of 6:<br />

R3#Sh policy­map inter | s cos6<br />

Class­map: cos6 (match­all)<br />

10 packets, 1180 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 6<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 74 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


To test the untagged traffic:<br />

On R1<br />

R1(config)#int F0/0.100<br />

R1(config­subif)#encap dot1 100 native<br />

NOTE: In the above and the following configuration, VLAN 100 is configured to be the Native VLAN<br />

so the traffic arrives with NO tagging:<br />

On SW1<br />

SW1(config­if)#int F0/1<br />

SW1(config­if)#swi trunk native vlan 100<br />

To see SW1’s configuration:<br />

On SW1<br />

SW1#Sh run int F0/1 | B interface<br />

interface FastEthernet0/1<br />

switchport trunk encapsulation dot1q<br />

switchport trunk native vlan 100<br />

switchport mode trunk<br />

mls qos cos 1<br />

mls qos trust cos<br />

To verify the configuration:<br />

On SW1<br />

SW1#Sh interface trunk<br />

Port Mode Encapsulation Status Native vlan<br />

Fa0/1 on 802.1q trunking 100<br />

Fa0/19 on 802.1q trunking 1<br />

(<strong>The</strong> rest of the output is omitted)<br />

On R3<br />

R3#Clear counters<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 75 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On R1<br />

R1#Ping 10.1.1.3 rep 100<br />

Type escape sequence to abort.<br />

Sending 100, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (100/100), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

R3#Show policy­map interface | S cos6<br />

Class­map: cos6 (match­all)<br />

0 packets, 0 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 6<br />

R3#Show policy­map interface | S cos0<br />

Class­map: cos0 (match­all)<br />

0 packets, 0 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 0<br />

R3#Show policy­map interface | S cos1<br />

Class­map: cos1 (match­all)<br />

100 packets, 11800 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 1<br />

<strong>The</strong> following shows R1’s policy­map configuration:<br />

On R1<br />

R1#Show policy­map TST<br />

Policy Map TST<br />

Class class­default<br />

set cos 6<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 76 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


On SW2<br />

Task 6<br />

SW2 should be configured such that it marks all traffic from any router/s connected to<br />

SW1 (Tagged or Untagged) with a CoS value of 7. DO NOT configure R1, R2 or SW1 to<br />

accomplish this task.<br />

SW2(config)#MLS QOS<br />

NOTE: This configuration is performed on the trunk link of SW2 so it can affect all traffic coming<br />

from SW1; this affects the traffic that has marking, the traffic that does NOT have any marking,<br />

tagged or untagged:<br />

SW2(config)#int F0/19<br />

SW2(config­if)#mls qos cos 7<br />

SW2(config­if)#mls qos cos override<br />

To verify the configuration:<br />

On SW2<br />

SW2#Sh mls qos inter f0/19<br />

FastEthernet0/19<br />

trust state: not trusted<br />

trust mode: not trusted<br />

trust enabled flag: ena<br />

COS override: ena<br />

default COS: 7<br />

DSCP Mutation Map: Default DSCP Mutation Map<br />

Trust device: none<br />

qos mode: port­based<br />

To test the configuration:<br />

On R3<br />

R3#Clear counter<br />

On R1<br />

R1#Ping 10.1.1.3 rep 100<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 77 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Type escape sequence to abort.<br />

Sending 100, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (100/100), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

Note the traffic matched to CoS 7<br />

R3#Show policy­map interface | S cos7<br />

On R2<br />

Class­map: cos7 (match­all)<br />

100 packets, 11800 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 7<br />

R2#Ping 10.1.1.3 rep 200<br />

Type escape sequence to abort.<br />

Sending 200, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (200/200), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

R3#Show policy­map interface | S cos7<br />

Class­map: cos7 (match­all)<br />

300 packets, 35400 bytes<br />

5 minute offered rate 0 bps<br />

Match: cos 7<br />

Note all traffic regardless of their marking are marked with a CoS value of 7.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 78 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Task 7<br />

Erase the startup configuration on R1­3 and SW1 & SW2 and reload these routers and<br />

switches before proceeding to the next lab.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 79 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


Lab Setup:<br />

<strong>The</strong> lab topology and setup is based on the previous lab, with the exception of R3’s<br />

configuration and the F0/3 interface of SW2; R3’s F0/1 interface should be configured<br />

with an IP address of 10.1.1.3 /24 and the F0/3 interface of SW2 should be configured in<br />

VLAN 100.<br />

You can copy and paste the initial configuration from the init directory<br />

Task 1<br />

Configure an MQC on R1 such that all packets going out of its F0/0 interface are marked<br />

with a DSCP value of 1. For verification purpose, R3’s F0/1 interface should be<br />

configured to match on DSCP 0­7 for all ingress traffic. Ensure that “Mls qos” is<br />

disabled on both switches.<br />

On Both Switches:<br />

SWx#Sh mls qos<br />

Lab 2 – DSCP­Mutation<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 80 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


QoS is disabled<br />

QoS ip packet dscp rewrite is enabled<br />

<strong>The</strong> following configuration on R1 marks all egress traffic with a DSCP value of 1:<br />

On R1<br />

R1(config)#Policy­map TST<br />

R1(config­pmap)#class class­default<br />

R1(config­pmap­c)#set ip dscp 1<br />

R1(config)#int F0/0<br />

R1(config­if)#Service­policy out TST<br />

On R3<br />

<strong>The</strong> following configuration is done for verification and testing purposes:<br />

R3(config)#Class­map DSCP0<br />

R3(config­cmap)#match ip dscp 0<br />

R3(config)#Class­map DSCP1<br />

R3(config­cmap)#match ip dscp 1<br />

R3(config)#Class­map DSCP2<br />

R3(config­cmap)#match ip dscp 2<br />

R3(config)#Class­map DSCP3<br />

R3(config­cmap)#match ip dscp 3<br />

R3(config)#Class­map DSCP4<br />

R3(config­cmap)#match ip dscp 4<br />

R3(config)#Class­map DSCP5<br />

R3(config­cmap)#match ip dscp 5<br />

R3(config)#Class­map DSCP6<br />

R3(config­cmap)#match ip dscp 6<br />

R3(config)#Class­map DSCP7<br />

R3(config­cmap)#match ip dscp 7<br />

R3(config)#policy­map TST<br />

R3(config­pmap)#Class DSCP0<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 81 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R3(config­pmap)#Class DSCP1<br />

R3(config­pmap)#Class DSCP2<br />

R3(config­pmap)#Class DSCP3<br />

R3(config­pmap)#Class DSCP4<br />

R3(config­pmap)#Class DSCP5<br />

R3(config­pmap)#Class DSCP6<br />

R3(config­pmap)#Class DSCP7<br />

R3(config)#int F0/1<br />

R3(config­if)#service­policy in TST<br />

To test the configuration:<br />

On R1<br />

R1#Ping 10.1.1.3 rep 10<br />

Type escape sequence to abort.<br />

Sending 10, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

.!!!!!!!!!<br />

Success rate is 90 percent (9/10), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

R3#Sh Policy­map inter | S DSCP1<br />

Class­map: DSCP1 (match­all)<br />

9 packets, 1026 bytes<br />

5 minute offered rate 0 bps<br />

Match: ip dscp 1<br />

Note since “Mls qos” is disabled on both switches, the packets traversing the switches will retain their<br />

marking.<br />

Task 2<br />

Configure SW2 such that if the incoming traffic is marked with DSCP 1, they are<br />

overwritten to a DSCP value of 60. DO NOT configure a class­map or Policy­map to<br />

accomplish this task. Use R3 to verify the configuration.<br />

DSCP Mutation can be configured to accomplish this task; there are five steps in configuring DSCP<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 82 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


mutation, and they are as follows:<br />

Step 1:<br />

Mls qos MUST be enabled:<br />

On SW2<br />

SW2(config)#Mls qos<br />

To verify the configuration of this step:<br />

On SW2<br />

SW2#Show mls QoS<br />

QoS is enabled<br />

QoS ip packet dscp rewrite is enabled<br />

Step 2:<br />

In this step a custom DSCP­Mutation map is configured, remember that if this custom mapping is<br />

NOT configured, the default DSCP­Mutation map will be used, the default DSCP­Mutation map can<br />

NOT be changed and it is configured as one to one, meaning that the incoming DSCP value will always<br />

match to the same outgoing DSCP value:<br />

In this step a custom DSCP­Mutation map named TST is configured, this custom DSCP­Mutation<br />

maps the incoming DSCP value (in this case 1) to an outgoing DSCP value of 60:<br />

To see the default DSCP­Mutation map:<br />

SW2#Show mls qos map dscp­mutation<br />

Dscp­dscp mutation map:<br />

Default DSCP Mutation Map:<br />

d1 : d2 0 1 2 3 4 5 6 7 8 9<br />

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­<br />

0 : 00 01 02 03 04 05 06 07 08 09<br />

1 : 10 11 12 13 14 15 16 17 18 19<br />

2 : 20 21 22 23 24 25 26 27 28 29<br />

3 : 30 31 32 33 34 35 36 37 38 39<br />

4 : 40 41 42 43 44 45 46 47 48 49<br />

5 : 50 51 52 53 54 55 56 57 58 59<br />

6 : 60 61 62 63<br />

Note the d1: column (highlighted in yellow) specifies the most significant digit of the DSCP value of<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 83 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


incoming packets, whereas, the d2: row (highlighted in blue) specifies the least significant digit of the<br />

DSCP value of incoming packets.<br />

<strong>The</strong> intersection of the d1 and d2 values (this is the body of the output) provides the DSCP value of the<br />

outgoing packets.<br />

NOTE: the output of the above show command reveals that the incoming DSCP value of 1, is re­<br />

written to the outgoing DSCP value of 1.<br />

Let’s configure a custom DSCP­Mutation map called TST that maps the incoming DSCP value of 1 to<br />

an outgoing DSCP value of 60:<br />

SW2(config)#Mls qos map dscp­mutation TST 1 to 60<br />

To verify the configuration:<br />

On SW2<br />

SW2#Show mls qos map dscp­mutation TST<br />

Dscp­dscp mutation map:<br />

TST:<br />

d1 : d2 0 1 2 3 4 5 6 7 8 9<br />

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­<br />

0 : 00 60 02 03 04 05 06 07 08 09<br />

1 : 10 11 12 13 14 15 16 17 18 19<br />

2 : 20 21 22 23 24 25 26 27 28 29<br />

3 : 30 31 32 33 34 35 36 37 38 39<br />

4 : 40 41 42 43 44 45 46 47 48 49<br />

5 : 50 51 52 53 54 55 56 57 58 59<br />

6 : 60 61 62 63<br />

Step 3:<br />

In this step, the custom DSCP­Mutation map called TST is applied to the F0/19 interface (Trunk<br />

interface) of SW2<br />

SW2(config)#int F0/19<br />

SW2(config­if)#mls qos dscp­mutation TST<br />

To verify the configuration:<br />

On SW2<br />

SW2#Show mls qos int F0/19 | Inc DSCP<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 84 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


DSCP Mutation Map: TST<br />

Step 4:<br />

Remember, if the “Mls qos trust DSCP” is NOT configured, the configuration will NOT have any<br />

affect on the packets:<br />

To see the trust trust state (What’s being trusted) of the F0/19 interface:<br />

On SW2<br />

SW2#Show mls qos int F0/19 | Inc trust state<br />

trust state: not trusted<br />

On SW2<br />

SW2(config)#int F0/19<br />

SW2(config­if)#mls qos trust dscp<br />

To verify the configuration:<br />

On SW2<br />

SW2#Show mls qos int F0/19 | Inc trust state<br />

trust state: trust dscp<br />

NOTE: If CoS was trusted, the output of the above command would have stated “trust state: trust<br />

CoS”, since ONLY DSCP is trusted, the trust state is DSCP.<br />

Step 5:<br />

Ensure that the DSCP re­writes are enabled, if this is disabled, then, the DSCP marking will NOT be<br />

re­written.<br />

To verify if the DSCP re­writes are enabled:<br />

On SW2<br />

SW2#Show mls qos<br />

QoS is enabled<br />

QoS ip packet dscp rewrite is enabled<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 85 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


If the DSCP re­writes are disabled, then, the DSCP marking in the outgoing packets will NOT be re­<br />

written. <strong>The</strong>re are times that this feature must be disable, to disable this feature, the “NO mls qos<br />

rewrite ip dscp” global command can be used.<br />

To prepare R3 for verification purpose:<br />

On R3<br />

<strong>The</strong> following configuration is required for testing and verification.<br />

R3(config)#Class­map DSCP60<br />

R3(config­cmap)#match ip dscp 60<br />

R3(config)#policy­map TST<br />

R3(config­pmap)#Class DSCP60<br />

Remember, the policy­map TST is already applied.<br />

To verify the configuration:<br />

On SW2<br />

R3#Show policy­map TST<br />

Policy Map TST<br />

Class DSCP0<br />

Class DSCP1<br />

Class DSCP2<br />

Class DSCP3<br />

Class DSCP4<br />

Class DSCP5<br />

Class DSCP6<br />

Class DSCP7<br />

Class DSCP60<br />

To test the configuration:<br />

On R3<br />

R3#clear counters<br />

On R1<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 86 of 87<br />

© 2011 Narbik Kocharians. All rights reserved


R1#Ping 10.1.1.3 rep 60<br />

Type escape sequence to abort.<br />

Sending 60, 100­byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:<br />

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />

Success rate is 100 percent (60/60), round­trip min/avg/max = 1/1/4 ms<br />

On R3<br />

R3#Show policy­map interface | S DSCP60<br />

Class­map: DSCP60 (match­all)<br />

60 packets, 6840 bytes<br />

5 minute offered rate 0 bps<br />

Match: ip dscp 60<br />

Task 3<br />

Configure the “Default interface F0/1” command on R3 before proceeding to the next<br />

lab.<br />

<strong>CCIE</strong> R&S by Narbik Kocharians <strong>Advanced</strong> <strong>CCIE</strong> R&S Work Book <strong>4.0</strong> Page 87 of 87<br />

© 2011 Narbik Kocharians. All rights reserved

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!