Hi Mahesh,
First you have to upgrade your Nexus Repository 2 to the latest 2.x version available. Then you have to use the latest 3.y version to migrate to and you have to use the same license types on both of them (OSS, Pro, or Trial Evaluation). Please refer to the documentation for details: Upgrading from Nexus Repository Manager 2