1、#SW1SW1 int Bridge-Aggregation 1 建立一个聚合端口,端口号为 1 (端口号 1-1024 可设)SW1-Bridge-Aggregation1quitSW1int e0/4/0SW1-Ethernet0/4/0 port link-aggregation group 1 将该端口加入聚合端口 1 中SW1-Ethernet0/4/0int e0/4/1SW1-Ethernet0/4/1 port link-aggregation group 1SW1-Ethernet0/4/1quitSW1#SW2SW2 int Bridge-Aggregation 1SW2-
2、Bridge-Aggregation1quitSW2int e0/4/0SW2-Ethernet0/4/0 port link-aggregation group 1SW2-Ethernet0/4/0int e0/4/1SW2-Ethernet0/4/1 port link-aggregation group 1SW2-Ethernet0/4/1quitSW2#SW1SW1stp enable 开启生成树SW1dis stp brief 查询生成树明细查询结果略SW1dis link-aggregation verbose 查询聚合端口冗余查询结果略#SW2SW2 stp enableSW2
3、dis stp briefSW2dis link-aggregation verbose#SW3SW3stp enableSW3-Ethernet0/4/2stp edged-port enable 将改端口设置为边缘端口,不参与 STP 计算,这样可以快速进入转发状态,不会对运行STP 的网络造成影响。SW3-Ethernet0/4/3stp edged-port enableSW3dis stp brief RT1RT1int g0/0/0RT1-GigabitEthernet0/0/0ip add 10.10.10.1 24RT1-GigabitEthernet0/0/0int g0/0
4、/1RT1-GigabitEthernet0/0/1ip add 12.12.12.1 24RT1-GigabitEthernet0/0/1quitRT1RT2RT2int g0/0/0RT2-GigabitEthernet0/0/0ip add 12.12.12.2 24RT2-GigabitEthernet0/0/0int g0/0/1RT2-GigabitEthernet0/0/1ip add 192.168.1.1 24RT2-GigabitEthernet0/0/1quitRT2RT1RT1ospfRT1-ospf-1area 0RT1-ospf-1-area-0.0.0.0net 10.10.10.0 0.0.0.255RT1-ospf-1-area-0.0.0.0net 12.12.12.0 0.0.0.255RT2RT2ospfRT2-ospf-1area 0RT2-ospf-1-area-0.0.0.0net 12.12.12.0 0.0.0.255RT2-ospf-1-area-0.0.0.0net 192.168.1.0 0.0.0.255PC 配置