Visit the LQ Articles and Editorials section
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.


  Search this Thread
Old 10-05-2013, 06:36 PM   #1
Registered: Jul 2007
Distribution: Solaris 10/09
Posts: 260

Rep: Reputation: 31
Setting ip settings on boot

How can I tell solaris 11 to set my net0 ip settings to netmask on boot? Also what do I need to edit to set my default route to I've been doing route add default after each reboot.
Old 10-05-2013, 07:49 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I'm a Solaris newb but this may work (happy to be corrected):

# unconfigure and remove any dhcp info
ifconfig net0 unplumb
rm -f /etc/dhcp.*
ifconfig net0 plumb

# set IP
cat << EOF > /etc/hostname.net0 broadcast up

# add subnet to known networks
cat << EOF >> /etc/netmasks

# set default gateway
echo "" > /etc/defaultrouter
You'll need to this from the console not via ssh
Old 10-06-2013, 06:50 AM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,571

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Solaris 11 new IP stack obsoleted most of the previous way to configure networking.

You should now use dladm, netadm, ipadm, route and the likes to do it if you really want locally configured addresses.

It is however much simpler to rely on a dhcp server (i.e. use ncp Automatic profile).

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
netconfig not setting eth0 settings on boot austinramsay Slackware 2 10-05-2013 08:56 PM
Setting network settings OpsVentus Programming 2 12-20-2005 03:52 PM
setting up network (proxy settings) sharadbirmiwal Linux - Networking 1 01-27-2005 09:04 AM
Setting aumix settings across boot sbrewer Linux - Hardware 1 12-27-2004 04:50 PM
Mandrake 10.0 Community Not Properly Setting Wireless Settings on Boot-up ajkessel Linux - Wireless Networking 0 05-14-2004 08:03 AM

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration