Welcome to the most active Linux Forum on the web.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 08-21-2016, 10:17 AM   #1
Registered: Jan 2015
Posts: 30

Rep: Reputation: Disabled
Solaris IP inside VM


I've installed Oracle Solaris 11 in my virtualbox running in windows. How can I set static IP for this machine? Is there a way to access this machine from my local and other windows machine using putty/ssh?
Old 08-21-2016, 04:27 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
At installation time, you were probably asked if you want to use automatic (dhcp) or static IP. If you chose the former but now want the latter, you can switch your network profile from automatic to fixed with this command:

netadm enable -p ncp DefaultFixed
Then you need to create an IP interface:

ipadm create-ip net0
Set the IP address:

ipadm create-addr -T static -a net0/flexihopper
Set the default route:

route -p add default
Of course, you need to adjust the IP addresses and possibly the interface to your needs.

See for details.

About accessing your VM through ssh from your host or other machines on your network, there is nothing Solaris specific. You need to configure your VM either to use a bridged interface and then your VM would be reachable (or not) just like a real server, or, if you stay with the default NAT, you can configure a port forwarding rule allowing to access ssh from some port on the host. See


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
Sleep inside for loop inside while loop causing issues. TheOnlyQ Programming 13 12-19-2012 12:59 PM
LXer: The Devil Inside: Creative Threat Detection Inside the Firewall LXer Syndicated Linux News 0 05-24-2012 07:30 PM
Possible to have a VM inside a VM, inside a VM? Into eternity? linus72 Linux - Newbie 8 05-15-2009 07:20 AM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:41 AM.

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