API Guide

AG2(conf-if-vlan-12)# ip ospf 100 area 0.0.0.0
AG2(conf-if-vlan-12)# exit
AG2(config)# interface vlan 13
AG2(conf-if-vlan-13)# no shutdown
AG2(conf-if-vlan-13)# ip address 13.0.0.2/24
AG2(conf-if-vlan-13)# ip pim sparse-mode
AG2(conf-if-vlan-13)# ip pim dr-priority 1000
AG2(conf-if-vlan-13)# ip ospf 100 area 0.0.0.0
AG2(conf-if-vlan-13)# ip ospf cost 4000
AG2(conf-if-vlan-13)# exit
AG2(config)# interface loopback 102
AG2(conf-if-lo-102)# no shutdown
AG2(conf-if-lo-102)# ip address 102.0.0.2/32
AG2(conf-if-lo-102)# ip pim sparse-mode
AG2(conf-if-lo-102)# ip ospf 100 area 0.0.0.0
AG2(conf-if-lo-102)# exit
AG2(config)# interface port-channel11
AG2(conf-if-po-11)# no shutdown
AG2(conf-if-po-11)# switchport mode trunk
AG2(conf-if-po-11)# switchport access vlan 1
AG2(conf-if-po-11)# switchport trunk allowed vlan 11
AG2(conf-if-po-11)# vlt-port-channel 11
AG2(conf-if-po-11)# exit
AG2(config)# interface port-channel12
AG2(conf-if-po-12)# no shutdown
AG2(conf-if-po-12)# switchport mode trunk
AG2(conf-if-po-12)# switchport access vlan 1
AG2(conf-if-po-12)# switchport trunk allowed vlan 12
AG2(conf-if-po-12)# vlt-port-channel 12
AG2(conf-if-po-12)# exit
PIM neighbors of AG2 and the interface to reach the neighbors
The show ip pim neighbor command displays the PIM neighbors of AG2 and the interface to reach the neighbors.
AG2# show ip pim neighbor
Neighbor Address Interface Uptime/Expires Ver DR Priority / Mode
-----------------------------------------------------------------------
11.0.0.1 vlan11 00:00:38/00:01:36 v2 1000 / DR S
12.0.0.1 vlan12 00:01:00/00:01:19 v2 10 / S
12.0.0.3 vlan12 00:01:06/00:01:18 v2 1000 / DR S
13.0.0.1 vlan13 00:01:00/00:01:19 v2 10 / S
IGMP and PIM states in AG2
The show ip igmp groups command output displays the IGMP database.
AG2# show ip igmp groups
Total Number of Groups: 1
IGMP Connected Group Membership
Group Address Interface Mode
Uptime Expires Last Reporter
225.1.1.1 vlan11 Exclude
00:02:00 00:01:47 0.0.0.0
The output of the show ip pim tib command.
AG2# show ip pim tib
PIM Multicast Routing Table
Flags: S - Sparse, C - Connected, L - Local, P - Pruned,
R - RP-bit set, F - Register Flag, T - SPT-bit set, J - Join SPT,
K - Ack-Pending state
Timers: Uptime/Expires
Interface state: Interface, next-Hop, State/Mode
(*, 225.1.1.1), uptime 00:02:15, expires 00:00:00, RP 103.0.0.3, flags: SC
Incoming interface: vlan12, RPF neighbor 12.0.0.3
Multicast
845