API Guide

TR1(conf-if-eth1/1/31)# switchport trunk allowed vlan 2001
TR1(conf-if-eth1/1/31)# spanning-tree port type edge
TR1(config)# interface ethernet 1/1/32
TR1(conf-if-eth1/1/32)# switchport mode trunk
TR1(conf-if-eth1/1/32)# switchport trunk allowed vlan 2001
TR1(conf-if-eth1/1/32)# spanning-tree port type edge
TR2 交换机
1. 配置 RSTP
TR2(config)# spanning-tree mode rstp
2. 配置朝向 AG3 的端口通道接口。
TR2(config)# interface port-channel 51
TR2(config)# interface ethernet 1/1/1
TR2(conf-if-eth1/1/1)# channel-group 51 mode active
3. 配置朝向 AG4 的端口通道接口。
TR2(config)# interface ethernet 1/1/25:1
TR2(conf-if-eth1/1/25:1)# channel-group 51 mode active
4. 朝向 AG1 AG2 配置 VLAN 2001
TR2(config)# interface vlan 2001
5. 将接口配置为 VLAN 中继端口并指定允许的 VLAN
TR2(config)# interface port-channel 51
TR2(conf-if-po-51)# switchport mode trunk
TR2(conf-if-po-51)# switchport trunk allowed vlan 2001
TR2(config)# interface ethernet 1/1/21
TR2(conf-if-eth1/1/31)# switchport mode trunk
TR2(conf-if-eth1/1/31)# switchport trunk allowed vlan 2001
TR2(conf-if-eth1/1/31)# spanning-tree port type edge
TR2(config)# interface ethernet 1/1/22
TR2(conf-if-eth1/1/32)# switchport mode trunk
TR2(conf-if-eth1/1/32)# switchport trunk allowed vlan 2001
TR2(conf-if-eth1/1/32)# spanning-tree port type edge
验证配置
您可以使用以下 show 命令验证配置。
CR1
show ip pim interface 命令将显示节点上已启用 PIM 的接口。
CR1# show ip pim interface
Address Interface Ver/Mode Nbr Count Query Intvl DR Prio DR
--------------------------------------------------------------------------
10.1.1.5 vlan100 v2/S 1 30 1 10.1.1.6
10.1.3.5 vlan1101 v2/S 1 30 1 10.1.3.5
10.1.4.5 vlan1201 v2/S 1 30 1 10.1.4.5
10.1.2.5 vlan1001 v2/S 3 30 1 10.1.2.6
show ip pim neighbor 命令将显示节点的 PIM 邻居和接口以访问邻居。
CR1# show ip pim neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority / Mode
-------------------------------------------------------------------------------------
多播
807