Yes, it's illegal to distribute copyrighted material against the copyright owner's wishes. It doesn't matter if it's a peer-to-peer network. From both a legal and technical standpoint, there's basically no difference between placing a song on a webserver for people to download and hosting it on a peer-to-peer network.
Also, if your peer to peer network has you downloading the same thing over and over again, then your peer-to-peer network is broken.