组播SSM配置实例

拓扑:

R1配置:

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip pim sparse-dense-mode
!
interface Ethernet0/0
ip address 12.1.1.1 255.255.255.0
ip pim sparse-dense-mode
half-duplex
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 12.1.1.0 0.0.0.255 area 0

R2配置:

ip multicast-routing
!
interface Ethernet0/0
ip address 12.1.1.2 255.255.255.0
ip pim sparse-dense-mode
half-duplex
!
interface Ethernet0/1
ip address 23.1.1.2 255.255.255.0
ip pim sparse-dense-mode
half-duplex
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 12.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
!
ip pim ssm default

R3配置:

ip multicast-routing
ip igmp ssm-map enable
no ip igmp ssm-map query dns
ip igmp ssm-map static 1 1.1.1.1
 

interface Ethernet0/0
ip address 34.1.1.3 255.255.255.0
ip pim sparse-dense-mode
ip igmp version 3
half-duplex
!
interface Ethernet0/1
ip address 23.1.1.3 255.255.255.0
ip pim sparse-dense-mode
half-duplex
!
interface Ethernet0/2
ip address 35.1.1.3 255.255.255.0
ip pim sparse-dense-mode
ip urd
half-duplex
!

router ospf 100
router-id 3.3.3.3
log-adjacency-changes
network 23.1.1.0 0.0.0.255 area 0
default-information originate always
!
ip pim ssm default
!
access-list 1 permit 232.1.1.4
access-list 1 permit 232.1.1.5

R4配置:

interface Ethernet0/0
ip address 34.1.1.4 255.255.255.0
ip igmp join-group 232.1.1.4 source 1.1.1.1
ip igmp version 3
half-duplex
!
ip route 1.1.1.1 255.255.255.255 34.1.1.3

R5配置:

interface Ethernet0/2
ip address 35.1.1.5 255.255.255.0
ip igmp join-group 232.1.1.5 source 1.1.1.1
half-duplex
!
ip route 1.1.1.1 255.255.255.255 35.1.1.3

验证:

 

你可能感兴趣的:(ssm)