Solaris Home Server: Static IP (disable NWAM)

UPDATE 9-11-2010: This procedure doesn’t work in fresh install of b134 – used this (http://www.parolski.com/2010/02/16/static-ips-with-nwam/) to make IP static instead.

What happened when I tried to follow this recipe in b134 was a failure to get a route established despite trying everything. The symptoms looked a lot like this bug report (http://bugs.opensolaris.org/view_bug.do?bug_id=6913780) but I couldn’t get the work around to fix the problem so I’ve gone back to nwam with a static Ip hoping that will work with sunray server!

ORIGINAL POST……

This is cribbed wholesale from the sun ray users wiki

Background

Use of Open Solaris NWAM causes some problems w/ the Sun Ray utadm command. This set of procedures shows how to turn NWAM off & a few other SRSS work-arounds so utadm will work correctly.

Turn off NWAM SMF Service

svcadm disable nwam

Turn on Physical Network Service

svcadm enable network/physical:default

Setup Network Files

For this example, I used network device pcn0. Substitute yours as appropriate.

Automate NIC start up:

cp /etc/nodename /etc/hostname.pcn0

Adjust /etc/hosts with following edits:

vi /etc/hosts:
  1 BEFORE: ::1 myhost myhost.local localhost loghost
    AFTER:  ::1 myhost.local localhost loghost
  2 BEFORE: 127.0.0.1 myhost myhost.local localhost loghost
    AFTER:  127.0.0.1 myhost.local localhost loghost
  3 ADD:    192.168.1.6 myhost

Note: myhost & IP address 192.168.1.6 are examples. Substitute yours as appropriate.

Edit /etc/netmasks with appropriate netmask. For example:

192.168.1.0 255.255.255.0

Set your default route (192.168.1.1 is an example, substitute yours as appropriate):

echo 192.168.1.1 > /etc/defaultrouter

A reboot will activate all of this…

init 6

… or you can activate on the fly:

ifconfig pcn0 plumb 192.168.1.24/24 up
route -f add default 192.168.1.1 1
svcadm restart name-service-cache

ADDED BY ME...
Ensure DNS is configured (if applicable). Setup /etc/resolv.conf, here's an example:
domain     example.acme.com
nameserver 192.168.1.1

Activate:

cp /etc/nsswitch.dns /etc/nsswitch.conf
svcadm enable dns/client
svcadm restart dns/client

143 Comments

  1. herman Said,

    December 18, 2014 @ 5:46 pm

    .

    tnx for info!…

  2. Brandon Said,

    December 18, 2014 @ 6:18 pm

    .

    áëàãîäàðñòâóþ!!…

  3. casey Said,

    December 18, 2014 @ 6:50 pm

    .

    thank you!…

  4. nick Said,

    December 18, 2014 @ 7:22 pm

    .

    hello….

  5. Chris Said,

    December 18, 2014 @ 7:53 pm

    .

    thank you!!…

  6. Eddie Said,

    December 21, 2014 @ 8:36 am

    .

    áëàãîäàðåí!…

  7. brent Said,

    December 21, 2014 @ 9:08 am

    .

    áëàãîäàðåí….

  8. bruce Said,

    December 21, 2014 @ 9:40 am

    .

    tnx for info!!…

  9. terrence Said,

    December 22, 2014 @ 9:59 pm

    .

    thanks for information!…

  10. Leslie Said,

    December 22, 2014 @ 10:31 pm

    .

    ñïñ çà èíôó….

  11. Derrick Said,

    December 22, 2014 @ 11:02 pm

    .

    ñýíêñ çà èíôó!…

  12. corey Said,

    January 15, 2015 @ 3:50 am

    .

    ñýíêñ çà èíôó….

  13. larry Said,

    January 18, 2015 @ 3:32 pm

    .

    tnx!!…

  14. Ricky Said,

    January 19, 2015 @ 1:27 am

    .

    ñïñ….

  15. Billy Said,

    January 19, 2015 @ 5:40 pm

    .

    good….

  16. Travis Said,

    January 21, 2015 @ 4:04 am

    .

    ñïñ!!…

  17. nelson Said,

    January 23, 2015 @ 9:57 am

    .

    good info!!…

  18. joshua Said,

    January 23, 2015 @ 10:29 am

    .

    ñïñ!…

  19. Lonnie Said,

    January 24, 2015 @ 4:03 am

    .

    tnx for info!…

  20. Duane Said,

    January 27, 2015 @ 3:43 pm

    .

    ñïàñèáî çà èíôó!!…

  21. Brandon Said,

    January 28, 2015 @ 10:57 am

    .

    ñïàñèáî!…

  22. eddie Said,

    January 28, 2015 @ 11:31 am

    .

    thanks for information….

  23. Philip Said,

    January 28, 2015 @ 12:03 pm

    .

    ñïñ!!…

  24. Gilbert Said,

    January 28, 2015 @ 12:35 pm

    .

    ñýíêñ çà èíôó….

  25. chester Said,

    January 28, 2015 @ 1:07 pm

    .

    ñïñ çà èíôó!…

  26. jeff Said,

    January 28, 2015 @ 1:39 pm

    .

    thanks!…

  27. Mathew Said,

    January 28, 2015 @ 2:11 pm

    .

    good info!…

  28. Perry Said,

    January 30, 2015 @ 4:53 pm

    .

    ñïàñèáî çà èíôó!…

  29. Carlos Said,

    January 30, 2015 @ 5:25 pm

    .

    tnx for info….

  30. Darryl Said,

    January 30, 2015 @ 5:57 pm

    .

    áëàãîäàðñòâóþ….

  31. Roberto Said,

    January 31, 2015 @ 3:34 am

    .

    ñïñ!…

  32. tom Said,

    February 1, 2015 @ 8:51 pm

    .

    ñïñ çà èíôó!…

  33. Micheal Said,

    February 4, 2015 @ 3:22 am

    .

    thanks….

  34. Felix Said,

    February 4, 2015 @ 3:56 am

    .

    ñïñ!…

  35. Jackie Said,

    February 4, 2015 @ 2:29 pm

    .

    ñïñ!!…

  36. Scott Said,

    February 5, 2015 @ 7:00 pm

    .

    ñïàñèáî çà èíôó….

  37. charles Said,

    February 5, 2015 @ 7:33 pm

    .

    tnx for info!!…

  38. Danny Said,

    February 6, 2015 @ 1:50 pm

    .

    thank you!…

  39. Armando Said,

    February 7, 2015 @ 4:01 am

    .

    áëàãîäàðñòâóþ!…

  40. Kenneth Said,

    February 7, 2015 @ 4:33 am

    .

    ñïàñèáî….

  41. Evan Said,

    February 7, 2015 @ 1:11 pm

    .

    ñïñ çà èíôó!!…

  42. Juan Said,

    February 8, 2015 @ 6:03 am

    .

    thanks for information!…

  43. luther Said,

    February 12, 2015 @ 3:01 am

    .

    good info….