第三次作业

喜欢而已 提交于 2019-12-06 00:24:52

项目拓扑

 

 

 

 

步骤一:配置接口地址

1.在接入交换机创建Vlan,把接口加入到规划的Vlan中:

LSW3:                          

 vlan batch 30 40 50   创建VLAN

 

LSW4:                          

 vlan batch 30 40 50   创建VLAN

 

在已确定vlan划分的情况下,根据端口号进行access配置

配置命令:

Interface Ethernet 0/0/_(端口号)

Port link-type access

Port default vlan _(对应vlan)

端口Ethernet0/0/2、Ethernet0/0/3、Ethernet0/0/4配置方法上述方法相同

LSW1、LSW2、LSW3、LSW4的配置方法相同

 

2.在核心交换机配置链路聚合

以LSW1和LSW2为例:

Interface eth-trunk 1   (创建聚合链路)

mode lacp-static

port link-type trunk

port trunk allow-pass vlan all

int g 0/0/_

eth-trunk 1      (加入聚合链路)

int g 0/0/_

eth-trunk 1

 

 

 

  1. 配置vlan的网关地址

在交换机中创建vlan,并进入设置网关,代码为:

Vlan+(对应vlan号)

int g/e 0/0/(对应端口号)

port link-type trunk

port trunk allow-pass vlan+(对应vlan号)

Int vlan+(对应vlan号)

Ip address+对应网关地址

4.配置生成树协议

 根据题目要求,我选用LSW1、LSW2、LSW3、LSW4四台交换机来创建生成树协议。

LSW1:

stp enable

Stp mode stp

dis stp

我将LSW4作为根桥,代码为:

undo stp priority

stp root primary

LSW3作为备用根交换机,代码为:

undo stp primary

stp root secondary

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!