Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[SRX] How to add a description to a configuration in Junos OS

0

0

Article ID: KB28337 KB Last Updated: 17 Dec 2013Version: 1.0
Summary:

This article describes how to add descriptions or comments to a Junos OS configuration.

Symptoms:

User wishes to add descriptions or comments to a Junos OS configuration.

Cause:

Solution:

For example, to add a description of "Manager's IP" to an address book entry, complete the following steps:

  1. Configure the address-book entry in the security zone as usual.

  2. [edit security zones security-zone trust]
    root# show

    [edit security zones security-zone trust]
    root# set address-book address manager-ip 10.2.2.2

  3. To add the description, enter the address-book hierarchy, and then use the keyword annotate.

  4. [edit security zones security-zone trust]
    root# edit address-book

    [edit security zones security-zone trust address-book]
    root# annotate address manager-ip "IP belongs to manager"

    [edit security zones security-zone trust address-book]
    root# show
    /* IP belongs to manager*/
    address manager-ip 10.2.2.2/32;

  5. Other address can also be added. To verify the overall display:

  6. [edit security zones security-zone trust address-book]
    root# set address ordinary 10.1.1.1

    [edit security zones security-zone trust address-book]
    root# annotate address ordinary "Test ip"

    [edit security zones security-zone trust address-book]
    root# show
    /* IP belongs to manager*/
    address manager-ip 10.2.2.2/32;
    /* Test ip */
    address ordinary 10.1.1.1/32;

In this manner, any hierarchy can be annotated:

root# show interfaces
ge-0/0/1 {
gigether-options {
loopback;
}
unit 0 {
family inet {
address 1.1.1.1/24;
}
}
}


[edit]
root# edit interfaces

[edit interfaces]
root# annotate ge-0/0/1 ?
Possible completions:
<string> String argument
[edit interfaces]
root# annotate ge-0/0/1 "WAN interface"

[edit interfaces]
root# show
/* WAN interface */
ge-0/0/1 {
gigether-options {
loopback;
}
unit 0 {
family inet {
address 1.1.1.1/24;
}
}
}

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search