vIOS1 en terminal length 0 conf t hostname vIOS1 line console 0 logging synchronous exit ! ip multicast-routing access-list 1 permit 239.0.0.1 ! int lo0 ip address 1.1.1.1 255.255.255.255 ip pim sparse-mode ! int gi0/0 ip address 14.14.14.1 255.255.255.0 ip pim sparse-mode no shut ! int gi0/1 ip address 12.12.12.1 255.255.255.0 ip pim sparse-mode no shut ! int gi0/2 ip address 13.13.13.1 255.255.255.0 ip pim sparse-mode no shut exit ! ip pim rp-address 1.1.1.1 1 ! router ospf 1 network 1.1.1.1 0.0.0.0 area 0 network 12.12.12.0 0.0.0.255 area 0 network 13.13.13.0 0.0.0.255 area 0 network 14.14.14.0 0.0.0.255 area 0 end ! vIOS2 en terminal length 0 conf t hostname vIOS2 line console 0 logging synchronous exit ! ip multicast-routing access-list 1 permit 239.0.0.1 ! int gi0/0 ip address 12.12.12.2 255.255.255.0 ip pim sparse-mode no shut ! int gi0/1 ip address 23.23.23.2 255.255.255.0 ip pim sparse-mode no shut ! int gi0/2 ip address 10.0.0.2 255.255.255.0 ip pim sparse-mode standby 1 ip 10.0.0.23 standby 1 priority 120 standby 1 preempt standby 1 name HSRP1 no shut exit ! ip pim rp-address 1.1.1.1 1 ! router ospf 1 network 12.12.12.0 0.0.0.255 area 0 network 23.23.23.0 0.0.0.255 area 0 network 10.0.0.0 0.0.0.255 area 0 end ! [あとで設定] int gi0/2 ip pim redundancy HSRP1 hsrp dr-priority 100 ## dr-priorityのデフォルトは1 vIOS3 en terminal length 0 conf t hostname vIOS3 line console 0 logging synchronous exit ! ip multicast-routing access-list 1 permit 239.0.0.1 ! int gi0/0 ip address 13.13.13.3 255.255.255.0 ip pim sparse-mode no shut ! int gi0/1 ip address 23.23.23.3 255.255.255.0 ip pim sparse-mode no shut ! int gi0/2 ip address 10.0.0.3 255.255.255.0 ip pim sparse-mode standby 1 ip 10.0.0.23 standby 1 preempt standby 1 name HSRP1 no shut exit ! ip pim rp-address 1.1.1.1 1 ! router ospf 1 network 13.13.13.0 0.0.0.255 area 0 network 23.23.23.0 0.0.0.255 area 0 network 10.0.0.0 0.0.0.255 area 0 end ! vIOS4 en terminal length 0 conf t hostname vIOS4 line console 0 logging synchronous exit ! ip multicast-routing access-list 1 permit 239.0.0.1 ! int gi0/0 ip address 14.14.14.4 255.255.255.0 ip pim sparse-mode no shut ! int gi0/1 ip address 41.41.41.4 255.255.255.0 ip pim sparse-mode no shut exit ! ip pim rp-address 1.1.1.1 1 ! router ospf 1 network 14.14.14.0 0.0.0.255 area 0 network 41.41.41.0 0.0.0.255 area 0 end ! vIOS5(Sender) en terminal length 0 conf t hostname vIOS5 line console 0 logging synchronous exit ! ip route 0.0.0.0 0.0.0.0 41.41.41.4 ! int gi0/0 ip address 41.41.41.10 255.255.255.0 no shut end ! vIOS6(Reciever) en terminal length 0 conf t hostname vIOS6 line console 0 logging synchronous exit ! ip route 0.0.0.0 0.0.0.0 10.0.0.23 ! int gi0/0 ip address 10.0.0.10 255.255.255.0 ip igmp join-group 239.0.0.1 no shut end !