最佳答案
以下是配置举例,请参考:
· 如图1-2所示,网络中运行OSPFv3协议,Router A和Router B各自的Ten-GigabitEthernet1/0/1接口分别连接IPv6组播源Source 1和Source 2;Router C和Router D各自的Ten-GigabitEthernet1/0/1接口分别连接接收者Receiver 1和Receiver 2;Router A、Router B、Router C和Router D各自的Ten-GigabitEthernet1/0/2接口都通过Switch A互连。
· Source 1和Source 2分别通过IPv6组播组FF1E::101和FF2E::101发送IPv6组播数据,Receiver 1和Receiver 2则分别接收来自IPv6组播组FF1E::101和FF2E::101的IPv6组播数据;Router C和Router D各自的Ten-GigabitEthernet1/0/1接口上都运行MLD,Router A、Router B、Router C和Router D上都运行IPv6 PIM-SM,并由Router A的Ten-GigabitEthernet1/0/2接口充当C-BSR和C-RP。
· 通过在Switch A上配置MLD Snooping和IPv6 PIM Snooping,使Switch A将IPv6 PIM协议报文和IPv6组播数据报文只转发给有接收需求的路由器。
· 在所有与Switch A相连的IPv6 PIM设备上配置加入/剪枝报文的最大长度为1400字节,小于IPv6路径MTU。
图1-2 IPv6 PIM Snooping典型配置组网图
(1) 配置IPv6地址和IPv6单播路由协议
请按照图1-2配置各接口的IPv6地址和前缀长度,并在各路由器上配置OSPFv3协议,具体配置过程略。
(2) 配置Router A
# 使能IPv6组播路由,在各接口上使能IPv6 PIM-SM,设置加入/剪枝报文的最大长度,并配置C-BSR和C-RP。
<RouterA> system-view
[RouterA] ipv6 multicast routing
[RouterA-mrib6] quit
[RouterA] interface ten-gigabitethernet 1/0/1
[RouterA-Ten-GigabitEthernet1/0/1] ipv6 pim sm
[RouterA-Ten-GigabitEthernet1/0/1] quit
[RouterA] interface ten-gigabitethernet 1/0/2
[RouterA-Ten-GigabitEthernet1/0/2] ipv6 pim sm
[RouterA-Ten-GigabitEthernet1/0/2] quit
[RouterA] ipv6 pim
[RouterA-pim6] jp-pkt-size 1400
[RouterA-pim6] c-bsr 1001::1
[RouterA-pim6] c-rp 1001::1
[RouterA-pim6] quit
(3) 配置Router B
# 使能IPv6组播路由,在各接口上使能IPv6 PIM-SM,并设置加入/剪枝报文的最大长度。
<RouterB> system-view
[RouterB] ipv6 multicast routing
[RouterB-mrib6] quit
[RouterB] interface ten-gigabitethernet 1/0/1
[RouterB-Ten-GigabitEthernet1/0/1] ipv6 pim sm
[RouterB-Ten-GigabitEthernet1/0/1] quit
[RouterB] interface ten-gigabitethernet 1/0/2
[RouterB-Ten-GigabitEthernet1/0/2] ipv6 pim sm
[RouterB-Ten-GigabitEthernet1/0/2] quit
[RouterB] ipv6 pim
[RouterB-pim6] jp-pkt-size 1400
(4) 配置Router C
# 使能IPv6组播路由,在接口Ten-GigabitEthernet1/0/2上使能IPv6 PIM-SM,在接口Ten-GigabitEthernet1/0/1上使能MLD,并设置加入/剪枝报文的最大长度。
<RouterC> system-view
[RouterC] ipv6 multicast routing
[RouterC-mrib6] quit
[RouterC] interface ten-gigabitethernet 1/0/1
[RouterC-Ten-GigabitEthernet1/0/1] mld enable
[RouterC-Ten-GigabitEthernet1/0/1] quit
[RouterC] interface ten-gigabitethernet 1/0/2
[RouterC-Ten-GigabitEthernet1/0/2] ipv6 pim sm
[RouterC-Ten-GigabitEthernet1/0/2] quit
[RouterC] ipv6 pim
[RouterC-pim6] jp-pkt-size 1400
(5) 配置Router D
# 使能IPv6组播路由,在接口Ten-GigabitEthernet1/0/2上使能IPv6 PIM-SM,在接口Ten-GigabitEthernet1/0/1上使能MLD,并设置加入/剪枝报文的最大长度。
<RouterD> system-view
[RouterD] ipv6 multicast routing
[RouterD-mrib6] quit
[RouterD] interface ten-gigabitethernet 1/0/1
[RouterD-Ten-GigabitEthernet1/0/1] mld enable
[RouterD-Ten-GigabitEthernet1/0/1] quit
[RouterD] interface ten-gigabitethernet 1/0/2
[RouterD-Ten-GigabitEthernet1/0/2] ipv6 pim sm
[RouterD-Ten-GigabitEthernet1/0/2] quit
[RouterD] ipv6 pim
[RouterD-pim6] jp-pkt-size 1400
(6) 配置Switch A
# 开启设备的MLD Snooping。
<SwitchA> system-view
[SwitchA] mld-snooping
[SwitchA-mld-snooping] quit
# 创建VLAN 100,把端口Ten-GigabitEthernet1/0/1到Ten-GigabitEthernet1/0/4添加到该VLAN中,并在该VLAN内使能MLD Snooping和IPv6 PIM Snooping。
[SwitchA] vlan 100
[SwitchA-vlan100] port ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[SwitchA-vlan100] mld-snooping enable
[SwitchA-vlan100] ipv6 pim-snooping enable
[SwitchA-vlan100] quit
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论