Vubiq Networks Inc. V10G-L Benutzerhandbuch

Seite von 69
 
46  
Vubiq HaulPass V10g User Manual 
 
 
  
 
              © 2018 Vubiq Networks, Inc. All Rights Reserved 
CLI example 
– Set port VLAN to 2 on the second Gigabit port (configured as hybrid mode): 
configure terminal 
(config)# interface GigabitEthernet 1/2 
(config-if)# switchport mode hybrid 
(config-if)# switchport hybrid allowed vlan ? 
    <vlan_list>    VLAN IDs of the allowed VLANs when this port 
                   is in hybrid mode 
    add            Add VLANs to the current list 
    all            All VLANs 
    except         All VLANs except the following 
    none           No VLANs 
    remove         Remove VLANs from the current list 
(config-if)# switchport hybrid allowed vlan 
(config-if)# exit 
(config)# exit 
 
Figure 29. Allowed VLANs Configuration (Hybrid) 
Forbidden VLANs 
A port may be configured to never be a member of one or more VLANs. This is particularly useful when dynamic 
VLAN protocols such as MVRP and GVRP must be prevented from dynamically adding ports to VLANs. 
The trick is to mark such VLANs as forbidden on the port in question. The syntax is identical to the syntax used in 
the Existing VLANs field. 
By default, the field is left blank, which means that the port may become a member of all possible VLANs. 
CLI example 
– configure forbidden VLAN on the second Gigabit port: 
configure terminal 
(config)# interface GigabitEthernet 1/2 
(config-if)# switchport forbidden vlan ? 
    add       Add to existing list. 
    remove    Remove from existing list. 
(config-if)# switchport forbidden vlan add 5 
(config-if)# exit 
(config)# exit