i’m trying to set ip addresses to my network , please help

enter image description here

here’s my schema , i’m trying to set up ip addresses to be able to ping from the first floor ( etage 1 ) to the second ( etage 2) , i tried setting up an ip address with the gateway to pcD , and with the gateway but im not able to ping
please help