I cant speak to 2G networks, but 5G (and 4G) are amazingly simple to get started using OpenAirInterface. With a USRP B210 I had a 5G network running from a bare Ubuntu install in under 30 minutes. I used a smartphone and some cheap (blank, user-writable) SIM cards to connect and test it.