2. 配置文件
<RouterC> display current-configuration
#
sysname RouterC
#
multicast routing-enable
#
interface Ethernet1/1
port link-mode route
ip address 10.110.2.1 255.255.255.0
igmp enable
pim sm
#
interface Serial2/1
link-protocol ppp
ip address 192.168.2.2 255.255.255.0
pim sm
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
pim sm
#
interface LoopBack1
ip address 10.2.2.2 255.255.255.255
pim sm
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.2.2.2 0.0.0.0
network 192.168.2.0 0.0.0.255
network 10.110.2.0 0.0.0.255
#
pim
c-bsr LoopBack1
c-rp LoopBack0
#
msdp
originating-rp LoopBack1
peer 10.1.1.1 connect-interface LoopBack1
#
return
1. 配置步骤
# 配置OSPF协议。
<RouterD> system-view
[RouterD] ospf 1
[RouterD-ospf-1] area 0.0.0.0
[RouterD-ospf-1-area-0.0.0.0] network 192.168.3.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] network 10.110.3.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] network 10.110.4.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] quit
[RouterD-ospf-1] quit
# 使能IP组播路由,在各接口上使能PIM-SM,并在主机侧接口上使能IGMP。
[RouterD] multicast routing-enable
[RouterD] interface ethernet 1/1
[RouterD-Ethernet1/1] pim sm
[RouterD-Ethernet1/1] quit
[RouterD] interface ethernet 1/2
[RouterD-Ethernet1/2] pim sm
[RouterD-Ethernet1/2] igmp enable
[RouterD-Ethernet1/2] quit
[RouterD] interface serial 2/1
[RouterD-Serial2/1] pim sm
[RouterD-Serial2/1] quit
2. 配置文件
<RouterD> display current-configuration
#
sysname RouterD
#
multicast routing-enable
#
interface Ethernet1/1
port link-mode route
ip address 10.110.3.1 255.255.255.0
pim sm
#
interface Ethernet1/2
port link-mode route
ip address 10.110.4.1 255.255.255.0
igmp enable
pim sm
#
interface Serial2/1
link-protocol ppp
ip address 192.168.3.2 255.255.255.0
pim sm
#
ospf 1
area 0.0.0.0
network 192.168.3.0 0.0.0.255
network 10.110.3.0 0.0.0.255
network 10.110.4.0 0.0.0.255
#
return
1. 配置步骤
# 全局使能IGMP Snooping。
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] quit
# 创建VLAN 10,并把端口Ethernet1/2到Ethernet1/3添加到该VLAN中。
[SwitchA] vlan 10
[SwitchA-vlan10] port ethernet 1/2 to ethernet 1/3
[SwitchA-vlan10] quit
# 创建VLAN 20,并把端口Ethernet1/4添加到该VLAN中。
[SwitchA] vlan 20
[SwitchA-vlan20] port ethernet 1/4
[SwitchA-vlan20] quit
# 创建VLAN 5,把端口Ethernet1/1添加到该VLAN中;在该VLAN内使能IGMP Snooping,并使能丢弃未知组播数据报文功能。
[SwitchA] vlan 5
[SwitchA-vlan5] port ethernet 1/1
[SwitchA-vlan5] igmp-snooping enable
[SwitchA-vlan5] igmp-snooping drop-unknown
[SwitchA-vlan5] quit
# 配置VLAN 5为组播VLAN,并把VLAN 10和VLAN 20都配置为该组播VLAN的子VLAN。
[SwitchA] multicast-vlan 5
[SwitchA-mvlan-5] subvlan 10 20
[SwitchA-mvlan-5] return
2. 配置文件
<SwitchA> display current-configuration
#
sysname SwitchA
#
igmp-snooping
#
vlan 5
|