Sei sulla pagina 1di 42

ASR 9000 Quick Start

Practical XR Intro Routing & RPL

Lane Wigley (lwigley@cisco.com)


Service Provider Group Technical Marketing Engineering

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external no softcopy)

39

Routing Agenda
Key Changes from IOS
IGPs
OSPF
ISIS
EIGRP

Static Routes
BGP

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

40

Key Changes from IOS


Protocols are Address Family Neutral
CLI FRPPDQGVGRQWDVVXPHIPv4
Knobs to enable/disable things per Address Family

All configuration for IGPs is under protocol config mode


No routing commands under interfaces
Enable IGP by specifying interfaces rather than ->843:, commands

More concise BGP configuration


Neighbor based
Flexible templates for reuse
Route Policy Language for all route manipulation (BGP & IGP)

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

41

OSPF Configuration Basics


Enable by assigning interfaces to areas
All configuration under :3V8>:?3159
:3V8>:?3159?&$$
7:>7?$

7:>7?&

+-8>:97Q>?.+.?$#E#$#$

+-8>:97Q>?.+.?$#X#$#$

+-8>:97Q>?.+.?$#a#$#E

+-8>:97Q>?.+.?$#X#$#&
5711+*>?>-7H6>

+-8>:97Q>?.+.?$#a#$#a

+-8>:97Q>?.+.?$#X#$#W
Q318?E$
H9= 9718/=>8>Q8
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

42

OSPF show commands


1234?3159 ->+.2H3:?G=>87+6I
!"#$#!%"$#'"($)9:>A701234 3159 ->+.2H3:
<>+.2H3:1?93:?K%"Z &

<>+.2H3:?J\??":+
%878>????????\>7=?@+;>???B==:>11??????J-8>:97Q>
&Y&YXYX??????&?????Z(]]#\!??????$$)$$)X$????&Y&YWYX??????F+.7H+8R82>:->8$#E#$#$
<>+.2H3:?+1?V5?93:?W4a=
<>+.2H3:?J\??":+
%878>????????\>7=?@+;>???B==:>11??????J-8>:97Q>
&Y&Y&Y&??????&?????Z(]]#T\!
$$)$$)X&????&Y&Y&Y&??????F+.7H+8R82>:->8$#E#$#&
<>+.2H3:?+1?V5?93:?W4a=
@3876?->+.2H3:?Q3V-8)?W
!"#$#!%"$#'"($)9:>A701234 3159 ->+.2H3:?=>87+6
<>+.2H3:1?93:?K%"Z &
<>+.2H3:?&Y&YXYXN?+-8>:97Q>?7==:>11?&Y&YWYX
J-?82>?7:>7?$?*+7?+-8>:97Q>?F+.7H+8R82>:->8$#E#$#$?
<>+.2H3:?5:+3:+8A?+1?&N?%878>?+1?Z(]]N?g?1878>?Q27-.>1
\!?+1?&Y&YWYX?T\! +1?&Y&YWYW
K58+3-1?+1?$^aW
]]% K58+3-1?+1?$^& G]!I
\>7=?8+;>:?=V>?+-?$$)$$)XX
<>+.2H3:?+1?V5?93:?W4a=
<V;H>:?39?\T\ :>8:7-1 =V:+-.?6718?>^Q27-.>?$
J-=>^?&#&N?:>8:7-1;+11+3-?kV>V>?6>-.82?$N?-V;H>:?39?:>8:7-1;+11+3-?&
Z+:18?$G$I#$G$I?<>^8?$G$I#$G$I
]718?:>8:7-1;+11+3-?1Q7-?6>-.82?+1?&N?;7^+;V;?+1?&
]718?:>8:7-1;+11+3-?1Q7-?8+;>?+1?$?;1>QN?;7^+;V;?+1?$?;1>Q
lwigley Viking
2009 Cisco Systems, Inc. All rights reserved.
Cisco Confidential (NDA Required for external )

43

OSPF show commands


1234?3159 +-8>:97Q>?GH:+>9I
!"#$#!%"$#'"($)9:>A701234 3159 +-8>:97Q>
F+.7H+8R82>:->8$#E#$#$?+1?V5N?6+->?5:383Q36?+1?V5?
J-8>:->8?B==:>11?&Y&YWYW#WEN?B:>7?$?
":3Q>11?J\?&N?!3V8>:?J\?&Y&YWYWN?<>843:,?@A5>?T!KB\'B%@N?'318)?&
@:7-1;+8?\>67A?+1?&?1>QN?%878>?T\!N?":+3:+8A?&?
\>1+.-78>=?!3V8>:?GJ\I?&Y&YXYXN?J-8>:97Q>?7==:>11?&Y&YWYX
T7Q,V5?\>1+.-78>=?:3V8>:?GJ\I?&Y&YWYWN?J-8>:97Q>?7==:>11?&Y&YWYW
@+;>:?+-8>:*761?Q3-9+.V:>=N?O>663?&$N?\>7=?E$N?M7+8?E$N?!>8:7-1;+8?a
O>663?=V>?+-?$$)$$)$E
J-=>^?&#&N?9633=?kV>V>?6>-.82?$
<>^8?$G$I#$G$I
]718?9633=?1Q7-?6>-.82?+1?&N?;7^+;V;?+1?W
]718?9633=?1Q7-?8+;>?+1?$?;1>QN?;7^+;V;?+1?&?;1>Q
<>+.2H3:?'3V-8?+1?&N?B=l7Q>-8?->+.2H3:?Q3V-8?+1?&
B=l7Q>-8?4+82?->+.2H3:?&Y&YXYX??G\>1+.-78>=?!3V8>:I
%V55:>11?2>663?93:?$?->+.2H3:G1I
!"#$#!%"$#'"($)9:>A701234 3159 +-8>:97Q>?H:+>9
J-8>:97Q>????"J\
B:>7????????????J"?B==:>11#P71,????'318??%878>?<H:1 Z#'
F+$#E#$#$????&?????$???????????????&Y&YWYW#WE?????????&?????T\!
&#&
F+$#E#$#&????&?????$???????????????&Y&Y&YW#WE?????????&?????\!????&#&

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

44

ISIS Configuration Basics


Enable by assigning interfaces to ISIS
All configuration under :3V8>:?+1+1
:3V8>:?+1+1 i67H>6j
->8?ECY$$$&Y$$$$Y$$$$Y$$$QY$$

+-8>:97Q>?.+.?$#E#$#$

7==:>11/97;+6A?+5*E V-+Q718
+-8>:97Q>?.+.?$#E#$#&
7==:>11/97;+6A?+5*E V-+Q718
7==:>11/97;+6A?+5*g V-+Q718

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

45

ISIS show commands


1234?+1+1 ->+.2H3:

!"#$#!%"$#'"($)63,+01234 +1+1 ->+.2H3:


J%/J%?`?->+.2H3:1)
%A18>;?J=??????J-8>:97Q>????????%<"B
.1:`/7=;+-?????F+$#E#$#X????????$$$aY==XWYa$$$
'!%????????????F+$#E#$#&????????$$a$YW7H>YS=9C
F%!W
F+$#E#$#W????????$$a$YW7H>YS=97

%878>?O36=8+;> @A5>?JR@Z/<%Z
(5????W`???????]&]W '757H6>?
(5????Wa???????]&]W '757H6>?
(5????WC???????]&]W '757H6>?

@3876?->+.2H3:?Q3V-8)?X

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

46

ISIS show commands


1234?+1+1 ->+.2H3:?=>87+6

!"#$#!%"$#'"($)63,+01234 +1+1 ->+.2H3:?=>87+6


J%/J%?`?->+.2H3:1)
%A18>;?J=??????J-8>:97Q>????????%<"B
.1:`/7=;+-?????F+$#E#$#X????????$$$aY==XWYa$$$
B:>7?B==:>11G>1I)?ECY$$$&
J"*E B==:>11G>1I)?&&Y&Y&Y`m
@35363.+>1)?bJ"*E (-+Q718b
(58+;>)?$&)&W)XC
F%!W
F+$#E#$#&????????$$a$YW7H>YS=9C
B:>7?B==:>11G>1I)?ECY$$$&
J"*E B==:>11G>1I)?&WY&YWYWm
@35363.+>1)?bJ"*E (-+Q718b
(58+;>)?$X)X`)&`
F%!W
F+$#E#$#W????????$$a$YW7H>YS=97
B:>7?B==:>11G>1I)?ECY$$$&
J"*E B==:>11G>1I)?&WY&YXYWm
@35363.+>1)?bJ"*E (-+Q718b
(58+;>)?$X)X`)&`

%878>?O36=8+;> @A5>?JR@Z/<%Z
(5????WW???????]&]W '757H6>?

(5????WX???????]&]W '757H6>?

(5????Wg???????]&]W '757H6>?

@3876?->+.2H3:?Q3V-8)?X

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

47

ISIS show commands


1234?+1+1 7=l7Q>-QA

!"#$#!%"$#'"($)63,+01234 +1+1 7=l7Q>-QA?


J%/J%?`?]>*>6/&?7=l7Q>-Q+>1)
%A18>;?J=??????J-8>:97Q>????????%<"B
.1:`/7=;+-?????F+$#E#$#X????????$$$aY==XWYa$$$
F%!W
F+$#E#$#&????????$$a$YW7H>YS=9C
F%!W
F+$#E#$#W????????$$a$YW7H>YS=97

%878>?O36=?'27-.>=??<%Z?TZ\
(5????W$???$&)&X)aS?[>1?<3->
(5????W&???$X)XS)X`?[>1?<3->
(5????WC???$X)XS)X`?[>1?<3->

@3876?7=l7Q>-QA?Q3V-8)?X
J%/J%?`?]>*>6/W?7=l7Q>-Q+>1)
%A18>;?J=??????J-8>:97Q>????????%<"B
.1:`/7=;+-?????F+$#E#$#X????????$$$aY==XWYa$$$
F%!W
F+$#E#$#&????????$$a$YW7H>YS=9C
F%!W
F+$#E#$#W????????$$a$YW7H>YS=97

%878>?O36=?'27-.>=??<%Z?TZ\
(5????Wa???$&)&X)aC?[>1?<3->
(5????WS???$X)XS)X`?[>1?<3->
(5????WE???$X)XS)X`?[>1?<3->

@3876?7=l7Q>-QA?Q3V-8)?X

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

48

ISIS show commands


1234?+1+1 +5*E :3V8>

!"#$#!%"$#'"($)63,+01234 +1+1 +5*E :3V8>


J%/J%?`?J"*E (-+Q718?:3V8>1
'3=>1)?]& / 6>*>6?&N?]W?/ 6>*>6?WN?+7 / +-8>:7:>7 G6>7,>=?+-83?6>*>6?&I
=9 / 6>*>6?&?=>97V68?GQ631>18?7887Q2>=?:3V8>:IN?1V / 1V;;7:A?-V66
'?/ Q3-->Q8>=N?%?/ 1878+QN?!?/ !J"N?T?/ TF"N?K?/ K%"Z
+ / J%/J%?G:>=+18:+HV8>=?9:3;?7-382>:?+-187-Q>I
P7^+;V;?57:766>6?5782?Q3V-8)?S
'??&Y&Y&Y&#XW
+1?=+:>Q86A?Q3-->Q8>=N?]335H7Q,$
]& `Y`Y`Y`#XW?dW$#&&ae
*+7?&&Y&Y&Y`N?F+.7H+8R82>:->8$#E#$#XN?.1:`/7=;+'??&&Y&Y&Y$#WE
+1?=+:>Q86A?Q3-->Q8>=N?F+.7H+8R82>:->8$#E#$#X
]& &&Y&YWY$#WE?dW$#&&ae
*+7?&WY&YXYWN?F+.7H+8R82>:->8$#E#$#WN?F%!W
*+7?&WY&YWYWN?F+.7H+8R82>:->8$#E#$#&N?F%!W
'??&WY&YWY$#WE
+1?=+:>Q86A?Q3-->Q8>=N?F+.7H+8R82>:->8$#E#$#&
'??&WY&YXY$#WE
+1?=+:>Q86A?Q3-->Q8>=N?F+.7H+8R82>:->8$#E#$#W
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

49

ISIS show commands


1234?+1+1 835363.A

!"#$#!%"$#'"($)63,+01234 +1+1 835363.A


J%/J%?`?57821?83?J"*E (-+Q718?G]>*>6/&I?:3V8>:1
%A18>;?J=???????P>8:+Q??<>^8/O35????????J-8>:97Q>???????%<"B
.1:`/7=;+-??????&$??????.1:`/7=;+-??????F+$#E#$#X???????$$$aY==XWYa$$$
F%!W
&$??????F%!W
F+$#E#$#W???????$$a$YW7H>YS=97
F%!W
&$??????F%!W
F+$#E#$#&???????$$a$YW7H>YS=9C
F%!&
//
J%/J%?`?57821?83?J"*E (-+Q718?G]>*>6/WI?:3V8>:1
%A18>;?J=???????P>8:+Q??<>^8/O35????????J-8>:97Q>???????%<"B
.1:`/7=;+-??????&$??????.1:`/7=;+-??????F+$#E#$#X???????$$$aY==XWYa$$$
F%!W
&$??????F%!W
F+$#E#$#W???????$$a$YW7H>YS=97
F%!W
&$??????F%!W
F+$#E#$#&???????$$a$YW7H>YS=9C
F%!&
//

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

50

EIGRP Configuration Basics


Enable by assigning interfaces to EIGRP
All configuration under :3V8>:?>+.:5
:3V8>:?>+.:5?iB%j
7==:>11/97;+6A?+5*E
+-8>:97Q>?F+.7H+8R82>:->8$#E#$#$
+-8>:97Q>?F+.7H+8R82>:->8$#E#$#$

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

51

EIGRP show commands


1234?>+.:5 ->+.2H3:

!"#$#!%"$#'"($)+=V-01234 >+.:5 ->+.2H3:


J"/RJF!" ->+.2H3:1?93:?B%?`
O???B==:>11?????????????????J-8>:97Q>???????O36=?(58+;>???%!@@
!@K n??%>k
G1>QI?????????G;1I???????'-8 <V;
W???&WY&YXYW????????????????F+$#E#$#W?????????&X?$$)$$)$&???XE???W$E??$??g
&???&WY&YWYW????????????????F+$#E#$#&?????????&X?$$)$$)$&???XE???W$E??$??a
$???&&Y&Y&Y`????????????????F+$#E#$#X?????????&X?$$)&W)WW????S???W$$??$??E

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

52

EIGRP show commands


1234?>+.:5 ->+.2H3:?=>87+6

!"#$#!%"$#'"($)+=V-01234 >+.:5 ->+.2H3:1?=>87+6


J"/RJF!" ->+.2H3:1?93:?B%?`
O???B==:>11?????????????????J-8>:97Q>???????O36=?(58+;>???%!@@
!@K n??%>k
G1>QI?????????G;1I???????'-8 <V;
W???&WY&YXYW????????????????F+$#E#$#W?????????&W?$$)$&)aW???W&???W$$??$??&W
o>:1+3-?XYX#&YWN?!>8:7-1)?$N?!>8:+>1)?$N?":>9+^>1)?g
&???&WY&YWYW????????????????F+$#E#$#&?????????&W?$$)$&)aW???WW???W$$??$??&X
o>:1+3-?XYX#&YWN?!>8:7-1)?$N?!>8:+>1)?$N?":>9+^>1)?g
$???&&Y&Y&Y`????????????????F+$#E#$#X?????????&W?$$)&E)&X????E???W$$??$??`
o>:1+3-?&WY$#&YWN?!>8:7-1)?&N?!>8:+>1)?$N?":>9+^>1)?E

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

53

EIGRP show commands


1234?>+.:5 835363.A

!"#$#!%"$#'"($)+=V-01234 >+.:5 835363.A?


J"/RJF!" @35363.A?@7H6>?93:?B%G`I#J\G&Y&Y&Y&I
'3=>1)?"?/ "711+*>N?B?/ BQ8+*>N?(?/ (5=78>N?n?/ nV>:AN?!?/ !>56AN
:?/ :>56A?%878V1N?1?/ 1+7 %878V1?
"?`Y$Y$Y$#SN?&?1VQQ>113:1N?Z\?+1?&S&`g$
*+7?&WY&YXYW?G&S&`g$#&ag&g$IN?F+.7H+8R82>:->8$#E#$#W
*+7?&&Y&Y&Y`?G&ag&g$#&WSWagIN?F+.7H+8R82>:->8$#E#$#X
*+7?&WY&YWYW?G&S&`g$#&ag&g$IN?F+.7H+8R82>:->8$#E#$#&
"?&&Y&YWY$#WEN?&?1VQQ>113:1N?Z\?+1?aX`g$
*+7?&WY&YXYW?GaX`g$#WS&g$IN?F+.7H+8R82>:->8$#E#$#W
*+7?&&Y&Y&Y`?GWSE&g#WS&gIN?F+.7H+8R82>:->8$#E#$#X
*+7?&WY&YWYW?GaX`g$#WS&g$IN?F+.7H+8R82>:->8$#E#$#&
"?&&Y&Y&Y$#WEN?&?1VQQ>113:1N?Z\?+1?WS&g$
*+7?'3-->Q8>=N?F+.7H+8R82>:->8$#E#$#X
"?&WY&Y&Y$#WEN?&?1VQQ>113:1N?Z\?+1?WS&g$
*+7?'3-->Q8>=N?F+.7H+8R82>:->8$#E#$#$
"?&WY&YXY$#WEN?&?1VQQ>113:1N?Z\?+1?WS&g$
*+7?'3-->Q8>=N?F+.7H+8R82>:->8$#E#$#W
"?&WY&YWY$#WEN?&?1VQQ>113:1N?Z\?+1?WS&g$
*+7?'3-->Q8>=N?F+.7H+8R82>:->8$#E#$#&
"?&SY$Y$Y$#SN?&?1VQQ>113:1N?Z\?+1?aE$&g
*+7?&WY&YXYW?GaE$&g#WSE&gIN?F+.7H+8R82>:->8$#E#$#W
*+7?&&Y&Y&Y`?GWSE&g#WS&gIN?F+.7H+8R82>:->8$#E#$#X
*+7?&WY&YWYW?GaE$&g#WSE&gIN?F+.7H+8R82>:->8$#E#$#&
lwigley Viking
2009 Cisco Systems, Inc. All rights reserved.
Cisco Confidential (NDA Required for external )

54

Static Routes
Address Family Specific Configuration Modes

:3V8>:?1878+Q
7==:>11/97;+6A?+5*E V-+Q718
$Y$Y$Y$#$?`Y&YCY&
`Y`Y`Y``#XW?`Y&YCY&
SYSYSY&#XW?F+.7H+8R82>:->8$#a#$#&Y&$&
SYSYSY&#XW?F+.7H+8R82>:->8$#a#$#&Y&$W
SYSYSYW#XW?aY&Y&YW
SYSYSYW#XW?aYWY&YW
WY$Y$Y$#WE?F+.7H+8R82>:->8$#$#$#&X?aYaYaYa?H9= 9718/=>8>Q8
_
:3V8>:?1878+Q?7==:>11/97;+6A?+5*g V-+Q718
W$$&)$&HW)S>WX))#ES?W$$&)&)&))&

*:9 933
7==:>11/97;+6A?+5*E V-+Q718
WXY$Y$Y$#S?XYXYXYX

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

55

BGP

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

56

BGP Agenda
Key Concepts
Configuration Basics
Configuration Templates
Monitoring BGP

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

57

IOS XR BGP Key Concepts


Address Families
Configure separately
Must be initialized

Neighbor Based Configuration


Configuration Templates
Neighbor Group
Session Group
Address Family Group

Route Policy Language


Note: Not BGP Specific

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

58

Address Families
Most configuration is address family specific
Must be initialized under bgp global configuration
:3V8>:?H.5 g$$
7==:>11/97;+6A?+5*E V-+Q718

Additional configuration under neighbor AF mode


:3V8>:?H.5 g$$
->+.2H3:?aYaYaYa
7==:>11/97;+6A?+5*E V-+Q718
:3V8>/536+QA?9+68>:h5>>:1 +-

5 address families in release 3.7.2


ipv4 IPv4 Address Family
ipv6 IPv6 Address Family
l2vpn L2VPN Address Family
vpnv4 VPNv4 Address Family

vpnv6 VPNv6 Address Family


lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

59

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 peers
:3V8>:?H.5?&$$
7==:>11/97;+6A?+5*E?V-+Q718
_
->+.2H3:?&Y&Y&Y&
:>;38>/71?W$$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?9+68>:/+-?+:3V8>/536+QA?9+68>:/3V8?3V8

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

60

Configuration Templates
af-group, session-group, and neighbor-group

Templates enable efficient configuration


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

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

61

Address Family Group


Reusable template for Address Family specific parameters
:3V8>:?H.5?&$$$
7==:>11/97;+6A?+5*E?V-+Q718
_
->+.2H3:?&Y&Y&Y&
:>;38>/71?&$$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?933?+;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9?5:>9+^?H382
:>;3*>/5:+*78>/B%
_
->+.2H3:?WYWYWYW
:>;38>/71?W$$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?933?+;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9?5:>9+^?H382
:>;3*>/5:+*78>/B%
_
->+.2H3:?XYXYXYX
:>;38>/71?X$$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?933?+;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9?5:>9+^?H382
:>;3*>/5:+*78>/B%
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

:3V8>:?H.5 &$$$
7==:>11/97;+6A?+5*E V-+Q718
_
79/.:3V5?436957Q, 7==:>11/97;+6A?+5*E V-+Q718
:3V8>/536+QA?933 +;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9 5:>9+^?H382
:>;3*>/5:+*78>/B%
_
->+.2H3:?&Y&Y&Y&
:>;38>/71?W$$
7==:>11/97;+6A?+5*E V-+Q718
V1> 79/.:3V5?436957Q,
_
->+.2H3:?WYWYWYW
:>;38>/71?W$$
7==:>11/97;+6A?+5*E V-+Q718
V1> 79/.:3V5?436957Q,
_
->+.2H3:?XYXYXYX
:>;38>/71?W$$
7==:>11/97;+6A?+5*E V-+Q718
V1> 79/.:3V5?436957Q,

Cisco Confidential (NDA Required for external )

62

Session Group
Reusable template for Address Family independent parameters
:3V8>:?H.5 &$$$
7==:>11/97;+6A?+5*E V-+Q718
7==:>11/97;+6A?+5*E ;V68+Q718
_
->+.2H3:?SY&Y&Y&
:>;38>/71?&$$
571143:=?>-Q:A58>=?$X&$aE&T&a$BWWaRET&\
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E V-+Q718
V1>?79/.:3V5?436957Q,
7==:>11/97;+6A?+5*E ;V68+Q718
V1>?79/.:3V5?=>7Q3-1
_
->+.2H3:?SY&Y&YW
:>;38>/71?&$$
571143:=?>-Q:A58>=?$X&$aE&T&a$BWWaRET&\
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E V-+Q718
V1>?79/.:3V5?436957Q,
7==:>11/97;+6A?+5*E ;V68+Q718
V1>?79/.:3V5?=>7Q3-1
_
->+.2H3:?SY&Y&YX
:>;38>/71?&$$
571143:=?>-Q:A58>=?$X&$aE&T&a$BWWaRET&\
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E V-+Q718
V1>?79/.:3V5?436957Q,
7==:>11/97;+6A?+5*E ;V68+Q718
V1>?79/.:3V5?=>7Q3-1

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

:3V8>:?H.5 &$$$
7==:>11/97;+6A?+5*E V-+Q718
7==:>11/97;+6A?+5*E ;V68+Q718
_
1>11+3-/.:3V5?+H.5
:>;38>/71?&$$
571143:=?>-Q:A58>=?$X&$aE&T&a$BWWaRET&\
V5=78>/13V:Q>?]335H7Q,$
_
->+.2H3:?SY&Y&Y&
V1> 1>11+3-/.:3V5?+H.5
7==:>11/97;+6A?+5*E V-+Q718
V1> 79/.:3V5?436957Q,
7==:>11/97;+6A?+5*E ;V68+Q718
V1> 79/.:3V5?=>7Q3-1
_
->+.2H3:?SY&Y&YW
V1> 1>11+3-/.:3V5?+H.5
7==:>11/97;+6A?+5*E V-+Q718
V1> 79/.:3V5?436957Q,
7==:>11/97;+6A?+5*E ;V68+Q718
V1> 79/.:3V5?=>7Q3-1
_
->+.2H3:?SY&Y&YX
V1> 1>11+3-/.:3V5?+H.5
7==:>11/97;+6A?+5*E V-+Q718
V1> 79/.:3V5?436957Q,
7==:>11/97;+6A?+5*E ;V68+Q718
V1> 79/.:3V5?=>7Q3-1

Cisco Confidential (NDA Required for external )

63

Neighbor Group
Reusable template for both AF and session parameters
:3V8>:?H.5?&$$$
7==:>11/97;+6A?+5*E?V-+Q718
_
->+.2H3:?SY&Y&Y&
:>;38>/71?&$$
571143:=?>-Q:A58>=?$&&&$B$aaX
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?933?+;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9?5:>9+^?H382
_
->+.2H3:?SY&Y&YW
:>;38>/71?&$$
571143:=?>-Q:A58>=?$&&&$B$aaX
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?933?+;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9?5:>9+^?H382
_
->+.2H3:?SY&Y&YX
:>;38>/71?&$$
571143:=?>-Q:A58>=?$&&&$B$aaX
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E?V-+Q718
:3V8>/536+QA?933?+;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9?5:>9+^?H382
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

:3V8>:?H.5 &$$$
7==:>11/97;+6A?+5*E V-+Q718
_
->+.2H3:/.:3V5?Q7*1
:>;38>/71?&$$
571143:=?>-Q:A58>=?$&&&$B$aaX
V5=78>/13V:Q>?]335H7Q,$
7==:>11/97;+6A?+5*E V-+Q718
:3V8>/536+QA?933 +;7^+;V;/5:>9+^?a$$$$?`a
:3V8>/536+QA?H7:?3V8
Q757H+6+8A?3:9 5:>9+^?H382
_
->+.2H3:?SY&Y&Y&
V1> ->+.2H3:/.:3V5?Q7*1
_
->+.2H3:?SY&Y&YW
V1> ->+.2H3:/.:3V5?Q7*1
_
->+.2H3:?SY&Y&YX
V1> ->+.2H3:/.:3V5?Q7*1

Cisco Confidential (NDA Required for external )

64

Template Group Inheritance


Groups may call other template groups
V1> 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
AFG

AFG

AFG

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Session Group
SG

SG

SG

Cisco Confidential (NDA Required for external )

Neighbor Group
SG

NG

AFG

SG

65

BGP Show Commands


1234?H.5 1V;;7:A
1234?H.5 +5*E V-+Q718?1V;;7:A
1234?H.5 *5-*E V-+Q718?1V;;7:A
1234?H.5 ->+.2H3:1?iJ"j?Q3-9+.V:78+3-

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

66

1234?H.5 1V;;7:A
!"#$#!%"$#'"($)63,+01234 H.5 1V;;7:A
TF" :3V8>:?+=>-8+9+>:?WYWYWYWN?63Q76?B%?-V;H>:?&W
TF" .>->:+Q?1Q7-?+-8>:*76?g$?1>Q1
TF" 87H6>?1878>)?BQ8+*>
TF" ;7+-?:3V8+-.?87H6>?*>:1+3-?a
TF" 1Q7-?+-8>:*76?g$?1>Q1
TF" +1?35>:78+-.?+-?%@B<\B]K<R?;3=>Y
":3Q>11?????????!>Q*@H6o>:
H!JT#!JT??]7H>6o>: J;53:8o>: %>-=@H6o>:
%5>7,>:??????????????????a???????????a?????????a??????????a???????????a

<>+.2H3:????????%5,
B%?P1.!Q*= P1.%>-8
@H6o>: J-n KV8n (5#\34-??%8#"9^!Q=
&Y&Y&Y&???????????$????&W??????W$??????W&????????a????$????$?$$)&g)&a????????&
&&Y&YWY`??????????$?????`??????Wg??????WE????????a????$????$?$$)&`)XS????????&

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

67

1234?H.5?+5*E?V-+Q718?1V;;7:A
!"#$#!%"$#'"($)63,+01234 H.5 +5*E V-+Q718?1V;;7:A
TF" :3V8>:?+=>-8+9+>:?WYWYWYWN?63Q76?B%?-V;H>:?&W
TF" .>->:+Q?1Q7-?+-8>:*76?g$?1>Q1
TF" 87H6>?1878>)?BQ8+*>
TF" ;7+-?:3V8+-.?87H6>?*>:1+3-?X
TF" 1Q7-?+-8>:*76?g$?1>Q1
TF" +1?35>:78+-.?+-?%@B<\B]K<R?;3=>Y
":3Q>11?????????!>Q*@H6o>:
H!JT#!JT??]7H>6o>: J;53:8o>: %>-=@H6o>:
%5>7,>:??????????????????X???????????X?????????X??????????X???????????X
<>+.2H3:????????%5,
B%?P1.!Q*= P1.%>-8
@H6o>: J-n KV8n (5#\34-??%8#"9^!Q=
&Y&Y&Y&???????????$????&W???????S???????S????????X????$????$?$$)$E)EW????????&
&&Y&YWY`??????????$?????`??????&&???????S????????X????$????$?$$)$g)$E????????&

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

68

1234?H.5?*5-*E?V-+Q718?1V;;7:A
!"#$#!%"$#'"($)63,+01234 H.5 *5-*E V-+Q718?1V;;7:A
TF" :3V8>:?+=>-8+9+>:?&$Y$Y$Y&N?63Q76?B%?-V;H>:?&
TF" .>->:+Q?1Q7-?+-8>:*76?g$?1>Q1
TF" 87H6>?1878>)?BQ8+*>
TF" ;7+-?:3V8+-.?87H6>?*>:1+3-?gSaE&
TF" 1Q7-?+-8>:*76?g$?1>Q1
TF" +1?35>:78+-.?+-?%@B<\B]K<R?;3=>Y
":3Q>11???J=????!>Q*@H6o>:
H!JT#!JT??]7H>6o>: J;53:8o>: %>-=@H6o>:
%5>7,>:????&?????????????&???????????&?????????$??????????$???????????$
%5>7,>:????W??????????W&&a????????W&&a?????????$??????????$????????&aCa
H!JT
X?????????gSaE&???????gSaE&?????gSaE&??????gSaE&???????gSaE&

<>+.2H3:????????%5,
B%?P1.!Q*= P1.%>-8
@H6o>: J-n KV8n (5#\34-??%8#"9^!Q=
&&Y$YEYW??????????W?????&????&$&C????&&S$?????&aCa????$????$?$&)$C)&$????????a

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

69

1234?H.5?*:9?i-7;>j?1V;;7:A
!"#$#!%"$#'"($)63,+01234 H.5 *:9 8& 1V;;7:A
TF" o!Z 8&N?1878>)?BQ8+*>
TF" !3V8>?\+18+-.V+12>:)?&$Y$Y$Y&)$
TF" :3V8>:?+=>-8+9+>:?&$Y&Y$Y&N?63Q76?B%?-V;H>:?&
TF" .>->:+Q?1Q7-?+-8>:*76?g$?1>Q1
TF" 87H6>?1878>)?BQ8+*>
TF" ;7+-?:3V8+-.?87H6>?*>:1+3-?gSaE&
TF" 1Q7-?+-8>:*76?g$?1>Q1
TF" +1?35>:78+-.?+-?%@B<\B]K<R?;3=>Y
":3Q>11???J=????!>Q*@H6o>:
H!JT#!JT??]7H>6o>: J;53:8o>: %>-=@H6o>:
%5>7,>:???&??????????????&???????????&?????????$??????????$???????????$
%5>7,>:???W???????????W&&a????????W&&a?????????$??????????$????????&aCa
<>+.2H3:????????%5,
B%???P1.!Q*= P1.%>-8
@H6o>: J-n KV8n (5#\34-??%8#"9^!Q=
&&Y$YXYW??????????W??&$$&??????&$Wa????&$WX?????&aCa????$????$?$&)&$)ES????????a

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

70

1234?H.5 ->+.2H3:1?iJ"j?Q3-9+.V:78+3Where (direct or templates) did the final config come from?
!"#$#!%"$#'"($)63,+01234 H.5 ->+.2?EYEYEYE?Q3-9+.V:78+3-?
->+.2H3:?EYEYEYE
:>;38>/71?`$&????????????????????????d1)H7:e
8+;>:1?&$?X$?????????????????????????de
7==:>11/97;+6A?J"*E (-+Q718??????????de
;7^+;V;/5:>9+^?a$$$$?`a?????????????d7)-/.:3V5/76527e
:>;3*>/5:+*78>/B%???????????????????d7)-/.:3V5/76527e
1398/:>Q3-9+.V:78+3-?+-H3V-=?7647A1?d7)-/.:3V5/76527e
7663471/+-?X????????????????????????d7)-/.:3V5/76527?7)Q7A;7-e

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

71

Route Policy Language


Concepts

Note: this is only the really high level bits.


See references for more

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

72

RPL Big Picture


Programming Language
Used to filter routing information
Remove routes
Change attributes

Common tool for XR applications


BGP policy and show commands
IGPs

Replaces route maps (and more!)


Scalable fewer CLI lines, improved clarity

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

73

RPL Concept Map


Control Flow

Sets

Using RPL

if, then, else

Named vs. Inline

Attach Points

Boolean

Types

BGP

Order of Ops

AS Path

Process

Compound

Prefix

Neighbor

Community

VPN

Extended Com

Show CMDs

Hierarchy
Parameters

Actions

VPN RD

IGP
Default

Pass

Redistribution

Set

Show Commands

Done
Drop
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

74

Basic Control Flow


If, then, else, elseif, endif

Basic conditional statement


+9 71/5782?+-?71/5782/1>8/&?82>=:35
>-=+9

Branching options
+9 ;>=?>k?&a$?82>1>8?63Q76/5:>9>:>-Q>?&$
>61>+9 ;>=?>k?W$$?82>1>8?63Q76/5:>9>:>-Q>?g$
>61>
1>8?63Q76/5:>9>:>-Q>?$
>-=+9

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

75

Hierarchical Policy Structure


7556A keyword to call other policies
:3V8>/536+QA?3->
1>8?4>+.28?&$$
>-=/536+QA
:3V8>/536+QA?843
1>8?;>=?W$$
>-=/536+QA

:3V8>/536+QA?82:>>
7556A?843
1>8?Q3;;V-+8A?GW)gggI?
7==+8+*>
>-=/536+QA
:3V8>/536+QA?93V:
7556A?3->
7556A?82:>>
5711
>-=/536+QA
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

76

Parameter Passing
List of policy parameters

:3V8>/536+QA?3->?Gp;>=I
1>8?;>=?p;>=
>-=/536+QA

Accessing the
passed parameter

:3V8>/536+QA?843
7556A?3->?G&$I
>-=/536+QA

Calling policy with


parameter

:3V8>/536+QA?82:>>?Gp;>=Np3:+.+-I
1>8?;>=?p;>=
1>8?3:+.+- p3:+.+>-=/536+QA
:3V8>/536+QA?93V:
7556A?82:>>?G&$N?+-Q3;56>8>I
>-=/536+QA

Multiple parameters
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

77

RPL Actions
Define action (default is drop) and may affect control flow

Pass prefix allowed if not later dropped


!"## grants a ticket to defeat default drop
Execution continues after pass

Set value changed, prefix allowed if not later dropped


Any #$% at any level grants a ticket
Execution continues after #$%
Values can be set more than once

Done prefix allowed, stop execution


Drop prefix is discarded
Explicit drop stops policy execution
Implicit drop (if policy runs to end without getting a ticket)
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

78

BGP & RPL Summary


Address Families
Configure separately
Must be initialized

Neighbor Based Configuration


Configuration Templates
Neighbor Group
Session Group
Address Family Group

Route Policy Language

AGS Manufacturing
lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

(actually all of mfg!)

79

lwigley Viking

2009 Cisco Systems, Inc. All rights reserved.

Cisco Confidential (NDA Required for external )

80

Potrebbero piacerti anche