SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
SW1(config)#vlan 2 bridge 1 state enable | Configure VLANs |
SW1(config)#interface eth1 | Enter interface mode. |
SW1(config-if)#switchport | Configure eth1 as a layer 2 port. |
SW1(config-if)#bridge-group 1 | Associate bridge to an interface. |
SW1(config-if)#switchport mode trunk | Configure port as a trunk. |
SW1(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
SW1(config-if)#exit | Exit interface mode. |
SW1(config)#interface eth2 | Enter interface mode. |
SW1(config-if)#switchport | Configure eth2 as a layer 2 port. |
SW1(config-if)#bridge-group 1 | Associate bridge to an interface. |
SW1(config-if)#switchport mode trunk | Configure port as a trunk. |
SW1(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth2 interface. |
SW1(config-if)#exit | Exit interface mode. |
SW1(config)#interface eth3 | Enter interface mode. |
SW1(config-if)#switchport | Configure eth3 as a layer 2 port. |
SW1(config-if)#bridge-group 1 | Associate bridge to an interface. |
SW1(config-if)#switchport mode trunk | Configure port as a trunk. |
SW1(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
SW1(config-if)#exit | Exit interface mode. |
SW1(config)#no igmp snooping | Disable IGMP snooping |
SW1(config)#commit | Commit the transaction. |
R1#configure terminal | Enter configure mode. |
R1(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
R1(config)#vlan 2 bridge 1 state enable | Configure VLANs |
R1(config)#ip multicast-routing | Configure multicast routing on R1 |
R1(config)#ip pim rp-address 1.1.1.4 | Statically configure RP address for multicast groups. |
R1(config)#interface lo | Enter interface mode. |
R1(config-if)#ip address 1.1.1.1/32 | Configure the IP address of the interface. |
R1(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R1(config-if)#exit | Exit interface mode. |
R1(config)#interface eth1 | Enter interface mode. |
R1(config-if)#switchport | Configure eth3 as a Layer 2 port. |
R1(config-if)#bridge-group 1 | Associate bridge to an interface. |
R1(config-if)#switchport mode trunk | Configure port as a trunk. |
R1(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
R1(config-if)#exit | Exit interface mode. |
R1(config)#interface vlan1.2 | Enter interface mode. |
R1(config-if)#ip address 100.1.1.1/24 | Configure the IP address of the interface. |
R1(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R1(config-if)#ip pim redundancy 1 vrrp dr-priority 101 | Configure VRRP aware PIM command with dr-priority and VRRP instance |
R1(config)#interface eth2 | Enter interface mode. |
R1(config-if)#ip address 20.1.1.1/24 | Configure the IP address of the interface. |
R1(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R1(config)#interface eth3 | Enter interface mode. |
R1(config-if)#ip address 29.1.1.1/24 | Configure the IP address of the interface. |
R1(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R1(config-if)#exit | Exit interface mode. |
R1(config)#interface eth4 | Enter interface mode. |
R1(config-if)#ip address 5.1.1.1/24 | Configure the IP address of the interface. |
R1(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R1(config-if)#exit | Exit interface mode. |
R1(config)#router ospf 1 | Set the routing process ID. |
R1(config-router)#network 1.1.1.1/32 area 0.0.0.0 | Configure OSPF network in area 0 |
R1(config-router)#ospf router-id 1.1.1.1 | Configure OSPF router-ID |
R1(config-router)#network 20.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R1(config-router)#network 29.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R1(config-router)#network 5.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R1(config-router)#exit | Exit router mode. |
R1(config)#router vrrp 1 vlan1.2 | Create a VRRP instance for interface VLAN1.2 |
R1(config-router)#virtual-ip 100.1.1.1 | Set the virtual IP address for the VRRP session |
R1(config-router)#enable | Enable the VRRP session on the router. |
R1(config-router)#commit | Commit the transaction. |
R2#configure terminal | Enter configure mode. |
R2(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
R2(config)#vlan 2 bridge 1 state enable | Configure VLANs |
R2(config)#ip multicast-routing | Configure multicast routing on R2 |
R2(config)#ip pim rp-address 1.1.1.4 | Statically configure RP address for multicast groups. |
R2(config)#interface lo | Enter interface mode. |
R2(config-if)#ip address 1.1.1.2/32 | Configure the IP address of the interface. |
R2(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R2(config-if)#exit | Exit interface mode. |
R2(config)#interface eth1 | Enter interface mode. |
R2(config-if)#ip address 50.1.1.2/24 | Configure the IP address of the interface. |
R2(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R2(config)#interface eth2 | Enter interface mode. |
R2(config-if)#switchport | Configure eth3 as a Layer 2 port. |
R2(config-if)#bridge-group 1 | Associate bridge to an interface. |
R2(config-if)#switchport mode trunk | Configure port as a trunk. |
R2(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
R2(config)#interface eth3 | Enter interface mode. |
R2(config-if)#ip address 29.1.1.2/24 | Configure the IP address of the interface. |
R2(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R2(config-if)#exit | Exit interface mode. |
R2(config)#interface vlan1.2 | Enter interface mode. |
R2(config-if)#ip address 100.1.1.2/24 | Configure the IP address of the interface. |
R2(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R2(config-if)#ip pim redundancy 1 vrrp dr-priority 101 | Configure VRRP aware PIM command with dr-priority and VRRP instance |
R2(config)#router ospf 1 | Set the routing process ID . |
R2(config-router)#ospf router-id 1.1.1.2 | Configure OSPF router-ID |
R2(config-router)#network 1.1.1.2/32 area 0.0.0.0 | Configure OSPF network in area 0 |
R2(config-router)#network 29.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R2(config-router)#network 50.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R2(config-router)#exit | Exit router mode. |
R2(config)#router vrrp 1 vlan1.2 | Create a VRRP instance for interface VLAN1.2 |
R2(config-router)#virtual-ip 100.1.1.1 | Set the virtual IP address for the VRRP session |
R2(config-router)#enable | Enable the VRRP session on the router. |
R2(config-router)#commit | Commit the transaction. |
R3#configure terminal | Enter configure mode. |
R3(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
R3(config)#vlan 2 bridge 1 state enable | Configure VLANs |
R3(config)#ip multicast-routing | Configure multicast routing on R3 |
R3(config)#ip pim rp-address 1.1.1.4 | Statically configure RP address for multicast groups. |
R3(config)#interface lo | Enter interface mode. |
R3(config-if)#ip address 1.1.1.3/32 | Configure the IP address of the interface. |
R3(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R3(config-if)#exit | Exit interface mode. |
R3(config)#interface eth1 | Enter interface mode. |
R3(config-if)#switchport | Configure eth3 as a Layer 2 port. |
R3(config-if)#bridge-group 1 | Associate bridge to an interface. |
R3(config-if)#switchport mode trunk | Configure port as a trunk. |
R3(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
R3(config)#interface eth2 | Enter interface mode. |
R3(config-if)#ip address 20.1.1.2/24 | Configure the IP address of the interface. |
R3(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R3(config)#interface eth3 | Enter interface mode. |
R3(config-if)#ip address 45.1.1.2/24 | Configure the IP address of the interface. |
R3(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R3(config-if)#exit | Exit interface mode. |
R3(config)#interface vlan1.2 | Enter interface mode. |
R3(config-if)#ip address 200.1.1.2/24 | Configure the IP address of the interface. |
R3(config-if)#ip pim sparse-mode | Configure PIM as sparse mode. |
R3(config-if)#exit | Exit interface mode. |
R3(config)#router ospf 1 | Set the routing process ID. |
R3(config-router)#ospf router-id 1.1.1.3 | Configuring OSPF router-ID. |
R3(config-router)#network 1.1.1.3/32 area 0.0.0.0 | Configure OSPF network in area 0. |
R3(config-router)#network 200.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0. |
R3(config-router)#network 20.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0. |
R3(config-router)#network 45.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0. |
R3(config-router)#commit | Commit the transaction. |
R4#configure terminal | Enter configure mode. |
R4(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
R4(config)#vlan 2 bridge 1 state enable | Configure VLANs |
R4(config)#ip multicast-routing | Configure multicast routing on R4 |
R4(config)#ip pim rp-address 1.1.1.4 | statically configure RP address for multicast groups. |
R4(config)#interface lo | Enter interface mode. |
R4(config-if)#ip address 1.1.1.4/32 | Configure the IP address of the interface. |
R4(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R4(config-if)#exit | Exit interface mode. |
R4(config)#interface eth1 | Enter interface mode. |
R4(config-if)#ip address 50.1.1.1/24 | Configure the IP address of the interface. |
R4(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R4(config)#interface eth2 | Enter interface mode. |
R4(config-if)#switchport | Configure eth3 as a Layer 2 port. |
R4(config-if)#bridge-group 1 | Associate bridge to an interface. |
R4(config-if)#switchport mode trunk | Configure port as a trunk. |
R4(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
R4(config)#interface eth3 | Enter interface mode. |
R4(config-if)#ip address 45.1.1.1/24 | Configure the IP address of the interface. |
R4(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R4(config-if)#exit | Exit interface mode. |
R4(config)#interface eth4 | Enter interface mode. |
R4(config-if)#ip address 5.1.1.2/24 | Configure the IP address of the interface. |
R4(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R4(config-if)#exit | Exit interface mode. |
R4(config)#interface vlan1.2 | Enter interface mode. |
R4(config-if)#ip address 200.1.1.1/24 | Configure the IP address of the interface. |
R4(config-if)#ip pim sparse-mode | Configure PIM as sparse mode |
R4(config-if)#exit | Exit interface mode. |
R4(config)#router ospf 1 | Set the routing process ID . |
R4(config-router)#ospf router-id 1.1.1.4 | Configuring OSPF router-ID |
R4(config-router)#network 1.1.1.4/32 area 0.0.0.0 | Configure OSPF network in area 0 |
R4(config-router)#network 200.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R4(config-router)#network 45.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R4(config-router)#network 50.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R4(config-router)#network 5.1.1.0/24 area 0.0.0.0 | Configure OSPF network in area 0 |
R4(config-router)#commit | Commit the transaction. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
SW2(config)#vlan 2 bridge 1 state enable | Configure VLANs |
SW2(config)#interface eth1 | Enter interface mode. |
SW2(config-if)#switchport | Configure eth1 as a Layer 2 port. |
SW2(config-if)#bridge-group 1 | Associate bridge to an interface. |
SW2(config-if)#switchport mode trunk | Configure port as a trunk. |
SW2(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface eth2 | Enter interface mode. |
SW2(config-if)#switchport | Configure eth2 as a Layer 2 port. |
SW2(config-if)#bridge-group 1 | Associate bridge to an interface. |
SW2(config-if)#switchport mode trunk | Configure port as a trunk. |
SW2(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth2 interface. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface eth3 | Enter interface mode. |
SW2(config-if)#switchport | Configure eth3 as a Layer 2 port. |
SW2(config-if)#bridge-group 1 | Associate bridge to an interface. |
SW2(config-if)#switchport mode trunk | Configure port as a trunk. |
SW2(config-if)#switchport trunk allowed vlan add 2 | Allow VLAN 2 on the eth1 interface. |
SW2(config-if)#commit | Commit the transaction. |