This article describes how to add descriptions or comments to a Junos OS configuration.
User wishes to add descriptions or comments to a Junos OS configuration.
For example, to add a description of "Manager's IP" to an address book entry, complete the following steps:
[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
annotate
[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;
[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; } } }