API Guide

---------------------------------------------------------------------------------------------------
2.2.2.2 ethernet1/1/17 v2/S 1 30 1 2.2.2.2
3.3.3.2 ethernet1/1/31 v2/S 1 30 1 3.3.3.2
22.1.1.2 ethernet1/1/48 v2/S 0 30 1 22.1.1.2
FHR#
show ip pim neighbor 命令将显示 FHR PIM 邻居以及用于访问邻居的接口。
FHR# show ip pim neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority/
Mode
---------------------------------------------------------------------------------------------
2.2.2.1 ethernet1/1/17 00:04:31/00:01:43 v2 1 / S
3.3.3.1 ethernet1/1/31 00:05:45/00:01:31 v2 1 / S
FHR#
show ip pim rp mapping 命令将显示到 RP 映射的多播组以及关于如何了解 RP 的信息。
FHR# show ip pim rp mapping
Group(s) : 224.0.0.0/4, Static
RP : 192.168.1.25, v2
RP 节点中的示例配置
RP# configure terminal
RP(config)# ip multicast-routing
RP(config)# interface ethernet 1/1/31
RP(conf-if-eth1/1/31)# no switchport
RP(conf-if-eth1/1/31)# ip address 3.3.3.1/24
RP(conf-if-eth1/1/31)# ip pim sparse-mode
RP(conf-if-eth1/1/31)# ip ospf 1 area 0
RP(conf-if-eth1/1/31)# exit
RP(config)#
RP(config)# interface ethernet 1/1/43
RP(conf-if-eth1/1/43)# no switchport
RP(conf-if-eth1/1/43)# ip address 1.1.1.2/24
RP(conf-if-eth1/1/43)# ip pim sparse-mode
RP(conf-if-eth1/1/43)# ip ospf 1 area 0
RP(conf-if-eth1/1/43)# exit
RP(config)#
RP(config)# interface loopback 0
RP(conf-if-lo-0)# ip address 192.168.1.25/32
RP(conf-if-lo-0)# ip ospf 1 area 0
RP(conf-if-lo-0)# exit
RP(config)# ip pim rp-address 192.168.1.25 group-address 224.0.0.0/4
RP(config)# end
RP#
RP# configure terminal
RP(config)# router ospf 1
RP(config-router-ospf-1)# end
show ip pim interface 命令用于显示 RP 中已启用 PIM 的接口。
RP# show ip pim interface
Address Interface Ver/Mode Nbr Count Query Intvl DR Prio DR
---------------------------------------------------------------------------------------------------
3.3.3.1 ethernet1/1/31 v2/S 1 30 1 3.3.3.2
1.1.1.2 ethernet1/1/43 v2/S 1 30 1 1.1.1.2
RP#
show ip pim neighbor 命令将显示 RP PIM 邻居以及用于访问邻居的接口。
RP# show ip pim neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority/
Mode
----------------------------------------------------------------------------------------------
-
3.3.3.2 ethernet1/1/31 00:02:57/00:01:17 v2 1 / DR S
1.1.1.1 ethernet1/1/43 00:06:35/00:01:39 v2 1 / S
RP#
770
多播