...
| Блок кода |
|---|
SW1(config)#vlan 33,100,200 |
...
Пример настройки access порта:
| Блок кода |
|---|
SW1(config)#interface ethernet 1/0/1-2 SW1(config-if-port-range)#switchport access vlan 33 Set the port Ethernet1/0/1 access vlan 33 successfully Set the port Ethernet1/0/2 access vlan 33 successfully |
...
| Блок кода |
|---|
SW1#show switchport interface ethernet 1/0/1 Ethernet1/0/1 Type :Universal Mode :Access Port VID :33 SW1#show vlan id 33 VLAN Name Type Media Ports ---- ------------ ---------- --------- ---------------------------------------- 33 VLAN0033 Static ENET Ethernet1/0/1 Ethernet1/0/2 |
...
Пример настройки trunk порта:
| Блок кода |
|---|
SW1(config)#int ethernet 1/0/8 SW1(config-if-ethernet1/0/8)#switchport mode trunk Set the port Ethernet1/0/8 mode Trunk successfully |
...
Пример настройки Hybrid порта:
| Блок кода |
|---|
SW1(config)#Interface#interface Ethernetethernet 1/0/5 SW1(config-if-ethernet1/0/5)#switchport mode hybrid SW1(config-if-ethernet1/0/5)#switchport hybrid allowed vlan 141,109 untag SW1(config-if-ethernet1/0/5)#switchport hybrid native vlan 109 |
Проверка:
| Блок кода |
|---|
SW1(config)#show switchport interface ethernet 1/0/5 Ethernet1/0/5 Type :Universal Mode :Hybrid Port VID :109 Hybrid untag allowed Vlan: 109;141 |