© Copyright Lenovo 2016 Chapter 32: Internet Group Management Protocol 515Switch B Configuration1. Configure VLANs and tagging.2. Configure IP interfaces with IPv4 addresses, and assign VLANs.3. Configure STP.4. Configure an LACP dynamic LAG (portchannel).5. Configure a static LAG (portchannel).RS G8264(config)# vlan 2,3RS G8264(config vlan)# interface port 1 4RS G8264(config if)# switchport access vlan 2RS G8264(config if)# exitRS G8264(config)# interface port 5RS G8264(config if)# switchport access vlan 3RS G8264(config if)# exitRS G8264(config)# interface port 6RS G8264(config if)# switchport mode trunkRS G8264(config if)# switchport trunk allowed vlan 2,3RS G8264(config if)# exitRS G8264(config)# interface ip 2RS G8264(config ip if)# ip address 2.2.2.20 enableRS G8264(config ip if)# vlan 2RS G8264(config ip if)# exitRS G8264(config)# interface ip 3RS G8264(config ip if)# ip address 3.3.3.20 enableRS G8264(config ip if)# vlan 3RS G8264(config ip if)# exitRS G8264(config)# ip gateway 2 address 2.2.2.30 enableRS G8264(config)# interface port 5,6RS G8264(config if)# spanning tree portfastRS G8264(config if)# shutdownRS G8264(config if)# no shutdownRS G8264(config if)# exitRS G8264(config)# interface port 1,2RS G8264(config if)# lacp key 300RS G8264(config if)# lacp mode activeRS G8264(config if)# exitRS G8264(config)# portchannel 1 port 3,4 enable