Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

rename

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
rename <statement-path> identifier1 to identifier2 

Description

Rename an existing configuration statement or identifier.

Options

identifier1

Existing identifier to rename.

identifier2

New name of identifier.

statement-path

(Optional) Path to an existing statement or identifier.

Note:

For example, to rename interface ge-0/1/0.0 to ge-0/1/10.0 at the following hierarchy level:

content_copy zoom_out_map
logical-systems {
    logical-system-abc {
    (...)
        protocols {
            ospf {
                area 0.0.0.0 {
                interface ge-0/1/0.0;

Issue the following command:

content_copy zoom_out_map
rename logical-systems logical-system-abc protocols ospf area 0.0.0.0 interface ge-0/1/0.0.0 to interface ge-0/1/10.0 

Required Privilege Level

configure—To enter configuration mode, but other required privilege levels depend on where the statement is located in the configuration hierarchy.

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation