4.21 Creating Configuration Groups


The ability to create configuration groups is a feature that can be used to make the configuration of bulk items much easier than adding a separate entry for each parameter. The configuration groups will allow you to build a group that has certain characteristics. You can then apply those features to many sections of the configuration by associating the group with the parameter. When using configuration groups, the section to which you apply the group will inherit the features that are enabled within the group .

Groups are created in configuration mode. You type the set groups command, give the group a name , and define the parameters that should be associated with the group. The syntax for configuring a group is as follows :

 set groups <group_name>  Group name  

After creating the group, you need to apply the group to an item or items within the configuration. The syntax for doing this is as follows:

 set interfaces apply-groups <value>  Groups from which to inherit   configuration data  

The following example shows how to configure a group and apply it to an interface. The group created is called encap_fr , and we have assigned encapsulation frame relay to the group. By doing this, any interface that we apply the group to will inherit the encapsulation frame relay parameter.

 [edit]  lab@Chicago#set groups encap_fr interfaces <so*> encapsulation frame-relay [edit] lab@Chicago# set interfaces so-6/0/0 apply-groups encap_fr [edit] lab@Chicago# show version 5.0R2.4; groups {     encap_fr {         interfaces {             <so*> {                 encapsulation frame-relay; interfaces {     so-6/0/0 {         apply-groups encap_fr;         unit 0;     }     so-6/0/1 {         unit 0;     }     so-6/0/2 {         unit 0;     }     so-6/0/3 {         unit 0; 


Juniper Networks Reference Guide. JUNOS Routing, Configuration, and Architecture
Juniper Networks Reference Guide: JUNOS Routing, Configuration, and Architecture: JUNOS Routing, Configuration, and Architecture
ISBN: 0201775921
EAN: 2147483647
Year: 2002
Pages: 176

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net