Information
The Cisco switch must have all disabled switch ports assigned to an unused VLAN.
GROUP ID: V-220690
RULE ID: SV-220690r991946
It is possible that a disabled port that is assigned to a user or management VLAN becomes enabled by accident or by an attacker and as a result gains access to that VLAN as a member.
NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.
Solution
Assign all switch ports not in use to an inactive VLAN.
Step 1: Assign the disabled interfaces to an inactive VLAN.
SW1(config)# int e1/81-128
SW1(config-if-range)# switchport access vlan 999
SW1(config-if-range)# end
Step 2: Configure trunk links to not allow traffic from the inactive VLAN.
SW1(config-if)# switchport trunk allowed vlan except 999
SW1(config-if)# end