Use ifconfig -a to get more info of your configuration. The command "route" will show you the gateway.
route add default gw IPAddressOfDefaultGateway
Try "man route" to get more info on the route command.
Main Topics
Browse All TopicsHi,
I'm still learning Unix, and I have to change the default gateway of eth0. This server is not acting as a router, just as a file server. When I installed Solaris, I thought I enetered in the correct gateway address but I may have entered it incorrectly due to another error.
1. How can I view the default gateway?
- I used ifconfig and it did not show me a default gateway, just an ip address.
2. How can I change it if it is improperly configured?
Thank you from a Solaris Newbie!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
hi Rindi,
Thanks for your responnse. When I use the ifconfig -a, it states:
ce0: flags=1000843<UP,BROADCAST
inet 10.0.0.17 netmask ffffff00 broadcast 10.0.0.255
ether 0:3:ba:bf:d9:e1
The default gateway should be 10.0.0.1. Should I jsut forcefully add, or how can I see the default gateway.
Thanks for your help from a new Unix user.
-Chris
Business Accounts
Answer for Membership
by: stevenshealthcarePosted on 2005-06-06 at 14:34:49ID: 14157404
Hey,
The command that will show all network settings is: ipconfig /all
Make sure you have a space between ipconfig and /.
As for your second question I'm not sure I understand it. Are you asking how to remotely change a gateway address? David