Sei sulla pagina 1di 46

Cisco IOS XR

Routing Introduction Training


IOS XR Release 3.5

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

Enable by assigning interfaces to areas


All configuration under router ospf

router ospf 100

area 0 area 1

interface gig 0/4/0/0 interface gig 0/3/0/0

interface gig 0/5/0/4 interface gig 0/3/0/1

interface gig 0/5/0/5 passive enable

interface gig 0/3/0/2

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)

RP/0/5/CPU0:xr-router#show ospf neighbor


Neighbors for OSPF 1
Neighbor ID Pri State Dead Time Address Interface
1.1.3.3 1 FULL/DR 00:00:30 1.1.2.3 GigabitEthernet0/4/0/0
Neighbor is up for 2w5d
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:31 1.1.1.1 GigabitEthernet0/4/0/1
Neighbor is up for 2w5d
Total neighbor count: 2

RP/0/5/CPU0:xr-router#show ospf neighbor detail


Neighbors for OSPF 1
Neighbor 1.1.3.3, interface address 1.1.2.3
In the area 0 via interface GigabitEthernet0/4/0/0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 1.1.2.3 BDR is 1.1.2.2
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:33
Neighbor is up for 2w5d
Number of DBD retrans during last exchange 0
Index 1/1, retransmission queue length 0, number of retransmission 1
First 0(0)/0(0) Next 0(0)/0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 6
OSPF show commands
show ospf interface (brief)

RP/0/5/CPU0:xr-router#show ospf interface

GigabitEthernet0/4/0/0 is up, line protocol is up


Internet Address 1.1.2.2/24, Area 0
Process ID 1, Router ID 1.1.2.2, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 1.1.3.3, Interface address 1.1.2.3
Backup Designated router (ID) 1.1.2.2, Interface address 1.1.2.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:04
Index 1/1, flood queue length 0
Next 0(0)/0(0)
Last flood scan length is 1, maximum is 2
Last flood scan time is 0 msec, maximum is 1 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 1.1.3.3 (Designated Router)
Suppress hello for 0 neighbor(s)

RP/0/5/CPU0:xr-router#show ospf interface brief

Interface PID Area IP Address/Mask Cost State Nbrs F/C


Gi0/4/0/0 1 0 1.1.2.2/24 1 BDR 1/1
Gi0/4/0/1 1 0 1.1.1.2/24 1 DR 1/1

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 7
OSPF show commands
show ospf database

RP/0/5/CPU0:xr-router#show ospf database

OSPF Router with ID (1.1.2.2) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 1453 0x8000035a 0x004283 1
1.1.2.2 1.1.2.2 1773 0x8000035c 0x00c5db 2
1.1.3.3 1.1.3.3 751 0x80000362 0x002a86 1

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


1.1.1.2 1.1.2.2 1773 0x8000035a 0x00efd8
1.1.2.3 1.1.3.3 751 0x8000035c 0x00efce

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 8
OSPF show commands
show ospf database (LSA type)

RP/0/5/CPU0:xr-router#show ospf database router

OSPF Router with ID (1.1.2.2) (Process ID 1)

Router Link States (Area 0)

Routing Bit Set on this LSA


LS age: 1390
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 8000035a
Checksum: 0x4283
Length: 36
Number of Links: 1

Link connected to: a Transit Network


(Link ID) Designated Router address: 1.1.1.2
(Link Data) Router Interface address: 1.1.1.1
Number of TOS metrics: 0
TOS 0 Metrics: 1

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 9
ISIS Configuration Basics

Enable by assigning interfaces to ISIS


All configuration under router isis

router isis <label>

net 49.0001.0000.0000.000c.00

interface gig 0/4/0/0

address-family ipv4 unicast

interface gig 0/4/0/1

address-family ipv4 unicast

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

RP/0/7/CPU0:GSR1#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

Total neighbor count: 3

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 12
ISIS show commands
show isis neighbor detail

RP/0/7/CPU0:GSR1#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

Total neighbor count: 3

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 13
ISIS show commands
show isis adjacency

RP/0/7/CPU0:GSR1#show isis adjacency

IS-IS 7 Level-1 adjacencies:


System Id Interface SNPA State Hold Changed NSF BFD
gsr7-admin Gi0/4/0/3 0005.dd32.5000 Up 20 01:13:58 Yes None
GSR2 Gi0/4/0/1 0050.2abe.8df9 Up 21 03:38:37 Yes None
GSR2 Gi0/4/0/2 0050.2abe.8dfa Up 29 03:38:37 Yes None

Total adjacency count: 3

IS-IS 7 Level-2 adjacencies:


System Id Interface SNPA State Hold Changed NSF BFD
gsr7-admin Gi0/4/0/3 0005.dd32.5000 Up 25 01:13:59 Yes None
GSR2 Gi0/4/0/1 0050.2abe.8df9 Up 28 03:38:37 Yes None
GSR2 Gi0/4/0/2 0050.2abe.8dfa Up 24 03:38:37 Yes None

Total adjacency count: 3

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 14
ISIS show commands
show isis ipv4 route

RP/0/7/CPU0:GSR1#show isis ipv4 route

IS-IS 7 IPv4 Unicast routes

Codes: L1 - level 1, L2 - level 2, ia - interarea (leaked into level 1)


df - level 1 default (closest attached router), su - summary null
C - connected, S - static, R - RIP, B - BGP, O - OSPF
i - IS-IS (redistributed from another instance)

Maximum parallel path count: 8

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

RP/0/7/CPU0:GSR1#show isis topology

IS-IS 7 paths to IPv4 Unicast (Level-1) routers


System Id Metric Next-Hop Interface SNPA
gsr7-admin 10 gsr7-admin Gi0/4/0/3 0005.dd32.5000
GSR2 10 GSR2 Gi0/4/0/2 0050.2abe.8dfa
GSR2 10 GSR2 Gi0/4/0/1 0050.2abe.8df9
GSR1 --

IS-IS 7 paths to IPv4 Unicast (Level-2) routers


System Id Metric Next-Hop Interface SNPA
gsr7-admin 10 gsr7-admin Gi0/4/0/3 0005.dd32.5000
GSR2 10 GSR2 Gi0/4/0/2 0050.2abe.8dfa
GSR2 10 GSR2 Gi0/4/0/1 0050.2abe.8df9
GSR1 --

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 16
EIGRP Configuration Basics

Enable by assigning interfaces to EIGRP


All configuration under router eigrp

router eigrp <AS>

address-family ipv4

interface GigabitEthernet0/4/0/0

interface GigabitEthernet0/4/0/0

interface mgmtEth 0/7/CPU0/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

RP/0/7/CPU0:GSR1#show eigrp neighbor


IP-EIGRP neighbors for AS 7

H Address Interface Hold Uptime SRTT RTO Q Seq


(sec) (ms) Cnt Num
2 12.1.3.2 Gi0/4/0/2 13 00:00:01 34 204 0 6
1 12.1.2.2 Gi0/4/0/1 13 00:00:01 34 204 0 5
0 11.1.1.7 Gi0/4/0/3 13 00:12:22 8 200 0 4

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 19
EIGRP show commands
show eigrp neighbor detail

RP/0/7/CPU0:GSR1#show eigrp neighbors detail


IP-EIGRP neighbors for AS 7

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

RP/0/7/CPU0:GSR1#show eigrp topology


IP-EIGRP Topology Table for AS(7)/ID(1.1.1.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,


r - reply Status, s - sia Status

P 7.0.0.0/8, 1 successors, FD is 181760


via 12.1.3.2 (181760/156160), GigabitEthernet0/4/0/2
via 11.1.1.7 (156160/128256), GigabitEthernet0/4/0/3
via 12.1.2.2 (181760/156160), GigabitEthernet0/4/0/1
P 11.1.2.0/24, 1 successors, FD is 53760
via 12.1.3.2 (53760/28160), GigabitEthernet0/4/0/2
via 11.1.1.7 (28416/2816), GigabitEthernet0/4/0/3
via 12.1.2.2 (53760/28160), GigabitEthernet0/4/0/1
P 11.1.1.0/24, 1 successors, FD is 28160
via Connected, GigabitEthernet0/4/0/3
P 12.1.1.0/24, 1 successors, FD is 28160
via Connected, GigabitEthernet0/4/0/0
P 12.1.3.0/24, 1 successors, FD is 28160
via Connected, GigabitEthernet0/4/0/2
P 12.1.2.0/24, 1 successors, FD is 28160
via Connected, GigabitEthernet0/4/0/1
P 18.0.0.0/8, 1 successors, FD is 54016
via 12.1.3.2 (54016/28416), GigabitEthernet0/4/0/2
via 11.1.1.7 (28416/2816), GigabitEthernet0/4/0/3
via 12.1.2.2 (54016/28416), GigabitEthernet0/4/0/1

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

Most configuration is address family specific


Must be initialized under bgp global configuration
router bgp 600
address-family ipv4 unicast

Additional configuration under neighbor AF mode


router bgp 600
neighbor 5.5.5.5
address-family ipv4 unicast
route-policy filter_peers in

5 address families in release 3.3


IPv4 unicast
IPv4 multicast
IPv6 unicast
IPv6 multicast
VPNv4 unicast

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 25
Configuration Basics
Minimal Configuration

Assign BGP AS Number


Initialize an address family
Create a neighbor
Assign a remote AS
Enable an address family within the neighbor
Apply filters in and out on EBGP links

router bgp 100


address-family ipv4 unicast
!
neighbor 1.1.1.1
remote-as 200
address-family ipv4 unicast
route-policy filter-in in
route-policy filter-out out

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 26
Configuration Templates
af-group, session-group, and neighbor-group

Templates enable efficient configuration


Not required for run-time efficiency (automatic update groups)
use keyword to inherit from group
Hierarchy is supported

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

router bgp 1000 router bgp 1000


address-family ipv4 unicast address-family ipv4 unicast
address-family ipv4 multicast address-family ipv4 multicast
! !
neighbor 8.1.1.1 session-group ibgp
remote-as 100 remote-as 100
password encrypted 0310541B150A225E4B1D password encrypted 0310541B150A225E4B1D
update-source Loopback0 update-source Loopback0
address-family ipv4 unicast !
use af-group wolfpack neighbor 8.1.1.1
address-family ipv4 multicast use session-group ibgp
use af-group deacons address-family ipv4 unicast
! use af-group wolfpack
neighbor 8.1.1.2 address-family ipv4 multicast
remote-as 100 use af-group deacons
password encrypted 0310541B150A225E4B1D !
update-source Loopback0 neighbor 8.1.1.2
address-family ipv4 unicast use session-group ibgp
use af-group wolfpack address-family ipv4 unicast
address-family ipv4 multicast use af-group wolfpack
use af-group deacons address-family ipv4 multicast
! use af-group deacons
neighbor 8.1.1.3 !
remote-as 100 neighbor 8.1.1.3
password encrypted 0310541B150A225E4B1D use session-group ibgp
update-source Loopback0 address-family ipv4 unicast
address-family ipv4 unicast use af-group wolfpack
use af-group wolfpack address-family ipv4 multicast
address-family ipv4 multicast use af-group deacons
use af-group deacons

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

Groups may call other template groups


use keyword within group configuration mode
Inheritance only from appropriate types
Topmost value used if variable set more than once
Neighbor Groups
inherit from all types

AF Group Session Group Neighbor Group

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

show bgp process


show bgp summary
show bgp ipv4 unicast summary
show bgp vpnv4 unicast summary
show bgp neighbors <IP> configuration
show bgp policy

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 32
show bgp process
RP/0/7/CPU0:GSR2#show bgp process

BGP Process Information


BGP is operating in STANDALONE mode
Autonomous System: 12
Router ID: 2.2.2.2
Cluster ID: 2.2.2.2
Fast external fallover enabled
Neighbor logging is enabled
Enforce first AS enabled
Default local preference: 100
Default keepalive: 60
Update delay: 120
Generic scan interval: 60

Address family: IPv4 Unicast


Dampening is not enabled
Client reflection is enabled
Scan interval: 60
Main Table Version: 3
IGP notification: IGPs notified
RIB has converged: version 0

Node Process Nbrs Estb Rst Upd-Rcvd Upd-Sent Nfn-Rcv Nfn-Snt


node0_7_CPU0 Speaker 2 2 1 2 4 0 1

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.

Process Id RecvTblVer bRIB/RIB LabelVer ImportVer SendTblVer


Speaker 1 1 1 0 0 0
Speaker 2 2115 2115 0 0 1595
bRIB 3 68541 68541 68541 68541 68541

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


11.0.4.2 2 1 1019 1180 1595 0 0 01:09:10 5

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.

Process Id RecvTblVer bRIB/RIB LabelVer ImportVer SendTblVer


Speaker 1 1 1 0 0 0
Speaker 2 2115 2115 0 0 1595

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


11.0.3.2 2 1001 1025 1023 1595 0 0 01:10:48 5

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 36
show bgp neighbors <IP> configuration

RP/0/7/CPU0:GSR2#show bgp neighbor 11.1.2.7 configuration


neighbor 11.1.2.7
remote-as 7 []
address-family ipv4 unicast []
policy pass-all in []
policy parent out []

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

Processing split between Speakers and centralized RIB


Enables DRPs to participate in BGP operation
Supported on CRS-1

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 39
Standalone BGP - Default

BGP Neighbors (internal or external)

BGP Speaker (on primary RP)

BGP Process Manager (on primary RP)

RIB
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 40
Distributed BGP

Speakers handle communication with peers Speakers on RPs or DRP

Speaker 1 Speaker 2 Speaker 3 Speaker 4


on DRP-1 on DRP-2 on Primary RP on Primary RP

BGP Process Manager (on primary RP)

RIB
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 41
Distributed BGP Partial vs. Full Best Paths

Partial Best Paths Full Best Paths

Speaker 1 Speaker 2 Speaker 3 Speaker 4


on DRP-1 on DRP-2 on Primary RP on Primary RP

BGP Process Manager (on primary RP)

RIB
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 42
Distributed Best Path Selection

Partial Decision on Speaker Final Decision BGP RIB

Check EBGP v IBGP


Compare WEIGHT Compare IGP metric
Compare LOCAL_PREF Check ECMP max
Check LOCAL origination or If paths external and equal,
REDIST prefer oldest
Check AS_PATH Length Compare router_id
Check ORIGIN If using RR and router_id is
Compare MED equivalent use lowest
cluster_id

XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 43
Distributed BGP Configuration

Enable distributed Speakers


distributed speaker 1
distributed speaker 2

Assign neighbor or neighbor group to Speaker


neighbor-group ibgp-peers
speaker-id 2
!
neighbor 8.1.1.1
speaker-id 1

Influence Speaker placement via process placement CLI


(outside scope of this session)

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

Potrebbero piacerti anche