Solved

Don't have defaultrouter file

Posted on 2004-04-03
2
378 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:roduno
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 10749196
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
 

Author Comment

by:roduno
ID: 10749446
That did it.  Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now