4-20
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter4 Configuring General Router Features
Navigating the CiscoIOS XR Comm and Modes
Global configuration Global configuration mode is the starting point for SDR configuration. Commands entered in th is
mode affect the SDR as a whole, rather than just one protocol or interface. Global configuration
mode is also used for entering configuration submodes to configure specific elements, such as
interfaces or protocols.
To enter global configuration mode, enter the configure command at the EXEC command prompt:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)#
Note The system prompt changes to “router(config)” to indicate that the router is now in global
configuration mode.
Configuration
submodes
From the global configuration mode, you can also enter other, more specific comm and modes.
These modes are available based on your assigned access privileges and include protocol-specific,
platform-specific, and feature-specific configuration modes.
In the following example, MPLS LDP configuration mode is entered from global configuration
mode. The prompt for MPLS LDP configuration submode appears as config-ldp. The following
command syntax is used for entering configuration MPLS LDP su bmode:
RP/0/RP0/CPU0:router#
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# mpls ldp
RP/0/RP0/CPU0:router(config-ldp)
Note The availability of any particular mode depends on the router features and the access rights
of the individual user. For example, a configuration mode for configuring access servers is
not available on most routers.
Interface configuration The interface configuration submode is used to select and configure a hardware interface, such as a
Packet-over-SONET/SDH (POS) interface. To enter interface configuration mode from global
configuration mode, use an interface command. An interface configuration command always
follows an interface global configuration command, which defines the interface type. The following
command syntax is used for entering interface configura tion submode:
RP/0/RP0/CPU0:router(config)# interface POS 0/2/0/0
RP/0/RP0/CPU0:router(config-if)#
Router configuration The router configuration submode is used to select and configure a routing protoco l, such as BGP,
OSPF, or IS-IS. The following command syntax is used for entering router configuration submode:
RP/0/RP0/CPU0:router(config)# router <
protocol
> <
protocol_options
>
Replace protocol with the keyword for the protocol you want to configure. Replace
protocol_options with any keywords and arguments required for that protocol. In the following
example, the router enters the router configuration mode for BGP:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router bgp 140
RP/0/RP0/CPU0:router(config-bgp)#
Table4-4 Common Command Modes and CLI prompts (continued)
Command Mode Description