You won't need two 3DS consoles to transfer Pokemon! The DS and single 3DS should be enough to transfer Pokemon from Gen 4 to Gen 5!
I specifically urge you to get either Black 2 or White 2, as they're the games that introduced PokeTransport in order to put Pokémon into Bank. Note again, you have to beat the game and enter post game.
You technically CAN get additional games (gens 6-7), but it's not necessary as Home has a way to connect to Bank until the shut down, as long as you have Bank on the 3DS (and a subscription on Home).
Bank functions similarly to Home in holding Pokemon from different games, as It's capatible from Gen 5-7. But if you want to just move them into the Switch era, you can without having to go through the 3DS games.
