I was missing the --arp flag. The correct command is: sudo mn --arp --custom 5g_topo2.py --topo my5gtopo --controller=remote,ip=127.0.0.1
--arp
sudo mn --arp --custom 5g_topo2.py --topo my5gtopo --controller=remote,ip=127.0.0.1