interface-list:List of Ethernet ports to be added to or removed from a VLAN. This
keyword needed to be provided in the form of interface-type + interface-number.
Interface-type is Ethernet and interface-number is slot-num/port-num, in which
slot-num is in the range of 0 to 2, and port-num is in the range of 1 to 24. Seriate
interfaces with the same type can be linked by to keyword, but the port number to
the right of the to keyword must be larger than the one to the left of the keyword,
and this argument only can be repeated for up to 3 times.
all:Means all the interfaces. When the keyword all is specified, all the interfaces in
the system are added to a VLAN by using the switchport command, and all the
interfaces are removed from a VLAN by using the no switchport command.
【View】
VLAN configuration view
【Usage】
In no switchport command, all the interfaces would be removed from a VLAN
when the interface-list is unspecified. When removing the interface from VLAN 1
(default VLAN), if the PVID of the interface is 1, the PVID must be changed into
3-4