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

    Anonymous

    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

    Anonymous

    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

    Anonymous

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

  4. Mar 13, 2011

    Anonymous

    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

    Anonymous

    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

      Anonymous

      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

    Anonymous

    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.

    Regards.
    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 1.2.3.4 > /etc/hostname.e1000g0
    • Set netmask in /etc/netmasks (there's an example in there)
    • Set default gateway in /etc/defaultrouter: echo 1.2.3.1 > /etc/defaultrouter
    • Set DNS servers in /etc/resolv.conf (example: printf "search my.tld\nnameserver 1.2.3.4\nnameserver 2.3.4.5\n" > /etc/resolv.conf)
    • Enable default: svcadm enable svc:/network/physical:default
    • Restart networking: svcadm restart svc:/milestone/network:default
    1. Jun 23, 2011

      Anonymous

      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 10.1.1.85 > /etc/hostname.e1000g0
      *Added "10.1.1.0 255.255.255.0" to /etc/netmasks (unsure about the 10.1.1.0)
      *Added my router's IP address: echo 10.1.1.1 > /etc/defaultrouter
      *Added my ISP's nameservers: printf "search comcast.net\nnameserver 68.87.76.178\nnameserver 66.240.48.9\n" > /etc/resolv.conf (comcast.net required if I have no domain name?)
      *Enable Default and restart networking.

      Right now if I ping google.com I get "unknown host"

      Regards,
      Geoff

      1. Jun 24, 2011

        Anonymous

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

        Regards,
        Dmitry Kozhinov.

        1. Jun 25, 2011

          Anonymous

          That did it, thanks.

          Regards,
          Geoff

  8. Aug 11, 2011

    Anonymous

    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 : http://pdconsec.net/blogs/davidr/archive/2011/07/19/solaris-express-static-ips-the-right-way.aspx
    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

      Anonymous

      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

        Anonymous

        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.

        Regards,
        Dmitry Kozhinov.

      2. Sep 22, 2011

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

        1. Sep 22, 2011

          Anonymous

          uname -a
          SunOS ze 5.11 oi_151a i86pc i386 i86pc Solaris

          whence nwamadm
          -bash: whence: command not found

          which nwamadm
          /usr/sbin/nwamadm
          which nwamcfg
          /usr/sbin/nwamcfg

          From where whence comes (linux)?

          Best regards

          Predrag Zecevic

          1. Sep 22, 2011

            Anonymous

            Ah,

            here:

            pkg publisher -a
            PUBLISHER TYPE STATUS URI
            openindiana.org (preferred) origin online http://pkg.openindiana.org/dev/
            sfe origin online http://pkg.openindiana.org/sfe/
            sfe-encumbered origin online http://pkg.openindiana.org/sfe-encumbered/

            pkg search -r whence
            {returns no result

          2. Sep 23, 2011

            `whence is a Korn shell built-in.

            1. Sep 23, 2011

              Anonymous

              Thanks

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

              Best regards
              Predrag Zecevic

  9. Jan 10, 2012

    Anonymous

    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).
    http://blog.allanglesit.com/2011/03/solaris-11-network-configuration-basics/

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

    http://blog.allanglesit.com/2011/03/solaris-11-network-configuration-advanced/

    -matt