这是我在看软考题目时做的,按照题目要求,在vlan管理上做了些许变动,但也基本能实现所有的功能,最后一张图是我用ENSP做的拓扑图及相关配置,具体内容如下:
1、VLAN二层转发:
核心交换机Switch_A:
sy
sys Switch_A
vlan batch 100 101 102 103 104 107 108
interface g0/0/1
port link-type trunk
port trunk allow-pass vlan 101 102 103 100
interface g0/0/3
port link-type access
port default vlan 104
interface g0/0/5
port link-type trunk
port trunk allow-pass vlan 101 102 103 100
interface g0/0/8
port link-type trunk
port trunk allow-pass vlan 100
int g0/0/11
port link-type access
port default vlan 108
int g0/0/13
port link-type access
port default vlan 107
汇聚交换机Switch_C:
system-view
sysname Switch_C
vlan batch 101 102 103 100
interface g0/0/1
port link-type trunk
port trunk allow-pass vlan 101 102 103 100
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 101 102 100
port trunk pvid vlan 100
int e0/0/1
port link-type access
port default vlan 103
汇聚交换机Switch_D:
system-view
sysname Switch_D
vlan batch 101 102 103 100
interface g0/0/1
port link-type trunk
port trunk allow-pass vlan 100 101 102 103 105
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 100 101 102 105
port trunk pvid vlan 100
int e0/0/1
port link-type access
port default vlan 103
2、三层网络