Article Number: 000119270
Quando un'interfaccia è in modalità switchport, passa più VLAN con tag o una VLAN senza tag. Non può accettare sia il traffico senza tag che quello con tag.
Per configurare switchport:
FTOS#config FTOS(conf)#Interface Te0/5 FTOS(conf-if-te-0/5)#switchport
Per rimuovere switchport:
FTOS(conf-if-te-0/5)#no switchport
Quando un'interfaccia è in modalità switchport ibrida, l'interfaccia può passare VLAN sia senza tag che con tag.
Per configurare switchport ibridi:
FTOS#config FTOS(conf)#Interface Te0/5 FTOS(conf-if-te-0/5)#portmode hybrid FTOS(conf-if-te-0/5)#switchport
Per rimuovere lo switchport ibrido:
FTOS(conf-if-te-0/5)#no switchport FTOS(conf-if-te-0/5)#no portmode hybrid
Per creare una VLAN, inserire i seguenti comandi. In questo esempio vengono create le VLAN 414 e 515.
FTOS#config FTOS(conf)#Interface Vlan 414 FTOS(conf-if-vl-414)#exit FTOS(conf)#Interface Vlan 515
Per aggiungere una VLAN a un'interfaccia senza tag, inserire i seguenti comandi:
FTOS#config FTOS(conf)#Interface Vlan 414 FTOS(conf-if-vl-414)#untagged te0/5
Per aggiungere una VLAN a un'interfaccia con un tag 802.1Q, immettere il seguente comando:
FTOS(conf-if-vl-414)#tagged te0/9
Per applicare più VLAN a un'interfaccia:
FTOS(conf)#interface range Vlan 414 – 515 % Warning: interface-range ignores Non-existing ports (not configured).
Per applicare la VLAN a un'ampia gamma di interfacce:
FTOS(conf-if-vl-414)#tagged te0/5-10
Per rimuovere la VLAN dall'interfaccia:
FTOS(conf-if-vl-414)#no tagged te0/5-10
show vlan |
Mostra le VLAN esistenti e le relative porte |
show run interface te0/5 |
Mostra la configurazione dell'interfaccia te0/5 |
show run interface vlan 414 |
Mostra la configurazione della VLAN 414 |
show interface switchport te0/5 |
Mostra le VLAN con e senza tag su una porta |
27 Feb 2024
5
How To