Yi Tang-Cisco Carrier-Class device system IOS XR System Management

Source: Internet
Author: User

Cisco Carrier level device system IOS XR System Management

In this section, we will focus on how iOS XR saves, rolls back configuration, cleans up configuration, and other commonly used file system management, which are very useful commands for future daily use

1.3.1 Save configuration and load configuration

The iOS XR system differs from the traditional iOS system, and after the configuration is complete, the content is not immediately executed, but only after the commit (commit) command is entered, which is called Level two commit mode.
The part of the change is called the target config. Before committing, you can check and modify the configuration, easy to add tags for operations, support fallback features, configure the validation of user configuration errors and other practical commands. We show you the power of iOS XR in several implementations as follows
1. Clear the configuration on the existing router:

Rp/0/0/cpu0:asbr2-init (config) #commit replace//Some configuration already exists on this device, the command can be cleared without restarting the device Wed Sep 7 15:13:54.286 utcthis Commit Would replace or remove the entire running configuration. Thisoperation can be service affecting. wish to proceed? [No]: Y//Type Y to confirm, default is not processed RP/0/0/CPU0:SEP 7 15:13:59.185:ospfv3[1024]:%routing-ospfv3-5-adjchg:process, NBR 11.1.1 .1 on GIGABITETHERNET0/0/0/2 from full to down, Neighbor down:interface down or detached rp/0/0/cpu0:sep 7 15:13:59.185  : ospfv3[1024]:%routing-ospfv3-5-adjchg:process, Nbr 33.1.1.1 on gigabitethernet0/0/0/0 from full to down, Neighbor Down:interface down or detached rp/0/0/cpu0:sep 7 15:13:59.245:isis[1006]:%routing-isis-5-adjchange:adjacency to P E-XR1 (GIGABITETHERNET0/0/0/2) (L1) down, Interface state down Rp/0/0/cpu0:sep 7 15:13:59.245:isis[1006]:%routing-isis -5-adjchange:adjacency to Pe-xr1 (GIGABITETHERNET0/0/0/2) (L2) down, Interface state down Rp/0/0/cpu0:sep 7 15:13:59.26 5:IFMGR[225]:%pkt_infra-liNk-3-updown:interface GIGABITETHERNET0/0/0/7, changed state-to-down RP/0/0/CPU0:SEP 7 15:13:59.265:ifmgr[225]:%PKT_I  Nfra-link-3-updown:interface GIGABITETHERNET0/0/0/6, changed state-to-down RP/0/0/CPU0:SEP 7 15:13:59.265:ifmgr[225]: %pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/5, changed state to down Rp/0/0/cpu0:ios (config) #RP/0/0/cpu0 : Sep 7 15:13:59.265:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/4, changed state-to-down RP/0 /0/CPU0:SEP 7 15:13:59.265:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/3, changed state to do WN rp/0/0/cpu0:sep 7 15:13:59.265:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/1, changed stat E to Rp/0/0/cpu0:sep 7 15:13:59.265:ifmgr[225]:%pkt_infra-link-3-updown:interface mgmteth0/0/cpu0/0, changed St Ate to Rp/0/0/cpu0:sep 7 15:13:59.325:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/7, Cha Nged state to up RP/0/0/CPU0:SEP 7 15:13:59.325:ifmgr[225]:%pkt_infra-link-3-updown:interface mgmteth0/0/cpu0/0, changed state to up RP/0/0/CPU 0:SEP 7 15:13:59.325:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/6, changed state to up RP/0/ 0/CPU0:SEP 7 15:13:59.335:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/5, changed state to up RP/0/0/CPU0:SEP 7 15:13:59.335:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/4, changed state t o up rp/0/0/cpu0:sep 7 15:13:59.335:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/3, changed St Ate to up Rp/0/0/cpu0:ios (config) #//device has been initialized, the reader can see that the name has changed to initialize the content
    1. Submit configuration, view specific configuration changes
      rp/0/0/cpu0:ios#conf t//Enter configuration mode
      Wed Sep 7 15:17:54.019 UTC
      Rp/0/0/cpu0:ios (config) #hostname qyt-ender//test by simple command to modify host name
      Rp/0/0/cpu0:ios (config) #show configuration//As mentioned earlier, the XR system does not take effect immediately after the command has been configured, the reader can see the hostname or initialization name, we can configure the mode of the show Configuration view commands that have been configured but not committed
      Wed Sep 7 15:18:03.728 UTC
      Building configuration ...
      !! IOS XR Configuration 5.2.0
      Hostname Qyt-ender
      End

Rp/0/0/cpu0:ios (config) #commit//Formal Submission
Wed Sep 7 15:18:14.608 UTC
RP/0/0/CPU0:SEP 7 15:18:14.658:ike[227]:%security-ike-4-warning:you may want to configure a domain-name
IOS XR can also view a list of commands that have been configured as follows
Rp/0/0/cpu0:qyt-ender#show Configuration Commit List
Wed Sep 7 15:22:57.438 UTC
SNo. Label/id User line Client time Stamp
~~ ~~ ~~ ~~~~~~
1 1000000027 Cisco con0_0_cpu0 CLI Wed Sep 7 15:18:14 2016
2 1000000026 Cisco con0_0_cpu0 CLI Wed Sep 7 15:13:59 2016
View the contents of the commit configuration changes to easily see which configuration caused the error
Rp/0/0/cpu0:qyt-ender#show configuration Commit Changes last 1
Wed Sep 7 15:23:52.265 UTC
Building configuration ...
!! IOS XR Configuration 5.2.0
Hostname Qyt-ender
End
Because XR can save each modified configuration, the XR can also be easily rolled back to a configuration, which is a "blood good" function in the engineer's cut-off
Rp/0/0/cpu0:qyt-ender#rollback configuration to init//in privileged mode rollback is configured to a named "tag" called INIT, which is actually named for a configuration, which makes it easy for engineers to identify We will explain how to "label" the configuration in the following content
Wed Sep 7 15:28:16.856 UTC
Loading Rollback changes.
Loaded Rollback Changes in 1 sec
Committing ..... RP/0/0/CPU0:SEP 7 15:28:22.306:ike[227]:%security-ike-4-warning:you may want to configure a domain-name
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%pkt_infra-link-5-changed:interface mgmteth0/0/cpu0/0, CHANGED state to ADM Inistratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%pkt_infra-link-5-changed:interface GIGABITETHERNET0/0/0/1, CHANGED State To administratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%pkt_infra-link-5-changed:interface GIGABITETHERNET0/0/0/3, CHANGED State To administratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%pkt_infra-link-5-changed:interface GIGABITETHERNET0/0/0/4, CHANGED State To administratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%pkt_infra-link-5-changed:interface GIGABITETHERNET0/0/0/5, CHANGED State To administratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%pkt_infra-link-5-changed:interface GIGABITETHERNET0/0/0/6, CHANGED State To administratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:ifmgr[225]:%PKTinfra-link-5-changed:interface GIGABITETHERNET0/0/0/7, CHANGED state to administratively down
RP/0/0/CPU0:SEP 7 15:28:22.346:sshd
[1121]:%security-mpp-6-msg_info:updated Management Plane configuration for Service:ssh
RP/0/0/CPU0:SEP 7 15:28:22.446:isis[1006]:%routing-isis-5-adjchange:adjacency to 49.0123.0000.0000.1111 ( GIGABITETHERNET0/0/0/2) (L1) up, New adjacency

Committed in 5 sec (items/sec)
UPDATING.RP/0/0/CPU0:SEP 7 15:28:22.536:isis[1006]:%routing-isis-5-adjchange:adjacency to 49.0123.0000.0000.1111 ( GIGABITETHERNET0/0/0/2) (L2) up, New adjacency
RP/0/0/CPU0:SEP 7 15:28:23.286:config_rollback[65730]:%mgbl-config-6-db_commit:configuration committed by user ' CISC O '. Use ' show configuration commits changes 1000000028 ' to view the changes.

Updated Commit Database in 1 sec
Configuration successfully rolled back to ' INIT '. A successful rollback of the configuration

1.3.2 Submit configuration tags and view failed commits

The ability to configure the submit tag is very useful, if the engineer is not successful in a configuration, then can be submitted as a label, the next implementation continues to be useful, such as the following command submitted a tag named Init

RP/0/0/CPU0:ASBR-2(config)#hostname asbr2-INIT   

Wed Sep 7 15:34:09.252 UTC
SNo. Label/id User line Client time Stamp
~~ ~~ ~~ ~~~~~~
1 1000000028 Cisco con0_0_cpu0 Rollback Wed Sep 7 15:28:17 2016
2 1000000027 Cisco con0_0_cpu0 CLI Wed Sep 7 15:18:14 2016
3 1000000026 Cisco con0_0_cpu0 CLI Wed Sep 7 15:13:59 2016
4 INIT Cisco con0_0_cpu0 CLI Wed Sep 7 15:13:09 2016
5 1000000024 Cisco con0_0_cpu0 CLI Sat 27 15:12:59 2016
XR configuration is based on a hierarchical, this reader in the subsequent content will be deeply realized, because of this, because of logical reasons or order reasons, the error is unavoidable, XR can quickly use the command to locate the error. If the configuration is not quickly modified due to too many configurations, the reader can remove the current configuration with the clear command, or the user can discard the configuration entirely using the Abort command. As shown below:
Rp/0/0/cpu0:asbr-2 (config) #show configuration failed//Please note that it is implemented directly in config mode
Wed Sep 7 15:36:07.784 UTC
% no such configuration item (s)//Not configured incorrectly
Rp/0/0/cpu0:test (config) #int lo0//Attempt to configure the loopback port
Rp/0/0/cpu0:test (config-if) #show Configuration//Verify uncommitted configurations
Thu Nov 10:20:39.821 UTC
Building configuration ...
!! IOS XR Configuration 5.2.0
Interface Loopback0
!
End

Rp/0/0/cpu0:test (CONFIG-IF) #clear//clear the current implementation
Rp/0/0/cpu0:test (config) #show configuration
Thu Nov 10:21:16.648 UTC
Building configuration ...
!! IOS XR Configuration 5.2.0
End

1.3.3 command to annotate and submit confirmation options

In the XR, although the pipe character is still used, that is, to view the implementation and verify the important content, but the content is marginalized, because XR provides a way to verify with the navigation function, the reader can directly add the view of the Protocol, interface, etc., as shown below

RP/0/0/CPU0:ASBR-2#show running-config interface //直接查看接口的实施,读者可以慢慢摸索可以直接精确的查看配置的选项Wed Sep  7 15:44:02.462 UTCinterface Loopback0 ipv4 address 22.1.1.1 255.255.255.255 ipv6 address 2022::2/128!interface MgmtEth0/0/CPU0/0 shutdown!interface GigabitEthernet0/0/0/0 ipv4 address 23.1.1.2 255.255.255.0 ipv6 address 2023::2/64RP/0/0/CPU0:ASBR-2#show running-config control-plane Wed Sep  7 15:44:50.838 UTCcontrol-plane management-plane  inband   interface GigabitEthernet0/0/0/0

If the engineer has already clarified the content of this implementation, you can also submit annotations for this implementation to facilitate subsequent engineers to identify the configuration and troubleshooting, as follows:
Rp/0/0/cpu0:qyt-r2 (config) #! This is MPLS changes//annotation of the new command
Rp/0/0/cpu0:qyt-r2 (config) #mpls LDP
RP/0/0/CPU0:QYT-R2 (CONFIG-LDP) #exi
Rp/0/0/cpu0:qyt-r2 (config) #commi
Thu 13:22:58.033 UTC
Rp/0/0/cpu0:qyt-r2 (config) #do sh run MPLS LDP

! This is MPLS changes
MPLS LDP
!
On the XR at the time of submission also provides the "Confirm" function, that is, the experimental submission, add a fallback timer, after the system configuration automatically fall back to the state before the submission, as follows:
Rp/0/0/cpu0:test (config) #int G0/0/0/1
Rp/0/0/cpu0:test (config-if) #shut
Rp/0/0/cpu0:test (config-if) #commit confirmed automatically rolls back to the previous state after---30s, i.e. the interface automatically turns on
SH Run int G0/0/0/1
Interface GIGABITETHERNET0/0/0/1
IPv4 address 13.1.1.1 255.255.255.0
Shutdown
Rp/0/0/cpu0:nov 09:43:19.754:ifmgr[225]:%pkt_infra-link-3-updown:interface GIGABITETHERNET0/0/0/1, changed state To up//readers can see that the interface is automatically opened after 30s, which can greatly improve the fault tolerance of the configuration

1.3.3 quickly locates configuration locations and quickly exits to global privileged mode

XR is a hierarchical configuration of the system, sometimes into a very deep configuration, when the reader needs to use the PWD to quickly locate the configuration location. If the reader needs to quickly exit to global configuration mode, you can type command root as follows:
Rp/0/0/cpu0:asbr-2 (config) #router BGP 1
Rp/0/0/cpu0:asbr-2 (CONFIG-BGP) #address-family IPv4 unicast
Rp/0/0/cpu0:asbr-2 (CONFIG-BGP-AF) #exit
Rp/0/0/cpu0:asbr-2 (CONFIG-BGP) #neighbor 1.1.1.1
Rp/0/0/cpu0:asbr-2 (CONFIG-BGP-NBR) #address-family IPv4 unicast
Rp/0/0/cpu0:asbr-2 (CONFIG-BGP-NBR-AF) #pwd//Quick read Positioning implementation location, easy to clear up the idea

Wed Sep 7 16:10:42.992 UTC
Router BGP 1
Neighbor 1.1.1.1
address-family IPv4 Unicast
Rp/0/0/cpu0:asbr-2 (CONFIG-BGP-NBR-AF) #root//Quick exit to global configuration mode
Rp/0/0/cpu0:asbr-2 (config)
To this part of the content analysis, please look forward to the next content

Yi Tang-Cisco Carrier-Class device system IOS XR System Management

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.