Skip to content
Ask AI

Port Group Configuration

[Command]

port-group ethernet interface range

[Purpose]

Create port group

[View]

System configuration view

[Usage Scenario]

When users need to apply the same configuration to multiple Ethernet interfaces, configuring each interface individually can be error-prone and result in significant repetitive work. Creating interface groups can resolve this issue.

[Notes]

This function can be used for batch configuration of interfaces, such as batch adding interfaces to the same VLAN, etc. (provided that the interface is a layer 2 interface)

[Use Cases]

sonic(config)# port-group ethernet 1-10
sonic(config-port-group-1-10)# switchport access vlan 10

[Command]

port-group lag lag range

[Purpose]

Create lag group

[View]

System configuration view

[Usage Scenario]

When users need to configure multiple lag ports with the same configuration, it is easy to make errors and cause a lot of repetitive work if each lag is configured one by one. Creating lag groups can solve this problem.

[Notes]

This function can be used for batch configuration of lag groups.

[Use Cases]

sonic(config)# port-group lag 1-3
sonic(config-lag-group-1-3)#switchport access vlan 10