Convert byte to hex. Please help!

Hello guys!
I appolagize for my absence, I couldn't login to my account, and in weekend I've been extremely bussy.

After upload above sketch, I open Serial Monitor, first I input the mac address in this standard format:
"DE:AD:BE:EF:FE:ED" then ip address in this format: 192.168.100.125

The string "DE:AD:BE:EF:FE:ED" is splitted in subsrings, like "DE", "AD", etc. each substring is concatenated with "0x" so each looks like: "0xDE", "0xAD", etc. then I use this statement:
"mac[k++]= ((byte)strtol(tmp2,NULL,0)); " to convert each new subtring to its decimal value.

Then I store these values as bytes in EEPROM, I read them back to initialize each mac[] element, then I initialize the network.

If I setup a static address in my router with above mac and ip address, I can't connect with my arduino.

If I use just DHCP, it works. Something's wrong with mac values