Solaris: Adding a default route

solaris.jpg One of the things to get internet working in Solaris, is to edit the defaultrouter file. Usually it’s one single line that has your gateway address in it.
So if you add this to /etc/defaultrouter, you should be up and running. One of the basic rookie mistakes is to not set this file and then hunt all over the place trying to figure out why networking doesn’t work with the new box. Believe me. I’ve done it. It doesn’t take much. So one of the first things to check is always make sure that there is an ip address in defaultrouter and make sure that it is actually your gateway.