Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
XR Training / lwigley 2005 Cisco Systems, Inc. All rights reserved. Cisco Public 1
Routing Agenda
OSPF
ISIS
EIGRP
Static
BGP
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 2
Open Shortest Path First (OSPF)
IS-IS
Area 2 BGP
Area 3
Static NSSA
ASBR
Internal
Internal
Virtual ABR
ABR Link
Area 0 Area 4
Backbone Stub
ABR ABR
Internal
Internal
BBone
Passive
Area 1
OSPF v2 and v3 (IPv6)
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 3
OSPF Configuration Basics
area 0 area 1
cost 40
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 4
OSPF Sample Configuration
router ospfv3 32
area 0
interface GigabitEthernet0/5/0/0
!
interface GigabitEthernet0/5/0/1
cost 30
!
!
area 1
interface GigabitEthernet0/5/0/2
cost 40
passive
!
router ospf 101
area 0
interface GigabitEthernet0/5/0/0
!
interface GigabitEthernet0/5/0/1
!
interface GigabitEthernet0/5/0/2
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 5
OSPF show commands
show ospf neighbor (detail)
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 6
OSPF show commands
show ospf interface (brief)
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 7
OSPF show commands
show ospf database
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 8
OSPF show commands
show ospf database (LSA type)
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 9
ISIS Configuration Basics
net 49.0001.0000.0000.000c.00
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 10
ISIS Sample Configuration
router isis 7
net 49.0001.0000.0000.000c.00
interface Loopback0
address-family ipv4 unicast
!
!
interface GigabitEthernet0/4/0/1
address-family ipv4 unicast
!
!
interface GigabitEthernet0/4/0/2
address-family ipv4 unicast
!
!
interface GigabitEthernet0/4/0/3
address-family ipv4 unicast
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 11
ISIS show commands
show isis neighbor
IS-IS 7 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
gsr7-admin Gi0/4/0/3 0005.dd32.5000 Up 27 L1L2 Capable
GSR2 Gi0/4/0/1 0050.2abe.8df9 Up 25 L1L2 Capable
GSR2 Gi0/4/0/2 0050.2abe.8dfa Up 29 L1L2 Capable
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 12
ISIS show commands
show isis neighbor detail
IS-IS 7 neighbors:
System Id Interface SNPA State Holdtime Type IETF-NSF
gsr7-admin Gi0/4/0/3 0005.dd32.5000 Up 22 L1L2 Capable
Area Address(es): 49.0001
IPv4 Address(es): 11.1.1.7*
Topologies: 'IPv4 Unicast'
Uptime: 01:12:39
GSR2 Gi0/4/0/1 0050.2abe.8df9 Up 23 L1L2 Capable
Area Address(es): 49.0001
IPv4 Address(es): 12.1.2.2*
Topologies: 'IPv4 Unicast'
Uptime: 03:37:17
GSR2 Gi0/4/0/2 0050.2abe.8dfa Up 26 L1L2 Capable
Area Address(es): 49.0001
IPv4 Address(es): 12.1.3.2*
Topologies: 'IPv4 Unicast'
Uptime: 03:37:17
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 13
ISIS show commands
show isis adjacency
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 14
ISIS show commands
show isis ipv4 route
C 1.1.1.1/32
is directly connected, Loopback0
L1 7.7.7.7/32 [20/115]
via 11.1.1.7, GigabitEthernet0/4/0/3, gsr7-admin
C 11.1.1.0/24
is directly connected, GigabitEthernet0/4/0/3
L1 11.1.2.0/24 [20/115]
via 12.1.3.2, GigabitEthernet0/4/0/2, GSR2
via 12.1.2.2, GigabitEthernet0/4/0/1, GSR2
C 12.1.2.0/24
is directly connected, GigabitEthernet0/4/0/1
C 12.1.3.0/24
is directly connected, GigabitEthernet0/4/0/2
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 15
ISIS show commands
show isis topology
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 16
EIGRP Configuration Basics
address-family ipv4
interface GigabitEthernet0/4/0/0
interface GigabitEthernet0/4/0/0
passive-interface
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 17
EIGRP Sample Configuration
router eigrp 7
address-family ipv4
interface MgmtEth0/7/CPU0/0
passive-interface
!
interface GigabitEthernet0/4/0/0
!
interface GigabitEthernet0/4/0/1
!
interface GigabitEthernet0/4/0/2
!
interface GigabitEthernet0/4/0/3
!
!
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 18
EIGRP show commands
show eigrp neighbor
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 19
EIGRP show commands
show eigrp neighbor detail
H Address Interface
Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
2 12.1.3.2 Gi0/4/0/2 12 00:01:52 21 200 0 12
Version 3.3/1.2, Retrans: 0, Retries: 0, Prefixes: 6
1 12.1.2.2 Gi0/4/0/1 12 00:01:52 22 200 0 13
Version 3.3/1.2, Retrans: 0, Retries: 0, Prefixes: 6
0 11.1.1.7 Gi0/4/0/3 12 00:14:13 4 200 0 7
Version 12.0/1.2, Retrans: 1, Retries: 0, Prefixes: 4
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 20
EIGRP show commands
show eigrp topology
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 21
Static Routes
Static Routing Configuration Modes
router static
address-family ipv4 unicast
0.0.0.0/0 7.1.9.1
7.7.7.77/32 7.1.9.1
8.8.8.1/32 GigabitEthernet0/5/0/1.101
8.8.8.1/32 GigabitEthernet0/5/0/1.102
8.8.8.2/32 5.1.1.2
8.8.8.2/32 5.2.1.2
!
router static address-family ipv6 unicast
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 22
BGP Agenda
Key Concepts
Configuration Basics
Configuration Templates
Monitoring BGP
Distributed BGP
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 23
IOS XR BGP Key Concepts
Address Families
Configure separately
Must be initialized
Neighbor Based Configuration
Configuration Templates
Neighbor Group
Session Group
Address Family Group
Distributed BGP
(Route Policy Language)
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 24
Address Families
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 25
Configuration Basics
Minimal Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 26
Configuration Templates
af-group, session-group, and neighbor-group
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 27
Address Family Group
Reusable template for Address Family specific parameters
router bgp 1000 router bgp 1000
address-family ipv4 unicast address-family ipv4 unicast
! !
neighbor 1.1.1.1 af-group wolfpack address-family ipv4 unicast
remote-as 100 route-policy foo in
address-family ipv4 unicast maximum-prefix 50000 75
route-policy foo in route-policy bar out
maximum-prefix 50000 75 capability orf prefix both
route-policy bar out remove-private-AS
capability orf prefix both !
remove-private-AS neighbor 1.1.1.1
! remote-as 200
neighbor 2.2.2.2 address-family ipv4 unicast
remote-as 200 use af-group wolfpack
address-family ipv4 unicast !
route-policy foo in neighbor 2.2.2.2
maximum-prefix 50000 75 remote-as 200
route-policy bar out address-family ipv4 unicast
capability orf prefix both use af-group wolfpack
remove-private-AS !
! neighbor 3.3.3.3
neighbor 3.3.3.3 remote-as 200
remote-as 300 address-family ipv4 unicast
address-family ipv4 unicast use af-group wolfpack
route-policy foo in
maximum-prefix 50000 75
route-policy bar out
capability orf prefix both
remove-private-AS
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 28
Session Group
Reusable template for Address Family independent parameters
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 29
Neighbor Group
Reusable template for both AF and session parameters
router bgp 1000 router bgp 1000
address-family ipv4 unicast address-family ipv4 unicast
! !
neighbor 8.1.1.1 neighbor-group cavs
remote-as 100 remote-as 100
password encrypted 01110A0553 password encrypted 01110A0553
update-source Loopback0 update-source Loopback0
address-family ipv4 unicast address-family ipv4 unicast
route-policy foo in route-policy foo in
maximum-prefix 50000 75 maximum-prefix 50000 75
route-policy bar out route-policy bar out
capability orf prefix both capability orf prefix both
! !
neighbor 8.1.1.2 neighbor 8.1.1.1
remote-as 100 use neighbor-group cavs
password encrypted 01110A0553 !
update-source Loopback0 neighbor 8.1.1.2
address-family ipv4 unicast use neighbor-group cavs
route-policy foo in !
maximum-prefix 50000 75 neighbor 8.1.1.3
route-policy bar out use neighbor-group cavs
capability orf prefix both
!
neighbor 8.1.1.3
remote-as 100
password encrypted 01110A0553
update-source Loopback0
address-family ipv4 unicast
route-policy foo in
maximum-prefix 50000 75
route-policy bar out
capability orf prefix both
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 30
Template Group Inheritance
AFG AFG SG SG SG NG
AFG SG AFG SG
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 31
BGP Show Commands
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 32
show bgp process
RP/0/7/CPU0:GSR2#show bgp process
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 33
show bgp ipv4 unicast summary
RP/0/7/CPU0:GSR2#show bgp ipv4 unicast summary
BGP router identifier 2.2.2.2, local AS number 12
BGP generic scan interval 60 secs
BGP table state: Active
BGP main routing table version 3
BGP scan interval 60 secs
BGP is operating in STANDALONE mode.
Process RecvTblVer bRIB/RIB LabelVer ImportVer SendTblVer
Speaker 3 3 3 3 3
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
1.1.1.1 0 12 8 8 3 0 0 00:04:42 1
11.1.2.7 0 7 11 8 3 0 0 00:06:04 1
RP/0/7/CPU0:GSR2#show bgp summary
BGP router identifier 2.2.2.2, local AS number 12
BGP generic scan interval 60 secs
BGP table state: Active
BGP main routing table version 5
BGP scan interval 60 secs
BGP is operating in STANDALONE mode.
Process RecvTblVer bRIB/RIB LabelVer ImportVer SendTblVer
Speaker 5 5 5 5 5
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
1.1.1.1 0 12 20 21 5 0 0 00:16:15 1
11.1.2.7 0 7 26 24 5 0 0 00:17:38 1
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 34
show bgp vpnv4 unicast summary
DRP/0/2/CPU1:rgr2-q1#show bgp vpnv4 unicast summary
BGP router identifier 10.0.0.1, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
BGP main routing table version 68541
BGP scan interval 60 secs
BGP is operating in DISTRIBUTED mode.
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 35
show bgp vrf <name> summary
DRP/0/2/CPU1:rgr2-q1#show bgp vrf t1 summary
BGP VRF t1, state: Active
BGP Route Distinguisher: 10.0.0.1:0
BGP router identifier 10.1.0.1, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
BGP main routing table version 68541
BGP scan interval 60 secs
BGP is operating in DISTRIBUTED mode.
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 36
show bgp neighbors <IP> configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 37
show bgp policy
RP/0/7/CPU0:GSR2#show bgp policy
101.0.0.0/8 is advertised to 1.1.1.1
Path info:
neighbor: 11.1.2.7 neighbor router id: 50.1.1.7
valid external best
Attributes after inbound policy was applied:
next hop: 11.1.2.7
MET ORG AS
origin: IGP neighbor as: 7 metric: 0
aspath: 7
Attributes after outbound policy was applied:
next hop: 11.1.2.7
MET ORG AS
origin: IGP neighbor as: 7 metric: 0
aspath: 7
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 38
Distributed BGP
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 39
Standalone BGP - Default
RIB
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 40
Distributed BGP
RIB
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 41
Distributed BGP Partial vs. Full Best Paths
RIB
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 42
Distributed Best Path Selection
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 43
Distributed BGP Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 44
Q and A
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 45
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 46