ASP Developer Network - Brought to you by Steve Radich and BitShop, Inc. -

Menu [hide]


Configure a static IP Address on Solaris print
similar comment
Steps to configure a static IP address on Solaris 10 - by default DHCP is used, at least in the developer preview builds I've used..

Disable NWAM (Auto Configuration via DHCP) and enable "default" (static) type config:

svcadm disable physical:nwam
svcadm enable physical:default 

Edit the following files in /etc - 
hostname.e1000g0 : to IP address - hostname.(Interface name) is the filename..
/etc/hosts - add IP you want and short name + long name (fully qualified name)
/etc/nodename - the primary name to use (for example in sendmail, etc.).
/etc/defaultrouter - the IP of the default gateway
/etc/netmasks - set the netmasks of your networks, i.e. generally for a /24, if you don't know probably this..
/etc/resolv.conf - list the name servers - for example:
copy /etc/nsswitch.dns to /etc/nsswitch.conf - so dns is used

Restart network to check:
svcadm restart milestone/network

If all is ok reboot just to confirm all comes up as expected

Created by: steveradich last modification: Monday 23 of June, 2008 [19:30:31 UTC] by steveradich

Our Sponsors
FREE .Net 2.0 Tutorials Available Now
FREE .Net 2.0 Tutorials Available Now
Want to contribute to Contact us!
Quality Business Internet Technology Shop - Sponsor of site and hosting
Need a Virtual Server 2005 Hosted Account? Why not trust ASPDeveloper's Team? We're a division of
rss Wiki rss Blogs rss Articles rss Image galleries rss File galleries rss Forums rss Maps rss Directories
ASP Developer Network (since 1996) - Brought to you by Steve Radich and BitShop, Inc. -
Copyright © 1997-2005 by BitShop, Inc. All Rights Reserved.
No content may be reproduced in any form without written permission from BitShop, Inc.
We will be honored to assist with reproduction rights on our material if you contact us.
We also can provide print articles for your magazine, private training seminars at your site, and conference presentations.

Thank you for visiting. Please bookmark our site if you found it useful!
If you wish to make a donation it will help further the development of these free resources: