Iosxr Cli
Iosxr Cli
Iosxr Cli
XR Training / lwigley
Cisco Confidential
XR Training / lwigley
Cisco Confidential
XR Command Modes
SDR Exec Normal operations - monitoring routing and CEF RP/0/RP0/CPU0:router#
show ipv4 interfaces brief show install active show running-config show cef summary location 0/5/CPU0
Cisco Confidential
POWER SUPPLIES
AIR OUT
FAN TRAY
PLIM
FAN CTRL
PLIM
[RACK]/RP1/CPU0
F A B MSC R MSC I C
CABLE MGMT
CABLE MGMT
RP/0/RP0/CPU0:CRS(admin)#show platform Node Type PLIM State Config State -------------------------------------------------------------------------0/0/SP UNKNOWN(SP) N/A PRESENT PWR,NSHUT,MON 0/2/SP MSC(SP) N/A IOS XR RUN PWR,NSHUT,MON 0/2/CPU0 MSC 4OC192-POS/DPT IOS XR RUN PWR,NSHUT,MON 0/5/SP MSC(SP) N/A IOS XR RUN PWR,NSHUT,MON 0/5/CPU0 MSC Jacket Card IOS XR RUN PWR,NSHUT,MON 0/5/0 MSC(SPA) 8X1GE OK PWR,NSHUT,MON 0/7/SP UNKNOWN(SP) N/A PRESENT PWR,NSHUT,MON 0/RP0/CPU0 RP(Active) N/A IOS XR RUN PWR,NSHUT,MON 0/SM0/SP FC/S(SP) N/A IOS XR RUN PWR,NSHUT,MON 0/SM1/SP FC/S(SP) N/A IOS XR RUN PWR,NSHUT,MON 0/SM2/SP FC/S(SP) N/A IOS XR RUN PWR,NSHUT,MON 0/SM3/SP FC/S(SP) N/A IOS XR RUN WR,NSHUT,MON
PLIM R P
R P
PLIM
F A B MSC R MSC I C
FAN TRAY
AIR INTAKE
XR Training / lwigley
Cisco Confidential
XR Training / lwigley
Cisco Confidential
XR Training / lwigley
Cisco Confidential
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0 area 1 interface pos 0/4/0/0
Commit
Changes take effect
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Syntax Check
after each line
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0 area 1 interface pos 0/4/0/0
Semantic Check
during commit
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Unique ID Automatically Generated Earlier commit with optional label Changes added to commit history
hostname Backbone-CRS line default exec-timeout 1440 0 ! Interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 interface gig 0/3/0/0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 Cisco Confidential
9
#1 #2
BGP Change
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 router ospf 100 area 0 interface gig 0/3/0/2
#3 #4
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0 area 1 interface pos 0/4/0/0
Commit
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
#1 #2
BGP_Change
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 router ospf 100 area 0 interface gig 0/3/0/2
#3 #4 #5
interface gig 0/3/0/2 no ipv4 address 9.19.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/2
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0
interface gig 0/3/0/0 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/0
hostname Backbone-CRS line default exec-timeout 1440 0 ! Interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 interface gig 0/3/0/0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 Cisco Confidential
10
#1 #2
All changes back to and including those made with the commit referenced
BGP_Change
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 router ospf 100 area 0 interface gig 0/3/0/2
#3 #4 #5
interface gig 0/3/0/2 no ipv4 address 9.19.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/2 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0
interface gig 0/3/0/0 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/0
no router interface no ipv4 interface no ipv4 bgp 100 gig 0/3/0/2 address 9.19.9.9/24 gig 0/3/0/0 address 9.9.9.9/24
bgp 100 gig 0/3/0/2 address 9.19.9.9/24 gig 0/3/0/0 address 9.9.9.9/24
bgp 100 gig 0/3/0/2 address 9.19.9.9/24 gig 0/3/0/0 address 9.9.9.9/24
router ospf 100 area 0 no interface gig 0/3/0/2 no interface gig 0/3/0/0
Commit
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
11
Rollback
interface gig 0/3/0/5 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/5
#1 #2
BGP_Change
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 router ospf 100 area 0 interface gig 0/3/0/2
#3 #4 #5
interface gig 0/3/0/2 no ipv4 address 9.19.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/2 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0
interface gig 0/3/0/0 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/0
interface gig 0/3/0/2 no ipv4 address 9.19.9.9/24 interface gig 0/3/0/0 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/2 no interface gig 0/3/0/0
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/2 interface gig 0/3/0/0
Commit
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
12
Rollback
interface gig 0/3/0/5 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/5
#1 #2
BGP_Change
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 router ospf 100 area 0 interface gig 0/3/0/2
#3 #4 #5
interface gig 0/3/0/2 no ipv4 address 9.19.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/2 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1 hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router ospf 100 area 0 area 1 interface pos 0/4/0/0 ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0
interface gig 0/3/0/0 no ipv4 address 9.9.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/0
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 ! interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 ! router ospf 100 area 0 interface gig 0/3/0/0 interface gig 0/3/0/2
interface gig 0/3/0/2 ipv4 address 9.19.9.9/24 ! interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 ! router ospf 100 area 0 interface gig 0/3/0/0 interface gig 0/3/0/2
interface gig 0/3/0/0 no ipv4 address 9.9.9.9/24 interface gig 0/3/0/2 no ipv4 address 9.19.9.9/24 router ospf 100 area 0 no interface gig 0/3/0/2 no interface gig 0/3/0/0
Commit
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
13
Syntax Check
after each line
PASSES
No Change
Semantic Check
during commit BGP cannot be taskgroup name
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 taskgroup bgp task read bgp task write bgp
FAILS
hostname Backbone-CRS line default exec-timeout 1440 0 ! taskgroup ops task read boot task write boot task execute bgp ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
14
Syntax Check
after each line
PASSES
Partial Commit
Semantic Check
during commit BGP cannot be taskgroup name
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 taskgroup bgp task read bgp task write bgp
FAILS
hostname Backbone-CRS line default exec-timeout 1440 0 ! interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 ! taskgroup ops task read boot task write boot task execute bgp ! router static address-family ipv4 unicast 0.0.0.0/0 7.1.9.1 7.7.7.77/32 7.1.9.1
Target Configuration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
15
interface gig 0/3/0/0 ipv4 address 9.9.9.9/24 router ospf 100 area 0 interface gig 0/3/0/0 area 1 interface pos 0/4/0/0
interface gig 0/3/0/0 ipv4 address 9.9.9.7/24 router ospf 100 area 2 interface gig 0/3/0/0 area 4 interface pos 0/4/0/0
Second to Commit
One or more commits have occurred from other configuration sessions since this session started or since the last commit was made from this session. You can use the 'show configuration commit changes command to browse the changes. Do you wish to proceed with this commit anyway? [no]:
Cisco Confidential
16
XR Training / lwigley
Cisco Confidential
17
Preconfiguration / OIR
Interfaces can be preconfigured
Configuration will become active when matching HW inserted
Future interface can be assigned to routing protocols OIR moves configuration to preconfigured state
XR Training / lwigley
Cisco Confidential
18
Monitoring Configuration
From Config Mode
show Display target config for current sub-mode show config Display entire target config show config merged Display target and active config together show config running Display active config show config rollback Display possible rollback options show config failed Display config that failed semantic check
XR Training / lwigley
Cisco Confidential
19
Monitoring Configuration
From SDR Exec Mode
RP/0/RP0/CPU0:CRS#show running-config Building configuration... !! Last configuration change at 12:17:03 UTC Wed Jun 28 2006 by ww ! hostname CRS line default exec-timeout 1440 0 RP/0/RP0/CPU0:CRS#show config commit history SNo. Label/ID User Line Client ~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~ 1 1000000296 ww con0_RP0_C CLI 2 1000000295 ww con0_RP0_C CLI 3 1000000294 ww vty0 CLI 4 1000000293 admin vty0 CLI 5 1000000292 admin vty0 CLI Time Stamp ~~~~~~~~~~ 12:17:03 UTC 12:16:47 UTC 12:09:03 UTC 06:47:51 UTC 06:47:18 UTC
28 28 28 28 28
RP/0/RP0/CPU0:CRS#show config commit changes last 5 Building configuration... hostname CRS policy-map edge class prec_5 bandwidth remaining percent 50 RP/0/RP0/CPU0:CRS#show config sessions Session Line User 00000201-0014e0da-00000000 vty0 ww
Lock *
20
XR Training / lwigley
Cisco Confidential
Configuration Notes
Default configurations not shown
show running isnt effective for system inventory
Cisco Confidential
21
XR Training / lwigley
Cisco Confidential
22
XR Training / lwigley
Cisco Confidential
23
Tasks
Building blocks for on-box authorization scheme 4 types of permissions per task
Read Write Execute Debug
aaa acl admin atm basic-services bcdl bfd bgp boot bundle cdp cef cisco-support config-mgmt config-services crypto diag disallowed drivers eigrp ext-access fabric fault-mgr filesystem firewall fr hdlc host-services
Tasks
hsrp interface inventory ip-services ipv4 ipv6 isis logging lpts monitor mpls-ldp mpls-static mpls-te multicast netflow network ospf ouni pkg-mgmt pos-dpt ppp qos rib rip root-lr root-system route-map route-policy sbc snmp sonet-sdh static sysmgr system transport tty-access tunnel universal vlan vrrp
XR Training / lwigley
Cisco Confidential
24
Write
aaa acl admin atm basicservices bcdl bfd bgp
Execute
aaa acl admin atm basicservices bcdl bfd bgp
Debug
aaa acl admin atm basic-services bcdl bfd bgp
taskgroup basic-admin task read acl task read bfd task read bgp task write acl task write bfd task write bgp task debug bgp
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
usergroup noc-staff taskgroup operator taskgroup basic-admin inherit usergroup all-users ! usergroup allusers taskgroup basic-stuff
Cisco Confidential
25
XR Training / lwigley
XR Training / lwigley
Cisco Confidential
27
Basic XR Security
XR Training / lwigley
Cisco Confidential
28
ipv4 access-list ingress-filter 10 permit tcp any any eq 2342 20 permit udp any host 7.7.7.7 30 deny ipv4 any host 6.6.6.6 40 permit ipv4 any any
XR Training / lwigley
Cisco Confidential
29
Software Installation
XR Training / lwigley
Cisco Confidential
30
Mini?
PIE?
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Package?
SMU?
Cisco Confidential
31
MGBL
SEC
Optional
MPLS MCAST
Mandatory
XR Training / lwigley
Cisco Confidential
32
Includes authentication info Installed from IOS XR admin mode .vm files are the other delivery mechanism
.vm files are bootable images Used as the Initial Install for GSR migration
XR Training / lwigley 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
33
XR Training / lwigley
Cisco Confidential
34
Release Deliverables
From CCO - CRS-1-iosxr-3.3.0.tar Which includes
Unicast Routing Composite PIE (aka mini) Routing, LC, Forwarding, Admin, Base, MBI (min boot image) Optional PIEs Manageability MPLS Multicast Security
XR Training / lwigley
Cisco Confidential
35
XR Training / lwigley
Cisco Confidential
36
Cisco Confidential
37
3.2.8x 3.3.8x
XR Training / lwigley
SMU Delivery
SMU is named by release and bugid Usually 50-200kb PIE file Examples
hfr-rout-3.2.2.CSCei63263.pie hfr-base-3.2.2.CSCeh52427.pie
XR Training / lwigley
Cisco Confidential
39
CRS-1
CRS has flash to store image on MSC
MEM DISK
MEM DISK
MEM DISK
MEM DISK
RP0
MEM Flash MEM Flash
RP1
MEM Flash MEM Flash
DRP0
MEM Flash MEM Flash
DRP1
MEM Flash MEM Flash
LC0
LC1
LC2
LC3
LC4
LC5
LC6
LC7
XR 12000
MEM DISK
MEM DISK
MEM DISK
MEM DISK
RP0
MEM MEM
RP1
MEM MEM
DRP0
MEM MEM
DRP1
MEM MEM
LC0
LC1
LC2
LC3
LC4
LC5
LC6
LC7
40
XR Training / lwigley
Cisco Confidential
Routing Line card Forwarding Admin Base OS-MBI Disk0, Disk1, or TFTP Server
MEM DISK
MEM DISK
MEM DISK
MEM DISK
RP0
MEM Flash MEM Flash
RP1
MEM Flash MEM Flash
DRP0
MEM Flash MEM Flash
DRP1
MEM Flash MEM Flash
LC0
LC1
LC2
LC3
LC4
LC5
LC6
LC7
Step 2
Step 3
Cisco Confidential
41
Step 1
Routing Line card Forwarding Admin Base OS-MBI Disk0, Disk1, or TFTP Server
MEM DISK
MEM DISK
MEM DISK
MEM DISK
RP0
MEM MEM
RP1
MEM MEM
DRP0
MEM MEM
DRP1
MEM MEM
LC0
LC1
LC2
LC3
LC4
LC5
LC6
LC7
Step 2
Step 3
XR Training / lwigley
Cisco Confidential
42
TURBOBOOT In Action
\
TURBOBOOT: Copying the packages to disk0: RP/0/7/CPU0:May 18 11:21:28.390 : instdir[196]: %INSTALL-INSTMGR-6INSTALL_OPERATION_STARTED : Install operation 1 'install copy-package mem: to disk0:' started by user '(Unknown)' Install operation 1 'install copy-package mem: to disk0:' started by user '(Unknown)' at 11:21:28 UTC Thu May 18 2006. Info: Checking available free space in disk0: Info: Copying installed files from mem: to disk0: Info: Copying component 'boot-mbi-prp-drp' size > 9 MB. Info: Copying component 'c12000-boot-mbiprp.4k' size > 7 MB. Info: Copying component 'boot-mbi-prp' size > 9 MB. Info: Copying component 'installmgr' size > 2 MB. Info: Copying component 'config-cfgmgr' size > 1 MB. Info: Copying component 'doc-hfr-base' size > 2 MB. Info: Copying component 'ifmgr.4k' size > 1 MB. Info: Copying component 'ifmgr' size > 1 MB. Info: Copying component 'infra-distrib.4k' size > 1 MB. Info: Copying component 'infra-distrib' size > 1 MB. Info: Copying component 'doc-hfr-admin' size > 1 MB. Info: Copying component 'drivers-vpa-infra.4k' size > 1 MB.
XR Training / lwigley
Cisco Confidential
43
XR Training / lwigley
Cisco Confidential
44
XR Training / lwigley
Cisco Confidential
45
Cisco Confidential
46
RP/0/0/CPU0:P5(admin)#install commit Install: The idle timeout on this line will be suspended for synchronous install operations Install 5: [ 1%] Install operation 'commit' assigned request id: 5 Install 5: [100%] Committing uncommitted changes in software configurations. Install 5: [100%] Commit operation successful. Install 5: [100%] Idle timeout on this line will now be resumed for synchronous operations
XR Training / lwigley
Cisco Confidential
47
Deactivating Packages
RP/0/0/CPU0:P5(admin)#install deactivate disk0:c12k-rp-mgbl-3.2.85 Install: The idle timeout on this line will be suspended for synchronous install operations Install: Starting install operation. Do not insert or remove cards until the operation completes. RP/0/0/CPU0:P5(admin)# Install: Now operating in asynchronous mode. Do not attempt subsequent install operations until this operation is complete. Install 8: [ 0%] Install operation 'deactivate disk0:c12k-mgbl-3.2.85' assigned request id: 8 Install 8: [ 1%] Package 'disk0:c12k-mgbl-3.2.85' is not active and cannot be deactivated. Install 8: [ 1%] Idle timeout on this line will now be resumed for synchronous install operations
Package features no longer available Package still installed Package can be reactivated
XR Training / lwigley
Cisco Confidential
48
XR Training / lwigley
Cisco Confidential
49
RP/0/RP0/CPU0:P1(admin)#show install log 2 Request id 2 by cisco at Tue Apr 05 21:16:16 2005: 1 pie added to disk0:: /tftp://10.0.0.100/hfr-mpls-p.pie-3.2.83.1i Status Information Logs: Downloading PIE file from /tftp://10.0.0.100/hfr-mpls-p.pie-3.2.83.1i Downloaded the package to the router Verifying the package [OK] Verification of the package successful [OK] Going ahead to install the package... Add of '/tftp://10.0.0.100/hfr-mpls-p.pie-3.2.83.1i' completed. Add successful. The following package(s) and/or SMU(s) are now available to be activated: disk0:hfr-mpls-3.2.83 Please carefully follow the instructions in the release notes when activating any software
XR Training / lwigley
Cisco Confidential
50
Installation Notes
On CRS-1, LC software is stored on LCs (MSCs) On 12000, LC image must be loaded over fabric Option to Install multiple packages at once
install add tftp://1.1.1.1/A tftp://1.1.1.1/B tftp://1.1.1.1/C
System does sanity checking, can be overridden Clock must be set correctly
XR Training / lwigley
Cisco Confidential
51
XR Training / lwigley
Cisco Confidential
52
Q and A
XR Training / lwigley
Cisco Confidential
53
XR Training / lwigley
Cisco Confidential
54