配置三层交换机实现生成树导向
Posted qing-one-two
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了配置三层交换机实现生成树导向相关的知识,希望对你有一定的参考价值。
配置三层交换机实现生成树导向
步骤1.
首相配置二层交换机3:
vlan 10
in fa0/2
sw acc mo vl 10
vlan 20
sw acc mo vl 20
in fa0/4
sw mode trunk
in fa0/13
sw mode trunk
步骤2:
配置三层交换机1:
in fa0/7
sw trunk encapsulation dot1q
sw mode trunk
vlan 10
vlan 20
vlan 30
in vlan 10
ip add 192.168.1.1 255.255.255.0
in vlan 20
ip add 192.168.2.1 255.255.255.0
in vlan 30
ip add 192.168.3.1 255.255.255.0
in fa0/5
sw acc vlan 30
end
conf t
in range fa0/2-3
channel-group 1 mode on
ex
in port-channel 1
sw trunk encapsulation dot1q
sw mo trunk
end
配置三层交换机2:
in range fa0/4
sw trunk encapsulation dot1q
sw mode trunk
vlan 10
vlan 20
vlan 30
in vlan 10
ip add 192.168.1.1 255.255.255.0
in vlan 20
ip add 192.168.2.1 255.255.255.0
in vlan 30
ip add 192.168.3.1 255.255.255.0
in fa0/5
sw acc vlan 30
end
conf t
in range fa0/2-3
channel-group 1 mode on
ex
in port-channel 1
sw trunk encapsulation dot1q
sw mo trunk
end
以上是关于配置三层交换机实现生成树导向的主要内容,如果未能解决你的问题,请参考以下文章