Configuring a Port Group
Port groups can be configured to reduce interface configuration workload.
Context
To perform the same configuration on multiple Ethernet interfaces, add these Ethernet interfaces to a port group and run commands in the port group view for Ethernet interfaces. This reduces the configuration workload.
- Permanent port group
- Temporary port group
If you exit from a temporary port group view, the system automatically deletes the group.
Procedure
- Configuring a permanent port group
- Run system-view
The system view is displayed.
- Run port-group port-group-name
A permanent port group is created, and the port group view is displayed.
- Run group-member { { interface-type interface-number1 | interface-type1 } [ to { interface-type interface-number2 | interface-type2 } ] } &<1-10>
An Ethernet interface is added to the permanent port group.
- Run system-view
- Configuring a temporary port group
- Run system-view
The system view is displayed.
- Run port-group group-member { { interface-type interface-number1 | interface-type1 } [ to { interface-type interface-number2 | interface-type2 } ] } &<1-10> or interface range { { interface-type interface-number1 | interface-type1 } [ to { interface-type interface-number2 | interface-type2 } ] } &<1-10>
A temporary port group is created, and the port group view is displayed.
- Run system-view