案例配置拓扑:
案例配置需求:
1、 互联IP为CC1E:XY::/64 EUI 64,Loopback 0的IP为CC1E:XXXX::X/64,其中X为本设备ID;
2、 三台路由器使用OSPFv3进行IGP通信;
3、 R1、R2、R3之间开启IPv6组播,R2的F0/0作为组FF08::1的RP;
4、 通过配置,使得R3的F0/0能接收来自组FF08::1的组播信息;
案例配置思路:
1、 在R1、R2和R3上开启IPv6的单播、IPv6 cef和IPv6组播功能:
ipv6 unicast-routing 开启ipv6单播功能
ipv6 cef 开启ipv6快速转发
ipv6 multicast-routing 开启ipv6组播功能
2.根据拓扑完成IPV6配置
R1:
FastEthernet0/0 [up/up]
FE80::C801:1CFF:FE58:8
CC1E:12::1
R2:
FastEthernet0/0 [up/up]
FE80::C802:2EFF:FE30:8
CC1E:12::2
FastEthernet0/1 [up/up]
FE80::C802:2EFF:FE30:6
CC1E:23::2
Loopback0 [up/up]
FE80::C802:2EFF:FE30:8
CC1E:2222::2
R3:
FastEthernet0/1 [up/up]
FE80::C803:2AFF:FE50:6
CC1E:23::3
3、 R1、R2、R3之间开启IPv6组播,R2的F0/0作为组FF08::1的RP;
R1:
ipv6 ospf 100 area 0
ipv6 router ospf 100
router-id 1.1.1.1
log-adjacency-changes
R2:
ipv6 ospf 100 area 0
ipv6 ospf 100 area 0
ipv6 ospf 100 area 0
ipv6 router ospf 100
router-id 2.2.2.2
log-adjacency-changes
R3:
ipv6 ospf 100 area 0
ipv6 router ospf 100
router-id 3.3.3.3
log-adjacency-changes
4、 在R1、R2和R3的物理接口上开启IPv6的PIM:(默认开启)
R2(config)#int f0/0
R2(config-if)#ipv6 pim
R2(config-if)#int f0/1
R2(config-if)#ipv6 pim
5. 在R1、R2、R3上配置R2的F0/0接口为RP:
ipv6 access-list RP
permit ipv6 any FF08::/127
ipv6 pim rp-address CC1E:12::CE01:EFF:FE8C:0 RP 设置IPV6的RP
6、 在R3的F0/1口上进行IPv6组播加入组操作:
ipv6 mld join
ipv6 mld join-group ff08::1
案例检验结果
1、 配置完成后,查看R1、R2上的组播路由表:
2、 配置完成后,在R1上发送5个组播包去往FF08::1:
R1#ping ff08::1
Output Interface: FastEthernet0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FF08::1, timeout is 2 seconds:
Packet sent with a source address of CC1E:12::1
Reply to request 0 received from CC1E:23::3, 104 ms
Reply to request 1 received from CC1E:23::3, 64 ms
Reply to request 2 received from CC1E:23::3, 52 ms
Reply to request 3 received from CC1E:23::3, 48 ms
Reply to request 4 received from CC1E:23::3, 52 ms
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/64/104 ms
5 multicast replies and 0 errors.
总结:
1、 IPv6下,只有开启了快速转发(CEF)才能支持IPv6的组播;
2、 IPv6的组播只支持PIM-SM,所以接口不需要设置PIM的模式;
3、 用IPv6的ACL限制组播RP时,只能用127位的IPv6地址,因为目前IOS的版本还不能支持128位地址的ACL应用于IPv6 RP的设置;
4、 Ipv6组播是没有IGMP协议的,使用MLD协议来完成IGMP的功能