How to setup IP PBX Network

Hi! I’m an Asterisk beginner.

I’m writing here because I’d like to know how I can setup correctly an IP PBX Network.
Which components do i need to create a simple network with 2 phones?

Thanks in advance,
Joe

Basically you need a PC which run the asterisk software(PBX), a switch to connect the others PCs if you use softphones or IP Phones and the PBX, set the same network segment. And configure the PBX and phones.