思科交换机优化设计

包含三层交换机聚合链路及冗余链路的综合的配置

配置理念:先给顶上的两台三层交换机配置端口集合,并且链接链路配置trunk模式。因为三台交换机链接在一起形成了环路,需要配置生成树协议,配置三层交换机1为根桥,2为备用根桥,三层交换3需要链接下面的二层交换机,需要配置和上层不一样的聚合端口号,避免冲突。最底层的二层交换机需要对应上层的三层交换机配置相应的聚合端口和trunk模式。对应链接的PC配置静态安全绑定和access模式,

 

操作过程

三层交换机1:

Switch(config)#int port-channel 1配置聚合端口号为1

Switch(config-if)#int range f 0/1-4进入1到4端口

Switch(config-if-range)#channel-group 1 mode on 加入聚合端口"1"设置聚合端口模式为“on”

Switch(config-if-range)#exit

Switch(config)#int port-channel 1进入聚合端口

Switch(config-if)#switchport trunk encapsulation dot1q 给端口绑定trunk协议

Switch(config-if)#switchport mode trunk 开启trunk模式

Switch(config-if)#exit

Switch(config)##spanning-tree vlan 1 root primary 配置该交换机为根桥

三层交换机2:

Switch(config)#int port-channel 1配置聚合端口号为1

Switch(config-if)#int range f 0/1-4进入1到4端口

Switch(config-if-range)#channel-group 1 mode on 加入聚合端口"1"设置聚合端口模式为“on”

Switch(config-if-range)#exit

Switch(config)#int port-channel 1进入聚合端口

Switch(config-if)#switchport trunk encapsulation dot1q 给端口绑定trunk协议

Switch(config-if)#switchport mode trunk 开启trunk模式

Switch(config-if)#exit

Switch(config)##spanning-tree vlan 1 root secondary 配置该交换机为备用根桥

三层交换机3:

Switch(config)#int port-channel 2配置聚合端口号为2

Switch(config-if)#int range f 0/3-4进入1到4端口

Switch(config-if-range)#channel-group 2 mode on 加入聚合端口"2"设置聚合端口模式为“on”

Switch(config-if-range)#exit

Switch(config)#int port-channel 2进入聚合端口

Switch(config-if)#switchport trunk encapsulation dot1q 给端口绑定trunk协议

Switch(config-if)#switchport mode trunk 开启trunk模式

二层交换机4:

Switch(config)#int port-channel 2 配置聚合端口号为2

Switch(config-if)#int range f 0/1-2同时进入1和2端口

Switch(config-if-range)#channel-group 2 mode on加入聚合端口"2"设置聚合端口模式为“on”

Switch(config-if-range)#exit

Switch(config)#int port-channel 2进入聚合端口2

Switch(config-if)#switchport mode trunk配置端口模式为trunk

Switch(config-if)#int f 0/3

Switch(config-if)#shutdown 关闭端口

Switch(config-if)#switchport mode access配置模式为access

Switch(config-if)#sw port-security maximum 1配置端口为静态安全绑定

Switch(config-if)#switchport port-security mac-address 0090.0CB6.C498静态绑定PC机的mac地址

Switch(config-if)#no shutdown开启端口

Switch(config-if)#int f 0/4

Switch(config-if)#shutdown 关闭端口

Switch(config-if)#switchport mode access

Switch(config-if)#switchport port-security maximum 1

Switch(config-if)#switchport port-security mac-address 00E0.8F6B.C699

Switch(config-if)#no shutdown

  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

admin1@

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值