A new Mac is in warranty for 1 year from the date of purchase.
A new Mac comes with 90 days of free tech support from AppleCare.
Power down the router. Unplug it from the wall.
Plug it back. Power up the router. Wait until all the lights are lit up properly.
Restart the computer.
For more on this: