In the Mega Man Battle Network series, the Undernet is the cyberspace district where the unsavoury navis congregate.
It is consistently the most dangerous network area in each game — packed with the strongest viruses, deliberately difficult to navigate, and structured as a maze rather than a route. The name and the design are doing the same job: it is the part of the internet the internet would rather you did not visit.
Outside of Battle Network, the term also refers to an old, decentralised IRC network from the 1990s — a completely different thing that happens to share the name.