Command Line Reference
Interface Management
Port Group Configuration
3 min
port group configuration port group configuration port group ethernet interface port group ethernet interface range \[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 port group lag port group lag lag range \[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
