- Table of Contents
-
- 02-Layer 2-LAN Switching Configuration Guide
- 00-Preface
- 01-Ethernet interface configuration
- 02-Loopback and null interface configuration
- 03-Bulk interface configuration
- 04-MAC address table configuration
- 05-Ethernet link aggregation configuration
- 06-Port isolation configuration
- 07-Spanning tree configuration
- 08-BPDU tunneling configuration
- 09-VLAN configuration
- 10-GVRP configuration
- 11-LLDP configuration
- 12-Service loopback group configuration
- 13-MVRP configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Bulk interface configuration | 58.97 KB |
You can enter interface range view to bulk configure multiple interfaces with the same feature instead of configuring them one by one. For example, you can perform the shutdown command in interface range view to shut down a range of interfaces.
Failure to apply a command on one member interface does not affect the application of the command on the other member interfaces. If applying a command on one member interface fails, the system displays an error message and continues with the next member interface.
You can bulk configure interfaces through a port group or interface range:
· A port group allows only one interface type, Layer 2 Ethernet interface.
· An interface range allows multiple types of interfaces, including Ethernet interfaces, VLAN interfaces, and aggregate interfaces.
Configuring a port group
In port group mode, you need to manually create a port group and then assign Layer 2 Ethernet interfaces to it.
Configuration guidelines
When you bulk configure interfaces in port group view, follow these restrictions and guidelines:
· Enter ? at the command prompt to display all commands supported by the port group.
· You cannot view or save the configuration of the port group itself in port group view. You can execute the display current-configuration or display this command to display current configuration of a member port in its view.
Configuration procedure
Step |
Command |
1. Enter system view. |
system-view |
2. Create a port group manually and enter its view. |
port-group manual port-group-name |
3. Assign Layer 2 Ethernet interfaces to the port group. |
group-member interface-list |
Configuring an interface range
In interface range mode, you can add interfaces of the same type or different types (for example, Ethernet interfaces and VLAN interfaces) to the interface list of an interface range.
Configuration guidelines
When you bulk configure interfaces in interface range view, follow these restrictions and guidelines:
· In interface range view, only the commands supported by the first interface are available.
· Do not assign an aggregate interface and any of its member interfaces to an interface range at the same time. Some commands, after being executed on both an aggregate interface and its member interfaces, can break up the aggregation.
· No limit is set on the maximum number of interfaces in an interface range. The more interfaces in an interface range, the longer the command execution time.
Configuration procedure
To bulk configure interfaces:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Enter interface range view. |
· interface range interface-list · interface range name name [ interface interface-list ] |
Use either command. With the interface range name command, you assign a name to an interface range and can specify this name rather than the interface range to enter the interface range view. |
3. Display commands available for the first interface in the interface range. |
Enter ? at the interface range prompt. |
Optional. |
4. Execute available commands to configure the interfaces. |
Available commands vary by interface. |
N/A |
5. Verify the configuration. |
display this |
Optional. |