Which part of the network assigns an IP address?
the device's NIC based on the MAC address
the gateway/router using DHCP
IP addresses are always assigned manually
the modem using TCP/IP protocol