To set up a peer-to-peer network in Windows 7, you must first change the computer name and workgroup name in system properties. You then enable network discovery, file sharing, and printer sharing. Finally, you assign an IP address and enable network discovery and file sharing, which allows you to see other computers on the network and successfully configure a workgroup.