Cisco IOS-XR Command Reference
49 IOS-XR commands covering IS-IS, MPLS, BGP, and service provider routing. Essential for CCNP Service Provider (SPCOR 350-501) exam preparation.
IS-IS
7 commandsaddress-family ipv4 unicast
Configures IPv4 unicast address family parameters within IS-IS routing process on Cisco IOS-XR.
IS-IS Config
circuit-type level-2-only
Configures the IS-IS interface to operate as a Level-2-only circuit, disabling Level-1 adjacency formation on that interface.
IS-IS Interface Config
interface [intf]
Enters interface configuration mode under IS-IS to apply interface-specific IS-IS parameters.
IS-IS Config
net [NSAP-address]
Configures a NET (Network Entity Title) for IS-IS routing on Cisco IOS-XR.
IS-IS Config
router isis [instance]
Enters IS-IS router configuration mode for a specific IS-IS instance, allowing configuration of IS-IS routing protocol parameters.
Global Config
show isis database
Displays the contents of the IS-IS link-state database (LSDB) on Cisco IOS-XR, showing all LSPs and their details.
EXEC
show isis neighbor
Displays IS-IS neighbor adjacencies and their state on Cisco IOS-XR.
EXEC
MPLS
6 commandsinterface [intf]
Enables MPLS LDP on a specific interface and enters MPLS LDP interface configuration mode.
MPLS LDP Config
mpls ldp
Enters MPLS LDP configuration mode to enable and configure Label Distribution Protocol parameters.
Global Config
mpls traffic-eng
Enables MPLS Traffic Engineering (MPLS-TE) and enters MPLS-TE configuration submode on Cisco IOS-XR.
Global Config
show mpls forwarding-table
Displays the MPLS forwarding table, showing label bindings and next-hop information for label-switched paths.
EXEC
show mpls label range
Displays the configured and allocated MPLS label ranges on the router.
EXEC
show mpls ldp neighbor
Displays the status of Label Distribution Protocol (LDP) neighbors and their session information.
EXEC
BGP
7 commandsaddress-family ipv4 unicast
Activates IPv4 unicast address family configuration under a BGP neighbor, enabling the exchange of IPv4 unicast routes.
BGP Neighbor Config
neighbor [ip]
Configures a BGP neighbor and enters neighbor configuration mode on Cisco IOS-XR.
BGP Config
remote-as [asn]
Configures the remote AS number for a BGP neighbor in Cisco IOS-XR.
BGP Neighbor Config
route-policy [name] [in|out]
Applies a route-policy to filter or modify BGP routes on incoming or outgoing updates for a specific address family.
BGP AF Config
router bgp [asn]
Enters BGP configuration mode for a specified autonomous system number on Cisco IOS-XR.
Global Config
show bgp ipv4 unicast neighbors
Displays detailed information about BGP IPv4 unicast neighbors, including session state, capabilities, and statistics.
EXEC
show bgp ipv4 unicast summary
Displays a summary of BGP IPv4 unicast peering sessions, including neighbor status, prefixes received, and memory usage.
EXEC
OSPF
6 commandsarea [id]
Configures an OSPF area and enters OSPF area configuration mode on Cisco IOS-XR.
OSPF Config
interface [intf]
Configures OSPF interface parameters under the OSPF area configuration mode on Cisco IOS-XR.
OSPF Area Config
router ospf [process-id]
Enters OSPF router configuration mode for a specified process, enabling OSPF routing protocol configuration on Cisco IOS-XR.
Global Config
router-id [ip]
Sets the OSPF router ID for the OSPF process on Cisco IOS-XR.
OSPF Config
show ospf database
Displays the OSPF link-state database (LSDB) for a specified OSPF process or all processes.
EXEC
show ospf neighbor
Displays OSPF neighbor information, including neighbor state, interface, and adjacency details.
EXEC
Routing
8 commandsif destination in [prefix-set] then
Applies route policy actions if the destination prefix matches any prefix in a specified prefix-set.
Route Policy Config
prefix-set [name]
Defines a named set of IPv4 or IPv6 prefixes for use in routing policy language (RPL) configurations.
Global Config
route-policy [name]
Defines or modifies a route policy, which is used to control routing information (e.g., BGP attributes, redistribution) based on match conditions and set actions.
Global Config
router static address-family ipv4 unicast [prefix/len] [nh]
Configures a static route in the IPv4 unicast routing table.
Global Config
set local-preference [value]
Sets the BGP local preference value for routes matching the route policy, influencing the best path selection within an AS.
Route Policy Config
set med [value]
Sets the MULTI_EXIT_DISC (MED) attribute for BGP routes in a route policy.
Route Policy Config
show route
Displays the current routing table entries on Cisco IOS-XR, including directly connected, static, and dynamic routes.
EXEC
show route summary
Displays a summary of the routing table, including route counts by protocol and table statistics.
EXEC
Interfaces
3 commandsshow interfaces
Displays detailed status and statistics for all interfaces or a specific interface on Cisco IOS-XR.
EXEC
show ipv4 interface brief
Displays a summary of all IPv4 interfaces on the router, including their status, protocol, and IP address.
EXEC
show ipv6 interface brief
Displays a brief summary of IPv6 interface status and configuration, including IPv6 addresses and operational state.
EXEC
System Management
9 commandsadmin
Enters the administration mode (admin plane) from XR EXEC mode to perform system-level configuration and maintenance tasks.
EXEC
commit
Commits the candidate configuration to the running configuration in Cisco IOS-XR.
Config
commit label [name]
Assigns a label to a configuration commit for easier identification and rollback.
Config
rollback configuration last [n]
Rolls back the configuration to a previous commit point, reverting changes made in the last N commits.
EXEC
show configuration commit list
Displays the list of committed configuration changes with commit IDs, labels, timestamps, and user information.
EXEC
show platform
Displays the hardware and software inventory of all line cards, modules, and their operational status on a Cisco IOS-XR router.
EXEC
show processes cpu
Displays CPU utilization statistics for all processes running on the Cisco IOS-XR router.
EXEC
show running-config
Displays the current running configuration of the Cisco IOS-XR device.
EXEC
show version
Displays system hardware and software information, including IOS-XR version, uptime, and hardware components.
EXEC
Diagnostics
3 commandsping [ip]
Tests basic network connectivity to a remote host by sending ICMP echo requests and waiting for replies.
EXEC
show logging
Displays the contents of the system logging buffer, including syslog messages generated by the router.
EXEC
traceroute [ip]
Traces the route packets take to a destination IP address, showing each hop and round-trip time.
EXEC
Prepare for CCNP Service Provider
Command knowledge is the foundation. Put it to the test with CCNP SPCOR-style practice questions.