I can connect to the network and ping other computers and gain access to the modem, but for some reason I cannot connect to the internet through the same modem?

When I try to set the default gateway it says that it cannot find the device.