Skip to end of metadata
Go to start of metadata
  1. Jan 14, 2011


    Some comments on nwam and comparison of physical:nwam and physical:default would be useful here. Should physical:nwam ever be used on server? What are pros and cons of this?

  2. Jan 28, 2011


    There also seem to be some difficulties with nwam which need to be addressed. I was never able to figure out how to use nwam with exclusive-IP zones. in the global zone nwam seems to want to grab all of the interfaces and then the zones complain that they aren't available for them. There may be a way to fix this using nwam but I couldn't find it. I ended up disabling nwam on machines with exclusive IP zones because the physical:default method didn't grab all of the available interfaces.

  3. Jan 29, 2011


    I can not believe this would be released without being able to change the IP from DHCP to Static.

  4. Mar 13, 2011


    Any chance you can update the page to include what a LINK_ADDRESS is?  Tried e1000g0 but it didn't like it for me

  5. Mar 30, 2011


    The easy way to configure a static ip address

    # sudo su -

    # svcadm disable network/physical:nwam

    # svcadm enable network/physical:default

    # cp /etc/nsswitch.dns /etc/nsswitch.conf

    # exit

    $ sudo network-admin     (which provides GUI configuration of IP, gateway, etc)

    1. May 21, 2011


      The easy way to change to static IP is using GUI. This is how I did it in OpenSolaris (not tried in OI though).

  6. Jun 22, 2011


    There is a typo:
    Update /etc/hosts

    Since long time ago, it is symlink to /etc/inet/hosts and that one should be used.

    Also, i am getting error:

    ipadm create-addr -T static -a solarix/24 e1000g0/v4
    ipadm: Could not create address: Persistent operation on temporary object

    if omit /v4

    ipadm: invalid address object name: e1000g0

    And that IF is up and running. Have to reboot to see if change will survive.

    Predrag Zecevic

  7. Jun 23, 2011

    The easy way

    • Find interface name with 'ifconfig -a' or 'dladm showphys'. If it's not visible with ifconfig, it's not plumbed, so ifconfig plumb devname. For this example, we'll use e1000g0
    • Disable NWAM: svcadm disable svc:/network/physical:nwam
    • Set IP address in /etc/hostname.e1000g0: echo > /etc/hostname.e1000g0
    • Set netmask in /etc/netmasks (there's an example in there)
    • Set default gateway in /etc/defaultrouter: echo > /etc/defaultrouter
    • Set DNS servers in /etc/resolv.conf (example: printf "search my.tld\nnameserver\nnameserver\n" > /etc/resolv.conf)
    • Enable default: svcadm enable svc:/network/physical:default
    • Restart networking: svcadm restart svc:/milestone/network:default
    1. Jun 23, 2011


      Trying to setup a static IP on my home network. Just a little ZFS fileserver for streaming music and storing backups. Nothing fancy.

      I followed these steps:

      *Got my interface name (e1000g0)
      *Disabled NWAM
      *Added my static IP: echo > /etc/hostname.e1000g0
      *Added "" to /etc/netmasks (unsure about the
      *Added my router's IP address: echo > /etc/defaultrouter
      *Added my ISP's nameservers: printf "search\nnameserver\nnameserver\n" > /etc/resolv.conf ( required if I have no domain name?)
      *Enable Default and restart networking.

      Right now if I ping I get "unknown host"


      1. Jun 24, 2011


        In /etc/nsswitch.conf update "hosts" field from "files" to "files dns".

        Dmitry Kozhinov.

        1. Jun 25, 2011


          That did it, thanks.


  8. Aug 11, 2011


    Or you can used NWAM and setting a static IP without disabling NWAM. It is very usefull if, like me, you have 2 or more NIC with some in DHCP.
    Here a good example :
    I have trying to setup static ip removing NWAMP during 4 hours without succes and it took me 10 minutes using NWAM (wink)

    1. Sep 14, 2011


      There are two problems with NWAM, from my perspective:

      • It seems to come up later in the startup process, so services that start early sometimes think there's no network.
      • As far as I can tell there's no way to configure NWAM without the GUI. This is a problem if you're running a server without the GUI enabled.
      1. Sep 22, 2011


        And vice versa, in OpenSolaris 2009.06 (if I remember version number correctly) it was possible to configure static IP address using GUI exclusively. You got warning that network is configured automatically, click "manual", and NWAM was disabled - without issuing commands

        1. svcadm disable network/physical:nwam
        2. svcadm enable network/physical:default

        In OpenIndiana GUI network configuration is not working that way.

        Dmitry Kozhinov.

      2. Sep 22, 2011

        $ uname -a
        SunOS amd 5.11 oi_151a i86pc i386 i86pc
        $ whence nwamadm
        $ whence nwamcfg

        1. Sep 22, 2011


          uname -a
          SunOS ze 5.11 oi_151a i86pc i386 i86pc Solaris

          whence nwamadm
          -bash: whence: command not found

          which nwamadm
          which nwamcfg

          From where whence comes (linux)?

          Best regards

          Predrag Zecevic

          1. Sep 22, 2011




            pkg publisher -a
   (preferred) origin online
            sfe origin online
            sfe-encumbered origin online

            pkg search -r whence
            {returns no result

          2. Sep 23, 2011

            `whence is a Korn shell built-in.

            1. Sep 23, 2011



              Since Solaris 2.7 i am not using it, so i forgot.

              Best regards
              Predrag Zecevic

  9. Jan 10, 2012


    I wrote an article a while back which covers how to configure basic networking on Solaris 11 Express (it is valid on OpenIndiana as well).

    I also have a subsequent article which covered configuring VLANs, Jumbo Frames, and Aggregation groups.