VLAN+VLAN 路由+链路聚合配置要求

1.在 3 台接入层交换机(S37)上配置 VLAN 及 Trunk,配置列表如下:

设备名称 创建vlan 接口名称 接口类型 属于vlan或允许通过的vlan
S37-1 100 E0/0/1 Access 100
G0/0/2 Trunk 1、100
S37-2 200、300 E0/0/2 Access 200
E0/0/3 Access 300
G0/0/1 Trunk 1、200、300
S37-3 400 E0/0/4 Access 400
G0/0/2 Trunk 1、400

2、在 3 台汇聚层交换机(SW2、SW3、SW4)与 S37 的交换机连接的接口配置成 Trunk,允许通过的 VLAN 和 S37 上的相同。

3、SW2 与 SW3 的 G0/0/10、G0/0/11、G0/0/12 作手工链路聚合,链路聚合接口为 Eth-trunk 1,并设置为 Trunk 链路,允许所有 VLAN 通过。

4.SW3 与 SW4 的 G0/0/7、G0/0/8、G0/0/9 作静态链路聚合,链 路聚合接口为 Eth-trunk 2,并设置为 Trunk 链路,允许所有 VLAN 通 过。且最大的活动链路设置为 2,1 条链路做备份。

5.在汇聚层交换机创建 VLAN,接口类型及 vlan具体规划如下表:

设备名称 创建VLAN 接口名称 接口类型 属于VLAN或允许通过的VLAN
SW2 12、23、100 G0/0/1 Access 12
G0/0/2 Trunk 1、100
Eth-trunk 1 Trunk ALL
SW3 23、34、200、300 G0/0/1 Trunk 1、200、300
Eth-trunk 1 Trunk ALL
Eth-trunk 2 Trunk ALL
SW4 35、45、400 G0/0/1 Access 45
G0/0/2 Trunk 1、400
Eth-trunk 2 Trunk ALL

6.在 SW 交换机上创建 VLANIF,并配置 IP,具体规划如下表:

设备名称 VLANIF IP
SW2 VLANIF12 10.0.12.2/24
VLANIF23 10.0.23.2/24
VLANIF100 10.1.1.254/24
SW3 VLANIF23 10.0.23.3/24
VLANIF34 10.0.34.3/24
VLANIF200 20.2.2.254/24
VLANIF300 30.3.3.254/24
SW4 VLANIF34 10.0.34.4/24
VLANIF45 10.0.45.4/24
VLANIF400 40.4.4.254/24

8.在 AR1 上 area 1 上通告网络为 10.0.12.0/24 和 100.1.1.1/32; 在 AR5 上 area 2 上通告网络为 10.0.45.0/24 和 200.2.2.2/32; 其他网络都通告在 area 0。


新知识解题步骤

第一题S37-1、S37-2、S37-3配置VLAN及Trunk

以S37-1示例

[S37-1]vlan batch 1 100

[S37-1]int e0/0/1

[S37-1-Ethernet0/0/1]port link-type access

[S37-1-Ethernet0/0/1]port default vlan 100

[S37-1-Ethernet0/0/1]int g0/0/2

[S37-1-GigabitEthernet0/0/2]port link-type trunk

[S37-1-GigabitEthernet0/0/2]port trunk allow-pass vlan 1 100

第三题SW2、SW3手动链路聚合

以SW2为例

[SW2]int Eth-Trunk 1

[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/10 to 0/0/12

[SW2-Eth-Trunk1]port link-type trunk

[SW2-Eth-Trunk1]port trunk allow-pass vlan all

第四题SW3、SW4静态链路聚合

以SW2为例

[SW3]int Eth-Trunk 2

[SW3-Eth-Trunk2]mode lacp-static

[SW3-Eth-Trunk2]trunkport GigabitEthernet 0/0/7 to 0/0/9

[SW3-Eth-Trunk2]Max Active-linknumber 2

[SW3-Eth-Trunk2]port link-type trunk

[SW3-Eth-Trunk2]port trunk allow-pass vlan all

第六题SW交换机创建VLANIF

以SW2为例

[SW2]int vlanif 12

[SW2-Vlanif12]ip add 10.0.12.2 24

[SW2-Vlanif12]int vlanif 23

[SW2-Vlanif23]ip add 10.0.23.2 24

[SW2-Vlanif23]int vlanif 100

[SW2-Vlanif100]ip add 10.1.1.254 24

第八题通告网络

分别配置AR1、SW2、SW3、SW4、AR5上的ospf