{"id":6422,"date":"2017-01-07T19:08:33","date_gmt":"2017-01-07T11:08:33","guid":{"rendered":"http:\/\/rmohan.com\/?p=6422"},"modified":"2017-01-07T19:12:26","modified_gmt":"2017-01-07T11:12:26","slug":"solaris-11-network-add","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6422","title":{"rendered":"Solaris 11 Network add"},"content":{"rendered":"<p>Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I\u2019ll blogging about how to configure your Solaris 11 Systems to used static IP Address.<\/p>\n<p>Ok let\u2019s start :<br \/>\n1. Switch From Automatic Network Configuration Mode to Manual Network Configuration Mode<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\"># netadm enable -p ncp DefaultFixed<\/pre>\n<p>2. Verify that DefaultFixed profile is applied<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\"># netadm list\r\nnetadm: DefaultFixed NCP is enabled;\r\nautomatic network management is not available.\r\n'netadm list' is only supported when automatic network management is active.<\/pre>\n<p>3. Determine the interface that you want to configure<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\"># dladm show-phys<\/pre>\n<p>4. I\u2019ll configure the net0 interface<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\"># ipadm create-ip net0\r\n# ipadm create-addr -T static -a 192.168.56.200\/24 net0\/v4<\/pre>\n<p>5. Verify<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\"># ipadm show-addr\r\nADDROBJ           TYPE     STATE        ADDR\r\nlo0\/v4            static   ok           127.0.0.1\/8\r\nnet0\/v4           static   ok           192.168.56.200\/24\r\nlo0\/v6            static   ok           ::1\/128<\/pre>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">root@solaris:~# dladm show-link\r\nLINK                CLASS     MTU    STATE    OVER\r\nnet0                phys      1500   up       --\r\nnet1                phys      1500   unknown  --<\/pre>\n<p>6. Add default route<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\"># route -p add default 12.34.56.1<\/pre>\n<p>7. Add DNS Name Server<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">root@solaris:~# svccfg -s dns\/client\r\nsvc:\/network\/dns\/client&gt; setprop config\/nameserver = (8.8.8.8 8.8.4.4)\r\nsvc:\/network\/dns\/client&gt; listprop config\r\nconfig                      application\r\nconfig\/value_authorization astring     solaris.smf.value.name-service.dns.client\r\nconfig\/nameserver          net_address 8.8.8.8 8.8.4.4\r\nsvc:\/network\/dns\/client&gt; exit\r\nroot@solaris:~#\r\nroot@solaris:~# svcadm refresh dns\/client\r\nroot@solaris:~# svcadm restart dns\/client<\/pre>\n<p>8. Set name service switch<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">root@solaris:~# svccfg -s name-service\/switch\r\nsvc:\/system\/name-service\/switch&gt; setprop config\/host = \"files dns\"\r\nsvc:\/system\/name-service\/switch&gt; listprop config\r\nconfig                      application\r\nconfig\/default             astring     files\r\nconfig\/value_authorization astring     solaris.smf.value.name-service.switch\r\nconfig\/printer             astring     \"user files\"\r\nconfig\/host                astring     \"files dns\"\r\nsvc:\/system\/name-service\/switch&gt; exit<\/pre>\n<p>9. Testing<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">root@solaris:~# ping google.com\r\ngoogle.com is alive<\/pre>\n<p>That\u2019s it..<br \/>\nIn the next post I\u2019ll blogging about how to configure IPMP on Solaris 11.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I\u2019ll blogging about how to configure your Solaris 11 Systems to used static IP Address.<\/p>\n<p>Ok let\u2019s start : 1. Switch From Automatic Network Configuration Mode to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6422"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6422"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6422\/revisions"}],"predecessor-version":[{"id":6423,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6422\/revisions\/6423"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}