87 lines
1.8 KiB
Markdown
87 lines
1.8 KiB
Markdown
enable
|
|
configure terminal
|
|
|
|
! Включаем маршрутизацию !
|
|
ip routing
|
|
|
|
! Создаём VLAN
|
|
vlan 30
|
|
name Logistics
|
|
vlan 40
|
|
name Storage
|
|
vlan 60
|
|
name DS-Servers
|
|
|
|
! Настройка access-портов для пользователей
|
|
interface e0/2
|
|
description PCL-3 - Logistics
|
|
switchport mode access
|
|
switchport access vlan 30
|
|
no shutdown
|
|
|
|
interface e0/3
|
|
description PCL-4 - Logistics
|
|
switchport mode access
|
|
switchport access vlan 30
|
|
no shutdown
|
|
|
|
interface e1/0
|
|
description PCS-3 - Storage
|
|
switchport mode access
|
|
switchport access vlan 40
|
|
no shutdown
|
|
|
|
interface e1/1
|
|
description PCS-4 - Storage
|
|
switchport mode access
|
|
switchport access vlan 40
|
|
no shutdown
|
|
|
|
! Trunk-порты !
|
|
interface e0/0
|
|
description To R-Darkstore
|
|
switchport trunk encapsulation dot1q
|
|
switchport mode trunk
|
|
switchport trunk allowed vlan 30,40,60
|
|
no shutdown
|
|
|
|
interface e0/1
|
|
description To SW2-Darkstore
|
|
switchport trunk encapsulation dot1q
|
|
switchport mode trunk
|
|
switchport trunk allowed vlan 30,40,60
|
|
no shutdown
|
|
|
|
interface e1/1
|
|
description To SW3-Darkstore
|
|
switchport trunk encapsulation dot1q
|
|
switchport mode trunk
|
|
switchport trunk allowed vlan 30,40
|
|
no shutdown
|
|
|
|
end
|
|
write memory
|
|
|
|
|
|
// ! Результат !
|
|
Switch#show interfaces trunk
|
|
|
|
Port Mode Encapsulation Status Native vlan
|
|
Et0/0 on 802.1q trunking 1
|
|
Et0/1 on 802.1q trunking 1
|
|
Et1/1 on 802.1q trunking 1
|
|
|
|
Port Vlans allowed on trunk
|
|
Et0/0 30,40,60
|
|
Et0/1 30,40,60
|
|
Et1/1 30,40
|
|
|
|
Port Vlans allowed and active in management domain
|
|
Et0/0 30,40,60
|
|
Et0/1 30,40,60
|
|
Et1/1 30,40
|
|
|
|
Port Vlans in spanning tree forwarding state and not pruned
|
|
Et0/0 none
|
|
Et0/1 none
|
|
Et1/1 none |