API Guide

AG1(config)# interface ethernet 1/1/3:1
AG1(conf-if-eth1/1/3:1)# channel-group 11 mode active
AG1(config)# interface port-channel 11
AG1(conf-if-po-11)# vlt-port-channel 11
AG1(conf-if-po-11)# spanning-tree disable
4. 配置朝向 AG3 AG4 的端口通道接口。
AG1(config)# interface port-channel 1
AG1(conf-if-po-1)# vlt-port-channel 1
AG1(config)# interface ethernet 1/1/24:1
AG1(conf-if-eth1/1/24:1)# channel-group 1 mode active
AG1(config)# interface ethernet 1/1/26:1
AG1(conf-if-eth1/1/26:1)# channel-group 1 mode active
5. 配置朝向 TR1 的端口通道接口。
AG1(config)# interface port-channel 41
AG1(conf-if-po-41)# vlt-port-channel 41
AG1(config)# interface ethernet 1/1/17:1
AG1(conf-if-eth1/1/17:1)# channel-group 41 mode active
6. 配置环回接口并启用 PIM-SM
AG1(config)# interface loopback 1
AG1(conf-if-lo-1)# ip address 10.1.100.1/32
AG1(conf-if-lo-1)# ip pim sparse-mode
7. 启用默认 VRF 上的多播路由。
AG1(config)# ip multicast-routing
8. 为单播路由配置 OSPF
AG1(config)# router ospf 1
AG1(config-router-ospf-1)# log-adjacency-changes
AG1(config-router-ospf-1)# redistribute connected
AG1(config-router-ospf-1)# router-id 10.1.100.1
9. 配置 VLAN 上的 IP 地址、OSPF 进程和 PIM-SM
VLAN 1001 朝向 CR1 CR2
AG1(config)# interface vlan 1001
AG1(conf-if-vl-1001)# ip address 10.1.2.1/24
AG1(conf-if-vl-1001)# ip ospf 1 area 0.0.0.0
AG1(conf-if-vl-1001)# ip pim sparse-mode
AG1(conf-if-vl-1001)# ip igmp snooping mrouter interface port-channel11
VLAN 1301 朝向 AG3 AG4
AG1(config)# interface vlan 1301
AG1(conf-if-vl-1301)# ip address 10.112.1.1/24
AG1(conf-if-vl-1301)# ip ospf 1 area 0.0.0.0
AG1(conf-if-vl-1301)# ip pim sparse-mode
AG1(conf-if-vl-1301)# ip igmp snooping mrouter interface port-channel1
VLAN 2001 朝向 TR1
AG1(config)# interface vlan 2001
AG1(conf-if-vl-2001)# ip address 192.168.1.1/24
AG1(conf-if-vl-2001)# ip pim sparse-mode
AG1(conf-if-vl-2001)# ip pim dr-priority 4294967295
AG1(conf-if-vl-2001)# ip igmp snooping mrouter interface port-channel1
800
多播