Académique Documents
Professionnel Documents
Culture Documents
Version 1.0
Copyright Information
Copyright 2003 - 2010 Internetwork Expert, Inc. All rights reserved.
The following publication, CCIE Service Provider Lab Workbook Volume I, was developed by Internetwork Expert, Inc. All rights reserved. No part of this publication may
be reproduced or distributed in any form or by any means without the prior written
permission of Internetwork Expert, Inc.
Cisco, Cisco Systems, CCIE, and Cisco Certified Internetwork Expert, are registered
trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain countries.
All other products and company names are the trademarks, registered trademarks, and service
marks of the respective owners. Throughout this manual, Internetwork Expert, Inc. has used its
best efforts to distinguish proprietary trademarks from descriptive names by following the
capitalization styles used by the manufacturer.
www.INE.com
-i-
Version 1.0
Disclaimer
The following publication, CCIE Service Provider Lab Workbook Volume I, is designed to
assist candidates in the preparation for Cisco Systems CCIE Routing & Switching Lab exam.
While every effort has been made to ensure that all material is as complete and accurate as
possible, the enclosed material is presented on an as is basis. Neither the authors nor
Internetwork Expert, Inc. assume any liability or responsibility to any person or entity with
respect to loss or damages incurred from the information contained in this workbook.
This workbook was developed by Internetwork Expert, Inc. and is an original work of the
aforementioned authors. Any similarities between material presented in this workbook and
TM
actual CCIE lab material is completely coincidental.
www.INE.com
- ii -
Version 1.0
MPLS
Basic MPLS.......................................................................................................2
MPLS VPNs with Static Routing......................................................................10
MPLS VPNs with RIPv2 ..................................................................................18
MPLS VPNs with OSPF ..................................................................................28
MPLS VPNs with EIGRP .................................................................................38
MPLS VPNs with EBGP ..................................................................................48
Central Services MPLS VPNs .........................................................................58
MPLS VPNs with Extranets .............................................................................68
MPLS VPNs and VRF Export Map ..................................................................78
MPLS VPNs with BGP Site-Of-Origin..............................................................88
MPLS VPNs with OSPF and Sham-Links .......................................................98
MPLS VPNs with OSPF and Domain-ID .......................................................106
MPLS VPNs with VPNv4 Route Reflection ...................................................114
Inter-AS MPLS VPNs with Back-to-Back VRF...............................................130
Inter-AS MPLS VPNs with MP-eBGP for VPNv4 Exchange..........................144
Inter-AS MPLS VPNs with Multihop MP-eBGP for VPNv4 Exchange ...........158
Carrier Supporting Carrier IP Only Customer Carrier .................................170
Carrier Supporting Carrier MPLS Enabled Customer Carrier .....................180
Carrier Supporting Carrier Hierarchical MPLS VPNs .................................190
VRF-Lite ........................................................................................................204
Controlling MPLS Label Distribution..............................................................216
MPLS Traffic Engineering Dynamic PE to PE Tunnels ..............................226
MPLS Traffic Engineering Explicit PE to PE Tunnels .................................236
MPLS Traffic Engineering Unequal Cost Load Balancing ..........................246
MPLS QoS ....................................................................................................258
Multicast over MPLS VPNs ...........................................................................272
L2 VPNs: AToM.............................................................................................282
L2 VPNs: Inter-AS AToM ..............................................................................288
L2 VPNs: IP Interworking ..............................................................................296
L2 VPNs: Ethernet Interworking ....................................................................304
L2 VPNs: L2TPv3..........................................................................................312
IP Multicast
PIM Dense Mode...........................................................................................320
PIM Sparse Mode..........................................................................................330
Multicast RPF Failure ....................................................................................338
Auto-RP.........................................................................................................346
Auto-RP Multiple Candidate RPs ...............................................................354
Auto-RP Filtering Candidate RPs ...............................................................362
Auto-RP Listener ...........................................................................................368
PIM NBMA Mode...........................................................................................376
Auto-RP and Default RP Placement..............................................................384
Bootstrap Router ...........................................................................................392
Multicast Source Distribution Protocol (MSDP) .............................................398
Anycast RP....................................................................................................406
Copyright 2010 Internetwork Expert
www.INE.com
- iii -
Version 1.0
Multicast BGP................................................................................................414
www.INE.com
- iv -
Version 1.0
www.INE.com
-1-
Version 1.0
Basic MPLS
Objective: Configure MPLS on R1, R2, R3, and R4 to provide transit between
AS 100 and AS 200.
Fa0/3
BGP
AS 100
BGP
AS 1
10.1.37.0/24
.7
SW1
E0/0
R3
.3
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
BGP
AS 200
.5
R5
10.1.45.0/24 VLAN 45
402
.4
S0/0.1
.4
E0/1
R4
BGP
AS 1
E0/0
www.INE.com
-2-
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
mpls label protocol ldp
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
mpls label protocol ldp
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
www.INE.com
-3-
Version 1.0
R3#
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.37.7 remote-as 100
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
R4#
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Ethernet0/1
ip address 10.1.45.4 255.255.255.0
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.45.5 remote-as 200
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
no auto-summary
www.INE.com
-4-
Version 1.0
R5#
interface Loopback0
ip address 10.1.5.5 255.255.255.0
!
interface Ethernet0/0
ip address 10.1.45.5 255.255.255.0
!
router bgp 200
network 10.1.5.0 mask 255.255.255.0
neighbor 10.1.45.4 remote-as 1
SW1#
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/5
switchport access vlan 45
!
router bgp 100
network 10.1.7.0 mask 255.255.255.0
neighbor 10.1.37.3 remote-as 1
SW2#
interface FastEthernet0/4
switchport access vlan 45
Verification
SW1#ping 10.1.5.5 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.5.5, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/88/92 ms
www.INE.com
-5-
Version 1.0
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 00:12:01, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 00:12:01, FastEthernet0/0
O
R3#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.7.0 [20/0] via 10.1.37.7, 00:10:18
B
10.1.5.0 [200/0] via 150.1.4.4, 00:10:35
C
10.1.37.0 is directly connected, Ethernet0/0
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
150.1.24.0/24 [110/846] via 150.1.13.1, 00:12:29, Serial1/2
O
150.1.4.4/32 [110/847] via 150.1.13.1, 00:12:29, Serial1/2
C
150.1.3.3/32 is directly connected, Loopback0
C
150.1.13.0/24 is directly connected, Serial1/2
O
150.1.12.0/24 [110/782] via 150.1.13.1, 00:12:29, Serial1/2
R4#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.7.0 [200/0] via 150.1.3.3, 00:10:36
B
10.1.5.0 [20/0] via 10.1.45.5, 00:10:58
C
10.1.45.0 is directly connected, Ethernet0/1
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
C
150.1.4.4/32 is directly connected, Loopback0
O
150.1.3.3/32 [110/130] via 150.1.24.2, 00:12:49, Serial0/0.1
O
150.1.13.0/24 [110/129] via 150.1.24.2, 00:12:49, Serial0/0.1
O
150.1.12.0/24 [110/65] via 150.1.24.2, 00:12:49, Serial0/0.1
R5#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.7.0 [20/0] via 10.1.45.4, 00:10:49
C
10.1.5.0 is directly connected, Loopback0
C
10.1.45.0 is directly connected, Ethernet0/0
www.INE.com
-6-
Version 1.0
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.7.0 is directly connected, Loopback0
B
10.1.5.0 [20/0] via 10.1.37.3, 00:11:14
C
10.1.37.0 is directly connected, FastEthernet0/3
R1#show mpls ldp neighbor
Peer LDP Ident: 150.1.24.2:0; Local LDP Ident 150.1.13.1:0
TCP connection: 150.1.24.2.11005 - 150.1.13.1.646
State: Oper; Msgs sent/rcvd: 12/12; Downstream
Up time: 00:03:53
LDP discovery sources:
FastEthernet0/0, Src IP addr: 150.1.12.2
Addresses bound to peer LDP Ident:
150.1.12.2
150.1.24.2
Peer LDP Ident: 150.1.3.3:0; Local LDP Ident 150.1.13.1:0
TCP connection: 150.1.3.3.646 - 150.1.13.1.11003
State: Oper; Msgs sent/rcvd: 10/11; Downstream
Up time: 00:02:43
LDP discovery sources:
Serial0/1, Src IP addr: 150.1.13.3
Addresses bound to peer LDP Ident:
10.1.37.3
150.1.13.3
150.1.3.3
R2#show mpls ldp neighbor
Peer LDP Ident: 150.1.13.1:0; Local LDP Ident 150.1.24.2:0
TCP connection: 150.1.13.1.646 - 150.1.24.2.11005
State: Oper; Msgs sent/rcvd: 12/12; Downstream
Up time: 00:04:09
LDP discovery sources:
FastEthernet0/0, Src IP addr: 150.1.12.1
Addresses bound to peer LDP Ident:
150.1.12.1
150.1.13.1
Peer LDP Ident: 150.1.4.4:0; Local LDP Ident 150.1.24.2:0
TCP connection: 150.1.4.4.646 - 150.1.24.2.11007
State: Oper; Msgs sent/rcvd: 11/12; Downstream
Up time: 00:03:04
LDP discovery sources:
Serial0/0.1, Src IP addr: 150.1.24.4
Addresses bound to peer LDP Ident:
150.1.24.4
10.1.45.4
150.1.4.4
R3#show mpls ldp neighbor
Peer LDP Ident: 150.1.13.1:0; Local LDP Ident 150.1.3.3:0
TCP connection: 150.1.13.1.11003 - 150.1.3.3.646
State: Oper; Msgs sent/rcvd: 12/11; Downstream
Up time: 00:03:31
LDP discovery sources:
Serial1/2, Src IP addr: 150.1.13.1
Addresses bound to peer LDP Ident:
150.1.12.1
150.1.13.1
www.INE.com
-7-
Version 1.0
Outgoing
tag or VC
Pop tag
16
Pop tag
Prefix
or Tunnel Id
150.1.24.0/24
150.1.4.4/32
150.1.3.3/32
Bytes tag
switched
0
4318
753
Outgoing
interface
Fa0/0
Fa0/0
Se0/1
Next Hop
Bytes tag
switched
797
4318
0
Outgoing
interface
Se0/0.1
Fa0/0
Fa0/0
Next Hop
Bytes tag
switched
0
0
0
Outgoing
interface
Se1/2
Se1/2
Se1/2
Next Hop
Bytes tag
switched
0
0
0
Outgoing
interface
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
150.1.12.2
150.1.12.2
point2point
Outgoing
tag or VC
Pop tag
18
Pop tag
Prefix
or Tunnel Id
150.1.4.4/32
150.1.3.3/32
150.1.13.0/24
point2point
150.1.12.1
150.1.12.1
Outgoing
tag or VC
16
17
Pop tag
Prefix
or Tunnel Id
150.1.24.0/24
150.1.4.4/32
150.1.12.0/24
point2point
point2point
point2point
Outgoing
tag or VC
17
18
Pop tag
Prefix
or Tunnel Id
150.1.3.3/32
150.1.13.0/24
150.1.12.0/24
point2point
point2point
point2point
www.INE.com
-8-
Version 1.0
www.INE.com
-9-
Version 1.0
Fa0/3
.8
BGP
AS 1
.7
SW1
SW2
E0/1
E0/0
R3
.3
.3
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
402
.4
S0/0.1
.4
.4
E0/1
.5
R5
R4
BGP
AS 1
E0/0
.6
E0/1
G0/0
R6
www.INE.com
- 10 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
- 11 -
Version 1.0
www.INE.com
- 12 -
Version 1.0
www.INE.com
- 13 -
Version 1.0
www.INE.com
- 14 -
Version 1.0
SW2#
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
ip route 0.0.0.0 0.0.0.0 10.1.38.3
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 00:13:57, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 00:13:57, FastEthernet0/0
O
www.INE.com
- 15 -
Version 1.0
C
C
S*
R6#show ip route
<output omitted>
Gateway of last resort is 10.1.46.4 to network 0.0.0.0
C
C
S*
www.INE.com
- 16 -
Version 1.0
SW1#show ip route
<output omitted>
Gateway of last resort is 10.1.46.4 to network 0.0.0.0
C
C
S*
SW2#show ip route
<output omitted>
Gateway of last resort is 10.1.38.3 to network 0.0.0.0
C
C
S*
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*>i10.1.5.0/24
150.1.4.4
0
100
0 ?
*> 10.1.7.0/24
10.1.37.7
0
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.45.0/24
150.1.4.4
0
100
0 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*>i10.1.6.0/24
150.1.4.4
0
100
0 ?
*> 10.1.8.0/24
10.1.38.8
0
32768 ?
*> 10.1.38.0/24
0.0.0.0
0
32768 ?
*>i10.1.46.0/24
150.1.4.4
0
100
0 ?
R4#show ip bgp vpnv4 all
BGP table version is 142, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*> 10.1.5.0/24
10.1.45.5
0
32768 ?
*>i10.1.7.0/24
150.1.3.3
0
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*> 10.1.6.0/24
10.1.46.6
0
32768 ?
*>i10.1.8.0/24
150.1.3.3
0
100
0 ?
*>i10.1.38.0/24
150.1.3.3
0
100
0 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
www.INE.com
- 17 -
Version 1.0
Fa0/3
E0/1
E0/0
R3
.3
.3
10.1.38.0/24
RIPv2
SW2
.8
BGP
AS 1
10.1.37.0/24
.7
SW1
RIPv2
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
.5
R5
.4
S0/0.1
.4
.4
E0/1
R4
BGP
AS 1
E0/0
E0/1
10.1.46.0/24 VLAN 46
RIPv2
10.1.45.0/24 VLAN 45
402
RIPv2
.6
G0/0
R6
www.INE.com
- 18 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
log-adjacency-changes
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
- 19 -
Version 1.0
www.INE.com
- 20 -
Version 1.0
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute rip
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute rip
exit-address-family
R4#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target import 1:57
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R6-SW2
ip address 10.1.46.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Ethernet0/1
ip vrf forwarding R5-SW1
ip address 10.1.45.4 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
www.INE.com
- 21 -
Version 1.0
router rip
!
address-family ipv4 vrf R6-SW2
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute rip
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute rip
exit-address-family
R5#
interface Loopback0
ip address 10.1.5.5 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.45.5 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
R6#
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
- 22 -
Version 1.0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
- 23 -
Version 1.0
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 02:28:04, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 02:28:04, FastEthernet0/0
O
www.INE.com
- 24 -
Version 1.0
www.INE.com
- 25 -
Version 1.0
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*>i10.1.5.0/24
150.1.4.4
1
100
0 ?
*> 10.1.7.0/24
10.1.37.7
1
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.45.0/24
150.1.4.4
0
100
0 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*>i10.1.6.0/24
150.1.4.4
1
100
0 ?
*> 10.1.8.0/24
10.1.38.8
1
32768 ?
*> 10.1.38.0/24
0.0.0.0
0
32768 ?
*>i10.1.46.0/24
150.1.4.4
0
100
0 ?
R4#show ip bgp vpnv4 all
BGP table version is 17, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*> 10.1.5.0/24
10.1.45.5
1
32768 ?
*>i10.1.7.0/24
150.1.3.3
1
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*> 10.1.6.0/24
10.1.46.6
1
32768 ?
*>i10.1.8.0/24
150.1.3.3
1
100
0 ?
*>i10.1.38.0/24
150.1.3.3
0
100
0 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
www.INE.com
- 26 -
Version 1.0
www.INE.com
- 27 -
Version 1.0
www.INE.com
- 28 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
www.INE.com
- 29 -
Version 1.0
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target import 1:57
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R5-SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding R6-SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 68 vrf R6-SW2
redistribute bgp 1 subnets
network 10.1.38.3 0.0.0.0 area 0
!
router ospf 57 vrf R5-SW1
redistribute bgp 1 subnets
network 10.1.37.3 0.0.0.0 area 0
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
www.INE.com
- 30 -
Version 1.0
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute ospf 68 vrf R6-SW2
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute ospf 57 vrf R5-SW1
exit-address-family
R4#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target import 1:57
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R6-SW2
ip address 10.1.46.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Ethernet0/1
ip vrf forwarding R5-SW1
ip address 10.1.45.4 255.255.255.0
!
router ospf 57 vrf R5-SW1
redistribute bgp 1 subnets
network 10.1.45.4 0.0.0.0 area 0
!
router ospf 68 vrf R6-SW2
redistribute bgp 1 subnets
network 10.1.46.4 0.0.0.0 area 0
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
www.INE.com
- 31 -
Version 1.0
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute ospf 68 vrf R6-SW2
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute ospf 57 vrf R5-SW1
exit-address-family
R5#
ip cef
!
interface Loopback0
ip address 10.1.5.5 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.45.5 255.255.255.0
!
router ospf 1
network 10.1.5.5 0.0.0.0 area 0
network 10.1.45.5 0.0.0.0 area 0
R6#
ip cef
!
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router ospf 1
network 10.1.6.6 0.0.0.0 area 0
network 10.1.46.6 0.0.0.0 area 0
SW1#
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
www.INE.com
- 32 -
Version 1.0
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 00:13:57, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 00:13:57, FastEthernet0/0
O
www.INE.com
- 33 -
Version 1.0
www.INE.com
- 34 -
Version 1.0
R6#show ip route
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O IA
C
C
O IA
SW1#show ip route
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O IA
10.1.5.5/32 [110/21] via 10.1.37.3, 00:13:42, FastEthernet0/3
C
10.1.7.0/24 is directly connected, Loopback0
O IA
10.1.45.0/24 [110/11] via 10.1.37.3, 00:14:31, FastEthernet0/3
C
10.1.37.0/24 is directly connected, FastEthernet0/3
SW1#show ip route
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O IA
10.1.5.5/32 [110/21] via 10.1.37.3, 00:13:42, FastEthernet0/3
C
10.1.7.0/24 is directly connected, Loopback0
O IA
10.1.45.0/24 [110/11] via 10.1.37.3, 00:14:31, FastEthernet0/3
C
10.1.37.0/24 is directly connected, FastEthernet0/3
R3#show ip bgp vpnv4 all
BGP table version is 97, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*>i10.1.5.5/32
150.1.4.4
11
100
0 ?
*> 10.1.7.7/32
10.1.37.7
11
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.45.0/24
150.1.4.4
0
100
0 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*>i10.1.6.6/32
150.1.4.4
11
100
0 ?
*> 10.1.8.8/32
10.1.38.8
11
32768 ?
*> 10.1.38.0/24
0.0.0.0
0
32768 ?
*>i10.1.46.0/24
150.1.4.4
0
100
0 ?
www.INE.com
- 35 -
Version 1.0
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*> 10.1.5.5/32
10.1.45.5
11
32768 ?
*>i10.1.7.7/32
150.1.3.3
11
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*> 10.1.6.6/32
10.1.46.6
11
32768 ?
*>i10.1.8.8/32
150.1.3.3
11
100
0 ?
*>i10.1.38.0/24
150.1.3.3
0
100
0 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
www.INE.com
- 36 -
Version 1.0
www.INE.com
- 37 -
Version 1.0
www.INE.com
- 38 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
- 39 -
Version 1.0
www.INE.com
- 40 -
Version 1.0
router ospf 1
log-adjacency-changes
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute eigrp 68
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute eigrp 57
exit-address-family
R4#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target import 1:57
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R6-SW2
ip address 10.1.46.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Ethernet0/1
ip vrf forwarding R5-SW1
ip address 10.1.45.4 255.255.255.0
!
www.INE.com
- 41 -
Version 1.0
router eigrp 1
!
address-family ipv4 vrf R6-SW2
redistribute bgp 1 metric 1 1 1 1 1
network 10.1.46.4 0.0.0.0
no auto-summary
autonomous-system 68
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute bgp 1 metric 1 1 1 1 1
network 10.1.37.3 0.0.0.0
network 10.1.45.4 0.0.0.0
no auto-summary
autonomous-system 57
exit-address-family
!
router ospf 1
log-adjacency-changes
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute eigrp 68
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute eigrp 57
exit-address-family
R5#
ip cef
!
interface Loopback0
ip address 10.1.5.5 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.45.5 255.255.255.0
!
router eigrp 57
network 10.0.0.0
no auto-summary
www.INE.com
- 42 -
Version 1.0
R6#
ip cef
!
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router eigrp 68
network 10.0.0.0
no auto-summary
SW1#
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
!
router eigrp 57
network 10.0.0.0
no auto-summary
SW2#
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
router eigrp 68
network 10.0.0.0
no auto-summary
www.INE.com
- 43 -
Version 1.0
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 00:13:57, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 00:13:57, FastEthernet0/0
O
www.INE.com
- 44 -
Version 1.0
C
C
D
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.7.0 is directly connected, Loopback0
D
10.1.5.0 [90/435200] via 10.1.37.3, 00:15:55, FastEthernet0/3
D
10.1.45.0 [90/307200] via 10.1.37.3, 00:15:55, FastEthernet0/3
C
10.1.37.0 is directly connected, FastEthernet0/3
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.8.0 is directly connected, Loopback0
D
10.1.6.0 [90/435200] via 10.1.38.3, 00:16:26, FastEthernet0/3
D
10.1.46.0 [90/307200] via 10.1.38.3, 00:16:26, FastEthernet0/3
C
10.1.38.0 is directly connected, FastEthernet0/3
www.INE.com
- 45 -
Version 1.0
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*>i10.1.5.0/24
150.1.4.4
409600
100
0 ?
*> 10.1.7.0/24
10.1.37.7
409600
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.45.0/24
150.1.4.4
0
100
0 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*>i10.1.6.0/24
150.1.4.4
409600
100
0 ?
*> 10.1.8.0/24
10.1.38.8
409600
32768 ?
*> 10.1.38.0/24
0.0.0.0
0
32768 ?
*>i10.1.46.0/24
150.1.4.4
0
100
0 ?
R4#show ip bgp vpnv4 all
BGP table version is 168, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*> 10.1.5.0/24
10.1.45.5
409600
32768 ?
*>i10.1.7.0/24
150.1.3.3
409600
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*> 10.1.6.0/24
10.1.46.6
409600
32768 ?
*>i10.1.8.0/24
150.1.3.3
409600
100
0 ?
*>i10.1.38.0/24
150.1.3.3
0
100
0 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
www.INE.com
- 46 -
Version 1.0
www.INE.com
- 47 -
Version 1.0
www.INE.com
- 48 -
Version 1.0
Directionsaree
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
log-adjacency-changes
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
www.INE.com
- 49 -
Version 1.0
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target import 1:57
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R5-SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding R6-SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute connected
neighbor 10.1.38.8 remote-as 200
neighbor 10.1.38.8 activate
neighbor 10.1.38.8 as-override
exit-address-family
!
www.INE.com
- 50 -
Version 1.0
www.INE.com
- 51 -
Version 1.0
www.INE.com
- 52 -
Version 1.0
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
router bgp 200
network 10.1.8.0 mask 255.255.255.0
neighbor 10.1.38.3 remote-as 1
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 02:28:04, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 02:28:04, FastEthernet0/0
O
www.INE.com
- 53 -
Version 1.0
www.INE.com
- 54 -
Version 1.0
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
B
10.1.8.0 [20/0] via 10.1.46.4, 00:06:30
C
10.1.6.0 is directly connected, Loopback0
C
10.1.46.0 is directly connected, GigabitEthernet0/0
B
10.1.38.0 [20/0] via 10.1.46.4, 00:06:30
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.8.0 is directly connected, Loopback0
B
10.1.6.0 [20/0] via 10.1.38.3, 00:08:47
B
10.1.46.0 [20/0] via 10.1.38.3, 00:08:47
C
10.1.38.0 is directly connected, FastEthernet0/3
R3#show ip bgp vpnv4 all
BGP table version is 17, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*>i10.1.5.0/24
150.1.4.4
0
100
0 100 i
*> 10.1.7.0/24
10.1.37.7
0
0 100 i
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.45.0/24
150.1.4.4
0
100
0 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*>i10.1.6.0/24
150.1.4.4
0
100
0 200 i
*> 10.1.8.0/24
10.1.38.8
0
0 200 i
*> 10.1.38.0/24
0.0.0.0
0
32768 ?
*>i10.1.46.0/24
150.1.4.4
0
100
0 ?
R4#show ip bgp vpnv4 all
BGP table version is 17, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*> 10.1.5.0/24
10.1.45.5
0
0 100 i
*>i10.1.7.0/24
150.1.3.3
0
100
0 100 i
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*> 10.1.6.0/24
10.1.46.6
0
0 200 i
*>i10.1.8.0/24
150.1.3.3
0
100
0 200 i
*>i10.1.38.0/24
150.1.3.3
0
100
0 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
www.INE.com
- 55 -
Version 1.0
R5#show ip bgp
BGP table version is 11, local router ID is 10.1.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
*>
r>
Network
10.1.5.0/24
10.1.7.0/24
10.1.37.0/24
10.1.45.0/24
Next Hop
0.0.0.0
10.1.45.4
10.1.45.4
10.1.45.4
R6#show ip bgp
BGP table version is 11, local router ID is 10.1.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
*>
r>
Network
10.1.6.0/24
10.1.8.0/24
10.1.38.0/24
10.1.46.0/24
Next Hop
0.0.0.0
10.1.46.4
10.1.46.4
10.1.46.4
SW1#show ip bgp
BGP table version is 11, local router ID is 10.1.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
r>
*>
Network
10.1.5.0/24
10.1.7.0/24
10.1.37.0/24
10.1.45.0/24
Next Hop
10.1.37.3
0.0.0.0
10.1.37.3
10.1.37.3
Path
1 1 i
i
1 ?
1 ?
SW2#show ip bgp
BGP table version is 6, local router ID is 10.1.8.8
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
r>
*>
Network
10.1.6.0/24
10.1.8.0/24
10.1.38.0/24
10.1.46.0/24
Next Hop
10.1.38.3
0.0.0.0
10.1.38.3
10.1.38.3
Path
1 1 i
i
1 ?
1 ?
www.INE.com
- 56 -
Version 1.0
www.INE.com
- 57 -
Version 1.0
Fa0/3
E0/1
E0/0
R3
.3
.3
10.1.38.0/24
RIPv2
SW2
.8
BGP
AS 1
10.1.37.0/24
.7
SW1
RIPv2
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
.5
R5
.4
S0/0.1
.4
.4
E0/1
R4
BGP
AS 1
E0/0
E0/1
10.1.46.0/24 VLAN 46
RIPv2
10.1.45.0/24 VLAN 45
402
RIPv2
.6
G0/0
R6
www.INE.com
- 58 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
log-adjacency-changes
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
www.INE.com
- 59 -
Version 1.0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf SW1
rd 1:7
route-target export 1:7
route-target import 1:5
!
ip vrf SW2
rd 1:8
route-target export 1:8
route-target import 1:5
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
www.INE.com
- 60 -
Version 1.0
router rip
!
address-family ipv4 vrf SW2
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf SW2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1
redistribute rip
exit-address-family
R4#
ip cef
!
ip vrf R5
rd 1:5
route-target export 1:5
route-target import 1:6
route-target import 1:7
route-target import 1:8
!
ip vrf R6
rd 1:6
route-target export 1:6
route-target import 1:5
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R6
ip address 10.1.46.4 255.255.255.0
!
www.INE.com
- 61 -
Version 1.0
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Ethernet0/1
ip vrf forwarding R5
ip address 10.1.45.4 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf R6
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf R5
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R6
redistribute rip
exit-address-family
!
address-family ipv4 vrf R5
redistribute rip
exit-address-family
www.INE.com
- 62 -
Version 1.0
R5#
interface Loopback0
ip address 10.1.5.5 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.45.5 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
R6#
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
- 63 -
Version 1.0
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 19:37:48, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 19:37:48, FastEthernet0/0
O
www.INE.com
- 64 -
Version 1.0
www.INE.com
- 65 -
Version 1.0
R6#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.6.0 is directly connected, Loopback0
R
10.1.5.0 [120/2] via 10.1.46.4, 00:00:23, GigabitEthernet0/0
C
10.1.46.0 is directly connected, GigabitEthernet0/0
R
10.1.45.0 [120/2] via 10.1.46.4, 00:00:23, GigabitEthernet0/0
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.7.0 is directly connected, Loopback0
R
10.1.5.0 [120/2] via 10.1.37.3, 00:00:16, FastEthernet0/3
R
10.1.45.0 [120/2] via 10.1.37.3, 00:00:16, FastEthernet0/3
C
10.1.37.0 is directly connected, FastEthernet0/3
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.8.0 is directly connected, Loopback0
R
10.1.5.0 [120/2] via 10.1.38.3, 00:00:27, FastEthernet0/3
R
10.1.45.0 [120/2] via 10.1.38.3, 00:00:27, FastEthernet0/3
C
10.1.38.0 is directly connected, FastEthernet0/3
www.INE.com
- 66 -
Version 1.0
www.INE.com
- 67 -
Version 1.0
Fa0/3
E0/1
E0/0
R3
.3
.3
10.1.38.0/24
RIPv2
SW2
.8
BGP
AS 1
10.1.37.0/24
.7
SW1
RIPv2
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
.5
R5
.4
S0/0.1
.4
.4
E0/1
R4
BGP
AS 1
E0/0
E0/1
10.1.46.0/24 VLAN 46
RIPv2
10.1.45.0/24 VLAN 45
402
RIPv2
.6
G0/0
R6
www.INE.com
- 68 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
log-adjacency-changes
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
www.INE.com
- 69 -
Version 1.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target import 1:57
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R5-SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding R6-SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf R6-SW2
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute bgp 1 metric 2
www.INE.com
- 70 -
Version 1.0
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute rip
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute rip
exit-address-family
R4#
ip cef
!
ip vrf R5-SW1
rd 1:57
route-target export 1:57
route-target export 1:5
route-target import 1:57
route-target import 1:6
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target export 1:6
route-target import 1:68
route-target import 1:5
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R6-SW2
ip address 10.1.46.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Ethernet0/1
ip vrf forwarding R5-SW1
www.INE.com
- 71 -
Version 1.0
www.INE.com
- 72 -
Version 1.0
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
- 73 -
Version 1.0
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 02:28:04, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 02:28:04, FastEthernet0/0
O
www.INE.com
- 74 -
Version 1.0
www.INE.com
- 75 -
Version 1.0
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*>i10.1.5.0/24
150.1.4.4
1
100
0 ?
*> 10.1.7.0/24
10.1.37.7
1
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.45.0/24
150.1.4.4
0
100
0 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*>i10.1.6.0/24
150.1.4.4
1
100
0 ?
*> 10.1.8.0/24
10.1.38.8
1
32768 ?
*> 10.1.38.0/24
0.0.0.0
0
32768 ?
*>i10.1.46.0/24
150.1.4.4
0
100
0 ?
R4#show ip bgp vpnv4 all
BGP table version is 17, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:57 (default for vrf R5-SW1)
*> 10.1.5.0/24
10.1.45.5
1
32768 ?
*> 10.1.6.0/24
10.1.46.6
1
32768 ?
*>i10.1.7.0/24
150.1.3.3
1
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
Route Distinguisher: 1:68 (default for vrf R6-SW2)
*> 10.1.5.0/24
10.1.45.5
1
32768 ?
*> 10.1.6.0/24
10.1.46.6
1
32768 ?
*>i10.1.8.0/24
150.1.3.3
1
100
0 ?
*>i10.1.38.0/24
150.1.3.3
0
100
0 ?
*> 10.1.45.0/24
0.0.0.0
0
32768 ?
*> 10.1.46.0/24
0.0.0.0
0
32768 ?
www.INE.com
- 76 -
Version 1.0
www.INE.com
- 77 -
Version 1.0
Fa0/3
E0/1
E0/0
R3
.3
.3
10.1.38.0/24
RIPv2
.8
BGP
AS 1
10.1.37.0/24
.7
SW1
SW2
RIPv2
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
402
.4
10.1.5.0/24 VLAN 5
E0/0
.5
.4
R4
S0/1 BGP
.5
10.1.45.0/24
R5
E0/1 .5
S0/0.1
AS 1
S0/1
RIPv2
10.1.55.0/24 VLAN 55
www.INE.com
- 78 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
tag-switching ip
!
www.INE.com
- 79 -
Version 1.0
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf SW1
rd 1:7
route-target export 1:7
route-target import 1:7
!
ip vrf SW2
rd 1:8
route-target export 1:8
route-target import 1:8
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf SW2
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1
redistribute bgp 1 metric 2
network 10.0.0.0
www.INE.com
- 80 -
Version 1.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf SW2
redistribute rip
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf SW1
redistribute rip
no auto-summary
no synchronization
exit-address-family
R4#
ip cef
!
ip vrf R5
rd 1:5
export map R5_EXPORT
route-target import 1:7
route-target import 1:8
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 402
!
interface Serial0/1
ip vrf forwarding R5
ip address 10.1.45.4 255.255.255.0
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
www.INE.com
- 81 -
Version 1.0
router rip
!
address-family ipv4 vrf R5
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R5
redistribute rip
exit-address-family
!
ip prefix-list VLAN5 seq 5 permit 10.1.5.0/24
!
ip prefix-list VLAN55 seq 5 permit 10.1.55.0/24
!
route-map R5_EXPORT permit 10
match ip address prefix-list VLAN5
set extcommunity rt 1:7
!
route-map R5_EXPORT permit 20
match ip address prefix-list VLAN55
set extcommunity rt 1:8
R5#
ip cef
!
interface Ethernet0/0
ip address 10.1.5.5 255.255.255.0
half-duplex
!
interface Ethernet0/1
ip address 10.1.55.5 255.255.255.0
!
interface Serial0/1
ip address 10.1.45.5 255.255.255.0
clockrate 64000
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
- 82 -
Version 1.0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
R5#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 7 subnets
R
10.1.8.0 [120/2] via 10.1.45.4, 00:00:06, Serial0/1
R
10.1.7.0 [120/2] via 10.1.45.4, 00:00:06, Serial0/1
C
10.1.5.0 is directly connected, Ethernet0/0
C
10.1.45.0 is directly connected, Serial0/1
R
10.1.38.0 [120/2] via 10.1.45.4, 00:00:06, Serial0/1
R
10.1.37.0 [120/2] via 10.1.45.4, 00:00:06, Serial0/1
C
10.1.55.0 is directly connected, Ethernet0/1
www.INE.com
- 83 -
Version 1.0
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.7.0 is directly connected, Loopback0
R
10.1.5.0 [120/2] via 10.1.37.3, 00:00:22, FastEthernet0/3
C
10.1.37.0 is directly connected, FastEthernet0/3
SW1#ping 10.1.5.5 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.5.5, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/119/120 ms
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.8.0 is directly connected, Loopback0
C
10.1.38.0 is directly connected, FastEthernet0/3
R
10.1.55.0 [120/2] via 10.1.38.3, 00:00:21, FastEthernet0/3
SW2#ping 10.1.55.5 source 10.1.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.55.5, timeout is 2 seconds:
Packet sent with a source address of 10.1.8.8
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/118/120 ms
www.INE.com
- 84 -
Version 1.0
www.INE.com
- 85 -
Version 1.0
www.INE.com
- 86 -
Version 1.0
www.INE.com
- 87 -
Version 1.0
.8
.7
BGP
AS 1
10.1.37.0/24
SW2
Fa0/3 .8
E0/1
E0/0
BGP
AS 100
Fa0/13
10.1.78.0/24
R3
.3
.3
.3
10.1.38.0/24
S1/2
BGP
AS 100
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
OSPF
Area 0
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
402
S0/0.1
.4
R4
BGP
AS 1
E0/0
10.1.46.0/24 VLAN 46
.4
BGP
AS 100
.6
G0/0
R6
www.INE.com
- 88 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
log-adjacency-changes
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
www.INE.com
- 89 -
Version 1.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
router ospf 1
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf AS100
rd 1:100
route-target export 1:100
route-target import 1:100
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding AS100
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding AS100
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf AS100
neighbor 10.1.37.7 remote-as 100
neighbor 10.1.37.7 activate
neighbor 10.1.37.7 as-override
neighbor 10.1.37.7 route-map SOO in
www.INE.com
- 90 -
Version 1.0
www.INE.com
- 91 -
Version 1.0
R6#
ip cef
!
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router bgp 100
network 10.1.6.0 mask 255.255.255.0
network 10.1.46.0 mask 255.255.255.0
neighbor 10.1.46.4 remote-as 1
SW1#
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
!
interface FastEthernet0/13
no switchport
ip address 10.1.78.7 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
!
router bgp 100
network 10.1.7.0 mask 255.255.255.0
network 10.1.37.0 mask 255.255.255.0
network 10.1.78.0 mask 255.255.255.0
neighbor 10.1.37.3 remote-as 1
www.INE.com
- 92 -
Version 1.0
SW2#
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/13
no switchport
ip address 10.1.78.8 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
!
router bgp 100
network 10.1.8.0 mask 255.255.255.0
network 10.1.38.0 mask 255.255.255.0
network 10.1.78.0 mask 255.255.255.0
neighbor 10.1.38.3 remote-as 1
neighbor 10.1.78.7 remote-as 100
Verification
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
O
O
O
C
C
R2#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.4.4/32 [110/65] via 150.1.24.4, 04:25:33, Serial0/0.1
O
150.1.3.3/32 [110/66] via 150.1.12.1, 04:25:33, FastEthernet0/0
O
www.INE.com
- 93 -
Version 1.0
www.INE.com
- 94 -
Version 1.0
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 7 subnets
C
10.1.8.0 is directly connected, Loopback0
R
10.1.7.0 [120/1] via 10.1.78.7, 00:00:18, FastEthernet0/13
B
10.1.6.0 [20/0] via 10.1.38.3, 00:39:41
B
10.1.46.0 [20/0] via 10.1.38.3, 00:39:41
C
10.1.38.0 is directly connected, FastEthernet0/3
R
10.1.37.0 [120/1] via 10.1.78.7, 00:00:18, FastEthernet0/13
C
10.1.78.0 is directly connected, FastEthernet0/13
R3#show ip bgp vpnv4 all
BGP table version is 66, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf AS100)
*>i10.1.6.0/24
150.1.4.4
0
100
0 100 i
*> 10.1.7.0/24
10.1.37.7
0
0 100 i
*> 10.1.8.0/24
10.1.38.8
0
0 100 i
r> 10.1.37.0/24
10.1.37.7
0
0 100 i
r> 10.1.38.0/24
10.1.38.8
0
0 100 i
*>i10.1.46.0/24
150.1.4.4
0
100
0 100 i
* 10.1.78.0/24
10.1.38.8
0
0 100 i
*>
10.1.37.7
0
0 100 i
R4#show ip bgp vpnv4 all
BGP table version is 67, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf AS100)
*> 10.1.6.0/24
10.1.46.6
0
0 100 i
*>i10.1.7.0/24
150.1.3.3
0
100
0 100 i
*>i10.1.8.0/24
150.1.3.3
0
100
0 100 i
*>i10.1.37.0/24
150.1.3.3
0
100
0 100 i
*>i10.1.38.0/24
150.1.3.3
0
100
0 100 i
r> 10.1.46.0/24
10.1.46.6
0
0 100 i
*>i10.1.78.0/24
150.1.3.3
0
100
0 100 i
R6#show ip bgp
BGP table version is 12, local router ID is 10.1.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
*>
*>
Network
10.1.6.0/24
10.1.7.0/24
10.1.8.0/24
10.1.37.0/24
Next Hop
0.0.0.0
10.1.46.4
10.1.46.4
10.1.46.4
www.INE.com
- 95 -
10.1.46.4
0.0.0.0
10.1.46.4
Version 1.0
0 1 1 i
32768 i
0 1 1 i
SW1#show ip bgp
BGP table version is 19, local router ID is 10.1.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
*>
*>
*>
Network
10.1.6.0/24
10.1.7.0/24
10.1.37.0/24
10.1.46.0/24
10.1.78.0/24
Next Hop
10.1.37.3
0.0.0.0
0.0.0.0
10.1.37.3
0.0.0.0
Path
1 1 i
i
i
1 1 i
i
SW2#show ip bgp
BGP table version is 19, local router ID is 10.1.8.8
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
*>
*>
*>
Network
10.1.6.0/24
10.1.8.0/24
10.1.38.0/24
10.1.46.0/24
10.1.78.0/24
Next Hop
10.1.38.3
0.0.0.0
0.0.0.0
10.1.38.3
0.0.0.0
Path
1 1 i
i
i
1 1 i
i
www.INE.com
- 96 -
Version 1.0
www.INE.com
- 97 -
Version 1.0
BGP
AS 1
R3
S1/2
.3
.3
150.1.13.0/24
S0/1
10.1.38.0/24
E0/1
OSPF
Area 0
.8
SW2
Fa0/3
.8
Fa0/6
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
.2
OSPF
Area 0
IS-IS
Level 2
R2
S0/0.1
10.1.68.0/24
Fa0/0
.2
204
Frame Relay
150.1.24.0/24
.6
.4
S0/0.1
.4
R4
BGP
AS 1
OSPF
Area 0
10.1.46.0/24 VLAN 46
402
G0/1
.6
G0/0
R6
E0/0
www.INE.com
- 98 -
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay IETF
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip router isis
tag-switching ip
!
router isis
net 00.0000.0000.0001.00
is-type level-2-only
www.INE.com
- 99 -
Version 1.0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 204
!
router isis
net 00.0000.0000.0002.00
is-type level-2-only
R3#
ip cef
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
ip router isis
!
interface Loopback1
ip vrf forwarding R6-SW2
ip address 10.1.3.3 255.255.255.255
!
interface Ethernet0/1
ip vrf forwarding R6-SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip router isis
tag-switching ip
clockrate 64000
!
router ospf 1 vrf R6-SW2
log-adjacency-changes
area 0 sham-link 10.1.3.3 10.1.4.4
redistribute bgp 1 subnets
network 10.1.38.3 0.0.0.0 area 0
!
router isis
net 00.0000.0000.0003.00
is-type level-2-only
!
www.INE.com
Version 1.0
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute connected
redistribute ospf 1 vrf R6-SW2
exit-address-family
R4#
ip cef
!
ip vrf R6-SW2
rd 1:68
route-target export 1:68
route-target import 1:68
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip router isis
!
interface Loopback1
ip vrf forwarding R6-SW2
ip address 10.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding R6-SW2
ip address 10.1.46.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.4 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 402
!
router ospf 1 vrf R6-SW2
log-adjacency-changes
area 0 sham-link 10.1.4.4 10.1.3.3
redistribute bgp 1 subnets
network 10.1.46.4 0.0.0.0 area 0
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
!
www.INE.com
Version 1.0
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute connected
redistribute ospf 1 vrf R6-SW2
exit-address-family
R6#
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip ospf cost 65535
!
router ospf 1
log-adjacency-changes
network 10.1.6.6 0.0.0.0 area 0
network 10.1.46.6 0.0.0.0 area 0
network 10.1.68.6 0.0.0.0 area 0
SW1#
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
www.INE.com
Version 1.0
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
ip ospf cost 65535
!
router ospf 1
network 10.1.8.8 0.0.0.0 area 0
network 10.1.38.8 0.0.0.0 area 0
network 10.1.68.8 0.0.0.0 area 0
Verification
Without Sham-Link:
R6#show ip route ospf
O
O
With Sham-Link:
R6#show ip route
<output omitted>
O
O E2
O E2
C
C
O
C
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Fa0/3
E0/1
E0/0
R3
.3
10.1.38.0/24
OSPF
Area 0
.8
BGP
AS 1
10.1.37.0/24
.7
SW1
SW2
OSPF
Area 0
.3
S1/2
.3
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
Fa0/0
.2
IS-IS
Level 2
R2
S0/0.1
.2
204
Frame Relay
150.1.24.0/24
.5
R5
.4
S0/0.1
.4
.4
E0/1
R4
BGP
AS 1
E0/0
E0/1
10.1.46.0/24 VLAN 46
OSPF
Area 0
10.1.45.0/24 VLAN 45
402
OSPF
Area 0
.6
G0/0
R6
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip router isis
tag-switching ip
!
router isis
net 00.0000.0000.0001.00
is-type level-2-only
!
www.INE.com
Version 1.0
R2#
ip cef
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 204
!
router isis
net 00.0000.0000.0002.00
is-type level-2-only
R3#
ip cef
!
ip vrf R5-SW1
rd 1:7
route-target export 1:7
route-target import 1:5
!
ip vrf R6-SW2
rd 1:8
route-target export 1:8
route-target import 1:6
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip vrf forwarding R5-SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding R6-SW2
ip address 10.1.38.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip router isis
tag-switching ip
clockrate 64000
!
router ospf 8 vrf R6-SW2
domain-id 0.0.0.68
redistribute bgp 1 subnets
network 10.1.38.3 0.0.0.0 area 0
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
interface Ethernet0/1
ip vrf forwarding R5-SW1
ip address 10.1.45.4 255.255.255.0
!
router ospf 5 vrf R5-SW1
domain-id 0.0.0.57
redistribute bgp 1 subnets
network 10.1.45.4 0.0.0.0 area 0
!
router ospf 6 vrf R6-SW2
domain-id 0.0.0.68
redistribute bgp 1 subnets
network 10.1.46.4 0.0.0.0 area 0
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community both
exit-address-family
!
address-family ipv4 vrf R6-SW2
redistribute ospf 6 vrf R6-SW2
exit-address-family
!
address-family ipv4 vrf R5-SW1
redistribute ospf 5 vrf R5-SW1
exit-address-family
R5#
interface Loopback0
ip address 10.1.5.5 255.255.255.0
!
interface Ethernet0/1
ip address 10.1.45.5 255.255.255.0
!
router ospf 1
network 10.1.5.5 0.0.0.0 area 0
network 10.1.45.5 0.0.0.0 area 0
R6#
interface Loopback0
ip address 10.1.6.6 255.255.255.0
!
interface GigabitEthernet0/0
ip address 10.1.46.6 255.255.255.0
!
router ospf 1
network 10.1.6.6 0.0.0.0 area 0
network 10.1.46.6 0.0.0.0 area 0
www.INE.com
Version 1.0
SW1#
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
!
interface FastEthernet0/2
switchport access vlan 12
!
interface FastEthernet0/3
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 46
!
interface FastEthernet0/6
switchport access vlan 46
!
router ospf 1
network 10.1.7.7 0.0.0.0 area 0
network 10.1.37.7 0.0.0.0 area 0
SW2#
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.38.8 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 45
!
interface FastEthernet0/5
switchport access vlan 45
!
router ospf 1
network 10.1.8.8 0.0.0.0 area 0
network 10.1.38.8 0.0.0.0 area 0
Verification
Without OSPF Domain-ID Configured:
SW2#show ip route
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C
10.1.8.0/24 is directly connected, Loopback0
O E2
10.1.6.6/32 [110/11] via 10.1.38.3, 00:02:30, FastEthernet0/3
O E2
10.1.46.0/24 [110/1] via 10.1.38.3, 00:02:30, FastEthernet0/3
C
10.1.38.0/24 is directly connected, FastEthernet0/3
www.INE.com
Version 1.0
SW1#show ip route
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O IA
10.1.5.5/32 [110/21] via 10.1.37.3, 00:14:40, FastEthernet0/3
C
10.1.7.0/24 is directly connected, Loopback0
O IA
10.1.45.0/24 [110/11] via 10.1.37.3, 00:14:40, FastEthernet0/3
C
10.1.37.0/24 is directly connected, FastEthernet0/3
SW2#show ip route
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C
10.1.8.0/24 is directly connected, Loopback0
O IA
10.1.6.6/32 [110/21] via 10.1.38.3, 00:14:49, FastEthernet0/3
O IA
10.1.46.0/24 [110/11] via 10.1.38.3, 00:14:49, FastEthernet0/3
C
10.1.38.0/24 is directly connected, FastEthernet0/3
R3#show ip route vrf *
<output omitted>
150.1.0.0/16 is variably subnetted, 5 subnets, 2 masks
i L2
150.1.24.0/24 [115/30] via 150.1.13.1, Serial1/2
i L2
150.1.4.4/32 [115/40] via 150.1.13.1, Serial1/2
C
150.1.3.3/32 is directly connected, Loopback0
C
150.1.13.0/24 is directly connected, Serial1/2
i L2
150.1.12.0/24 [115/20] via 150.1.13.1, Serial1/2
Routing Table: R5-SW1
<output omitted>
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O
10.1.7.7/32 [110/11] via 10.1.37.7, 00:14:11, Ethernet0/0
B
10.1.5.5/32 [200/11] via 150.1.4.4, 00:12:26
B
10.1.45.0/24 [200/0] via 150.1.4.4, 00:12:26
C
10.1.37.0/24 is directly connected, Ethernet0/0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Fa0/3
10.1.37.0/24
.7
RIPv2
E0/0
R3
SW1
BGP
AS 54
.3
.3
S1/2
S0/1
150.1.13.0/24
BGP
AS 100
204.10.X.0/24 VLAN 31
.254
.1
150.1.12.0/24
OSPF
Area 0
R1
S0/0.1
Frame Relay
.1
102
201
.2
.2
.4
E0/0
R4
E0/1 .4
S0/0.1
Fa0/0
150.1.24.0/24 VLAN 24
S0/0.2
RIPv2
150.1.25.0/24
R2
Frame Relay
205
502
.2
.5
192.10.X.0/24 VLAN 42
S0/0.1
R5
E0/0 .5
BB2
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
BB3
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet1/0
ip address 204.12.1.1 255.255.255.0
!
interface Serial2/0
encapsulation frame-relay
!
interface Serial2/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
tag-switching ip
frame-relay interface-dlci 102
!
www.INE.com
Version 1.0
interface Serial2/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
redistribute connected subnets
network 150.1.0.0 0.0.255.255 area 0
!
router bgp 100
network 150.1.1.1 mask 255.255.255.255
aggregate-address 150.1.0.0 255.255.0.0 summary-only
neighbor 150.1.2.2 remote-as 100
neighbor 150.1.2.2 update-source Loopback0
neighbor 150.1.2.2 route-reflector-client
neighbor 150.1.3.3 remote-as 100
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 route-reflector-client
neighbor 150.1.4.4 remote-as 100
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 route-reflector-client
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
neighbor 150.1.5.5 route-reflector-client
neighbor 150.1.6.6 remote-as 100
neighbor 150.1.6.6 update-source Loopback0
neighbor 150.1.6.6 route-reflector-client
neighbor 204.12.1.254 remote-as 54
R2#
ip cef
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet1/0
ip address 150.1.24.2 255.255.255.0
tag-switching ip
!
interface Serial2/0
encapsulation frame-relay
!
interface Serial2/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 201
!
interface Serial2/0.2 point-to-point
ip address 150.1.25.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 205
!
router ospf 1
network 150.1.0.0 0.0.255.255 area 0
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
router rip
!
address-family ipv4 vrf VPN_A
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.1.1 remote-as 100
neighbor 150.1.1.1 update-source Loopback0
neighbor 150.1.2.2 remote-as 100
neighbor 150.1.2.2 update-source Loopback0
!
address-family ipv4
neighbor 150.1.1.1 activate
no neighbor 150.1.2.2 activate
exit-address-family
!
address-family vpnv4
neighbor 150.1.2.2 activate
neighbor 150.1.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute rip
exit-address-family
R4#
ip cef
!
ip vrf VPN_A
rd 100:1
route-target export 100:1
route-target import 100:1
!
key chain RIP
key 1
key-string CISCO
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
tag-switching ip
!
interface Ethernet0/1
ip vrf forwarding VPN_A
ip address 192.10.1.4 255.255.255.0
ip rip authentication mode md5
ip rip authentication key-chain RIP
!
router ospf 1
network 150.1.0.0 0.0.255.255 area 0
!
www.INE.com
Version 1.0
router rip
!
address-family ipv4 vrf VPN_A
redistribute bgp 100 metric 1
network 192.10.1.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.1.1 remote-as 100
neighbor 150.1.1.1 update-source Loopback0
neighbor 150.1.2.2 remote-as 100
neighbor 150.1.2.2 update-source Loopback0
!
address-family ipv4
neighbor 150.1.1.1 activate
no neighbor 150.1.2.2 activate
exit-address-family
!
address-family vpnv4
neighbor 150.1.2.2 activate
neighbor 150.1.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute rip
exit-address-family
R5#
ip cef
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.25.5 255.255.255.0
tag-switching ip
frame-relay interface-dlci 502
!
router ospf 1
network 150.1.0.0 0.0.255.255 area 0
!
router bgp 100
neighbor 150.1.1.1 remote-as 100
neighbor 150.1.1.1 update-source Loopback0
www.INE.com
Version 1.0
R6#
ip cef
!
ip vrf VPN_A
rd 100:1
route-target export 100:1
route-target import 100:1
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
mpls ip
!
interface GigabitEthernet0/1
ip vrf forwarding VPN_A
ip address 10.1.68.6 255.255.255.0
!
router ospf 1
network 150.1.0.0 0.0.255.255 area 0
!
router rip
!
address-family ipv4 vrf VPN_A
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.1.1 remote-as 100
neighbor 150.1.1.1 update-source Loopback0
neighbor 150.1.2.2 remote-as 100
neighbor 150.1.2.2 update-source Loopback0
!
address-family ipv4
neighbor 150.1.1.1 activate
no neighbor 150.1.2.2 activate
exit-address-family
!
address-family vpnv4
neighbor 150.1.2.2 activate
neighbor 150.1.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute rip
exit-address-family
www.INE.com
Version 1.0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 31
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
interface FastEthernet0/24
switchport access vlan 31
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
switchport access vlan 32
!
interface FastEthernet0/4
switchport access vlan 42
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
interface FastEthernet0/24
switchport access vlan 42
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
Version 1.0
Verification
R2 installs the VPNv4 routes for RD 100:1 but does not associate them
with VPN_A
R2#show ip bgp vpnv4 all
BGP table version is 9, local router ID is 150.1.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Route Distinguisher: 100:1
*>i10.1.7.0/24
150.1.3.3
*>i10.1.8.0/24
150.1.6.6
*>i10.1.37.0/24
150.1.3.3
*>i10.1.68.0/24
150.1.6.6
*>i192.10.1.0
150.1.4.4
*>i205.90.31.0
150.1.4.4
*>i220.20.3.0
150.1.4.4
*>i222.22.2.0
150.1.4.4
100
100
100
100
100
100
100
100
0
0
0
0
0
0
0
0
?
?
?
?
?
?
?
?
R3, R4, and R6 learn VPNv4 prefixes from R2 and install them as VPN_A
routes
R3#show ip bgp vpnv4 all
BGP table version is 17, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf VPN_A)
*> 10.1.7.0/24
10.1.37.7
1
32768 ?
*>i10.1.8.0/24
150.1.6.6
1
100
0 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i10.1.68.0/24
150.1.6.6
0
100
0 ?
*>i192.10.1.0
150.1.4.4
0
100
0 ?
*>i205.90.31.0
150.1.4.4
7
100
0 ?
*>i220.20.3.0
150.1.4.4
7
100
0 ?
*>i222.22.2.0
150.1.4.4
7
100
0 ?
R4#show ip bgp vpnv4 all
BGP table version is 17, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf VPN_A)
*>i10.1.7.0/24
150.1.3.3
1
100
0 ?
*>i10.1.8.0/24
150.1.6.6
1
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*>i10.1.68.0/24
150.1.6.6
0
100
0 ?
*> 192.10.1.0
0.0.0.0
0
32768 ?
*> 205.90.31.0
192.10.1.254
7
32768 ?
*> 220.20.3.0
192.10.1.254
7
32768 ?
www.INE.com
192.10.1.254
Version 1.0
7
32768 ?
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf VPN_A)
*>i10.1.7.0/24
150.1.3.3
1
100
0 ?
*> 10.1.8.0/24
10.1.68.8
1
32768 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 10.1.68.0/24
0.0.0.0
0
32768 ?
*>i192.10.1.0
150.1.4.4
0
100
0 ?
*>i205.90.31.0
150.1.4.4
7
100
0 ?
*>i220.20.3.0
150.1.4.4
7
100
0 ?
*>i222.22.2.0
150.1.4.4
7
100
0 ?
Other BGP routers only know of IPv4 Unicast prefixes
R1#show ip bgp
BGP table version is 14, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
*>
*>
*>
*>
*>
*>
*>
*>
*>
*>
*>
s>
Network
28.119.16.0/24
28.119.17.0/24
112.0.0.0
113.0.0.0
114.0.0.0
115.0.0.0
116.0.0.0
117.0.0.0
118.0.0.0
119.0.0.0
150.1.0.0
150.1.1.1/32
Next Hop
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
0.0.0.0
0.0.0.0
R2#show ip bgp
BGP table version is 12, local router ID is 150.1.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*>i28.119.16.0/24
*>i28.119.17.0/24
*>i112.0.0.0
*>i113.0.0.0
*>i114.0.0.0
*>i115.0.0.0
*>i116.0.0.0
*>i117.0.0.0
*>i118.0.0.0
*>i119.0.0.0
Next Hop
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
www.INE.com
150.1.1.1
Version 1.0
0
100
0 i
R3#show ip bgp
BGP table version is 12, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*>i28.119.16.0/24
*>i28.119.17.0/24
*>i112.0.0.0
*>i113.0.0.0
*>i114.0.0.0
*>i115.0.0.0
*>i116.0.0.0
*>i117.0.0.0
*>i118.0.0.0
*>i119.0.0.0
*>i150.1.0.0
Next Hop
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
150.1.1.1
R4#show ip bgp
BGP table version is 12, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*>i28.119.16.0/24
*>i28.119.17.0/24
*>i112.0.0.0
*>i113.0.0.0
*>i114.0.0.0
*>i115.0.0.0
*>i116.0.0.0
*>i117.0.0.0
*>i118.0.0.0
*>i119.0.0.0
*>i150.1.0.0
Next Hop
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
150.1.1.1
R4#show ip bgp
BGP table version is 12, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*>i28.119.16.0/24
*>i28.119.17.0/24
*>i112.0.0.0
*>i113.0.0.0
*>i114.0.0.0
*>i115.0.0.0
*>i116.0.0.0
*>i117.0.0.0
*>i118.0.0.0
*>i119.0.0.0
*>i150.1.0.0
Next Hop
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
150.1.1.1
www.INE.com
Version 1.0
R6#show ip bgp
BGP table version is 12, local router ID is 150.1.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*>i28.119.16.0/24
*>i28.119.17.0/24
*>i112.0.0.0
*>i113.0.0.0
*>i114.0.0.0
*>i115.0.0.0
*>i116.0.0.0
*>i117.0.0.0
*>i118.0.0.0
*>i119.0.0.0
*>i150.1.0.0
Next Hop
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
204.12.1.254
150.1.1.1
R1#show ip route
<output omitted>
B
B
C
B
B
B
B
B
B
B
B
O
O
O
O
O
O
O
C
B
C
C
O
R2#show ip route
<output omitted>
B
119.0.0.0/8 [200/0] via 204.12.1.254, 00:25:20
B
118.0.0.0/8 [200/0] via 204.12.1.254, 00:25:20
O E2 204.12.1.0/24 [110/20] via 150.1.12.1, 00:28:35, Serial2/0.1
B
117.0.0.0/8 [200/0] via 204.12.1.254, 00:25:20
B
116.0.0.0/8 [200/0] via 204.12.1.254, 00:25:20
B
115.0.0.0/8 [200/0] via 204.12.1.254, 00:25:20
B
114.0.0.0/8 [200/0] via 204.12.1.254, 00:25:20
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
SW1#show ip route
<output omitted>
R
222.22.2.0/24 [120/1] via 10.1.37.3, 00:00:22, FastEthernet0/3
R
220.20.3.0/24 [120/1] via 10.1.37.3, 00:00:22, FastEthernet0/3
10.0.0.0/24 is subnetted, 4 subnets
R
10.1.8.0 [120/1] via 10.1.37.3, 00:00:22, FastEthernet0/3
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
R
10.1.68.0 [120/1] via 10.1.37.3, 00:00:22, FastEthernet0/3
R
192.10.1.0/24 [120/1] via 10.1.37.3, 00:00:22, FastEthernet0/3
R
205.90.31.0/24 [120/1] via 10.1.37.3, 00:00:23, FastEthernet0/3
SW2#show ip route
<output omitted>
R
222.22.2.0/24 [120/1] via 10.1.68.6, 00:00:08, FastEthernet0/6
R
220.20.3.0/24 [120/1] via 10.1.68.6, 00:00:08, FastEthernet0/6
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.8.0 is directly connected, Loopback0
R
10.1.7.0 [120/1] via 10.1.68.6, 00:00:08, FastEthernet0/6
R
10.1.37.0 [120/1] via 10.1.68.6, 00:00:08, FastEthernet0/6
C
10.1.68.0 is directly connected, FastEthernet0/6
R
192.10.1.0/24 [120/1] via 10.1.68.6, 00:00:08, FastEthernet0/6
R
205.90.31.0/24 [120/1] via 10.1.68.6, 00:00:08, FastEthernet0/6
www.INE.com
Version 1.0
.254
SW1
RIPv2
RIPv2
E0/0
E0/1
R3
.3
10.1.37.0/24
.7
192.10.X.0/24 VLAN 32
BB2
.3
.3
S1/2
BGP
AS 1
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0.100 Fa0/0.200
150.1.100.Y/24 VLAN 100
E0/0.100
E0/0.200
150.1.45.0/24
R4
S0/0.1
.4
BGP
AS 2
Frame Relay
405
504
.5
S0/0.1
IS-IS Level 2
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
S0/0/0.1
R6
.8
.6
54.X.1.0/24
Frame Relay
101
.254
RIPv2
BB1
www.INE.com
Version 1.0
Directions
www.INE.com
Version 1.0
Final Configuration
R1#
ip cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip vrf SW1-BB1
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf SW2-BB2
rd 1:200
route-target export 1:200
route-target import 1:200
!
ip cef
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0.100
encapsulation dot1Q 100
ip vrf forwarding SW1-BB1
ip address 150.1.100.2 255.255.255.0
!
interface FastEthernet0/0.200
encapsulation dot1Q 200
ip vrf forwarding SW2-BB2
ip address 150.1.200.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf SW2-BB2
redistribute bgp 1 metric 1
network 192.10.8.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 1 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.2.2 remote-as 1
neighbor 150.1.2.2 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.2.2 activate
neighbor 150.1.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
R4#
ip cef
!
ip vrf SW1-BB1
rd 1:100
route-target export
route-target import
!
ip vrf SW2-BB2
rd 1:200
route-target export
route-target import
!
!
1:100
1:100
1:200
1:200
www.INE.com
Version 1.0
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip router isis
!
interface Ethernet0/0.100
encapsulation dot1Q 100
ip vrf forwarding SW1-BB1
ip address 150.1.100.4 255.255.255.0
!
interface Ethernet0/0.200
encapsulation dot1Q 200
ip vrf forwarding SW2-BB2
ip address 150.1.200.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 405
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
!
router bgp 2
neighbor 150.1.6.6 remote-as 2
neighbor 150.1.6.6 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.6.6 activate
neighbor 150.1.6.6 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
neighbor 150.1.200.2 remote-as 1
neighbor 150.1.200.2 activate
exit-address-family
!
address-family ipv4 vrf SW1-BB1
neighbor 150.1.100.2 remote-as 1
neighbor 150.1.100.2 activate
exit-address-family
R5#
ip cef
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip router isis
tag-switching ip
www.INE.com
Version 1.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 504
!
router isis
net 00.0000.0000.0005.00
is-type level-2-only
R6#
ip cef
!
ip vrf SW1-BB1
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf SW2-BB2
rd 1:200
route-target export 1:200
route-target import 1:200
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
ip router isis
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0/0
encapsulation frame-relay
!
interface Serial0/0/0.1 point-to-point
ip vrf forwarding SW1-BB1
ip address 54.8.1.6 255.255.255.0
frame-relay interface-dlci 101
!
interface GigabitEthernet0/1
ip vrf forwarding SW2-BB2
ip address 10.1.68.6 255.255.255.0
!
router isis
net 00.0000.0000.0006.00
is-type level-2-only
!
www.INE.com
Version 1.0
router rip
!
address-family ipv4 vrf SW2-BB2
redistribute bgp 2 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 2 metric 1
network 54.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 2
neighbor 150.1.4.4 remote-as 2
neighbor 150.1.4.4 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
SW1#
ip routing
vlan 100,200
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
www.INE.com
Version 1.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
switchport access vlan 32
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
interface FastEthernet0/24
switchport access vlan 32
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
SW1#show ip route
<output omitted>
54.0.0.0/24 is subnetted, 1 subnets
R
54.8.1.0 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.1.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.0.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.3.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
R
212.18.2.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
SW1#ping 212.18.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 212.18.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/116/116 ms
www.INE.com
Version 1.0
SW2#show ip route
<output omitted>
R
222.22.2.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
R
220.20.3.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
R
192.10.8.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.8.0 is directly connected, Loopback0
C
10.1.68.0 is directly connected, FastEthernet0/6
R
205.90.31.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
SW2#ping 222.22.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.22.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 96/99/100 ms
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*>i10.1.7.0/24
150.1.3.3
1
100
0 ?
*>i10.1.37.0/24
150.1.3.3
0
100
0 ?
*> 54.8.1.0/24
150.1.100.4
0 2 ?
*> 212.18.0.0
150.1.100.4
0 2 ?
*> 212.18.1.0
150.1.100.4
0 2 ?
*> 212.18.2.0
150.1.100.4
0 2 ?
*> 212.18.3.0
150.1.100.4
0 2 ?
Route Distinguisher: 1:200 (default for vrf SW2-BB2)
*> 10.1.8.0/24
150.1.200.4
0 2 ?
*> 10.1.68.0/24
150.1.200.4
0 2 ?
*>i192.10.8.0
150.1.3.3
0
100
0 ?
*>i205.90.31.0
150.1.3.3
7
100
0 ?
*>i220.20.3.0
150.1.3.3
7
100
0 ?
*>i222.22.2.0
150.1.3.3
7
100
0 ?
R3#show ip bgp vpnv4 all
BGP table version is 27, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*> 10.1.7.0/24
10.1.37.7
1
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i54.8.1.0/24
150.1.2.2
0
100
0 2 ?
*>i212.18.0.0
150.1.2.2
0
100
0 2 ?
*>i212.18.1.0
150.1.2.2
0
100
0 2 ?
*>i212.18.2.0
150.1.2.2
0
100
0 2 ?
*>i212.18.3.0
150.1.2.2
0
100
0 2 ?
www.INE.com
Version 1.0
0
0
32768
32768
32768
32768
2 ?
2 ?
?
?
?
?
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*> 10.1.7.0/24
150.1.100.2
0 1 ?
*> 10.1.37.0/24
150.1.100.2
0 1 ?
*>i54.8.1.0/24
150.1.6.6
0
100
0 ?
*>i212.18.0.0
150.1.6.6
1
100
0 ?
*>i212.18.1.0
150.1.6.6
1
100
0 ?
*>i212.18.2.0
150.1.6.6
1
100
0 ?
*>i212.18.3.0
150.1.6.6
1
100
0 ?
Route Distinguisher: 1:200 (default for vrf SW2-BB2)
*>i10.1.8.0/24
150.1.6.6
1
100
0 ?
*>i10.1.68.0/24
150.1.6.6
0
100
0 ?
*> 192.10.8.0
150.1.200.2
0 1 ?
*> 205.90.31.0
150.1.200.2
0 1 ?
*> 220.20.3.0
150.1.200.2
0 1 ?
*> 222.22.2.0
150.1.200.2
0 1 ?
R6#show ip bgp vpnv4 all
BGP table version is 27, local router ID is 150.1.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*>i10.1.7.0/24
150.1.4.4
0
100
0 1 ?
*>i10.1.37.0/24
150.1.4.4
0
100
0 1 ?
*> 54.8.1.0/24
0.0.0.0
0
32768 ?
*> 212.18.0.0
54.8.1.254
1
32768 ?
*> 212.18.1.0
54.8.1.254
1
32768 ?
*> 212.18.2.0
54.8.1.254
1
32768 ?
*> 212.18.3.0
54.8.1.254
1
32768 ?
Route Distinguisher: 1:200 (default for vrf SW2-BB2)
*> 10.1.8.0/24
10.1.68.8
1
32768 ?
*> 10.1.68.0/24
0.0.0.0
0
32768 ?
*>i192.10.8.0
150.1.4.4
0
100
0 1 ?
*>i205.90.31.0
150.1.4.4
0
100
0 1 ?
*>i220.20.3.0
150.1.4.4
0
100
0 1 ?
*>i222.22.2.0
150.1.4.4
0
100
0 1 ?
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
Pop tag
Prefix
or Tunnel Id
150.1.2.2/32
150.1.3.3/32
Bytes tag
switched
12038
11806
Outgoing
interface
Se0/0.1
Se0/1
Next Hop
Bytes tag
switched
0
0
0
472
0
0
0
0
0
590
Outgoing
interface
Se0/0.1
Se0/0.1
Se0/0.1
Fa0/0.200
Fa0/0.200
Fa0/0.100
Fa0/0.100
Fa0/0.100
Fa0/0.100
Fa0/0.100
Next Hop
Bytes tag
switched
0
0
0
0
520
0
0
0
570
Outgoing
interface
Se1/2
Se1/2
Se1/2
Et0/0
Next Hop
Et0/1
Et0/1
Et0/1
192.10.8.254
192.10.8.254
192.10.8.254
Bytes tag
switched
0
0
0
0
0
590
0
0
590
Outgoing
interface
Se0/0.1
Se0/0.1
Se0/0.1
Et0/0.200
Et0/0.200
Et0/0.200
Et0/0.200
Et0/0.100
Et0/0.100
Next Hop
point2point
point2point
Outgoing
tag or VC
Pop tag
Pop tag
17
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Prefix
or Tunnel Id
150.1.1.1/32
150.1.13.0/24
150.1.3.3/32
10.1.68.0/24[V]
10.1.8.0/24[V]
54.8.1.0/24[V]
212.18.3.0/24[V]
212.18.2.0/24[V]
212.18.1.0/24[V]
212.18.0.0/24[V]
point2point
point2point
point2point
150.1.200.4
150.1.200.4
150.1.100.4
150.1.100.4
150.1.100.4
150.1.100.4
150.1.100.4
Outgoing
tag or VC
Pop tag
16
Pop tag
Untagged
Aggregate
Aggregate
Untagged
Untagged
Untagged
Prefix
or Tunnel Id
150.1.1.1/32
150.1.2.2/32
150.1.12.0/24
10.1.7.0/24[V]
10.1.37.0/24[V]
192.10.8.0/24[V]
205.90.31.0/24[V]
220.20.3.0/24[V]
222.22.2.0/24[V]
point2point
point2point
point2point
10.1.37.7
Outgoing
tag or VC
Pop tag
16
Pop tag
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Prefix
or Tunnel Id
150.1.56.0/24
150.1.6.6/32
150.1.5.5/32
205.90.31.0/24[V]
220.20.3.0/24[V]
222.22.2.0/24[V]
192.10.8.0/24[V]
10.1.7.0/24[V]
10.1.37.0/24[V]
point2point
point2point
point2point
150.1.200.2
150.1.200.2
150.1.200.2
150.1.200.2
150.1.100.2
150.1.100.2
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
16
Pop tag
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Prefix
or Tunnel Id
150.1.56.0/24
150.1.6.6/32
150.1.5.5/32
205.90.31.0/24[V]
220.20.3.0/24[V]
222.22.2.0/24[V]
192.10.8.0/24[V]
10.1.7.0/24[V]
10.1.37.0/24[V]
Bytes tag
switched
0
0
0
0
0
590
0
0
590
Outgoing
interface
Se0/0.1
Se0/0.1
Se0/0.1
Et0/0.200
Et0/0.200
Et0/0.200
Et0/0.200
Et0/0.100
Et0/0.100
Next Hop
Bytes tag
switched
0
0
0
0
0
520
0
0
0
416
Outgoing
interface
Et0/0
Et0/0
Et0/0
Next Hop
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Gig0/1
point2point
point2point
point2point
point2point
10.1.68.8
point2point
point2point
point2point
150.1.200.2
150.1.200.2
150.1.200.2
150.1.200.2
150.1.100.2
150.1.100.2
Outgoing
tag or VC
Pop tag
Pop tag
17
Aggregate
Untagged
Untagged
Untagged
Untagged
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.45.0/24
150.1.5.5/32
150.1.4.4/32
54.8.1.0/24[V]
212.18.1.0/24[V]
212.18.0.0/24[V]
212.18.3.0/24[V]
212.18.2.0/24[V]
10.1.8.0/24[V]
10.1.68.0/24[V]
150.1.56.5
150.1.56.5
150.1.56.5
www.INE.com
Version 1.0
www.INE.com
Version 1.0
.254
SW1
.7
RIPv2
RIPv2
E0/0
E0/1
R3
.3
10.1.37.0/24
192.10.X.0/24 VLAN 32
BB2
.3
.3
S1/2
BGP
AS 1
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0
.2
E0/0
.4
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
.4
BGP
AS 2
405
504
.5
S0/0.1
IS-IS Level 2
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
S0/0/0.1
R6
.8
.6
54.X.1.0/24
Frame Relay
101
.254
RIPv2
BB1
www.INE.com
Version 1.0
Directions
www.INE.com
Version 1.0
Final Configuration
R1#
ip cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 201
!
router ospf 1
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
!
router bgp 1
no bgp default route-target filter
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.24.4 remote-as 2
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 next-hop-self
neighbor 150.1.3.3 send-community extended
www.INE.com
Version 1.0
www.INE.com
Version 1.0
exit-address-family
!
router bgp 1
neighbor 150.1.2.2 remote-as 1
neighbor 150.1.2.2 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.2.2 activate
neighbor 150.1.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
R4#
ip cef
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 405
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
!
router bgp 2
no bgp default route-target filter
neighbor 150.1.6.6 remote-as 2
neighbor 150.1.6.6 update-source Loopback0
neighbor 150.1.24.2 remote-as 1
!
address-family vpnv4
neighbor 150.1.6.6 activate
neighbor 150.1.6.6 send-community extended
neighbor 150.1.6.6 next-hop-self
neighbor 150.1.24.2 activate
neighbor 150.1.24.2 send-community extended
exit-address-family
www.INE.com
Version 1.0
R5#
ip cef
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 504
!
router isis
net 00.0000.0000.0005.00
is-type level-2-only
R6#
ip cef
!
ip vrf SW1-BB1
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf SW2-BB2
rd 1:200
route-target export 1:200
route-target import 1:200
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
ip router isis
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0/0
encapsulation frame-relay
!
interface Serial0/0/0.1 point-to-point
ip vrf forwarding SW1-BB1
ip address 54.1.1.6 255.255.255.0
frame-relay interface-dlci 101
!
www.INE.com
Version 1.0
interface GigabitEthernet0/1
ip vrf forwarding SW2-BB2
ip address 10.1.68.6 255.255.255.0
!
router isis
net 00.0000.0000.0006.00
is-type level-2-only
!
router rip
!
address-family ipv4 vrf SW2-BB2
redistribute bgp 2 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 2 metric 1
network 54.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 2
neighbor 150.1.4.4 remote-as 2
neighbor 150.1.4.4 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
www.INE.com
Version 1.0
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
switchport access vlan 32
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
interface FastEthernet0/24
switchport access vlan 32
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
SW1#show ip route
<output omitted>
54.0.0.0/24 is subnetted, 1 subnets
R
54.8.1.0 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.1.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.0.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.3.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
R
212.18.2.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
SW1#ping 212.18.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 212.18.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/116/116 ms
www.INE.com
Version 1.0
SW2#show ip route
<output omitted>
R
222.22.2.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
R
220.20.3.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
R
192.10.8.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.8.0 is directly connected, Loopback0
C
10.1.68.0 is directly connected, FastEthernet0/6
R
205.90.31.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
SW2#ping 222.22.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.22.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 96/99/100 ms
Network
Next Hop
Route Distinguisher: 1:100
*>i10.1.7.0/24
150.1.3.3
*>i10.1.37.0/24
150.1.3.3
*> 54.8.1.0/24
150.1.24.4
*> 212.18.0.0
150.1.24.4
*> 212.18.1.0
150.1.24.4
*> 212.18.2.0
150.1.24.4
*> 212.18.3.0
150.1.24.4
Route Distinguisher: 1:200
*> 10.1.8.0/24
150.1.24.4
*> 10.1.68.0/24
150.1.24.4
*>i192.10.8.0
150.1.3.3
*>i205.90.31.0
150.1.3.3
*>i220.20.3.0
150.1.3.3
*>i222.22.2.0
150.1.3.3
0
7
7
7
100
100
100
100
100
100
0
0
0
0
0
0
0
?
?
2
2
2
2
2
0
0
0
0
0
0
2 ?
2 ?
?
?
?
?
?
?
?
?
?
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*> 10.1.7.0/24
10.1.37.7
1
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*>i54.8.1.0/24
150.1.2.2
0
100
0 2 ?
*>i212.18.0.0
150.1.2.2
0
100
0 2 ?
*>i212.18.1.0
150.1.2.2
0
100
0 2 ?
*>i212.18.2.0
150.1.2.2
0
100
0 2 ?
*>i212.18.3.0
150.1.2.2
0
100
0 2 ?
www.INE.com
Version 1.0
0
0
32768
32768
32768
32768
2 ?
2 ?
?
?
?
?
Network
Next Hop
Route Distinguisher: 1:100
*> 10.1.7.0/24
150.1.24.2
*> 10.1.37.0/24
150.1.24.2
*>i54.8.1.0/24
150.1.6.6
*>i212.18.0.0
150.1.6.6
*>i212.18.1.0
150.1.6.6
*>i212.18.2.0
150.1.6.6
*>i212.18.3.0
150.1.6.6
Route Distinguisher: 1:200
*>i10.1.8.0/24
150.1.6.6
*>i10.1.68.0/24
150.1.6.6
*> 192.10.8.0
150.1.24.2
*> 205.90.31.0
150.1.24.2
*> 220.20.3.0
150.1.24.2
*> 222.22.2.0
150.1.24.2
0
1
1
1
1
100
100
100
100
100
1
0
100
100
0
0
0
0
0
0
0
1 ?
1 ?
?
?
?
?
?
0
0
0
0
0
0
?
?
1
1
1
1
?
?
?
?
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
Pop tag
Prefix
or Tunnel Id
150.1.2.2/32
150.1.3.3/32
Bytes tag
switched
12038
11806
Outgoing
interface
Se0/0.1
Se0/1
Next Hop
Prefix
Bytes tag
or Tunnel Id
switched
150.1.24.4/32
0
150.1.1.1/32
0
150.1.3.3/32
0
150.1.13.0/24
0
1:200:205.90.31.0/24
\
0
1:100:10.1.7.0/24
\
0
1:100:10.1.37.0/24
\
560
1:200:192.10.1.0/24
\
0
1:100:54.1.1.0/24
\
0
1:100:212.18.0.0/24
\
590
1:100:212.18.1.0/24
\
0
1:100:212.18.2.0/24
\
0
1:100:212.18.3.0/24
\
0
1:200:10.1.8.0/24
\
0
1:200:10.1.68.0/24
\
472
1:200:220.20.3.0/24
\
0
1:200:222.22.2.0/24
\
560
Outgoing
interface
Fa0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Fa0/0
150.1.24.4
Fa0/0
150.1.24.4
Fa0/0
150.1.24.4
Fa0/0
150.1.24.4
Fa0/0
150.1.24.4
Fa0/0
150.1.24.4
Fa0/0
150.1.24.4
Se0/0.1
point2point
Se0/0.1
point2point
Outgoing
interface
Se1/2
Se1/2
Se1/2
Et0/0
Next Hop
Et0/1
Et0/1
Et0/1
192.10.1.254
192.10.1.254
192.10.1.254
point2point
point2point
Outgoing
tag or VC
Pop tag
Pop tag
16
Pop tag
16
21
16
22
16
23
16
24
24
25
25
26
26
27
27
28
28
29
30
30
29
31
16
32
16
150.1.24.4
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
Pop tag
17
Untagged
Aggregate
Aggregate
Untagged
Untagged
Untagged
Prefix
or Tunnel Id
150.1.1.1/32
150.1.12.0/24
150.1.2.2/32
10.1.7.0/24[V]
10.1.37.0/24[V]
192.10.1.0/24[V]
205.90.31.0/24[V]
220.20.3.0/24[V]
222.22.2.0/24[V]
Bytes tag
switched
0
0
0
0
520
0
0
0
570
point2point
point2point
point2point
10.1.37.7
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
16
Pop tag
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Prefix
or Tunnel Id
150.1.56.0/24
150.1.6.6/32
150.1.5.5/32
205.90.31.0/24[V]
220.20.3.0/24[V]
222.22.2.0/24[V]
192.10.8.0/24[V]
10.1.7.0/24[V]
10.1.37.0/24[V]
Bytes tag
switched
0
0
0
0
0
590
0
0
590
Outgoing
interface
Se0/0.1
Se0/0.1
Se0/0.1
Et0/0.200
Et0/0.200
Et0/0.200
Et0/0.200
Et0/0.100
Et0/0.100
Next Hop
Prefix
Bytes tag
or Tunnel Id
switched
150.1.24.2/32
0
150.1.5.5/32
0
150.1.6.6/32
0
150.1.56.0/24
0
1:200:222.22.2.0/24
\
590
1:100:10.1.37.0/24
\
590
1:100:10.1.7.0/24
\
0
1:200:192.10.1.0/24
\
0
1:100:54.1.1.0/24
\
0
1:100:212.18.0.0/24
\
560
1:100:212.18.1.0/24
\
0
1:100:212.18.2.0/24
\
0
1:100:212.18.3.0/24
\
0
1:200:10.1.68.0/24
\
448
1:200:10.1.8.0/24
\
0
1:200:220.20.3.0/24
\
0
1:200:205.90.31.0/24
\
0
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Et0/0
150.1.24.2
Et0/0
150.1.24.2
Et0/0
150.1.24.2
Et0/0
150.1.24.2
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Se0/0.1
point2point
Et0/0
150.1.24.2
Et0/0
150.1.24.2
Outgoing
interface
Et0/0
Se0/0.1
Next Hop
point2point
point2point
point2point
150.1.200.2
150.1.200.2
150.1.200.2
150.1.200.2
150.1.100.2
150.1.100.2
Outgoing
tag or VC
Pop tag
Pop tag
16
Pop tag
32
21
22
22
21
23
23
24
16
25
16
26
16
27
16
28
16
29
16
30
16
31
31
32
20
150.1.24.2
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
Pop tag
Prefix
or Tunnel Id
150.1.6.6/32
150.1.4.4/32
Bytes tag
switched
31257
2203
150.1.56.6
point2point
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
Aggregate
Pop tag
17
Untagged
Untagged
Untagged
Untagged
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.5.5/32
54.1.1.0/24[V]
150.1.45.0/24
150.1.4.4/32
212.18.0.0/24[V]
212.18.1.0/24[V]
212.18.2.0/24[V]
212.18.3.0/24[V]
10.1.8.0/24[V]
10.1.68.0/24[V]
Bytes tag
switched
0
0
0
0
520
0
0
0
0
416
Outgoing
interface
Gi0/0
Next Hop
Gi0/0
Gi0/0
Se0/0/0.1
Se0/0/0.1
Se0/0/0.1
Se0/0/0.1
Gi0/1
150.1.56.5
150.1.56.5
point2point
point2point
point2point
point2point
10.1.68.8
150.1.56.5
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Fa0/3
.254
BB2
SW1
.7
RIPv2
RIPv2
E0/0
E0/1
R3
.3
.3
.3
S1/2
BGP
AS 1
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
.1
S0/0.1
102
201
.2
R1
S0/0.1
R2
Fa0/0
.2
E0/0
.4
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
.4
BGP
AS 2
Frame Relay
405
504
.5
S0/0.1
IS-IS Level 2
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
.6
S0/0/0.1
R6
RIPv2
.6
54.X.1.0/24
Frame Relay
101
Fa0/6
SW2
.8
.254
RIPv2
BB1
www.INE.com
Version 1.0
Directions
www.INE.com
Version 1.0
Final Configuration
R1#
ip cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 201
!
router ospf 1
redistribute bgp 1 subnets route-map BGP_TO_IGP
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
!
router bgp 1
neighbor 150.1.24.4 remote-as 2
neighbor 150.1.24.4 send-label
network 150.1.3.3 mask 255.255.255.255
!
ip prefix-list R6_LOOPBACK seq 5 permit 150.1.6.6/32
!
route-map BGP_TO_IGP permit 10
match ip address prefix-list R6_LOOPBACK
www.INE.com
Version 1.0
R3#
ip cef
!
ip vrf SW1-BB1
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf SW2-BB2
rd 1:200
route-target export 1:200
route-target import 1:200
!
key chain RIP
key 1
key-string CISCO
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding SW1-BB1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding SW2-BB2
ip address 192.10.1.3 255.255.255.0
ip rip authentication mode md5
ip rip authentication key-chain RIP
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf SW2-BB2
redistribute bgp 1 metric 1
network 192.10.1.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 1 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
www.INE.com
Version 1.0
router bgp 1
neighbor 150.1.6.6 remote-as 2
neighbor 150.1.6.6 ebgp-multihop 255
neighbor 150.1.6.6 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.6.6 activate
neighbor 150.1.6.6 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
R4#
ip cef
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 405
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
redistribute bgp 2 route-map BGP_TO_IGP
!
router bgp 2
network 150.1.6.6 mask 255.255.255.255
neighbor 150.1.24.2 remote-as 1
neighbor 150.1.24.2 send-label
R5#
ip cef
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
ip router isis
!
www.INE.com
Version 1.0
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 504
!
router isis
net 00.0000.0000.0005.00
is-type level-2-only
R6#
ip cef
!
ip vrf SW1-BB1
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf SW2-BB2
rd 1:200
route-target export 1:200
route-target import 1:200
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
ip router isis
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0/0
encapsulation frame-relay
!
interface Serial0/0/0.1 point-to-point
ip vrf forwarding SW1-BB1
ip address 54.1.1.6 255.255.255.0
frame-relay interface-dlci 101
!
interface GigabitEthernet0/1
ip vrf forwarding SW2-BB2
ip address 10.1.68.6 255.255.255.0
!
router isis
net 00.0000.0000.0006.00
is-type level-2-only
!
www.INE.com
Version 1.0
router rip
!
address-family ipv4 vrf SW2-BB2
redistribute bgp 2 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 2 metric 1
network 54.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 2
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 ebgp-multihop 255
neighbor 150.1.3.3 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
www.INE.com
Version 1.0
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
switchport access vlan 32
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
interface FastEthernet0/24
switchport access vlan 32
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
SW1#show ip route
<output omitted>
54.0.0.0/24 is subnetted, 1 subnets
R
54.8.1.0 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.1.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.0.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
R
212.18.3.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
R
212.18.2.0/24 [120/1] via 10.1.37.3, 00:00:04, FastEthernet0/3
SW1#ping 212.18.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 212.18.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/116/116 ms
www.INE.com
Version 1.0
SW2#show ip route
<output omitted>
R
222.22.2.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
R
220.20.3.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
R
192.10.8.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.8.0 is directly connected, Loopback0
C
10.1.68.0 is directly connected, FastEthernet0/6
R
205.90.31.0/24 [120/1] via 10.1.68.6, 00:00:10, FastEthernet0/6
SW2#ping 222.22.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.22.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 96/99/100 ms
R2#show ip bgp
BGP table version is 8, local router ID is 150.1.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*> 150.1.3.3/32
*> 150.1.6.6/32
Next Hop
150.1.12.1
150.1.24.4
R4#show ip bgp
BGP table version is 10, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*> 150.1.3.3/32
*> 150.1.6.6/32
Next Hop
150.1.24.2
150.1.45.5
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*> 10.1.7.0/24
10.1.37.7
1
32768 ?
*> 10.1.37.0/24
0.0.0.0
0
32768 ?
*> 54.1.1.0/24
150.1.6.6
0
0 2 ?
*> 212.18.0.0
150.1.6.6
1
0 2 ?
*> 212.18.1.0
150.1.6.6
1
0 2 ?
*> 212.18.2.0
150.1.6.6
1
0 2 ?
*> 212.18.3.0
150.1.6.6
1
0 2 ?
Route Distinguisher: 1:200 (default for vrf SW2-BB2)
*> 10.1.8.0/24
150.1.6.6
1
0 2 ?
*> 10.1.68.0/24
150.1.6.6
0
0 2 ?
www.INE.com
192.10.1.0
205.90.31.0
220.20.3.0
222.22.2.0
0.0.0.0
192.10.1.254
192.10.1.254
192.10.1.254
Version 1.0
0
7
7
7
32768
32768
32768
32768
?
?
?
?
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 1:100 (default for vrf SW1-BB1)
*> 10.1.7.0/24
150.1.3.3
1
0 1 ?
*> 10.1.37.0/24
150.1.3.3
0
0 1 ?
*> 54.1.1.0/24
0.0.0.0
0
32768 ?
*> 212.18.0.0
54.1.1.254
1
32768 ?
*> 212.18.1.0
54.1.1.254
1
32768 ?
*> 212.18.2.0
54.1.1.254
1
32768 ?
*> 212.18.3.0
54.1.1.254
1
32768 ?
Route Distinguisher: 1:200 (default for vrf SW2-BB2)
*> 10.1.8.0/24
10.1.68.8
1
32768 ?
*> 10.1.68.0/24
0.0.0.0
0
32768 ?
*> 192.10.1.0
150.1.3.3
0
0 1 ?
*> 205.90.31.0
150.1.3.3
7
0 1 ?
*> 220.20.3.0
150.1.3.3
7
0 1 ?
*> 222.22.2.0
150.1.3.3
7
0 1 ?
R1#show mpls forwarding-table
Local
tag
16
17
18
Outgoing
tag or VC
Pop tag
Pop tag
20
Prefix
or Tunnel Id
150.1.3.3/32
150.1.2.2/32
150.1.6.6/32
Bytes tag
switched
21915
16488
1836
Outgoing
interface
Se0/1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
2148
0
2016
Outgoing
interface
Fa0/0
Se0/0.1
Se0/0.1
Se0/0.1
Fa0/0
Next Hop
Bytes tag
switched
0
0
0
0
0
520
Outgoing
interface
Se1/2
Se1/2
Se1/2
Se1/2
Et0/0
Next Hop
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
Pop tag
16
Pop tag
18
Prefix
or Tunnel Id
150.1.24.4/32
150.1.1.1/32
150.1.3.3/32
150.1.13.0/24
150.1.6.6/32
150.1.24.4
point2point
point2point
point2point
150.1.24.4
Outgoing
tag or VC
Pop tag
Pop tag
17
18
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.1.1/32
150.1.12.0/24
150.1.2.2/32
150.1.6.6/32
10.1.7.0/24[V]
10.1.37.0/24[V]
point2point
point2point
point2point
point2point
10.1.37.7
www.INE.com
Aggregate
Untagged
Untagged
Untagged
192.10.1.0/24[V]
205.90.31.0/24[V]
220.20.3.0/24[V]
222.22.2.0/24[V]
Version 1.0
0
0
0
1140
Et0/1
Et0/1
Et0/1
192.10.1.254
192.10.1.254
192.10.1.254
Bytes tag
switched
0
0
1970
0
2652
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Et0/0
Next Hop
Bytes tag
switched
27056
16240
2382
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
0
0
0
520
0
0
0
0
936
Outgoing
interface
Gi0/0
Gi0/0
Gi0/0
Next Hop
Gi0/0
Se0/0/0.1
Se0/0/0.1
Se0/0/0.1
Se0/0/0.1
Gi0/1
150.1.56.5
point2point
point2point
point2point
point2point
10.1.68.8
Outgoing
tag or VC
Pop tag
Pop tag
16
Pop tag
18
Prefix
or Tunnel Id
150.1.24.2/32
150.1.5.5/32
150.1.6.6/32
150.1.56.0/24
150.1.3.3/32
150.1.24.2
point2point
point2point
point2point
150.1.24.2
Outgoing
tag or VC
Pop tag
Pop tag
20
Prefix
or Tunnel Id
150.1.6.6/32
150.1.4.4/32
150.1.3.3/32
150.1.56.6
point2point
point2point
Outgoing
tag or VC
18
Pop tag
Pop tag
Aggregate
17
Untagged
Untagged
Untagged
Untagged
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.3.3/32
150.1.5.5/32
150.1.45.0/24
54.1.1.0/24[V]
150.1.4.4/32
212.18.0.0/24[V]
212.18.1.0/24[V]
212.18.2.0/24[V]
212.18.3.0/24[V]
10.1.8.0/24[V]
10.1.68.0/24[V]
150.1.56.5
150.1.56.5
150.1.56.5
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
BGP AS
65001
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
BGP
AS 1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0
.2
BGP
AS 2 E0/0
150.1.24.0/24 VLAN 24
.4
OSPF
Area 0
R4
S0/0.1
Frame Relay
.4
405
504
.5
S0/0.1
150.1.45.0/24
OSPF
Area 0
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
G0/1
SW2
Fa0/6
10.1.68.0/24
.6
BGP AS
65002
.6
BGP
AS 1
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
!
www.INE.com
Version 1.0
router bgp 1
neighbor 150.1.5.5 remote-as 1
neighbor 150.1.5.5 update-source Loopback0
neighbor 150.1.13.3 remote-as 1
neighbor 150.1.13.3 route-reflector-client
R2#
ip vrf AS1
rd 2:1
route-target export 2:1
route-target import 2:1
!
ip cef
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip vrf forwarding AS1
ip address 150.1.12.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 201
!
router ospf 1
network 150.1.2.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
!
router ospf 2 vrf AS1
redistribute bgp 2 subnets
network 150.1.12.2 0.0.0.0 area 0
!
router bgp 2
neighbor 150.1.24.4 remote-as 2
!
address-family vpnv4
neighbor 150.1.24.4 activate
neighbor 150.1.24.4 send-community both
exit-address-family
!
address-family ipv4 vrf AS1
redistribute ospf 2
exit-address-family
www.INE.com
Version 1.0
R3#
ip cef
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.37.7 remote-as 65001
neighbor 150.1.13.1 remote-as 1
neighbor 150.1.13.1 next-hop-self
R4#
ip cef
!
ip vrf AS1
rd 2:1
route-target export 2:1
route-target import 2:1
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip vrf forwarding AS1
ip address 150.1.45.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 405
!
router ospf 2 vrf AS1
redistribute bgp 2 subnets
network 150.1.45.4 0.0.0.0 area 0
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
www.INE.com
Version 1.0
router bgp 2
neighbor 150.1.24.2 remote-as 2
!
address-family vpnv4
neighbor 150.1.24.2 activate
neighbor 150.1.24.2 send-community both
exit-address-family
!
address-family ipv4 vrf AS1
redistribute ospf 2 vrf AS1
exit-address-family
R5#
ip cef
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
tag-switching ip
frame-relay interface-dlci 504
!
router ospf 1
network 150.1.5.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
network 150.1.56.5 0.0.0.0 area 0
!
router bgp 1
neighbor 150.1.1.1 remote-as 1
neighbor 150.1.1.1 update-source Loopback0
neighbor 150.1.56.6 remote-as 1
neighbor 150.1.56.6 route-reflector-client
R6#
ip cef
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
!
router ospf 1
network 150.1.6.6 0.0.0.0 area 0
network 150.1.56.6 0.0.0.0 area 0
!
www.INE.com
Version 1.0
router bgp 1
neighbor 10.1.68.8 remote-as 65002
neighbor 150.1.56.5 remote-as 1
neighbor 150.1.56.5 next-hop-self
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router bgp 65001
network 10.1.7.0 mask 255.255.255.0
neighbor 10.1.37.3 remote-as 1
SW2#
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router bgp 65002
network 10.1.8.0 mask 255.255.255.0
neighbor 10.1.68.6 remote-as 1
Verification
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.37.3, 00:19:27
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
www.INE.com
Version 1.0
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.8.0 is directly connected, Loopback0
B
10.1.7.0 [20/0] via 10.1.68.6, 00:19:39
C
10.1.68.0 is directly connected, FastEthernet0/6
SW1#ping 10.1.8.8 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.8.8, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 144/144/144 ms
R1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 2 subnets
B
10.1.8.0 [200/0] via 150.1.56.6, 00:10:48
B
10.1.7.0 [200/0] via 150.1.13.3, 00:11:00
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
O IA
150.1.6.6/32 [110/139] via 150.1.12.2, 00:13:23, Serial0/0.1
O IA
150.1.5.5/32 [110/129] via 150.1.12.2, 00:13:23, Serial0/0.1
O
150.1.3.3/32 [110/65] via 150.1.13.3, 00:13:23, Serial0/1
C
150.1.1.1/32 is directly connected, Loopback0
C
150.1.13.0/24 is directly connected, Serial0/1
C
150.1.12.0/24 is directly connected, Serial0/0.1
O IA
150.1.56.0/24 [110/138] via 150.1.12.2, 00:13:23, Serial0/0.1
O IA
150.1.45.0/24 [110/65] via 150.1.12.2, 00:13:23, Serial0/0.1
R2#show ip route vrf *
<output omitted>
150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
C
150.1.24.0/24 is directly connected, FastEthernet0/0
O
150.1.4.4/32 [110/2] via 150.1.24.4, 00:42:18, FastEthernet0/0
C
150.1.2.2/32 is directly connected, Loopback0
Routing Table: AS1
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
B
150.1.6.6/32 [200/75] via 150.1.24.4, 00:36:18
B
150.1.5.5/32 [200/65] via 150.1.24.4, 00:36:18
O
150.1.3.3/32 [110/129] via 150.1.12.1, 00:35:19, Serial0/0.1
O
150.1.1.1/32 [110/65] via 150.1.12.1, 00:35:19, Serial0/0.1
O
150.1.13.0/24 [110/128] via 150.1.12.1, 00:35:19, Serial0/0.1
C
150.1.12.0/24 is directly connected, Serial0/0.1
B
150.1.56.0/24 [200/74] via 150.1.24.4, 00:36:18
B
150.1.45.0/24 [200/0] via 150.1.24.4, 00:36:18
R3#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [200/0] via 150.1.56.6, 00:11:38
B
10.1.7.0 [20/0] via 10.1.37.7, 00:14:29
C
10.1.37.0 is directly connected, Ethernet0/0
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
O IA
150.1.6.6/32 [110/920] via 150.1.13.1, 00:35:47, Serial1/2
www.INE.com
Version 1.0
E2
E2
E2
E2
www.INE.com
Version 1.0
Next Hop
150.1.13.3
150.1.56.6
R3#show ip bgp
<output omitted>
Network
*> 10.1.7.0/24
*>i10.1.8.0/24
Next Hop
10.1.37.7
150.1.56.6
R5#show ip bgp
<output omitted>
Network
*>i10.1.7.0/24
*>i10.1.8.0/24
Next Hop
150.1.13.3
150.1.56.6
R6#show ip bgp
<output omitted>
Network
*>i10.1.7.0/24
*> 10.1.8.0/24
Next Hop
150.1.13.3
10.1.68.8
www.INE.com
Version 1.0
Outgoing
tag or VC
Untagged
20
19
18
17
Prefix
or Tunnel Id
150.1.3.3/32
150.1.5.5/32
150.1.6.6/32
150.1.45.0/24
150.1.56.0/24
Bytes tag
switched
520
0
0
0
0
Outgoing
interface
Se0/1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
2006
0
590
2679
540
2192
1768
0
Outgoing
interface
Fa0/0
Fa0/0
Fa0/0
Fa0/0
Fa0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
540
2631
1768
0
3200
590
0
2006
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Et0/0
Et0/0
Et0/0
Et0/0
150.1.24.2
150.1.24.2
150.1.24.2
150.1.24.2
Bytes tag
switched
570
0
0
0
0
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
point2point
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
19
20
17
18
16
Pop tag
Pop tag
Aggregate
Prefix
or Tunnel Id
150.1.4.4/32
150.1.56.0/24[V]
150.1.45.0/24[V]
150.1.6.6/32[V]
150.1.5.5/32[V]
150.1.3.3/32[V]
150.1.1.1/32[V]
150.1.13.0/24[V]
150.1.12.0/24[V]
150.1.24.4
150.1.24.4
150.1.24.4
150.1.24.4
150.1.24.4
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
16
Pop tag
Pop tag
Aggregate
22
21
24
23
Prefix
or Tunnel Id
150.1.2.2/32
150.1.6.6/32[V]
150.1.5.5/32[V]
150.1.56.0/24[V]
150.1.45.0/24[V]
150.1.1.1/32[V]
150.1.3.3/32[V]
150.1.12.0/24[V]
150.1.13.0/24[V]
150.1.24.2
point2point
point2point
point2point
Outgoing
tag or VC
Untagged
21
22
23
24
Prefix
or Tunnel Id
150.1.6.6/32
150.1.1.1/32
150.1.3.3/32
150.1.12.0/24
150.1.13.0/24
150.1.56.6
point2point
point2point
point2point
point2point
www.INE.com
Version 1.0
.7
10.1.37.0/24
BGP
AS 1
E0/0
R3
BGP AS
65001
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0
.2
BGP
AS 2 E0/0
150.1.24.0/24 VLAN 24
.4
OSPF
Area 0
R4
S0/0.1
Frame Relay
.4
405
504
.5
S0/0.1
150.1.45.0/24
OSPF
Area 0
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
SW2
Fa0/6
10.1.68.0/24
.6
BGP AS
65002
R6
BGP
AS 1
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
tag-switching ip
!
www.INE.com
Version 1.0
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip vrf AS1
rd 2:1
route-target export 2:1
route-target import 2:1
!
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip vrf forwarding AS1
ip address 150.1.12.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 201
!
router ospf 1
network 150.1.2.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
!
router ospf 2 vrf AS1
redistribute bgp 2 subnets
network 150.1.12.2 0.0.0.0 area 0
!
router bgp 2
neighbor 150.1.24.4 remote-as 2
!
address-family vpnv4
neighbor 150.1.24.4 activate
neighbor 150.1.24.4 send-community both
exit-address-family
!
address-family ipv4 vrf AS1
redistribute ospf 2
exit-address-family
R3#
ip cef
!
mpls label protocol ldp
www.INE.com
Version 1.0
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.37.7 remote-as 65001
neighbor 150.1.6.6 remote-as 1
neighbor 150.1.6.6 update-source Loopback0
neighbor 150.1.6.6 next-hop-self
R4#
ip cef
!
mpls label protocol ldp
!
ip vrf AS1
rd 2:1
route-target export 2:1
route-target import 2:1
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip vrf forwarding AS1
ip address 150.1.45.4 255.255.255.0
tag-switching ip
frame-relay interface-dlci 405
!
router ospf 2 vrf AS1
redistribute bgp 2 subnets
network 150.1.45.4 0.0.0.0 area 0
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
www.INE.com
Version 1.0
router bgp 2
neighbor 150.1.24.2 remote-as 2
!
address-family vpnv4
neighbor 150.1.24.2 activate
neighbor 150.1.24.2 send-community both
exit-address-family
!
address-family ipv4 vrf AS1
redistribute ospf 2 vrf AS1
exit-address-family
R5#
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
tag-switching ip
frame-relay interface-dlci 504
!
router ospf 1
network 150.1.5.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
network 150.1.56.5 0.0.0.0 area 0
R6#
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
mpls ip
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
!
router ospf 1
network 150.1.6.6 0.0.0.0 area 0
network 150.1.56.6 0.0.0.0 area 0
www.INE.com
Version 1.0
!
router bgp 1
neighbor 10.1.68.8
neighbor 150.1.3.3
neighbor 150.1.3.3
neighbor 150.1.3.3
remote-as 65002
remote-as 1
update-source Loopback0
next-hop-self
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router bgp 65001
network 10.1.7.0 mask 255.255.255.0
neighbor 10.1.37.3 remote-as 1
SW2#
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router bgp 65002
network 10.1.8.0 mask 255.255.255.0
neighbor 10.1.68.6 remote-as 1
Verification
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.37.3, 00:02:44
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
www.INE.com
Version 1.0
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.8.0 is directly connected, Loopback0
B
10.1.7.0 [20/0] via 10.1.68.6, 00:02:56
C
10.1.68.0 is directly connected, FastEthernet0/6
SW1#ping 10.1.8.8 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.8.8, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 144/147/148 ms
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
O IA
150.1.6.6/32 [110/139] via 150.1.12.2, 00:02:04, Serial0/0.1
O IA
150.1.5.5/32 [110/129] via 150.1.12.2, 00:02:04, Serial0/0.1
O
150.1.3.3/32 [110/65] via 150.1.13.3, 00:02:04, Serial0/1
C
150.1.1.1/32 is directly connected, Loopback0
C
150.1.13.0/24 is directly connected, Serial0/1
C
150.1.12.0/24 is directly connected, Serial0/0.1
O IA
150.1.56.0/24 [110/138] via 150.1.12.2, 00:02:04, Serial0/0.1
O IA
150.1.45.0/24 [110/65] via 150.1.12.2, 00:02:04, Serial0/0.1
R2#show ip route vrf *
<output omitted>
150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
C
150.1.24.0/24 is directly connected, FastEthernet0/0
O
150.1.4.4/32 [110/2] via 150.1.24.4, 03:13:36, FastEthernet0/0
C
150.1.2.2/32 is directly connected, Loopback0
Routing Table: AS1
<output omitted>
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
B
150.1.6.6/32 [200/75] via 150.1.24.4, 03:07:36
B
150.1.5.5/32 [200/65] via 150.1.24.4, 03:07:36
O
150.1.3.3/32 [110/129] via 150.1.12.1, 03:06:37, Serial0/0.1
O
150.1.1.1/32 [110/65] via 150.1.12.1, 03:06:37, Serial0/0.1
O
150.1.13.0/24 [110/128] via 150.1.12.1, 03:06:37, Serial0/0.1
C
150.1.12.0/24 is directly connected, Serial0/0.1
B
150.1.56.0/24 [200/74] via 150.1.24.4, 03:07:36
B
150.1.45.0/24 [200/0] via 150.1.24.4, 03:07:36
R3#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [200/0] via 150.1.6.6, 00:01:31
B
10.1.7.0 [20/0] via 10.1.37.7, 02:45:41
C
10.1.37.0 is directly connected, Ethernet0/0
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
O IA
150.1.6.6/32 [110/920] via 150.1.13.1, 03:06:59, Serial1/2
O IA
150.1.5.5/32 [110/910] via 150.1.13.1, 03:06:59, Serial1/2
www.INE.com
Version 1.0
E2
E2
E2
E2
www.INE.com
Version 1.0
Next Hop
10.1.37.7
150.1.6.6
R6#show ip bgp
<output omitted>
Network
*>i10.1.7.0/24
*> 10.1.8.0/24
Next Hop
150.1.3.3
10.1.68.8
Outgoing
tag or VC
Pop tag
20
19
18
17
Prefix
or Tunnel Id
150.1.3.3/32
150.1.5.5/32
150.1.6.6/32
150.1.45.0/24
150.1.56.0/24
Bytes tag
switched
905
0
1041
0
0
Outgoing
interface
Se0/1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
3186
0
Outgoing
interface
Fa0/0
Fa0/0
Fa0/0
Next Hop
point2point
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
19
20
Prefix
or Tunnel Id
150.1.4.4/32
150.1.56.0/24[V]
150.1.45.0/24[V]
150.1.24.4
150.1.24.4
150.1.24.4
www.INE.com
17
18
16
Pop tag
Pop tag
Aggregate
150.1.6.6/32[V]
150.1.5.5/32[V]
150.1.3.3/32[V]
150.1.1.1/32[V]
150.1.13.0/24[V]
150.1.12.0/24[V]
Version 1.0
1828
19836
1604
17667
2808
0
Fa0/0
Fa0/0
Se0/0.1
Se0/0.1
Se0/0.1
150.1.24.4
150.1.24.4
point2point
point2point
point2point
Bytes tag
switched
0
0
0
0
0
0
Outgoing
interface
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Next Hop
Bytes tag
switched
0
1652
15902
2808
0
22153
1774
0
3186
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Et0/0
Et0/0
Et0/0
Et0/0
150.1.24.2
150.1.24.2
150.1.24.2
150.1.24.2
Bytes tag
switched
1313
0
1181
0
0
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
0
0
0
0
Outgoing
interface
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Next Hop
Outgoing
tag or VC
18
17
Pop tag
Pop tag
20
19
Prefix
or Tunnel Id
150.1.6.6/32
150.1.5.5/32
150.1.1.1/32
150.1.12.0/24
150.1.56.0/24
150.1.45.0/24
point2point
point2point
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
16
Pop tag
Pop tag
Aggregate
22
21
24
23
Prefix
or Tunnel Id
150.1.2.2/32
150.1.6.6/32[V]
150.1.5.5/32[V]
150.1.56.0/24[V]
150.1.45.0/24[V]
150.1.1.1/32[V]
150.1.3.3/32[V]
150.1.12.0/24[V]
150.1.13.0/24[V]
150.1.24.2
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
21
22
23
24
Prefix
or Tunnel Id
150.1.6.6/32
150.1.1.1/32
150.1.3.3/32
150.1.12.0/24
150.1.13.0/24
150.1.56.6
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
18
17
20
19
Pop tag
Prefix
or Tunnel Id
150.1.5.5/32
150.1.3.3/32
150.1.1.1/32
150.1.13.0/24
150.1.12.0/24
150.1.45.0/24
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
www.INE.com
Version 1.0
.254
RIPv2
RIPv2
E0/0
E0/1
R3
.3
SW1
.7
BGP
AS 1
10.1.37.0/24
192.10.X.0/24 VLAN 32
BB2
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0
.2
BGP
AS 2 E0/0
150.1.24.0/24 VLAN 24
.4
150.1.45.0/24
R4
S0/0.1
OSPF
Area 0
Frame Relay
.4
405
504
.5
S0/0.1
OSPF
Area 0
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
S0/0/0.1
R6
BGP
AS 1
.8
.6
54.X.1.0/24
Frame Relay
101
.254
RIPv2
BB1
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
!
router bgp 2
neighbor 150.1.24.2 remote-as 2
!
address-family vpnv4
neighbor 150.1.24.2 activate
neighbor 150.1.24.2 send-community both
exit-address-family
!
address-family ipv4 vrf AS1
redistribute ospf 2 vrf AS1
exit-address-family
R5#
ip cef
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
tag-switching ip
frame-relay interface-dlci 504
!
router ospf 1
network 150.1.5.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
network 150.1.56.5 0.0.0.0 area 0
R6#
ip cef
!
ip vrf SW1-BB1
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip vrf SW2-BB2
rd 1:200
route-target export 1:200
route-target import 1:200
!
mpls label protocol ldp
!
www.INE.com
Version 1.0
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
mpls ip
!
interface GigabitEthernet0/1
ip vrf forwarding SW2-BB2
ip address 10.1.68.6 255.255.255.0
!
interface Serial0/0/0
encapsulation frame-relay
!
interface Serial0/0/0.1 point-to-point
ip vrf forwarding SW1-BB1
ip address 54.1.1.6 255.255.255.0
frame-relay interface-dlci 101
!
router ospf 1
network 150.1.6.6 0.0.0.0 area 0
network 150.1.56.6 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf SW2-BB2
redistribute bgp 1 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 1 metric 1
network 54.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf SW2-BB2
redistribute rip
no auto-summary
no synchronization
exit-address-family
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Verification
SW1#show ip route
<output omitted>
54.0.0.0/24 is subnetted, 1 subnets
R
54.1.1.0 [120/1] via 10.1.37.3, 00:00:00, FastEthernet0/3
R
212.18.1.0/24 [120/1] via 10.1.37.3, 00:00:00, FastEthernet0/3
R
212.18.0.0/24 [120/1] via 10.1.37.3, 00:00:00, FastEthernet0/3
R
212.18.3.0/24 [120/1] via 10.1.37.3, 00:00:00, FastEthernet0/3
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
R
212.18.2.0/24 [120/1] via 10.1.37.3, 00:00:00, FastEthernet0/3
SW1#ping 212.18.0.1 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 212.18.0.1, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 184/185/188 ms
SW2#show ip route
<output omitted>
R
222.22.2.0/24 [120/1] via 10.1.68.6, 00:00:20, FastEthernet0/6
R
220.20.3.0/24 [120/1] via 10.1.68.6, 00:00:20, FastEthernet0/6
10.0.0.0/24 is subnetted, 2 subnets
C
10.1.8.0 is directly connected, Loopback0
C
10.1.68.0 is directly connected, FastEthernet0/6
R
192.10.1.0/24 [120/1] via 10.1.68.6, 00:00:20, FastEthernet0/6
R
205.90.31.0/24 [120/1] via 10.1.68.6, 00:00:20, FastEthernet0/6
SW2#ping 222.22.2.1 source 10.1.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.22.2.1, timeout is 2 seconds:
Packet sent with a source address of 10.1.8.8
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 152/155/156 ms
R1#show ip route
<output omitted>
150.1.0.0/16 is variably subnetted, 8 subnets, 2 masks
O IA
150.1.6.6/32 [110/139] via 150.1.12.2, 06:47:39, Serial0/0.1
O IA
150.1.5.5/32 [110/129] via 150.1.12.2, 06:47:39, Serial0/0.1
O
150.1.3.3/32 [110/65] via 150.1.13.3, 06:47:39, Serial0/1
C
150.1.1.1/32 is directly connected, Loopback0
C
150.1.13.0/24 is directly connected, Serial0/1
C
150.1.12.0/24 is directly connected, Serial0/0.1
O IA
150.1.56.0/24 [110/138] via 150.1.12.2, 06:47:39, Serial0/0.1
O IA
150.1.45.0/24 [110/65] via 150.1.12.2, 06:47:39, Serial0/0.1
www.INE.com
Version 1.0
www.INE.com
Version 1.0
E2
E2
E2
E2
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
20
19
18
17
Prefix
or Tunnel Id
150.1.3.3/32
150.1.5.5/32
150.1.6.6/32
150.1.45.0/24
150.1.56.0/24
Bytes tag
switched
44383
0
42358
0
0
Outgoing
interface
Se0/1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
3186
0
49718
19836
48695
17667
2808
0
Outgoing
interface
Fa0/0
Fa0/0
Fa0/0
Fa0/0
Fa0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
0
0
0
0
0
0
570
Outgoing
interface
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Next Hop
Et0/0
10.1.37.7
point2point
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
19
20
17
18
16
Pop tag
Pop tag
Aggregate
Prefix
or Tunnel Id
150.1.4.4/32
150.1.56.0/24[V]
150.1.45.0/24[V]
150.1.6.6/32[V]
150.1.5.5/32[V]
150.1.3.3/32[V]
150.1.1.1/32[V]
150.1.13.0/24[V]
150.1.12.0/24[V]
150.1.24.4
150.1.24.4
150.1.24.4
150.1.24.4
150.1.24.4
point2point
point2point
point2point
Outgoing
tag or VC
18
17
Pop tag
Pop tag
20
19
Aggregate
Aggregate
Untagged
Prefix
or Tunnel Id
150.1.6.6/32
150.1.5.5/32
150.1.1.1/32
150.1.12.0/24
150.1.56.0/24
150.1.45.0/24
10.1.37.0/24[V]
192.10.1.0/24[V]
10.1.7.0/24[V]
point2point
point2point
point2point
point2point
point2point
point2point
www.INE.com
Untagged
Untagged
Untagged
Version 1.0
205.90.31.0/24[V] 0
220.20.3.0/24[V] 0
222.22.2.0/24[V] 570
Et0/1
Et0/1
Et0/1
192.10.1.254
192.10.1.254
192.10.1.254
Bytes tag
switched
0
44066
15902
2808
0
22153
57027
0
3186
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Et0/0
Et0/0
Et0/0
Et0/0
150.1.24.2
150.1.24.2
150.1.24.2
150.1.24.2
Bytes tag
switched
47182
0
48607
0
0
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
0
0
0
0
0
520
0
0
0
456
0
Outgoing
interface
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Next Hop
Se0/0/0.1
Se0/0/0.1
Se0/0/0.1
Se0/0/0.1
Gi0/1
point2point
point2point
point2point
point2point
10.1.68.8
Outgoing
tag or VC
Pop tag
16
Pop tag
Pop tag
Aggregate
22
21
24
23
Prefix
or Tunnel Id
150.1.2.2/32
150.1.6.6/32[V]
150.1.5.5/32[V]
150.1.56.0/24[V]
150.1.45.0/24[V]
150.1.1.1/32[V]
150.1.3.3/32[V]
150.1.12.0/24[V]
150.1.13.0/24[V]
150.1.24.2
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
21
22
23
24
Prefix
or Tunnel Id
150.1.6.6/32
150.1.1.1/32
150.1.3.3/32
150.1.12.0/24
150.1.13.0/24
150.1.56.6
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Pop tag
18
17
20
19
Pop tag
Aggregate
Untagged
Untagged
Untagged
Untagged
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.5.5/32
150.1.3.3/32
150.1.1.1/32
150.1.13.0/24
150.1.12.0/24
150.1.45.0/24
54.1.1.0/24[V]
212.18.0.0/24[V]
212.18.1.0/24[V]
212.18.2.0/24[V]
212.18.3.0/24[V]
10.1.8.0/24[V]
10.1.68.0/24[V]
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
www.INE.com
Version 1.0
VRF-Lite
Objective: Configure VRF-Lite (Multi-VRF) on R3 and R6 to propagate routing
information from SW1 & BB3 and SW2 & BB1 to R1 and R5
respectively.
Fa0/3
.254
SW1
.7
RIPv2
RIPv2
E0/1
E0/0
R3
.3
10.1.37.0/24
204.10.X.0/24 VLAN 33
BB3
.3
.3
S1/2.1
S1/2.2
10.1.13.0/24
S0/1.1
10.1.31.0/24
.1
S0/1.2
150.1.12.0/24
R1
Frame Relay
.1
102
BGP
AS 100
201
.2
S0/0.1
IS-IS
Level 2
R2
Fa0/0
.2
E0/0
.4
S0/0.1
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
.4
405
BGP
AS 100
504
.5
S0/0.1
R5
E0/0.56 E0/0.65
10.1.56.0/24 VLAN 56
.6
.5
.5
10.1.65.0/24 VLAN 65
.6
G0/0.56 G0/0.65
G0/1
S0/0/0.1
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
.6
54.X.1.0/24
Frame Relay
RIPv2 101
.254
BB1
www.INE.com
Version 1.0
Directions
www.INE.com
Version 1.0
Final Configuration
R1#
ip vrf SW1-BB1
rd 100:1
route-target export 100:1
route-target import 100:1
!
ip vrf SW2-BB3
rd 100:2
route-target export 100:2
route-target import 100:2
!
ip cef
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
encapsulation frame-relay
no keepalive
!
interface Serial0/1.1 point-to-point
ip vrf forwarding SW1-BB1
ip address 10.1.13.1 255.255.255.0
frame-relay interface-dlci 100
!
interface Serial0/1.2 point-to-point
ip vrf forwarding SW2-BB3
ip address 10.1.31.1 255.255.255.0
frame-relay interface-dlci 200
!
router isis
net 00.0000.0000.0001.00
is-type level-2-only
passive-interface Loopback0
!
router rip
version 2
!
address-family ipv4 vrf SW2-BB3
version 2
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
exit-address-family
www.INE.com
Version 1.0
!
address-family ipv4 vrf SW1-BB1
version 2
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
exit-address-family
!
router bgp 100
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.5.5 activate
neighbor 150.1.5.5 send-community both
exit-address-family
!
address-family ipv4 vrf SW2-BB3
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
R2#
ip cef
mpls label protocol ldp
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 201
!
router isis
net 00.0000.0000.0002.00
is-type level-2-only
www.INE.com
Version 1.0
R3#
ip cef
!
ip vrf BB3
rd 100:2
!
ip vrf SW1
rd 100:1
!
interface Ethernet0/0
ip vrf forwarding SW1
ip address 10.1.37.3 255.255.255.0
!
interface Ethernet0/1
ip vrf forwarding BB3
ip address 204.12.1.3 255.255.255.0
!
interface Serial1/2
encapsulation frame-relay
no keepalive
clockrate 64000
!
interface Serial1/2.1 point-to-point
ip vrf forwarding SW1
ip address 10.1.13.3 255.255.255.0
frame-relay interface-dlci 100
!
interface Serial1/2.2 point-to-point
ip vrf forwarding BB3
ip address 10.1.31.3 255.255.255.0
frame-relay interface-dlci 200
!
router rip
!
address-family ipv4 vrf SW1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf BB3
network 10.0.0.0
network 204.12.1.0
no auto-summary
version 2
exit-address-family
R4#
ip cef
!
mpls label protocol ldp
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip router isis
tag-switching ip
!
www.INE.com
Version 1.0
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 405
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
R5#
ip cef
!
ip vrf SW1-BB1
rd 100:1
route-target export 100:1
route-target import 100:1
!
ip vrf SW2-BB3
rd 100:2
route-target export 100:2
route-target import 100:2
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0.56
encapsulation dot1Q 56
ip vrf forwarding SW2-BB3
ip address 10.1.56.5 255.255.255.0
!
interface Ethernet0/0.65
encapsulation dot1Q 65
ip vrf forwarding SW1-BB1
ip address 10.1.65.5 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 504
!
router isis
net 00.0000.0000.0005.00
is-type level-2-only
passive-interface Loopback0
!
www.INE.com
Version 1.0
router rip
version 2
!
address-family ipv4 vrf SW2-BB3
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.1.1 remote-as 100
neighbor 150.1.1.1 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.1.1 activate
neighbor 150.1.1.1 send-community both
exit-address-family
!
address-family ipv4 vrf SW2-BB3
redistribute rip
exit-address-family
!
address-family ipv4 vrf SW1-BB1
redistribute rip
exit-address-family
R6#
ip cef
!
ip vrf BB1
rd 100:1
!
ip vrf SW2
rd 100:2
!
interface GigabitEthernet0/0.56
encapsulation dot1Q 56
ip vrf forwarding SW2
ip address 10.1.56.6 255.255.255.0
!
interface GigabitEthernet0/0.65
encapsulation dot1Q 65
ip vrf forwarding BB1
ip address 10.1.65.6 255.255.255.0
!
interface GigabitEthernet0/1
ip vrf forwarding SW2
ip address 10.1.68.6 255.255.255.0
!
www.INE.com
Version 1.0
interface Serial0/0/0
encapsulation frame-relay
!
interface Serial0/0/0.1 point-to-point
ip vrf forwarding BB1
ip address 54.1.1.6 255.255.255.0
frame-relay interface-dlci 101
!
router rip
!
address-family ipv4 vrf SW2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
address-family ipv4 vrf BB1
network 10.0.0.0
network 54.0.0.0
no auto-summary
version 2
exit-address-family
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/6
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/24
switchport access vlan 33
!
router rip
version 2
network 10.0.0.0
no auto-summary
www.INE.com
Version 1.0
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/3
switchport access vlan 33
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
R3#show ip route vrf *
<output omitted>
Routing Table: BB3
<output omitted>
C
204.12.1.0/24 is directly connected, Ethernet0/1
10.0.0.0/24 is subnetted, 4 subnets
R
10.1.8.0 [120/1] via 10.1.31.1, 00:00:00, Serial1/2.2
C
10.1.31.0 is directly connected, Serial1/2.2
R
10.1.56.0 [120/1] via 10.1.31.1, 00:00:00, Serial1/2.2
R
10.1.68.0 [120/1] via 10.1.31.1, 00:00:00, Serial1/2.2
31.0.0.0/16 is subnetted, 4 subnets
R
31.3.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
R
31.2.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
R
31.1.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
R
31.0.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
30.0.0.0/16 is subnetted, 4 subnets
R
30.2.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
R
30.3.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
R
30.0.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
R
30.1.0.0 [120/1] via 204.12.1.254, 00:00:14, Ethernet0/1
Routing Table: SW1
<output omitted>
54.0.0.0/24 is subnetted, 1 subnets
R
54.1.1.0 [120/1] via 10.1.13.1, 00:00:00, Serial1/2.1
R
212.18.1.0/24 [120/1] via 10.1.13.1, 00:00:00, Serial1/2.1
R
212.18.0.0/24 [120/1] via 10.1.13.1, 00:00:00, Serial1/2.1
R
212.18.3.0/24 [120/1] via 10.1.13.1, 00:00:00, Serial1/2.1
10.0.0.0/24 is subnetted, 4 subnets
C
10.1.13.0 is directly connected, Serial1/2.1
R
10.1.7.0 [120/1] via 10.1.37.7, 00:00:17, Ethernet0/0
C
10.1.37.0 is directly connected, Ethernet0/0
R
10.1.65.0 [120/1] via 10.1.13.1, 00:00:00, Serial1/2.1
R
212.18.2.0/24 [120/1] via 10.1.13.1, 00:00:00, Serial1/2.1
www.INE.com
Version 1.0
ip route vrf *
omitted>
Table: SW2
omitted>
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Fa0/3
RIPv2
E0/0
R3
10.1.37.0/24
.7
BGP
AS 100
SW1
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
150.1.12.0/24
R1
Frame Relay
.1
S0/0.1
102
201
.2
S0/0.1
IS-IS
Level 2
R2
Fa0/0
.2
E0/0
.4
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
.4
405
504
.5
S0/0.1
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
R6
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
BGP
AS 100
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
mpls label protocol ldp
!
no tag-switching advertise-tags
tag-switching advertise-tags for 1
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip router isis
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip router isis
tag-switching ip
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip router isis
tag-switching ip
!
router isis
net 00.0000.0000.0001.00
is-type level-2-only
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip router isis
tag-switching ip
clockrate 64000
!
router isis
net 00.0000.0000.0003.00
is-type level-2-only
!
router rip
!
address-family ipv4 vrf SW1-SW2
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.6.6 remote-as 100
neighbor 150.1.6.6 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.6.6 activate
neighbor 150.1.6.6 send-community extended
exit-address-family
!
address-family ipv4 vrf SW1-SW2
redistribute rip
exit-address-family
!
access-list 1 permit 150.1.6.6
access-list 1 permit 150.1.3.3
access-list 1 deny
any
R4#
ip cef
mpls label protocol ldp
!
no tag-switching advertise-tags
tag-switching advertise-tags for 1
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip router isis
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
R6#
ip cef
!
ip vrf SW1-SW2
rd 100:1
route-target export 100:1
route-target import 100:1
!
mpls label protocol ldp
!
no mpls ldp advertise-labels
mpls ldp advertise-labels for 1
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
ip router isis
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip router isis
mpls ip
!
interface GigabitEthernet0/1
ip vrf forwarding SW1-SW2
ip address 10.1.68.6 255.255.255.0
!
router isis
net 00.0000.0000.0006.00
is-type level-2-only
!
router rip
!
address-family ipv4 vrf SW1-SW2
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.3.3 remote-as 100
neighbor 150.1.3.3 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf SW1-SW2
redistribute rip
exit-address-family
!
access-list 1 permit 150.1.6.6
access-list 1 permit 150.1.3.3
access-list 1 deny
any
www.INE.com
Version 1.0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
!
access-list 1 permit 150.1.6.6
access-list 1 permit 150.1.3.3
access-list 1 deny
any
www.INE.com
Version 1.0
Verification
R1#show mpls forwarding-table
Local
tag
16
17
18
19
20
21
22
23
Outgoing
tag or VC
Pop tag
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
23
Prefix
or Tunnel Id
150.1.3.3/32
150.1.24.0/24
150.1.2.2/32
150.1.4.4/32
150.1.45.0/24
150.1.5.5/32
150.1.56.0/24
150.1.6.6/32
Bytes tag
switched
2605
0
0
0
0
0
0
67
Outgoing
interface
Se0/1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
0
0
54361
0
0
154
Outgoing
interface
Fa0/0
Fa0/0
Se0/0.1
Se0/0.1
Se0/0.1
Fa0/0
Fa0/0
Fa0/0
Next Hop
Bytes tag
switched
0
0
0
0
0
0
0
0
0
0
0
Outgoing
interface
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Se1/2
Et0/0
Next Hop
Bytes tag
switched
0
368
0
0
0
0
0
351
Outgoing
interface
Se0/0.1
Se0/0.1
Se0/0.1
Et0/0
Et0/0
Et0/0
Et0/0
Et0/0
Next Hop
point2point
point2point
point2point
point2point
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Untagged
Untagged
Untagged
Untagged
16
Untagged
Untagged
17
Prefix
or Tunnel Id
150.1.4.4/32
150.1.45.0/24
150.1.1.1/32
150.1.13.0/24
150.1.3.3/32
150.1.5.5/32
150.1.56.0/24
150.1.6.6/32
150.1.24.4
150.1.24.4
point2point
point2point
point2point
150.1.24.4
150.1.24.4
150.1.24.4
Outgoing
tag or VC
Untagged
Untagged
Untagged
Untagged
Untagged
23
Untagged
Untagged
Untagged
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.1.1/32
150.1.12.0/24
150.1.2.2/32
150.1.4.4/32
150.1.5.5/32
150.1.6.6/32
150.1.24.0/24
150.1.45.0/24
150.1.56.0/24
10.1.7.0/24[V]
10.1.37.0/24[V]
point2point
point2point
point2point
point2point
point2point
point2point
point2point
point2point
point2point
10.1.37.7
Outgoing
tag or VC
Untagged
16
Untagged
Untagged
Untagged
Untagged
Untagged
20
Prefix
or Tunnel Id
150.1.5.5/32
150.1.6.6/32
150.1.56.0/24
150.1.2.2/32
150.1.1.1/32
150.1.12.0/24
150.1.13.0/24
150.1.3.3/32
point2point
point2point
point2point
150.1.24.2
150.1.24.2
150.1.24.2
150.1.24.2
150.1.24.2
www.INE.com
Version 1.0
Outgoing
tag or VC
Pop tag
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
23
Prefix
or Tunnel Id
150.1.6.6/32
150.1.4.4/32
150.1.24.0/24
150.1.2.2/32
150.1.1.1/32
150.1.12.0/24
150.1.13.0/24
150.1.3.3/32
Bytes tag
switched
8532
0
0
0
0
0
0
418
Outgoing
interface
Et0/0
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Se0/0.1
Next Hop
Bytes tag
switched
0
0
0
0
0
0
0
0
0
0
0
Outgoing
interface
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/0
Gi0/1
Next Hop
150.1.56.6
point2point
point2point
point2point
point2point
point2point
point2point
point2point
Outgoing
tag or VC
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
Untagged
23
Untagged
Aggregate
Prefix
or Tunnel Id
150.1.5.5/32
150.1.4.4/32
150.1.45.0/24
150.1.24.0/24
150.1.2.2/32
150.1.1.1/32
150.1.12.0/24
150.1.13.0/24
150.1.3.3/32
10.1.8.0/24[V]
10.1.68.0/24[V]
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
150.1.56.5
10.1.68.8
www.INE.com
Version 1.0
www.INE.com
Version 1.0
BGP
AS 1
10.1.37.0/24
SW1
BGP
AS 2
E0/0
R3
.3
.3
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
S0/0.2
Fa0/0
.2
OSPF
Area 0
.2
R2
205
Frame Relay
S0/0.1
.2
150.1.25.0/24
204
Frame Relay
502
150.1.24.0/24
402
.5
S0/0.2
S0/1
R5
.4
.5
S0/0.1
.4
S0/1
.4
R4
BGP
AS 1
E0/1
10.1.48.0/24
10.1.45.0/24
BGP
AS 3
.8
Fa0/4
SW2
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 100000 100000
www.INE.com
Version 1.0
!
interface Serial0/1
bandwidth 155000
ip address 150.1.13.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 100000 100000
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
bandwidth 45000
ip address 150.1.24.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 204
ip rsvp bandwidth 45000 45000
!
interface Serial0/0.2 point-to-point
bandwidth 45000
ip address 150.1.25.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 205
ip rsvp bandwidth 45000 45000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
network 150.1.25.2 0.0.0.0 area 0
www.INE.com
Version 1.0
R3#
ip cef
mpls traffic-eng tunnels
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 150.1.4.4
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng path-option 1 dynamic
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
!
interface Serial1/2
bandwidth 155000
ip address 150.1.13.3 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
clockrate 64000
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.37.7 remote-as 2
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
R4#
ip cef
mpls traffic-eng tunnels
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 150.1.3.3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng path-option 1 dynamic
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/1
ip address 10.1.48.4 255.255.255.0
www.INE.com
Version 1.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
bandwidth 45000
ip address 150.1.24.4 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 402
ip rsvp bandwidth 45000 45000
!
interface Serial0/1
bandwidth 155000
ip address 150.1.45.4 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
no dce-terminal-timing-enable
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
network 150.1.45.4 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.48.8 remote-as 3
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
R5#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.2 point-to-point
bandwidth 45000
ip address 150.1.25.5 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 502
ip rsvp bandwidth 45000 45000
!
interface Serial0/1
bandwidth 155000
ip address 150.1.45.5 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
clockrate 64000
www.INE.com
Version 1.0
Verification
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.37.3, 00:21:40
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
www.INE.com
Version 1.0
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.8.0 is directly connected, Loopback0
B
10.1.7.0 [20/0] via 10.1.48.4, 00:21:49
C
10.1.48.0 is directly connected, FastEthernet0/4
SW1#ping 10.1.8.8 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.8.8, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/88/88 ms
R3#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [200/0] via 150.1.4.4, 00:07:48
B
10.1.7.0 [20/0] via 10.1.37.7, 01:24:43
C
10.1.37.0 is directly connected, Ethernet0/0
150.1.0.0/16 is variably subnetted, 10 subnets, 2 masks
O
150.1.25.0/24 [110/4] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.24.0/24 [110/4] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.5.5/32 [110/5] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.4.4/32 [110/5] via 0.0.0.0, 00:07:50, Tunnel0
C
150.1.3.3/32 is directly connected, Loopback0
O
150.1.2.2/32 [110/3] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.1.1/32 [110/2] via 150.1.13.1, 00:07:50, Serial1/2
C
150.1.13.0/24 is directly connected, Serial1/2
O
150.1.12.0/24 [110/2] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.45.0/24 [110/5] via 150.1.13.1, 00:07:50, Serial1/2
[110/5] via 0.0.0.0, 00:07:50, Tunnel0
R4#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.48.8, 10:38:25
B
10.1.7.0 [200/0] via 150.1.3.3, 00:42:36
C
10.1.48.0 is directly connected, Ethernet0/1
150.1.0.0/16 is variably subnetted, 10 subnets, 2 masks
O
150.1.25.0/24 [110/3] via 150.1.45.5, 00:03:54, Serial0/1
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.5.5/32 [110/2] via 150.1.45.5, 00:03:54, Serial0/1
C
150.1.4.4/32 is directly connected, Loopback0
O
150.1.3.3/32 [110/5] via 0.0.0.0, 00:03:54, Tunnel0
O
150.1.2.2/32 [110/3] via 150.1.24.2, 00:03:54, Serial0/0.1
O
150.1.1.1/32 [110/4] via 150.1.24.2, 00:03:54, Serial0/0.1
O
150.1.13.0/24 [110/4] via 150.1.24.2, 00:03:54, Serial0/0.1
O
150.1.12.0/24 [110/3] via 150.1.24.2, 00:03:54, Serial0/0.1
C
150.1.45.0/24 is directly connected, Serial0/1
www.INE.com
Version 1.0
Path: valid
Signalling: connected
www.INE.com
Version 1.0
145000 (kbps)
90000 (kbps)
90000 (kbps)
35000 (kbps)
Path: valid
Signalling: connected
www.INE.com
Version 1.0
35000 (kbps)
90000 (kbps)
90000 (kbps)
145000 (kbps)
www.INE.com
Version 1.0
BGP
AS 1
10.1.37.0/24
SW1
BGP
AS 2
E0/0
R3
.3
.3
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
S0/0.2
Fa0/0
.2
OSPF
Area 0
.2
R2
205
Frame Relay
S0/0.1
.2
150.1.25.0/24
204
Frame Relay
502
150.1.24.0/24
402
.5
S0/0.2
S0/1
R5
.4
.5
S0/0.1
.4
S0/1
.4
R4
BGP
AS 1
E0/1
10.1.48.0/24
10.1.45.0/24
BGP
AS 3
.8
Fa0/4
SW2
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 100000 100000
www.INE.com
Version 1.0
!
interface Serial0/1
bandwidth 155000
ip address 150.1.13.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 100000 100000
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
bandwidth 45000
ip address 150.1.24.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 204
ip rsvp bandwidth 45000 45000
!
interface Serial0/0.2 point-to-point
bandwidth 45000
ip address 150.1.25.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 205
ip rsvp bandwidth 45000 45000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
network 150.1.25.2 0.0.0.0 area 0
www.INE.com
Version 1.0
R3#
ip cef
mpls traffic-eng tunnels
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 150.1.4.4
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng path-option 1 explicit name R1_R2_R5_R4
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
!
interface Serial1/2
bandwidth 155000
ip address 150.1.13.3 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
clockrate 64000
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.37.7 remote-as 2
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
ip explicit-path name R1_R2_R5_R4 enable
next-address 150.1.13.1
next-address 150.1.12.2
next-address 150.1.25.5
next-address 150.1.45.4
next-address 150.1.4.4
R4#
ip cef
mpls traffic-eng tunnels
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 150.1.3.3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 10000
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Verification
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.37.3, 00:21:40
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.8.0 is directly connected, Loopback0
B
10.1.7.0 [20/0] via 10.1.48.4, 00:21:49
C
10.1.48.0 is directly connected, FastEthernet0/4
SW1#ping 10.1.8.8 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.8.8, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/88/88 ms
R3#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [200/0] via 150.1.4.4, 00:07:48
B
10.1.7.0 [20/0] via 10.1.37.7, 01:24:43
C
10.1.37.0 is directly connected, Ethernet0/0
150.1.0.0/16 is variably subnetted, 10 subnets, 2 masks
O
150.1.25.0/24 [110/4] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.24.0/24 [110/4] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.5.5/32 [110/5] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.4.4/32 [110/5] via 0.0.0.0, 00:07:50, Tunnel0
C
150.1.3.3/32 is directly connected, Loopback0
O
150.1.2.2/32 [110/3] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.1.1/32 [110/2] via 150.1.13.1, 00:07:50, Serial1/2
C
150.1.13.0/24 is directly connected, Serial1/2
O
150.1.12.0/24 [110/2] via 150.1.13.1, 00:07:50, Serial1/2
O
150.1.45.0/24 [110/5] via 150.1.13.1, 00:07:50, Serial1/2
[110/5] via 0.0.0.0, 00:07:50, Tunnel0
R4#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.48.8, 10:38:25
B
10.1.7.0 [200/0] via 150.1.3.3, 00:42:36
C
10.1.48.0 is directly connected, Ethernet0/1
150.1.0.0/16 is variably subnetted, 10 subnets, 2 masks
O
150.1.25.0/24 [110/3] via 150.1.45.5, 00:03:54, Serial0/1
C
150.1.24.0/24 is directly connected, Serial0/0.1
O
150.1.5.5/32 [110/2] via 150.1.45.5, 00:03:54, Serial0/1
C
150.1.4.4/32 is directly connected, Loopback0
O
150.1.3.3/32 [110/5] via 0.0.0.0, 00:03:54, Tunnel0
O
150.1.2.2/32 [110/3] via 150.1.24.2, 00:03:54, Serial0/0.1
www.INE.com
Version 1.0
Path: valid
Signalling: connected
path option 1, type explicit R1_R2_R5_R4 (Basis for Setup, path weight 5)
Config Parameters:
Bandwidth: 10000
kbps (Global) Priority: 1 1
Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled
LockDown: disabled Loadshare: 10000
bw-based
auto-bw: disabled
InLabel : OutLabel : Serial1/2, 23
RSVP Signalling Info:
Src 150.1.3.3, Dst 150.1.4.4, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 150.1.3.3
Explicit Route: 150.1.13.1 150.1.12.1 150.1.12.2 150.1.25.5
150.1.45.4 150.1.4.4
Record Route: NONE
Tspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
History:
Tunnel:
Time since created: 7 minutes, 52 seconds
Time since path change: 7 minutes, 51 seconds
Current LSP:
Uptime: 7 minutes, 51 seconds
LSP Tunnel R4_t0 is signalled, connection is up
InLabel : Serial1/2, implicit-null
OutLabel : RSVP Signalling Info:
Src 150.1.4.4, Dst 150.1.3.3, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 150.1.3.3
Explicit Route: NONE
Record Route: NONE
Tspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
RSVP Resv Info:
www.INE.com
Version 1.0
Path: valid
Signalling: connected
path option 1, type explicit R5_R2_R1_R3 (Basis for Setup, path weight 5)
Config Parameters:
Bandwidth: 10000
kbps (Global) Priority: 1 1
Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled
LockDown: disabled Loadshare: 10000
bw-based
auto-bw: disabled
InLabel : OutLabel : Serial0/1, 24
RSVP Signalling Info:
Src 150.1.4.4, Dst 150.1.3.3, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 150.1.4.4
Explicit Route: 150.1.45.5 150.1.25.2 150.1.12.2 150.1.12.1
150.1.13.3 150.1.3.3
Record Route: NONE
Tspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
History:
Tunnel:
Time since created: 3 minutes, 56 seconds
Time since path change: 3 minutes, 55 seconds
Current LSP:
Uptime: 3 minutes, 55 seconds
LSP Tunnel R3_t0 is signalled, connection is up
InLabel : Serial0/1, implicit-null
OutLabel : RSVP Signalling Info:
Src 150.1.3.3, Dst 150.1.4.4, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 150.1.4.4
Explicit Route: NONE
Record Route: NONE
Tspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
www.INE.com
Version 1.0
www.INE.com
Version 1.0
BGP
AS 1
10.1.37.0/24
SW1
BGP
AS 2
E0/0
R3
.3
.3
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
S0/0.2
Fa0/0
.2
OSPF
Area 0
.2
R2
205
Frame Relay
S0/0.1
.2
150.1.25.0/24
204
Frame Relay
502
150.1.24.0/24
402
.5
S0/0.2
S0/1
R5
.4
.5
S0/0.1
.4
S0/1
.4
R4
BGP
AS 1
E0/1
10.1.48.0/24
10.1.45.0/24
BGP
AS 3
.8
Fa0/4
SW2
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
mpls traffic-eng tunnels
www.INE.com
Version 1.0
tag-switching ip
ip rsvp bandwidth 100000 100000
!
interface Serial0/1
bandwidth 155000
ip address 150.1.13.1 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
ip rsvp bandwidth 100000 100000
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
bandwidth 45000
ip address 150.1.24.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 204
ip rsvp bandwidth 45000 45000
!
interface Serial0/0.2 point-to-point
bandwidth 45000
ip address 150.1.25.2 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 205
ip rsvp bandwidth 45000 45000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
network 150.1.25.2 0.0.0.0 area 0
www.INE.com
Version 1.0
R3#
ip cef
mpls traffic-eng tunnels
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 150.1.4.4
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 6667
tunnel mpls traffic-eng path-option 1 dynamic
!
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 150.1.4.4
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 3333
tunnel mpls traffic-eng path-option 1 explicit name R1_R2_R5_R4
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
!
interface Serial1/2
bandwidth 155000
ip address 150.1.13.3 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
clockrate 64000
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router bgp 1
neighbor 10.1.37.7 remote-as 2
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
ip explicit-path name R1_R2_R5_R4 enable
next-address 150.1.13.1
next-address 150.1.12.2
next-address 150.1.25.5
next-address 150.1.45.4
next-address 150.1.4.4
www.INE.com
Version 1.0
R4#
ip cef
mpls traffic-eng tunnels
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 150.1.3.3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 6667
tunnel mpls traffic-eng path-option 1 dynamic
!
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 150.1.3.3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 1 1
tunnel mpls traffic-eng bandwidth 3333
tunnel mpls traffic-eng path-option 1 explicit name R5_R2_R1_R3
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/1
ip address 10.1.48.4 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
bandwidth 45000
ip address 150.1.24.4 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 402
ip rsvp bandwidth 45000 45000
!
interface Serial0/1
bandwidth 155000
ip address 150.1.45.4 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
no dce-terminal-timing-enable
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
network 150.1.45.4 0.0.0.0 area 0
!
www.INE.com
Version 1.0
router bgp 1
neighbor 10.1.48.8 remote-as 3
neighbor 150.1.3.3 remote-as 1
neighbor 150.1.3.3 update-source Loopback0
neighbor 150.1.3.3 next-hop-self
!
ip explicit-path name R5_R2_R1_R3 enable
next-address 150.1.45.5
next-address 150.1.25.2
next-address 150.1.12.1
next-address 150.1.13.3
next-address 150.1.3.3
R5#
ip cef
mpls traffic-eng tunnels
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.2 point-to-point
bandwidth 45000
ip address 150.1.25.5 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
frame-relay interface-dlci 502
ip rsvp bandwidth 45000 45000
!
interface Serial0/1
bandwidth 155000
ip address 150.1.45.5 255.255.255.0
mpls traffic-eng tunnels
tag-switching ip
clockrate 64000
ip rsvp bandwidth 155000 155000
!
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
network 150.1.5.5 0.0.0.0 area 0
network 150.1.25.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 24
!
interface FastEthernet0/2
switchport access vlan 24
www.INE.com
Version 1.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
router bgp 2
network 10.1.7.0 mask 255.255.255.0
neighbor 10.1.37.3 remote-as 1
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/4
no switchport
ip address 10.1.48.8 255.255.255.0
!
router bgp 3
network 10.1.8.0 mask 255.255.255.0
neighbor 10.1.48.4 remote-as 1
Verification
SW1#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [20/0] via 10.1.37.3, 00:21:40
C
10.1.7.0 is directly connected, Loopback0
C
10.1.37.0 is directly connected, FastEthernet0/3
SW2#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
C
10.1.8.0 is directly connected, Loopback0
B
10.1.7.0 [20/0] via 10.1.48.4, 00:21:49
C
10.1.48.0 is directly connected, FastEthernet0/4
SW1#ping 10.1.8.8 source 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.8.8, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/88/88 ms
R3#show ip route
<output omitted>
10.0.0.0/24 is subnetted, 3 subnets
B
10.1.8.0 [200/0] via 150.1.4.4, 00:01:52
B
10.1.7.0 [20/0] via 10.1.37.7, 01:57:07
C
10.1.37.0 is directly connected, Ethernet0/0
150.1.0.0/16 is variably subnetted, 10 subnets, 2 masks
O
150.1.25.0/24 [110/4] via 150.1.13.1, 00:00:29, Serial1/2
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Path: valid
Signalling: connected
Path: valid
Signalling: connected
path option 1, type explicit R1_R2_R5_R4 (Basis for Setup, path weight 5)
Config Parameters:
Bandwidth: 3333
kbps (Global) Priority: 1 1
Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled
LockDown: disabled Loadshare: 3333
bw-based
auto-bw: disabled
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Path: valid
Signalling: connected
Path: valid
Signalling: connected
path option 1, type explicit R5_R2_R1_R3 (Basis for Setup, path weight 5)
Config Parameters:
Bandwidth: 3333
kbps (Global) Priority: 1 1
Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled
LockDown: disabled Loadshare: 3333
bw-based
auto-bw: disabled
InLabel : OutLabel : Serial0/1, 24
RSVP Signalling Info:
Src 150.1.4.4, Dst 150.1.3.3, Tun_Id 1, Tun_Instance 13
RSVP Path Info:
My Address: 150.1.4.4
Explicit Route: 150.1.45.5 150.1.25.2 150.1.12.2 150.1.12.1
150.1.13.3 150.1.3.3
Record Route: NONE
Tspec: ave rate=3333 kbits, burst=1000 bytes, peak rate=3333 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=3333 kbits, burst=1000 bytes, peak rate=3333 kbits
History:
www.INE.com
Version 1.0
Tunnel:
Time since created: 27 minutes
Time since path change: 9 minutes, 18 seconds
Current LSP:
Uptime: 9 minutes, 18 seconds
Prior LSP:
ID: path option 1 [12]
Removal Trigger: tunnel shutdown
LSP Tunnel R3_t0 is signalled, connection is up
InLabel : Serial0/0.1, implicit-null
OutLabel : RSVP Signalling Info:
Src 150.1.3.3, Dst 150.1.4.4, Tun_Id 0, Tun_Instance 5
RSVP Path Info:
My Address: 150.1.4.4
Explicit Route: NONE
Record Route: NONE
Tspec: ave rate=6667 kbits, burst=1000 bytes, peak rate=6667 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=6667 kbits, burst=1000 bytes, peak rate=6667 kbits
LSP Tunnel R3_t1 is signalled, connection is up
InLabel : Serial0/1, implicit-null
OutLabel : RSVP Signalling Info:
Src 150.1.3.3, Dst 150.1.4.4, Tun_Id 1, Tun_Instance 16
RSVP Path Info:
My Address: 150.1.4.4
Explicit Route: NONE
Record Route: NONE
Tspec: ave rate=3333 kbits, burst=1000 bytes, peak rate=3333 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=3333 kbits, burst=1000 bytes, peak rate=3333 kbits
www.INE.com
Version 1.0
MPLS QoS
Objective: Configure the MPLS network so that all VoIP traffic between SW1
and SW2 is guaranteed 640Kbps of priority throughout the provider
network even if the link between R2 and R4 is down.
Fa0/3
.7
RIPv2
BGP
AS 1
10.1.37.0/24
SW1
E0/0
R3
.3
.3
.3
S1/2
150.1.13.0/24
S0/1
.1
R1
Fa0/0 .1
150.1.12.0/24 VLAN 12
S0/0.2
Fa0/0
.2
OSPF
Area 0
.2
R2
205
Frame Relay
S0/0.1
.2
150.1.25.0/24
204
Frame Relay
502
150.1.24.0/24
402
.5
S0/0.2
S0/1
R5
S0/0.1
.4
.5
.4
S0/1
.4
R4
BGP
AS 1
E0/1
10.1.48.0/24
10.1.45.0/24
RIPv2
.8
Fa0/4
Copyright 2010 Internetwork Expert
- 258 -
SW2
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
!
class-map match-all MPLS_EXP_5
match mpls experimental topmost 5
class-map match-all MPLS_EXP_1
match mpls experimental topmost 1
!
policy-map TO_P
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
www.INE.com
Version 1.0
policy-map TO_PE
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.1 255.255.255.0
service-policy output TO_P
tag-switching ip
!
interface Serial0/1
bandwidth 155000
ip address 150.1.13.1 255.255.255.0
service-policy output TO_PE
tag-switching ip
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
R2#
ip cef
!
class-map match-all MPLS_EXP_5
match mpls experimental topmost 5
class-map match-all MPLS_EXP_1
match mpls experimental topmost 1
!
policy-map TO_P
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
policy-map TO_PE
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.12.2 255.255.255.0
service-policy output TO_P
tag-switching ip
!
www.INE.com
Version 1.0
interface Serial0/0
bandwidth 45000
service-policy output TO_PE
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.24.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 204
!
interface Serial0/0.2 point-to-point
ip address 150.1.25.2 255.255.255.0
tag-switching ip
frame-relay interface-dlci 205
!
router ospf 1
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
network 150.1.25.2 0.0.0.0 area 0
R3#
ip cef
!
ip vrf SW1-SW2
rd 1:100
route-target export 1:100
route-target import 1:100
!
class-map match-all VoIP
match access-group name VoIP
class-map match-all QOS_GROUP_1
match qos-group 1
class-map match-all QOS_GROUP_5
match qos-group 5
class-map match-all MPLS_EXP_5
match mpls experimental topmost 5
class-map match-all MPLS_EXP_1
match mpls experimental topmost 1
!
policy-map TO_P
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
policy-map FROM_P
class MPLS_EXP_5
set qos-group 5
class MPLS_EXP_1
set qos-group 1
policy-map TO_CE
class QOS_GROUP_5
priority 640
class QOS_GROUP_1
bandwidth 1000
random-detect
www.INE.com
Version 1.0
policy-map FROM_CE
class VoIP
set qos-group 5
set mpls experimental imposition 5
class class-default
set qos-group 1
set mpls experimental imposition 1
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding SW1-SW2
ip address 10.1.37.3 255.255.255.0
service-policy input FROM_CE
service-policy output TO_CE
!
interface Serial1/2
bandwidth 155000
ip address 150.1.13.3 255.255.255.0
tag-switching ip
clockrate 64000
service-policy input FROM_P
service-policy output TO_P
!
router ospf 1
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
router rip
!
address-family ipv4 vrf SW1-SW2
redistribute bgp 1 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 1
neighbor 150.1.4.4 remote-as 1
neighbor 150.1.4.4 update-source Loopback0
neighbor 150.1.4.4 next-hop-self
!
address-family vpnv4
neighbor 150.1.4.4 activate
neighbor 150.1.4.4 send-community both
exit-address-family
!
address-family ipv4 vrf SW1-SW2
redistribute rip
exit-address-family
!
ip access-list extended VoIP
permit udp any any range 16384 32767 dscp ef
www.INE.com
Version 1.0
R4#
ip cef
!
ip vrf SW1-SW2
rd 1:100
route-target export 1:100
route-target import 1:100
!
class-map match-all VoIP
match access-group name VoIP
class-map match-all QOS_GROUP_1
match qos-group 1
class-map match-all QOS_GROUP_5
match qos-group 5
class-map match-all MPLS_EXP_5
match mpls experimental topmost 5
class-map match-all MPLS_EXP_1
match mpls experimental topmost 1
!
!
policy-map TO_P
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
policy-map FROM_P
class MPLS_EXP_5
set qos-group 5
class MPLS_EXP_1
set qos-group 1
policy-map TO_CE
class QOS_GROUP_5
priority 640
class QOS_GROUP_1
bandwidth 1000
random-detect
policy-map FROM_CE
class VoIP
set qos-group 5
set mpls experimental imposition 5
class class-default
set qos-group 1
set mpls experimental imposition 1
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Serial0/0
bandwidth 45000
encapsulation frame-relay
frame-relay lmi-type cisco
service-policy input FROM_P
service-policy output TO_P
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
policy-map TO_P
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
policy-map TO_PE
class MPLS_EXP_5
priority 640
class MPLS_EXP_1
bandwidth 1000
random-detect
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Serial0/0
bandwidth 45000
encapsulation frame-relay
service-policy output TO_P
!
interface Serial0/0.2 point-to-point
ip address 150.1.25.5 255.255.255.0
tag-switching ip
frame-relay interface-dlci 502
!
interface Serial0/1
bandwidth 155000
ip address 150.1.45.5 255.255.255.0
tag-switching ip
clockrate 64000
service-policy output TO_PE
!
router ospf 1
network 150.1.5.5 0.0.0.0 area 0
network 150.1.25.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/1
switchport access vlan 12
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport access vlan 12
switchport mode dynamic desirable
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
www.INE.com
Version 1.0
router rip
version 2
network 10.0.0.0
no auto-summary
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/4
no switchport
ip address 10.1.48.8 255.255.255.0
!
router rip
version 2
network 10.0.0.0
no auto-summary
Verification
Generate UDP traffic to simulate VoIP stream on SW1:
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#rtr 1
SW1(config-rtr)# type udpEcho dest-ipaddr 10.1.8.8 dest-port 20000
source-ipaddr 10.1.7.7 control disable
SW1(config-rtr-udp)# tos 184
SW1(config-rtr-udp)# timeout 0
SW1(config-rtr-udp)# frequency 1
SW1(config-rtr-udp)#rtr schedule 1 life 10 start-time now
SW1(config)#end
SW1#
Generate ICMP traffic to simulate other traffic on SW1:
SW1#ping 10.1.8.8 source 10.1.7.7 repeat 20
Type escape sequence to abort.
Sending 20, 100-byte ICMP Echos to 10.1.8.8, timeout is 2 seconds:
Packet sent with a source address of 10.1.7.7
!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (20/20), round-trip min/avg/max = 88/91/92 ms
www.INE.com
Version 1.0
Transmitted
pkts/bytes
20/2280
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Random drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Tail drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Minimum Maximum
thresh thresh
20
40
22
40
24
40
26
40
28
40
30
40
32
40
34
40
36
40
Mark
prob
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
www.INE.com
Version 1.0
Transmitted
pkts/bytes
15/1710
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Random drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Tail drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Minimum Maximum
thresh thresh
20
40
22
40
24
40
26
40
28
40
30
40
32
40
34
40
36
40
Mark
prob
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
www.INE.com
Version 1.0
Transmitted
pkts/bytes
0/0
40/4660
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Random drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Tail drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Minimum Maximum
thresh thresh
20
40
22
40
24
40
26
40
28
40
30
40
32
40
34
40
36
40
Mark
prob
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
www.INE.com
Transmitted
pkts/bytes
0/0
15/1620
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Random drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Version 1.0
Tail drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Minimum Maximum
thresh thresh
20
40
22
40
24
40
26
40
28
40
30
40
32
40
34
40
36
40
Mark
prob
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
Minimum Maximum
thresh thresh
20
40
22
40
24
40
26
40
28
40
30
40
32
40
34
40
36
40
Mark
prob
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
Transmitted
pkts/bytes
0/0
15/1830
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Random drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Tail drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
www.INE.com
Version 1.0
Transmitted
pkts/bytes
0/0
40/4100
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Random drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Tail drop
pkts/bytes
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
0/0
Minimum Maximum
thresh thresh
20
40
22
40
24
40
26
40
28
40
30
40
32
40
34
40
36
40
Mark
prob
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
1/10
www.INE.com
Version 1.0
RIPv2
E0/0
R3
10.1.37.0/24
.7
BGP
AS 100
SW1
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
150.1.12.0/24
R1
Frame Relay
.1
S0/0.1
102
201
.2
S0/0.1
IS-IS
Level 2
R2
Fa0/0
.2
E0/0
.4
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
.4
405
504
.5
S0/0.1
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
RIPv2
Fa0/6
SW2
10.1.68.0/24
.6
R6
BGP
AS 100
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip cef
ip multicast-routing
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip router isis
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip router isis
ip pim sparse-mode
tag-switching ip
www.INE.com
Version 1.0
www.INE.com
Version 1.0
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
ip router isis
ip pim sparse-mode
!
interface Ethernet0/0
ip vrf forwarding SW1-SW2
ip address 10.1.37.3 255.255.255.0
ip pim sparse-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip router isis
ip pim sparse-mode
tag-switching ip
clockrate 64000
!
router isis
net 00.0000.0000.0003.00
is-type level-2-only
!
router rip
!
address-family ipv4 vrf SW1-SW2
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.6.6 remote-as 100
neighbor 150.1.6.6 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.6.6 activate
neighbor 150.1.6.6 send-community extended
exit-address-family
!
address-family ipv4 vrf SW1-SW2
redistribute rip
exit-address-family
!
ip pim ssm default
ip pim vrf SW1-SW2 rp-address 10.1.37.7
R4#
ip cef
ip multicast-routing
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip router isis
www.INE.com
Version 1.0
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip router isis
ip pim sparse-mode
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip router isis
ip pim sparse-mode
tag-switching ip
frame-relay interface-dlci 405
!
router isis
net 00.0000.0000.0004.00
is-type level-2-only
!
ip pim ssm default
R5#
ip cef
ip multicast-routing
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
ip router isis
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip router isis
ip pim sparse-mode
tag-switching ip
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip router isis
ip pim sparse-mode
tag-switching ip
frame-relay interface-dlci 504
!
router isis
net 00.0000.0000.0005.00
is-type level-2-only
!
ip pim ssm default
www.INE.com
Version 1.0
R6#
ip cef
!
ip multicast-routing
ip multicast-routing vrf SW1-SW2
!
ip vrf SW1-SW2
rd 100:1
route-target export 100:1
route-target import 100:1
mdt default 232.0.0.1
!
mpls label protocol ldp
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
ip router isis
ip pim sparse-mode
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip router isis
ip pim sparse-mode
mpls ip
!
interface GigabitEthernet0/1
ip vrf forwarding SW1-SW2
ip address 10.1.68.6 255.255.255.0
ip pim sparse-mode
!
router isis
net 00.0000.0000.0006.00
is-type level-2-only
!
router rip
!
address-family ipv4 vrf SW1-SW2
redistribute bgp 100 metric 1
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
neighbor 150.1.3.3 remote-as 100
neighbor 150.1.3.3 update-source Loopback0
!
address-family vpnv4
neighbor 150.1.3.3 activate
neighbor 150.1.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf SW1-SW2
redistribute rip
exit-address-family
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Verification
R3#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.13.1
Serial1/2
Uptime/Expires
Ver
DR
Prio/Mode
1 / S
04:36:04/00:01:22 v2
Uptime/Expires
Ver
DR
Prio/Mode
1 / DR S
1 / DR S
04:36:13/00:01:22 v2
00:04:00/00:01:40 v2
DR Priority,
Ver
DR
Prio/Mode
1 / DR S
1 / S
v2
v2
R6#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
www.INE.com
Version 1.0
SW1#
PIM(0): Received v2 Join/Prune on FastEthernet0/3 from 10.1.37.3, to us
PIM(0): Join-list: (*, 224.1.1.1), RPT-bit set, WC-bit set, S-bit set
PIM(0): Check RP 10.1.37.7 into the (*, 224.1.1.1) entry
PIM(0): Add FastEthernet0/3/10.1.37.3 to (*, 224.1.1.1), Forward state,
by PIM *G Join
PIM(0): Building Periodic Join/Prune message for 224.1.1.1
SW1 generates traffic to 224.1.1.1:
SW1#ping 224.1.1.1 repeat 100
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to 224.1.1.1, timeout is 2 seconds:
PIM(0): Received v2 Join/Prune on FastEthernet0/3 from 10.1.37.3, to us
PIM(0): Prune-list: (10.1.37.7/32, 224.1.1.1) RPT-bit set
Reply to request 0 from 10.1.68.8, 176 ms
Reply to request 1 from 10.1.68.8, 160 ms
Reply to request 2 from 10.1.68.8, 160 ms
<output omitted>
R3 recieves multicast feed via VRF SW1-SW2 and tunnels it as 232.0.0.1:
R3#debug ip mpacket
IP multicast packets debugging is on
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int e0/0
R3(config-if)#no ip mroute-cache
IP(1): s=10.1.37.7 (Ethernet0/0) d=224.1.1.1 (Tunnel0) id=40, ttl=254,
prot=1, len=100(100), mforward
IP(0): s=150.1.3.3 (Loopback0) d=232.0.0.1 (Serial1/2) id=912, ttl=255,
prot=47, len=124(124), mforward
R6 decapsulates tunneled mpacket and forwards it to VRF SW1-SW2:
R6#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#int g0/0
R6(config-if)#no ip mroute-cache
R6(config-if)#do debug ip mpacket
IP multicast packets debugging is on
IP(1): s=10.1.37.7 (Tunnel0) d=224.1.1.1 (GigabitEthernet0/1) id=76,
ttl=253, prot=1, len=100(100), mforward
www.INE.com
Version 1.0
www.INE.com
Version 1.0
L2 VPNs: AToM
Objective: Configure L2 VPN between R1 and R2 so that R4 and R6 can reach
each other as if they were directly connected.
E0/0
OSPF
Area 2
F1/0
150.1.25.0/24
S2/0.1
Frame Relay
.5
502
R2
.2
10.1.46.0/24 VLAN 24
.4
R4
205
S0/0.1
R5
E0/0
.5
150.1.35.0/24 VLAN 35
.3
E0/1
R3
.3
S0/0.1
Frame Relay
301
OSPF
Area 1
103
.1
150.1.13.0/24
F1/0
S2/0.1
R1
10.1.46.0/24 VLAN16
OSPF
Area 0
.6
E0/1
R6
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
hostname R1
!
interface Loopback 0
ip address 150.1.1.1 255.255.255.255
!
mpls ip
mpls label protocol ldp
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.2.2 406 encapsulation mpls
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 103
ip address 150.1.13.1 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 1
R2#
hostname R2
!
interface Loopback 0
ip address 150.1.2.2 255.255.255.255
!
mpls ip
mpls label protocol ldp
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.1.1 406 encapsulation mpls
www.INE.com
Version 1.0
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 205
ip address 150.1.25.2 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 2
R3#
hostname R3
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet 0/1
no shutdown
ip address 150.1.35.3 255.255.255.0
mpls ip
!
interface Serial 1/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 1/0.1 point-to-point
frame-relay interface-dlci 301
ip address 150.1.13.3 255.255.255.0
mpls ip
!
router ospf 1
network 150.1.13.3 0.0.0.0 area 1
network 150.1.35.3 0.0.0.0 area 0
network 150.1.3.3 0.0.0.0 area 1
R4#
hostname R4
!
interface Ethernet 0/0
no shutdown
ip address 10.1.46.4 255.255.255.0
!
no ip routing
R5#
hostname R5
mpls label protocol ldp
!
mpls ip
www.INE.com
Version 1.0
!
interface Loopback 0
ip address 150.1.5.5 255.255.255.255
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 502
ip address 150.1.25.5 255.255.255.0
mpls ip
!
interface Ethernet 0/0
no shutdown
ip address 150.1.35.5 255.255.255.0
mpls ip
!
router ospf 1
network 150.1.25.5 0.0.0.0 area 2
network 150.1.35.5 0.0.0.0 area 0
network 150.1.5.5 0.0.0.0 area 2
R6#
hostname R6
!
interface Ethernet 0/1
no shutdown
ip address 10.1.46.6 255.255.255.0
!
no ip routing
R7#
hostname R7
!
vtp mode transparent
vlan 24,35,16
!
interface FastEthernet 0/1
switchport host
switchport access vlan 16
!
interface FastEthernet 0/2
switchport host
switchport access vlan 24
!
interface FastEthernet 0/4
switchport host
switchport access vlan 24
!
interface FastEthernet 0/5
switchport host
switchport access vlan 35
www.INE.com
Version 1.0
R8#
hostname R8
!
vtp mode transparent
vlan 24,35,16
!
interface FastEthernet 0/3
switchport host
switchport access vlan 35
!
interface FastEthernet 0/6
switchport host
switchport access vlan 16
Verification
Check for end-to-end LSPs between R1 and R2:
R1#show mpls forwarding-table 150.1.2.2
Local Outgoing
Prefix
Bytes Label
Hop
Label Label or VC
or Tunnel Id
Switched
19
17
150.1.2.2/32
0
point2point
Outgoing
Next
interface
Se2/0.1
R1#traceroute 150.1.2.2
Type escape sequence to abort.
Tracing the route to 150.1.2.2
1 150.1.13.3 [MPLS: Label 17 Exp 0] 152 msec 152 msec 148 msec
2 150.1.35.5 [MPLS: Label 18 Exp 0] 152 msec 152 msec 152 msec
3 150.1.25.2 56 msec * 56 msec
R2#show mpls forwarding-table 150.1.1.1
Local Outgoing
Prefix
Bytes Label
Hop
Label Label or VC
or Tunnel Id
Switched
18
20
150.1.1.1/32
0
point2point
Outgoing
Next
interface
Se2/0.1
www.INE.com
Version 1.0
R2#traceroute 150.1.1.1
Type escape sequence to abort.
Tracing the route to 150.1.1.1
1 150.1.25.5 [MPLS: Label 20 Exp 0] 148 msec 152 msec 152 msec
2 150.1.35.3 [MPLS: Label 20 Exp 0] 152 msec 148 msec 156 msec
3 150.1.13.1 60 msec * 56 msec
Check the VC status. The interface type, MTU size, and VC ID should
match on both sides. You should see a label stack generated for this
connection.
R1#show mpls l2transport vc detail
Local interface: Fa1/0 up, line protocol up, Ethernet up
Destination address: 150.1.2.2, VC ID: 406, VC status: up
Output interface: Se2/0.1, imposed label stack {21 17}
Preferred path: not configured
Default path: active
Tunnel label: 17, next hop point2point
Create time: 00:13:38, last status change time: 00:13:32
Signaling protocol: LDP, peer 150.1.2.2:0 up
MPLS VC labels: local 24, remote 21
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive disabled, send disabled
VC statistics:
packet totals: receive 105, send 507
byte totals:
receive 10604, send 42799
packet drops: receive 0, send 0
Verify connectivity:
R4#ping 10.1.46.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.46.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 140/143/148
ms
www.INE.com
Version 1.0
OSPF
Area 2
F1/0
150.1.25.0/24
S2/0.1
Frame Relay
502
.5
BGP
AS 200
R2
.2
10.1.46.0/24 VLAN 24
.4
R4
205
S0/0.1
R5
E0/0
.5
150.1.35.0/24 VLAN 35
E0/1
R3
.3
.3
S0/0.1
Frame Relay
301
OSPF
Area 1
103
.1
150.1.13.0/24
F1/0
S2/0.1
R1
10.1.46.0/24 VLAN16
BGP
AS 100
.6
E0/1
R6
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
hostname R1
!
interface Loopback 0
ip address 150.1.1.1 255.255.255.255
!
mpls ip
mpls label protocol ldp
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.2.2 406 encapsulation mpls
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 103
ip address 150.1.13.1 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 1
R2#
hostname R2
!
interface Loopback 0
ip address 150.1.2.2 255.255.255.255
!
www.INE.com
Version 1.0
mpls ip
mpls label protocol ldp
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.1.1 406 encapsulation mpls
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 205
ip address 150.1.25.2 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 2
R3#
hostname R3
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet 0/1
no shutdown
ip address 150.1.35.3 255.255.255.0
!
interface Serial 1/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 1/0.1 point-to-point
frame-relay interface-dlci 301
ip address 150.1.13.3 255.255.255.0
mpls ip
!
router bgp 100
neighbor 150.1.35.5 remote-as 200
neighbor 150.1.35.5 send-label
network 150.1.1.1 mask 255.255.255.255
!
router ospf 1
network 150.1.13.3 0.0.0.0 area 1
network 150.1.3.3 0.0.0.0 area 1
redistribute bgp 100 subnets
!
www.INE.com
Version 1.0
R4#
hostname R4
!
interface Ethernet 0/0
no shutdown
ip address 10.1.46.4 255.255.255.0
!
no ip routing
R5#
hostname R5
mpls label protocol ldp
!
mpls ip
!
interface Loopback 0
ip address 150.1.5.5 255.255.255.255
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 502
ip address 150.1.25.5 255.255.255.0
mpls ip
!
interface Ethernet 0/0
no shutdown
ip address 150.1.35.5 255.255.255.0
!
router bgp 200
neighbor 150.1.35.3 remote-as 100
neighbor 150.1.35.3 send-label
network 150.1.2.2 mask 255.255.255.255
!
router ospf 1
network 150.1.25.5 0.0.0.0 area 2
network 150.1.5.5 0.0.0.0 area 2
redistribute bgp 200 subnets
R6#
hostname R6
!
interface Ethernet 0/1
no shutdown
ip address 10.1.46.6 255.255.255.0
R7#
hostname R7
!
vtp mode transparent
vlan 24,35,16
!
interface FastEthernet 0/1
www.INE.com
Version 1.0
switchport host
switchport access vlan 16
!
interface FastEthernet 0/2
switchport host
switchport access vlan 24
!
interface FastEthernet 0/4
switchport host
switchport access vlan 24
!
interface FastEthernet 0/5
switchport host
switchport access vlan 35
R8#
hostname R8
!
vtp mode transparent
vlan 24,35,16
!
interface FastEthernet 0/3
switchport host
switchport access vlan 35
!
interface FastEthernet 0/6
switchport host
switchport access vlan 16
Verification
Check for end-to-end LSPs between R1 and R2:
R3#show ip bgp labels
Network
Next Hop
150.1.1.1/32
150.1.13.1
150.1.2.2/32
150.1.35.5
In Label/Out Label
20/nolabel
19/18
In Label/Out Label
17/20
18/nolabel
Outgoing
Next
interface
Se2/0.1
www.INE.com
Version 1.0
Outgoing
Next
interface
Se2/0.1
R1#traceroute
Protocol [ip]:
Target IP address: 150.1.2.2
Source address: 150.1.1.1
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 150.1.2.2
1 150.1.13.3 [MPLS: Label 19 Exp 0] 148 msec 152 msec 152 msec
2 150.1.35.5 [MPLS: Label 18 Exp 0] 148 msec 148 msec 152 msec
3 150.1.25.2 60 msec * 56 msec
Check the VC status. The interface type, MTU size, and VC ID should
match on both sides. You should see a label stack generated for this
connection.
R1#show mpls l2transport vc detail
Local interface: Fa1/0 up, line protocol up, Ethernet up
Destination address: 150.1.2.2, VC ID: 406, VC status: up
Output interface: Se2/0.1, imposed label stack {21 19}
Preferred path: not configured
Default path: active
Tunnel label: 19, next hop point2point
Create time: 00:48:57, last status change time: 00:11:36
Signaling protocol: LDP, peer 150.1.2.2:0 up
MPLS VC labels: local 24, remote 21
Group ID: local 0, remote 0
MTU: local 1500, remote 1500
Remote interface description:
Sequencing: receive disabled, send disabled
VC statistics:
packet totals: receive 340, send 428
byte totals:
receive 34913, send 35944
packet drops: receive 0, send 0
www.INE.com
Version 1.0
Verify connectivity:
R4#ping 10.1.46.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.46.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 140/143/148
ms
www.INE.com
Version 1.0
www.INE.com
Version 1.0
L2 VPNs: IP Interworking
Objective: Configure L2 VPN between R1 and R2 so that R4 and R6 can reach
each other as if they were directly connected. R4 and R6 should use
different L2 connection technologies.
R3
10.1.36.0/24
.3
S1/3
203
203
Frame Relay
S2/1
OSPF
Area 2
150.1.25.0/24
S2/0.1
Frame Relay
.5
502
R2
.2
205
S0/0.1
R5
E0/0
.5
150.1.45.0/24 VLAN 45
.4
E0/1
R4
.4
S0/0.1
Frame Relay
401
OSPF
Area 1
104
.1
150.1.14.0/24
F1/0
S2/0.1
R1
10.1.36.0/24 VLAN16
OSPF
Area 0
.6
E0/1
R6
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
hostname R1
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
ip address 150.1.1.1 255.255.255.255
!
pseudowire-class IP_INTERWORKING
encapsulation mpls
interworking ip
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.2.2 406 encapsulation mpls pw-class IP_INTERWORKING
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 104
ip address 150.1.14.1 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 1
R2#
hostname R2
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
!
interface Ethernet 0/1
no shutdown
ip address 150.1.45.4 255.255.255.0
mpls ip
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 401
ip address 150.1.14.4 255.255.255.0
mpls ip
!
router ospf 1
network 150.1.14.4 0.0.0.0 area 1
network 150.1.45.4 0.0.0.0 area 0
network 150.1.4.4 0.0.0.0 area 1
R5#
hostname R5
!
mpls label protocol ldp
mpls ip
!
interface Loopback 0
ip address 150.1.5.5 255.255.255.255
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 502
ip address 150.1.25.5 255.255.255.0
mpls ip
!
interface Ethernet 0/0
no shutdown
ip address 150.1.45.5 255.255.255.0
mpls ip
!
router ospf 1
network 150.1.25.5 0.0.0.0 area 2
network 150.1.45.5 0.0.0.0 area 0
network 150.1.5.5 0.0.0.0 area 2
R6#
hostname R6
!
interface Ethernet 0/1
no shutdown
ip address 10.1.36.6 255.255.255.0
!
www.INE.com
Version 1.0
no ip routing
R7#
hostname R7
!
vtp mode transparent
vlan 45,16
!
interface FastEthernet 0/1
switchport host
switchport access vlan 16
!
interface FastEthernet 0/5
switchport host
switchport access vlan 45
R8#
hostname R8
!
vtp mode transparent
vlan 45,16
!
interface FastEthernet 0/4
switchport host
switchport access vlan 45
!
interface FastEthernet 0/6
switchport host
switchport access vlan 16
www.INE.com
Version 1.0
Verification
Check for end-to-end LSPs between R1 and R2:
R1#show mpls forwarding-table 150.1.2.2
Local Outgoing
Prefix
Bytes Label
Hop
Label Label or VC
or Tunnel Id
Switched
20
19
150.1.2.2/32
0
point2point
Outgoing
Next
interface
Se2/0.1
R1#traceroute 150.1.2.2
Type escape sequence to abort.
Tracing the route to 150.1.2.2
1 150.1.14.4 [MPLS: Label 19 Exp 0] 152 msec 148 msec 152 msec
2 150.1.45.5 [MPLS: Label 19 Exp 0] 148 msec 152 msec 148 msec
3 150.1.25.2 60 msec * 56 msec
R2#show mpls forwarding-table 150.1.1.1
Local Outgoing
Prefix
Bytes Label
Hop
Label Label or VC
or Tunnel Id
Switched
17
16
150.1.1.1/32
0
point2point
Outgoing
Next
interface
Se2/0.1
R2#traceroute 150.1.1.1
Type escape sequence to abort.
Tracing the route to 150.1.1.1
1 150.1.25.5 [MPLS: Label 16 Exp 0] 148 msec 164 msec 152 msec
2 150.1.45.4 [MPLS: Label 16 Exp 0] 148 msec 152 msec 148 msec
3 150.1.14.1 56 msec * 56 msec
Check the connection status between R2 and R3. Since this is an FR
link, R3 should learn the DLCI vi LMI.
R3#show frame-relay pvc | inc 203
DLCI = 203, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE =
Serial1/3.1
R2#show frame-relay pvc | inc 203
DLCI = 203, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE =
Serial2/1
Check the L2 VPN VC status. The MTU size, interworking type and VC ID
should match on both sides. You should see a label stack generated for
this connection.
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.36.0/24
.3
BVI1
203
203
Frame Relay
S2/1
OSPF
Area 2
150.1.25.0/24
S2/0.1
Frame Relay
.5
502
R2
.2
205
S0/0.1
R5
E0/0
.5
150.1.45.0/24 VLAN 45
.4
E0/1
R4
.4
S0/0.1
Frame Relay
401
OSPF
Area 1
104
.1
150.1.14.0/24
F1/0
S2/0.1
R1
10.1.36.0/24 VLAN16
OSPF
Area 0
.6
E0/1
R6
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
hostname R1
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
ip address 150.1.1.1 255.255.255.255
!
pseudowire-class ETHERNET_INTERWORKING
encapsulation mpls
interworking ethernet
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.2.2 406 encapsulation mpls pw-class
ETHERNET_INTERWORKING
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 104
ip address 150.1.14.1 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 1
www.INE.com
Version 1.0
R2#
hostname R2
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
ip address 150.1.2.2 255.255.255.255
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 205
ip address 150.1.25.2 255.255.255.0
mpls ip
!
pseudowire-class IP_INTERWORKING
encapsulation mpls
interworking ip
!
frame-relay switching
!
interface Serial 2/1
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay intf-type dce
frame-relay interface-dlci 203 switched
no ip address
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 2
!
pseudowire-class ETHERNET_INTERWORKING
encapsulation mpls
interworking ethernet
!
!
connect R4_TO_R6 Serial2/1 203 l2transport
xconnect 150.1.1.1 406 encapsulation mpls pw-class
ETHERNET_INTERWORKING
R3#
hostname R3
!
interface Serial 1/3
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
clock rate 64000
!
bridge irb
bridge 1 protocol ieee
www.INE.com
Version 1.0
bridge 1 route ip
!
interface Serial 1/3.1 point-to-point
frame-relay interface-dlci 203
no ip address
bridge-group 1
!
interface BVI1
no shutdown
ip address 10.1.36.3 255.255.255.0
R4#
hostname R4
!
mpls ip
mpls label protocol ldp
!
interface Loopback 0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet 0/1
no shutdown
ip address 150.1.45.4 255.255.255.0
mpls ip
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 401
ip address 150.1.14.4 255.255.255.0
mpls ip
!
router ospf 1
network 150.1.14.4 0.0.0.0 area 1
network 150.1.45.4 0.0.0.0 area 0
network 150.1.4.4 0.0.0.0 area 1
R5#
hostname R5
!
mpls label protocol ldp
mpls ip
!
interface Loopback 0
ip address 150.1.5.5 255.255.255.255
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 502
ip address 150.1.25.5 255.255.255.0
www.INE.com
Version 1.0
mpls ip
!
interface Ethernet 0/0
no shutdown
ip address 150.1.45.5 255.255.255.0
mpls ip
!
router ospf 1
network 150.1.25.5 0.0.0.0 area 2
network 150.1.45.5 0.0.0.0 area 0
network 150.1.5.5 0.0.0.0 area 2
R6#
hostname R6
!
interface Ethernet 0/1
no shutdown
ip address 10.1.36.6 255.255.255.0
!
no ip routing
R7#
hostname R7
!
vtp mode transparent
vlan 45,16
!
interface FastEthernet 0/1
switchport host
switchport access vlan 16
!
interface FastEthernet 0/5
switchport host
switchport access vlan 45
R8#
hostname R8
!
vtp mode transparent
vlan 45,16
!
interface FastEthernet 0/4
switchport host
switchport access vlan 45
!
interface FastEthernet 0/6
switchport host
switchport access vlan 16
www.INE.com
Version 1.0
Verification
Check for end-to-end LSPs between R1 and R2:
R1#show mpls forwarding-table 150.1.2.2
Local Outgoing
Prefix
Bytes Label
Hop
Label Label or VC
or Tunnel Id
Switched
20
19
150.1.2.2/32
0
point2point
Outgoing
Next
interface
Se2/0.1
R1#traceroute 150.1.2.2
Type escape sequence to abort.
Tracing the route to 150.1.2.2
1 150.1.14.4 [MPLS: Label 19 Exp 0] 152 msec 148 msec 152 msec
2 150.1.45.5 [MPLS: Label 19 Exp 0] 148 msec 152 msec 148 msec
3 150.1.25.2 60 msec * 56 msec
R2#show mpls forwarding-table 150.1.1.1
Local Outgoing
Prefix
Bytes Label
Hop
Label Label or VC
or Tunnel Id
Switched
17
16
150.1.1.1/32
0
point2point
Outgoing
Next
interface
Se2/0.1
R2#traceroute 150.1.1.1
Type escape sequence to abort.
Tracing the route to 150.1.1.1
1 150.1.25.5 [MPLS: Label 16 Exp 0] 148 msec 164 msec 152 msec
2 150.1.45.4 [MPLS: Label 16 Exp 0] 148 msec 152 msec 148 msec
3 150.1.14.1 56 msec * 56 msec
Check the connection status between R2 and R3. Since this is an FR
link, R3 should learn the DLCI vi LMI.
R3#show frame-relay pvc | inc 203
DLCI = 203, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE =
Serial1/3.1
R2#show frame-relay pvc | inc 203
DLCI = 203, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE =
Serial2/1
Check the L2 VPN VC status. The MTU size, interworking type and VC ID
should match on both sides. You should see a label stack generated for
this connection.
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
L2 VPNs: L2TPv3
Objective: Configure L2 VPN between R1 and R2 so that R4 and R6 can reach
each other as if they were directly connected. Do not use MPLS
encapsulation to accomplish this.
E0/0
OSPF
Area 2
F1/0
150.1.25.0/24
S2/0.1
Frame Relay
.5
502
R2
.2
10.1.46.0/24 VLAN 24
.4
R4
205
S0/0.1
R5
E0/0
.5
150.1.35.0/24 VLAN 35
.3
E0/1
R3
.3
S0/0.1
Frame Relay
301
OSPF
Area 1
103
.1
150.1.13.0/24
F1/0
S2/0.1
R1
10.1.46.0/24 VLAN16
OSPF
Area 0
.6
E0/1
R6
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
hostname R1
!
interface Loopback 0
ip address 150.1.1.1 255.255.255.255
!
pseudowire-class L2TPV3
encapsulation l2tpv3
ip local interface Loopback0
ip dfbit set
ip tos value 96
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.2.2 406 pw-class L2TPV3
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 103
ip address 150.1.13.1 255.255.255.0
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 1
R2#
hostname R2
!
interface Loopback 0
ip address 150.1.2.2 255.255.255.255
!
pseudowire-class L2TPV3
encapsulation l2tpv3
ip local interface Loopback0
www.INE.com
Version 1.0
ip dfbit set
ip tos value 96
!
interface FastEthernet 1/0
no shut
no ip address
xconnect 150.1.1.1 406 pw-class L2TPV3
!
interface Serial 2/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 2/0.1 point-to-point
frame-relay interface-dlci 205
ip address 150.1.25.2 255.255.255.0
!
router ospf 1
network 0.0.0.0 0.0.0.0 area 2
R3#
hostname R3
!
interface Loopback 0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet 0/1
no shutdown
ip address 150.1.35.3 255.255.255.0
!
interface Serial 1/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 1/0.1 point-to-point
frame-relay interface-dlci 301
ip address 150.1.13.3 255.255.255.0
!
router ospf 1
network 150.1.13.3 0.0.0.0 area 1
network 150.1.35.3 0.0.0.0 area 0
network 150.1.3.3 0.0.0.0 area 1
R4#
hostname R4
!
interface Ethernet 0/0
no shutdown
ip address 10.1.46.4 255.255.255.0
!
ip routing
R5#
hostname R5
!
www.INE.com
Version 1.0
interface Loopback 0
ip address 150.1.5.5 255.255.255.255
!
interface Serial 0/0
no shutdown
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial 0/0.1 point-to-point
frame-relay interface-dlci 502
ip address 150.1.25.5 255.255.255.0
!
interface Ethernet 0/0
no shutdown
ip address 150.1.35.5 255.255.255.0
!
router ospf 1
network 150.1.25.5 0.0.0.0 area 2
network 150.1.35.5 0.0.0.0 area 0
network 150.1.5.5 0.0.0.0 area 2
R6#
hostname R6
!
interface Ethernet 0/1
no shutdown
ip address 10.1.46.6 255.255.255.0
!
ip routing
R7#
hostname R7
!
vtp mode transparent
vlan 24,35,16
!
interface FastEthernet 0/1
switchport host
switchport access vlan 16
!
interface FastEthernet 0/2
switchport host
switchport access vlan 24
!
interface FastEthernet 0/4
switchport host
switchport access vlan 24
!
interface FastEthernet 0/5
switchport host
switchport access vlan 35
R8#
hostname R8
!
vtp mode transparent
www.INE.com
Version 1.0
vlan 24,35,16
!
interface FastEthernet 0/3
switchport host
switchport access vlan 35
!
interface FastEthernet 0/6
switchport host
switchport access vlan 16
Verification
Make sure R1 can reach R2s Loobpack0 interface:
R1#ping 150.1.2.2 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.2.2, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/114/116
ms
Check for active L2TPv3 tunnels:
R1#show l2tun tunnel all
Tunnel Information Total tunnels 1 sessions 1
Tunnel id 39693 is up, remote id is 56, 1 active sessions
Tunnel state is established, time since change 00:04:23
Tunnel transport is IP (115)
Remote tunnel name is R2
Internet Address 150.1.2.2, port 0
Local tunnel name is R1
Internet Address 150.1.1.1, port 0
Tunnel domain is
VPDN group for tunnel is L2TP class for tunnel is
181 packets sent, 44 received
13037 bytes sent, 4169 received
Control Ns 8, Nr 6
Local RWS 10000 (default), Remote RWS 10000 (max)
Tunnel PMTU checking disabled
Retransmission time 1, max 1 seconds
Unsent queuesize 0, max 0
Resend queuesize 0, max 2
Total resends 2, ZLB ACKs sent 4
Current nosession queue check 0 of 5
Retransmit time distribution: 0 0 1 0 1 0 0 0 0
Sessions disconnected due to lack of resources 0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim dense-mode
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
R1#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.15.5
FastEthernet0/0
150.1.12.2
Serial0/0.1
150.1.13.3
Serial0/1
R2#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.24.4
FastEthernet0/0
150.1.12.1
Serial0/0.1
R3#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.13.1
Serial1/2
Uptime/Expires
Ver
00:11:55/00:01:38 v2
00:24:00/00:01:21 v2
00:23:55/00:01:28 v2
Uptime/Expires
Ver
00:24:20/00:01:20 v2
00:24:17/00:01:34 v2
Uptime/Expires
Ver
00:24:28/00:01:30 v2
Uptime/Expires
Ver
00:25:01/00:01:30 v2
00:24:40/00:01:43 v2
Uptime/Expires
Ver
00:25:32/00:01:21 v2
00:25:20/00:01:32 v2
00:14:10/00:01:22 v2
DR
Prio/Mode
1 / DR S
1 / S
1 / S
DR
Prio/Mode
1 / DR S
1 / S
DR
Prio/Mode
1 / S
DR
Prio/Mode
1 / S
1 / S
DR
Prio/Mode
1 / DR S
1 / S
1 / S
www.INE.com
Version 1.0
Interface
Uptime/Expires
Ver
GigabitEthernet0/0
00:25:57/00:01:28 v2
DR
Prio/Mode
1 / S
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
www.INE.com
Version 1.0
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 405
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2
www.INE.com
Version 1.0
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 504
!
interface Ethernet0/1
ip address 150.1.15.5 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
www.INE.com
Version 1.0
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
R1#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.15.5
FastEthernet0/0
150.1.12.2
Serial0/0.1
150.1.13.3
Serial0/1
R2#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.24.4
FastEthernet0/0
150.1.12.1
Serial0/0.1
R3#show ip pim neighbor
PIM Neighbor Table
Neighbor
Interface
Address
150.1.13.1
Serial1/2
Uptime/Expires
Ver
00:11:55/00:01:38 v2
00:24:00/00:01:21 v2
00:23:55/00:01:28 v2
Uptime/Expires
Ver
00:24:20/00:01:20 v2
00:24:17/00:01:34 v2
Uptime/Expires
Ver
00:24:28/00:01:30 v2
DR
Prio/Mode
1 / DR S
1 / S
1 / S
DR
Prio/Mode
1 / DR S
1 / S
DR
Prio/Mode
1 / S
www.INE.com
Version 1.0
Uptime/Expires
Ver
00:25:01/00:01:30 v2
00:24:40/00:01:43 v2
Uptime/Expires
Ver
00:25:32/00:01:21 v2
00:25:20/00:01:32 v2
00:14:10/00:01:22 v2
DR
Prio/Mode
1 / S
1 / S
DR
Prio/Mode
1 / DR S
1 / S
1 / S
www.INE.com
Version 1.0
www.INE.com
Version 1.0
R1#show ip mroute
<output omitted>
(*, 224.1.1.1), 00:03:12/stopped, RP 150.1.2.2, flags: SP
Incoming interface: Serial0/0.1, RPF nbr 150.1.12.2
Outgoing interface list: Null
(10.1.37.7, 224.1.1.1), 00:03:12/00:03:24, flags: T
Incoming interface: Serial0/1, RPF nbr 150.1.13.3
Outgoing interface list:
Serial0/0.1, Forward/Sparse, 00:03:12/00:03:15
FastEthernet0/0, Forward/Sparse, 00:03:09/00:03:18
(*, 224.0.1.40), 00:10:38/00:02:44, RP 150.1.2.2, flags: SJCL
Incoming interface: Serial0/0.1, RPF nbr 150.1.12.2
Outgoing interface list:
R5#show ip mroute
<output omitted>
(*, 224.1.1.1), 00:04:58/00:03:29, RP 150.1.2.2, flags: S
Incoming interface: Serial0/0.1, RPF nbr 150.1.45.4
Outgoing interface list:
Ethernet0/0, Forward/Sparse, 00:04:58/00:03:29
(10.1.37.7, 224.1.1.1), 00:04:55/00:03:24, flags: T
Incoming interface: Ethernet0/1, RPF nbr 150.1.15.1
Outgoing interface list:
Ethernet0/0, Forward/Sparse, 00:04:55/00:03:29
<output omitted>
R6#show ip mroute
<output omitted>
(*, 224.1.1.1), 00:05:24/stopped, RP 150.1.2.2, flags: SJC
Incoming interface: GigabitEthernet0/0, RPF nbr 150.1.56.5
Outgoing interface list:
GigabitEthernet0/1, Forward/Sparse, 00:05:24/00:02:51
(10.1.37.7, 224.1.1.1), 00:05:21/00:02:55, flags: JT
Incoming interface: GigabitEthernet0/0, RPF nbr 150.1.56.5
Outgoing interface list:
GigabitEthernet0/1, Forward/Sparse, 00:05:21/00:02:51
<output omitted>
R6 forwards multicast feed to SW2:
R6#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#int g0/0
R6(config-if)#no ip mroute-cache
R6(config-if)#do debug ip mpacket
IP multicast packets debugging is on
IP(0): s=10.1.37.7 (GigabitEthernet0/0) d=224.1.1.1
(GigabitEthernet0/1) id=0, ttl=251, prot=17, len=44(44), mforward
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
www.INE.com
Version 1.0
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim dense-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim dense-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 405
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip mroute 10.1.37.0 255.255.255.0 150.1.24.2
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
www.INE.com
Version 1.0
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 504
!
interface Ethernet0/1
ip address 150.1.15.5 255.255.255.0
ip pim dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip mroute 10.1.37.0 255.255.255.0 150.1.45.4
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim dense-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
www.INE.com
Version 1.0
Verification
SW1 generates multicast feed:
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#rtr 1
SW1(config-rtr)#type udpEcho dest-ipaddr 224.1.1.1 dest-port 12345
source-ipaddr 10.1.37.7 control disable
SW1(config-rtr-udp)#frequency 5
SW1(config-rtr-udp)#timeout 0
SW1(config-rtr-udp)#exit
SW1(config)#rtr schedule 1 start now
SW1(config)#end
SW1#
SW2 requests to traffic for the group 224.1.1.1:
SW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#int fa0/6
SW2(config-if)#ip igmp join-group 224.1.1.1
SW2(config-if)#end
SW2#
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Auto-RP
Objective: Configure PIM Sparse-Dense Mode and Auto-RP throughout the
OSPF domain so multicast traffic sent from SW1 can be received by
SW2. R1 should be the RP and R5 should be the mapping agent.
Fa0/3
SW1
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip pim sparse-dense-mode
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-announce Loopback0 scope 16
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
www.INE.com
Version 1.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-dense-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 405
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
www.INE.com
Version 1.0
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 504
!
interface Ethernet0/1
ip address 150.1.15.5 255.255.255.0
ip pim sparse-dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-discovery Loopback0 scope 16
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-dense-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
www.INE.com
Version 1.0
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
R1 advertises itself to the mapping agent via 224.0.1.39:
R5#show ip mroute 224.0.1.39
<output omitted>
(*, 224.0.1.39), 00:11:24/stopped, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Ethernet0/0, Forward/Sparse-Dense, 00:11:24/00:00:00
Ethernet0/1, Forward/Sparse-Dense, 00:11:24/00:00:00
Serial0/0.1, Forward/Sparse-Dense, 00:11:24/00:00:00
Loopback0, Forward/Sparse-Dense, 00:11:24/00:00:00
(150.1.1.1, 224.0.1.39), 00:11:01/00:02:59, flags: LT
Incoming interface: Ethernet0/1, RPF nbr 150.1.15.1
Outgoing interface list:
Serial0/0.1, Forward/Sparse-Dense, 00:09:45/00:00:00
Loopback0, Forward/Sparse-Dense, 00:11:01/00:00:00
Ethernet0/0, Forward/Sparse-Dense, 00:07:58/00:00:00
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
ip pim sparse-dense-mode
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
www.INE.com
Version 1.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-announce Loopback0 scope 16 group-list 1
!
access-list 1 permit 224.0.0.0 7.255.255.255
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-dense-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip pim sparse-dense-mode
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 405
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
R2 and R4 advertise themselves to the mapping agent via 224.0.1.39:
R5#show ip mroute 224.0.1.39
<output omitted>
(*, 224.0.1.39), 00:09:23/stopped, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Ethernet0/0, Forward/Sparse-Dense, 00:09:23/00:00:00
Ethernet0/1, Forward/Sparse-Dense, 00:09:23/00:00:00
Serial0/0.1, Forward/Sparse-Dense, 00:09:23/00:00:00
Loopback0, Forward/Sparse-Dense, 00:09:23/00:00:00
(150.1.2.2, 224.0.1.39), 00:09:03/00:02:57, flags: LT
Incoming interface: Serial0/0.1, RPF nbr 150.1.45.4
Outgoing interface list:
Loopback0, Forward/Sparse-Dense, 00:09:03/00:00:00
Ethernet0/1, Forward/Sparse-Dense, 00:00:01/00:00:00
Ethernet0/0, Forward/Sparse-Dense, 00:09:03/00:00:00
www.INE.com
Version 1.0
www.INE.com
Version 1.0
224.1.1.1
232.1.1.1
R6#debug ip pim
PIM(0): Adding v2 (10.1.37.7/32, 224.1.1.1), S-bit Join
PIM(0): Send v2 join/prune to 150.1.56.5 (GigabitEthernet0/0)
PIM(0): Insert (10.1.37.7,232.1.1.1) join in nbr 150.1.56.5's queue
PIM(0): Building Join/Prune packet for nbr 150.1.56.5
PIM(0): Adding v2 (10.1.37.7/32, 232.1.1.1), S-bit Join
PIM(0): Send v2 join/prune to 150.1.56.5 (GigabitEthernet0/0)
R6#
Multicast traffic flows from SW1 to SW2:
R6#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#int g0/0
R6(config-if)#no ip mroute-cache
R6(config-if)#do debug ip mpacket
IP(0): s=10.1.37.7 (GigabitEthernet0/0) d=224.1.1.1
(GigabitEthernet0/1) id=0, ttl=251, prot=17, len=44(44), mforward
IP(0): s=10.1.37.7 (GigabitEthernet0/0) d=232.1.1.1
(GigabitEthernet0/1) id=0, ttl=251, prot=17, len=44(44), mforward
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
ip pim sparse-dense-mode
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
www.INE.com
Version 1.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-announce Loopback0 scope 16 group-list 1
!
access-list 1 permit 224.0.0.0 7.255.255.255
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-dense-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
ip pim sparse-dense-mode
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-dense-mode
frame-relay interface-dlci 405
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-dense-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-dense-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
www.INE.com
Version 1.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
R1 and R3 advertise themselves as rogue RPs but are filtered by R5:
R1(config)#int lo0
R1(config-if)#ip pim sparse-dense-mode
R1(config-if)#ip pim send-rp-announce loopback0 scope 16
R3(config)#int lo0
R3(config-if)#ip pim sparse-dense-mode
R3(config-if)#ip pim send-rp-announce loopback0 scope 16
R5#debug ip
PIM Auto-RP
Auto-RP(0):
Auto-RP(0):
Auto-RP(0):
Auto-RP(0):
pim auto-rp
debugging is on
Received RP-announce, from 150.1.1.1, RP_cnt 1, ht 181
Filtered 224.0.0.0/4 for RP 150.1.1.1
Received RP-announce, from 150.1.3.3, RP_cnt 1, ht 181
Filtered 224.0.0.0/4 for RP 150.1.3.3
pim auto-rp
debugging is on
Received RP-announce, from 150.1.2.2, RP_cnt 1, ht 181
Added with (224.0.0.0/5, RP:150.1.2.2), PIMv2 v1
Received RP-announce, from 150.1.4.4, RP_cnt 1, ht 181
Update (232.0.0.0/5, RP:150.1.4.4), PIMv2 v1
www.INE.com
Version 1.0
Auto-RP Listener
Objective: Configure PIM Sparse Mode and Auto-RP throughout the OSPF
domain with R2 as the RP for groups 224.0.0.0/5. R5 should be the
Mapping Agent. Groups outside of 224.0.0.0/5 should not fall back to
dense mode.
Fa0/3
SW1
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim autorp listener
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
ip pim sparse-mode
www.INE.com
Version 1.0
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-announce Loopback0 scope 16 group-list 1
!
access-list 1 permit 224.0.0.0 7.255.255.255
!
ip pim autorp listener
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim autorp listener
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
Multicast routers only have an RP for 224.0.0.0/5:
R3#show ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/5
RP 150.1.2.2 (?), v2v1
Info source: 150.1.5.5 (?), elected via Auto-RP
Uptime: 00:00:57, expires: 00:02:03
www.INE.com
Version 1.0
dropped:
End with CNTL/Z.
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
R1
.1
S0/0
OSPF
Area 0
.2
S0/0.1
102 105
R2
Fa0/0
201
.2
150.1.125.0/24
150.1.24.0/24 VLAN 24
E0/0
Frame Relay
.4
501
R4
.5
S0/0.1
R5
E0/0 .5
OSPF
Area 0 G0/0
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 150.1.125.1 255.255.255.0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 150.1.125.2 102 broadcast
frame-relay map ip 150.1.125.5 105 broadcast
ip ospf network point-to-multipoint
ip pim sparse-mode
ip pim nbma-mode
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.1.1
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
www.INE.com
Version 1.0
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.125.2 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 201
ip ospf network point-to-multipoint
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.1.1
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.1.1
R4#
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-mode
www.INE.com
Version 1.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.125.5 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 501
ip ospf network point-to-multipoint
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.1.1
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.1.1
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
www.INE.com
Version 1.0
Verification
Before PIM NBMA Mode on R1s Frame Relay interface:
R4 joins 224.1.1.1:
R4(config)#int e0/0
R4(config-if)#ip igmp join
R4(config-if)#ip igmp join-group 224.1.1.1
R4(config-if)#end
SW2 joins 232.1.1.1:
SW2#conf t
Enter configuration commands, one per line.
SW2(config)#int fa0/6
SW2(config-if)#ip igmp join-group 232.1.1.1
SW2(config-if)#end
www.INE.com
Version 1.0
R1#show ip mroute
<output omitted>
(*, 232.1.1.1), 00:01:15/00:03:18, RP 150.1.1.1, flags: S
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Serial0/0, 150.1.125.5, Forward/Sparse, 00:00:11/00:03:18
(10.1.37.7, 232.1.1.1), 00:01:15/00:03:20, flags: T
Incoming interface: Serial0/1, RPF nbr 150.1.13.3
Outgoing interface list:
Serial0/0, 150.1.125.5, Forward/Sparse, 00:00:11/00:03:18
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
R1
.1
S0/0
OSPF
Area 0
.2
S0/0.1
102 105
R2
Fa0/0
201
.2
150.1.125.0/24
150.1.24.0/24 VLAN 24
E0/0
Frame Relay
.4
501
R4
.5
S0/0.1
R5
E0/0 .5
OSPF
Area 0 G0/0
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 150.1.125.1 255.255.255.0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay map ip 150.1.125.2 102 broadcast
frame-relay map ip 150.1.125.5 105 broadcast
ip ospf network point-to-multipoint
ip pim sparse-mode
ip pim nbma-mode
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2 1
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
R4#
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.125.5 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 501
ip ospf network point-to-multipoint
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2 1
!
access-list 1 permit 224.0.1.39
access-list 1 permit 224.0.1.40
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.2.2 1
!
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Verification
R1 forwards R2s MA messages out to R5 because 224.0.1.40 is sparse and
NBMA mode is enabled:
R1#show ip mroute 224.0.1.40
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Bootstrap Router
Objective: Configure PIM Sparse Mode and BSR throughout the OSPF domain
so multicast traffic sent from SW1 can be received by SW2. R1
should be the RP and R5 should be the BSR.
Fa0/3
SW1
10.1.37.0/24
.7
E0/0
R3
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
150.1.15.0/24 VLAN 15
R2
Fa0/0
.2
OSPF
Area 0
150.1.24.0/24 VLAN 24
E0/0
.4
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
.5
150.1.56.0/24 VLAN 56
.6
G0/1
Fa0/6
SW2
10.1.68.0/24
.6
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip pim sparse-mode
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-candidate Loopback0
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim sparse-mode
!
www.INE.com
Version 1.0
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-mode
clockrate 64000
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 405
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
www.INE.com
Version 1.0
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 504
!
interface Ethernet0/1
ip address 150.1.15.5 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip pim bsr-candidate Loopback0
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW1#
ip routing
!
interface Loopback0
ip address 150.1.7.7 255.255.255.255
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
www.INE.com
Version 1.0
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
SW2#
ip routing
!
interface Loopback0
ip address 150.1.8.8 255.255.255.255
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
Verification
R1 advertises itself to the BSR as an RP Candidate:
R5#show ip pim bsr-router
PIMv2 Bootstrap information
This system is the Bootstrap Router (BSR)
BSR address: 150.1.5.5 (?)
Uptime:
00:13:05, BSR Priority: 0, Hash mask length: 0
Next bootstrap message in 00:00:56
R5#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is the Bootstrap Router (v2)
Group(s) 224.0.0.0/4
RP 150.1.1.1 (?), v2
Info source: 150.1.15.1 (?), via bootstrap, priority 0, holdtime 210
Uptime: 00:12:19, expires: 00:03:10
R6#show ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
RP 150.1.1.1 (?), v2
Info source: 150.1.5.5 (?), via bootstrap, priority 0, holdtime 210
Uptime: 00:06:00, expires: 00:02:36
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Fa0/3
OSPF
Area 0
10.1.37.0/24
.7
E0/0
R3
SW1
.3
.3
S1/2
BGP
AS 1
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0
.2
E0/0
.4
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
BGP
AS 2
.5
S0/0.1
OSPF
Area 0
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
Fa0/6
SW2
.6
10.1.68.0/24
OSPF
Area 0
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
R4#show run
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 405
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.45.4 0.0.0.0 area 0
default-information originate always
!
router bgp 2
redistribute ospf 1
neighbor 150.1.24.2 remote-as 1
!
ip pim rp-address 150.1.24.4
ip msdp peer 150.1.24.2
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 504
!
router ospf 1
network 150.1.5.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
network 150.1.56.5 0.0.0.0 area 0
!
ip pim rp-address 150.1.24.4
www.INE.com
Version 1.0
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 10.1.68.6 0.0.0.0 area 0
network 150.1.6.6 0.0.0.0 area 0
network 150.1.56.6 0.0.0.0 area 0
!
ip pim rp-address 150.1.24.4
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 10.1.7.7 0.0.0.0 area 0
network 10.1.37.7 0.0.0.0 area 0
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
www.INE.com
Version 1.0
router ospf 1
network 10.1.8.8 0.0.0.0 area 0
network 10.1.68.8 0.0.0.0 area 0
Verification
Enable multicast debugging on R2 and R4:
R2#debug ip pim
PIM debugging is on
R2#debug ip msdp peer
MSDP Peer debugging is on
R2#debug ip msdp routes
MSDP Routes debugging is on
R2#debug ip msdp detail
MSDP Detail debugging is on
R4#debug ip pim
PIM debugging is on
R4#debug ip msdp peer
MSDP Peer debugging is on
R4#debug ip msdp routes
MSDP Routes debugging is on
R4#debug ip msdp detail
MSDP Detail debugging is on
Generate multicast traffic from SW1:
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#rtr 1
SW1(config-rtr)#type udpEcho dest-ipaddr 224.1.1.1 dest-port 12345
source-ipaddr 10.1.37.7 control disable
SW1(config-rtr-udp)#frequency 5
SW1(config-rtr-udp)#timeout 0
SW1(config-rtr-udp)#exit
SW1(config)#rtr schedule 1 start after 00:00:05 life forever
SW1(config)#
R3 registers source with R2 and R2 generates MSDP SA message to R4:
R2#
PIM(0): Received v2 Register on Serial0/0.1 from 150.1.13.3
for 10.1.37.7, group 224.1.1.1
PIM(0): Check RP 150.1.24.2 into the (*, 224.1.1.1) entry
PIM(0): Send v2 Register-Stop to 150.1.13.3 for 10.1.37.7, group
224.1.1.1
MSDP(0): 150.1.24.4: Send 44-byte SA encapsulated data for (10.1.37.7,
224.1.1.1), RP 150.1.24.2
R4 recieves SA message from R2:
R4#
MSDP(0): Received 64-byte TCP segment from 150.1.24.2
MSDP(0): Append 64 bytes to 0-byte msg 169 from 150.1.24.2, qs 1
MSDP(0): 150.1.24.2: Received 64-byte msg 169 from peer
MSDP(0): 150.1.24.2: SA TLV, len: 64, ec: 1, RP: 150.1.24.2, with data
MSDP(0): 150.1.24.2: Peer RPF check passed for single peer
MSDP(0): (10.1.37.7/32, 224.1.1.1), accepted
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Anycast RP
Objective: Configure R1 and R5 with the duplicate addresses 150.1.255.255/32
for Anycast RP within the PIM Sparse-Mode domain.
Fa0/3
OSPF
Area 0
10.1.37.0/24
.7
E0/0
R3
SW1
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
OSPF 150.1.12.0/24
Area 0 Frame Relay
R1
.1
S0/0.1
102
201
.2
S0/0.1
R2
Fa0/0
.2
E0/0
.4
OSPF
Area 0
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
.4
405
504
.5
S0/0.1
OSPF
Area 0
R5
E0/0 .5
150.1.56.0/24 VLAN 56
G0/0
.6
G0/1
Fa0/6
SW2
.6
10.1.68.0/24
OSPF
Area 0
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Loopback1
ip address 150.1.255.255 255.255.255.255
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
!
router ospf 1
network 150.1.1.1 0.0.0.0 area 0
network 150.1.12.1 0.0.0.0 area 0
network 150.1.13.1 0.0.0.0 area 0
network 150.1.255.255 0.0.0.0 area 0
!
ip pim rp-address 150.1.255.255
ip msdp peer 150.1.5.5 connect-source Loopback0
www.INE.com
Version 1.0
R2#
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 201
!
router ospf 1
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
network 150.1.24.2 0.0.0.0 area 0
!
ip pim rp-address 150.1.255.255
R3#
ip multicast-routing
!
interface Loopback0
ip address 150.1.3.3 255.255.255.255
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim sparse-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim sparse-mode
clockrate 64000
!
router ospf 1
network 10.1.37.3 0.0.0.0 area 0
network 150.1.3.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
!
ip pim rp-address 150.1.255.255
R4#
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim sparse-mode
!
www.INE.com
Version 1.0
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 405
!
router ospf 1
network 150.1.4.4 0.0.0.0 area 0
network 150.1.24.4 0.0.0.0 area 0
network 150.1.45.4 0.0.0.0 area 0
!
ip pim rp-address 150.1.255.255
R5#
ip multicast-routing
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Loopback1
ip address 150.1.255.255 255.255.255.255
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim sparse-mode
frame-relay interface-dlci 504
!
router ospf 1
network 150.1.5.5 0.0.0.0 area 0
network 150.1.45.5 0.0.0.0 area 0
network 150.1.56.5 0.0.0.0 area 0
network 150.1.255.255 0.0.0.0 area 0
!
ip pim rp-address 150.1.255.255
ip msdp peer 150.1.1.1 connect-source Loopback0
R6#
ip multicast-routing
!
interface Loopback0
ip address 150.1.6.6 255.255.255.255
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim sparse-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
www.INE.com
Version 1.0
ip pim sparse-mode
!
router ospf 1
network 10.1.68.6 0.0.0.0 area 0
network 150.1.6.6 0.0.0.0 area 0
network 150.1.56.6 0.0.0.0 area 0
!
ip pim rp-address 150.1.255.255
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 10.1.7.7 0.0.0.0 area 0
network 10.1.37.7 0.0.0.0 area 0
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 10.1.8.8 0.0.0.0 area 0
network 10.1.68.8 0.0.0.0 area 0
www.INE.com
Version 1.0
Verification
Enable multicast debugging on R1 and R5:
R1#debug ip pim
PIM debugging is on
R1#debug ip msdp peer
MSDP Peer debugging is on
R1#debug ip msdp routes
MSDP Routes debugging is on
R1#debug ip msdp detail
MSDP Detail debugging is on
R5#debug ip pim
PIM debugging is on
R5#debug ip msdp peer
MSDP Peer debugging is on
R5#debug ip msdp routes
MSDP Routes debugging is on
R5#debug ip msdp detail
MSDP Detail debugging is on
Generate multicast traffic from SW1:
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#rtr 1
SW1(config-rtr)#type udpEcho dest-ipaddr 224.1.1.1 dest-port 12345
source-ipaddr 10.1.37.7 control disable
SW1(config-rtr-udp)#frequency 5
SW1(config-rtr-udp)#timeout 0
SW1(config-rtr-udp)#exit
SW1(config)#rtr schedule 1 start after 00:00:05 life forever
SW1(config)#
R3 registers source with R1 and R1 generates MSDP SA message to R5:
R1#
PIM(0): Received v2 Register on Serial0/1 from 150.1.13.3
for 10.1.37.7, group 224.1.1.1
PIM(0): Check RP 150.1.255.255 into the (*, 224.1.1.1) entry
PIM(0): Send v2 Register-Stop to 150.1.13.3 for 10.1.37.7, group
224.1.1.1
MSDP(0): 150.1.5.5: Send 44-byte SA encapsulated data for (10.1.37.7,
224.1.1.1), RP 150.1.255.255
R5 recieves SA message from R1:
R5#
MSDP(0): Received 20-byte TCP segment from 150.1.1.1
MSDP(0): Append 20 bytes to 0-byte msg 40 from 150.1.1.1, qs 1
MSDP(0): 150.1.1.1: Received 20-byte msg 40 from peer
MSDP(0): 150.1.1.1: SA TLV, len: 20, ec: 1, RP: 150.1.255.255
MSDP(0): 150.1.1.1: Peer RPF check passed for single peer
MSDP(0): (10.1.37.7/32, 224.1.1.1), accepted
www.INE.com
Version 1.0
www.INE.com
Version 1.0
www.INE.com
Version 1.0
Multicast BGP
Objective: Configure Multicast BGP between AS 1, AS 2, and AS 3 so that R5
will accept multicast traffic from SW1 through AS 2.
Fa0/3
SW1
10.1.37.0/24
.7
E0/0
R3
BGP
AS 1
OSPF
Area 0
.3
.3
S1/2
S0/1
150.1.13.0/24
.1
Fa0/0
150.1.12.0/24
R1
Frame Relay
.1
.1
S0/0.1
102
201
.2
S0/0.1
Fa0/0
.2
E0/0
.4
150.1.15.0/24 VLAN 15
R2
BGP
AS 2
150.1.24.0/24 VLAN 24
150.1.45.0/24
R4
S0/0.1
Frame Relay
405
504
.4
.5
S0/0.1
E0/1
R5
E0/0 .5
OSPF
Area 0 G0/0
BGP
AS 3
150.1.56.0/24 VLAN 56
.6
G0/1
10.1.68.0/24
.6
Fa0/6
SW2
.5
R6
.8
www.INE.com
Version 1.0
Directions
Final Configuration
R1#
ip multicast-routing
!
interface FastEthernet0/0
ip address 150.1.15.1 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 102
!
interface Serial0/1
ip address 150.1.13.1 255.255.255.0
ip pim dense-mode
!
router ospf 1
network 150.1.13.1 0.0.0.0 area 0
default-information originate always
!
router bgp 1
neighbor 150.1.12.2 remote-as 2
neighbor 150.1.15.5 remote-as 3
!
address-family ipv4 multicast
neighbor 150.1.12.2 activate
network 10.1.7.0 mask 255.255.255.0
exit-address-family
www.INE.com
Version 1.0
!
address-family ipv4
neighbor 150.1.12.2 activate
neighbor 150.1.15.5 activate
network 10.1.7.0 mask 255.255.255.0
exit-address-family
R2#
ip multicast-routing
!
interface FastEthernet0/0
ip address 150.1.24.2 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 201
!
router bgp 2
neighbor 150.1.12.1 remote-as 1
neighbor 150.1.24.4 remote-as 2
!
address-family ipv4 multicast
neighbor 150.1.12.1 activate
neighbor 150.1.24.4 activate
neighbor 150.1.24.4 next-hop-self
exit-address-family
!
address-family ipv4
neighbor 150.1.12.1 activate
neighbor 150.1.24.4 activate
neighbor 150.1.24.4 next-hop-self
exit-address-family
R3#
ip multicast-routing
!
interface Ethernet0/0
ip address 10.1.37.3 255.255.255.0
ip pim dense-mode
!
interface Serial1/2
ip address 150.1.13.3 255.255.255.0
ip pim dense-mode
clockrate 64000
!
router ospf 1
network 10.1.37.3 0.0.0.0 area 0
network 150.1.13.3 0.0.0.0 area 0
www.INE.com
Version 1.0
R4#
ip multicast-routing
!
interface Ethernet0/0
ip address 150.1.24.4 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 405
!
router bgp 2
neighbor 150.1.24.2 remote-as 2
neighbor 150.1.45.5 remote-as 3
!
address-family ipv4
neighbor 150.1.24.2 activate
neighbor 150.1.24.2 next-hop-self
neighbor 150.1.45.5 activate
exit-address-family
!
address-family ipv4 multicast
neighbor 150.1.24.2 activate
neighbor 150.1.45.5 activate
exit-address-family
R5#
ip multicast-routing
!
interface Ethernet0/0
ip address 150.1.56.5 255.255.255.0
ip pim dense-mode
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim dense-mode
frame-relay interface-dlci 504
!
interface Ethernet0/1
ip address 150.1.15.5 255.255.255.0
!
router ospf 1
network 150.1.56.5 0.0.0.0 area 0
default-information originate always
!
router bgp 3
neighbor 150.1.15.1 remote-as 1
neighbor 150.1.45.4 remote-as 2
!
www.INE.com
Version 1.0
address-family ipv4
neighbor 150.1.15.1 activate
neighbor 150.1.45.4 activate
network 10.1.8.0 mask 255.255.255.0
exit-address-family
!
address-family ipv4 multicast
neighbor 150.1.45.4 activate
exit-address-family
R6#
ip multicast-routing
!
interface GigabitEthernet0/0
ip address 150.1.56.6 255.255.255.0
ip pim dense-mode
!
interface GigabitEthernet0/1
ip address 10.1.68.6 255.255.255.0
ip pim dense-mode
!
router ospf 1
network 10.1.68.6 0.0.0.0 area 0
network 150.1.56.6 0.0.0.0 area 0
SW1#
ip routing
!
interface Loopback0
ip address 10.1.7.7 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/1
switchport access vlan 15
!
interface FastEthernet0/2
switchport access vlan 24
!
interface FastEthernet0/3
no switchport
ip address 10.1.37.7 255.255.255.0
!
interface FastEthernet0/4
switchport access vlan 24
!
interface FastEthernet0/5
switchport access vlan 56
!
interface FastEthernet0/6
switchport access vlan 56
!
router ospf 1
network 10.1.7.7 0.0.0.0 area 0
network 10.1.37.7 0.0.0.0 area 0
www.INE.com
Version 1.0
SW2#
ip routing
!
interface Loopback0
ip address 10.1.8.8 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/5
switchport access vlan 15
!
interface FastEthernet0/6
no switchport
ip address 10.1.68.8 255.255.255.0
!
router ospf 1
network 10.1.8.8 0.0.0.0 area 0
network 10.1.68.8 0.0.0.0 area 0
Verification
Configure SW2 to request traffic for 224.1.1.1:
SW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#int fa0/6
SW2(config-if)#ip igmp join-group 224.1.1.1
SW2(config-if)#end
SW2#
Configure SW1 to generate traffic
SW1#ping
Protocol [ip]:
Target IP address: 224.1.1.1
Repeat count [1]: 1000
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Interface [All]: FastEthernet0/3
Time to live [255]:
Source address: 10.1.7.7
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp,
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos
Packet sent with a source address
.....
<output omitted>
to 224.1.1.1:
Verbose[none]:
www.INE.com
Version 1.0
Next Hop
150.1.45.4
www.INE.com