Don't have defaultrouter file

How do I changed the default router in my Solaris 8 Sun Box?  I have been troubleshooting the server because I cannot see it from outside the LAN and I am told that I need to set the defaultrouter in my /etc file to the router's IP 192.168.1.1.  Well I don't have a defaultrouter file in the /etc directory.  Can I create it from a text file and ftp it in or do I need to create it in the box.  I don't have a clue on how to manually edit a file in Solaris.  I tried VI and it locked up on me.  Any suggestions would be much appreciated.
rodunoAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
You won't have a defaultrouter file unless you create it with any any text editor or by executing:

echo "192.168.1.1" >/etc/defaultrouter
0
 
rodunoAuthor Commented:
That did it.  Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.