Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is /etc/defaultrouter file in Solaris 10?

Posted on 2009-04-04
4
1,278 Views
Last Modified: 2013-12-27
I tried adding new gateway to my system.. using this way

#route add default 192.168.0.1
#echo "192.168.0.1" > /etc/defaultrouter

My network connectivity was not working, the moment I did 'rm /etc/defaultrouter' my network connectivity works well and fine, Would really appreciate if someone can explain me what is happening beneath and what is the use of /etc/defaultrouter. Thanks!
0
Comment
Question by:beer9
4 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 50 total points
ID: 24070356
/etc/defaultrouter  is the file you set the IP address of your default gateway.  If network connectivity wasn't working when you had it, then you must of used the wrong IP address.
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 25 total points
ID: 24070693
Can you describe in more details what you had in it before removing it and what is the output of

ifconfig -a
netstat -rn

Are you using static IP address for your network interface or DHCP?
0
 
LVL 4

Assisted Solution

by:joules17
joules17 earned 50 total points
ID: 24074872
also when you  added the /etc/defaultrouter,
try and ping the address 192.168.0.1 and see if it is pingable.
0
 

Author Closing Comment

by:beer9
ID: 31566700
Thanks! :-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

839 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