As well as the possibility of being MAC locked, the router may not be set up to be a DHCP server - it may not hand out addresses automatically. Can you get into the router's setup page using your friend's pc? you can usually access a web-config page, using an address such as http://192.168.0.1
(insert the router's actual address, of course).