1.8 VLAN案例设计(思科)

本实验旨在通过构建一个校园网络拓扑,帮助学生掌握思科设备下VLAN的高级配置技能,包括多交换机环境下的VLAN划分、主干链路配置以及不同型号交换机的互联。通过完成本实验,学生将能够理解并应用企业级网络中的VLAN设计原则。

校园网案例
实现各个楼之间互连,为了简化起见,设计时省略主楼和办公楼中的终端,每个教室中用两台终端作为示例。 要求:完成VLAN划分和端口配置,实现VLAN内部通信。
  1. 根据“设备类型表”及“拓扑图”,使用 Packet Tracer 软件建立拓扑
  2. 根据“VLAN与交换机端口映射表”及“拓扑图”,划分VLAN
类型 设备名
终端 PC PC0 ~ 9
交换机 2950-24 Switch 0 ~ 4、Switch 8
交换机 3560-24PS Multilayer Switch 0 ~ 2
终端 Server Server 0 ~ 3

拓扑图

text

enable 
configure terminal

vlan 2
vlan 3 

interface f0/1
switchport mode access
switchport access vlan 2
exit

interface f0/2
switchport mode access
switchport access vlan 3
exit

interface f0/3
switchport mode trunk
switchport trunk allowed vlan 2,3
exit

text

enable 
configure terminal

vlan 3
vlan 4

interface f0/1
switchport mode access
switchport access vlan 3
exit

interface f0/2
switchport mode access
switchport access vlan 4
exit

interface f0/3
switchport mode trunk
switchport trunk allowed vlan 3,4
exit

text

enable 
configure terminal

vlan 4
vlan 5

interface f0/1
switchport mode access
switchport access vlan 4
exit

interface f0/2
switchport mode access
switchport access vlan 5
exit

interface f0/3
switchport mode trunk
switchport trunk allowed vlan 4,5
exit

text

enable
configure terminal

vlan 6
vlan 7

interface f0/1
switchport mode access
switchport access vlan 6
exit

interface f0/2
switchport mode access
switchport access vlan 7
exit

interface f0/3
witchport mode trunk
switchport trunk allowed vlan 6,7
exit

text

enable
configure terminal

vlan 7
vlan 8

interface f0/1
switchport mode access
switchport access vlan 7
exit

interface f0/2
switchport mode access
switchport access vlan 8
exit

interface f0/3
switchport mode trunk
switchport trunk allowed vlan 7,8
exit

text

enable
configure terminal

vlan 2
vlan 3
vlan 4
vlan 5
vlan 13



interface gigabitethernet 0/1
switchport mode trunk
switchport trunk allowed vlan 2,3
exit

interface gigabitethernet 0/2
switchport mode trunk
switchport trunk allowed vlan 3,4
exit

interface gigabitethernet 0/3
switchport mode trunk
switchport trunk allowed vlan 4,5
exit

interface gigabitethernet 0/4
switchport mode access
switchport access vlan 13
exit

text

enable
configure terminal

vlan 6
vlan 7
vlan 8
vlan 14

interface gigabitethernet 0/1
switchport mode trunk
switchport trunk allowed vlan 6,7
exit

interface gigabitethernet 0/2
switchport mode trunk
switchport trunk allowed vlan 7,8
exit

interface gigabitethernet 0/3
switchport mode access
switchport access vlan 14
exit

text

enable
configure terminal

vlan 9
vlan 10
vlan 11
vlan 12
vlan 13
vlan 14


interface gigabitethernet 0/1
switchport mode access
switchport access vlan 13
exit

interface gigabitethernet 0/2
switchport mode access
switchport access vlan 14
exit

interface gigabitethernet 0/3
switchport mode trunk
switchport trunk allowed vlan 9,10,11,12
exit

text

enable
configure terminal

vlan 9
vlan 10
vlan 11
vlan 12


interface fastethernet 0/1
switchport mode access
switchport access vlan 9
exit

interface fastethernet 0/2
switchport mode access
switchport access vlan 10
exit

interface fastethernet 0/3
switchport mode access
switchport access vlan 11
exit

interface fastethernet 0/4
switchport mode access
switchport access vlan 12
exit

相关内容