{"id":562,"date":"2009-12-14T14:41:34","date_gmt":"2009-12-14T19:41:34","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=562"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"how-to-configure-a-new-network-interface-in-solaris-10","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=562","title":{"rendered":"How to configure a new network interface in Solaris 10."},"content":{"rendered":"<p>When configuring a new network interface in Solaris 10, the first thing you want to do is to list all available interfaces.  During installation of Soalris 10 the drivers for the NICs will be automatically loaded, provided the NIC is on the hardware compatibility list.<\/p>\n<p>The dladm command with the show-link option will list all the network interfaces installed in the Solaris server.<\/p>\n<blockquote><p>root@server1 # dladm show-link<br \/>\nbge0            type: non-vlan  mtu: 1500       device: bge0<br \/>\nbge1            type: non-vlan  mtu: 1500       device: bge1<br \/>\nbge2            type: non-vlan  mtu: 1500       device: bge2<br \/>\nbge3            type: non-vlan  mtu: 1500       device: bge3    <\/p><\/blockquote>\n<p>dladm with the show-dev option will display the link status, speed and communication mode.<\/p>\n<blockquote><p>root@server1 # dladm show-dev<br \/>\nbge0            link: up        speed: 1000  Mbps       duplex: full<br \/>\nbge1            link: up        speed: 1000  Mbps       duplex: full<br \/>\nbge2            link: unknown   speed: 0     Mbps       duplex: unknown<br \/>\nbge3            link: unknown   speed: 0     Mbps       duplex: unknown  <\/p><\/blockquote>\n<p>ifconfig -a will list all network interfaces that are plumbed and ready for use.<\/p>\n<blockquote><p>root@server1 # ifconfig -a<br \/>\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1<br \/>\n       inet 127.0.0.1 netmask ff000000                                         <\/p>\n<p>bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2<br \/>\n        inet 162.10.11.33 netmask ffff0000 broadcast 172.20.255.255<br \/>\n        ether 0:b:5d:e5:77:c6                                                   <\/p><\/blockquote>\n<p>This will configure and plum the network interface bge0. After it has been plumbed the interface will be listed with the command ifconfig -a.<\/p>\n<blockquote><p>root@server1 # ifconfig bge1 plumb up<\/p><\/blockquote>\n<p>Check to see if the interface was plumbed successfully.<\/p>\n<blockquote><div style=\"float: right;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 200;\ngoogle_ad_height = 200;\ngoogle_ad_format = \"200x200_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>root@server1 # ifconfig -a<br \/>\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1<br \/>\n        inet 127.0.0.1 netmask ff000000                                         <\/p>\n<p>bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2<br \/>\n        inet 162.10.11.33 netmask ffff0000 broadcast 172.20.255.255<br \/>\n        ether 0:b:5d:e5:77:c6<br \/>\nbge1: flags=1000842<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3<br \/>\n        inet 0.0.0.0 netmask 0<br \/>\n        ether 0:b:5d:e5:77:c7<\/p><\/blockquote>\n<p>The next step is to configure the IP address.  This can be done with the ifconfig command as well, but interfaces explicitly configured with the ifconfig command will not persist after a reboot. To make the configuration persistent across reboot create the file \/etc\/hostname.interface.<\/p>\n<p>Create the file \/etc\/hostname.bge1.  This step is optional as the vi command in the next step will also create the file if it does not exists.<\/p>\n<blockquote><p>root@server1 # touch \/etc\/hostname.bge1<\/p><\/blockquote>\n<p>Edit the file with vi and add the IP address and netmask for the interface.<\/p>\n<blockquote><p>root@myserver1 # vi \/etc\/hostname.bge1<br \/>\n168.20.10.11 netmaske 255.255.255.0<\/p><\/blockquote>\n<p>Add the IP address and hostname to \/etc\/inet\/hosts.<\/p>\n<blockquote><p>root@myserver1 # vi \/etc\/inet\/hosts<br \/>\n#<br \/>\n# Internet host table<br \/>\n#<br \/>\n127.0.0.1       localhost<br \/>\n::1     localhost<br \/>\n168.20.10.11     myserver1 myserver1.gamescheat.ca loghost  <\/p><\/blockquote>\n<p>For Solaris 10 11\/06 and earlier releases, add entries for the new interfaces into the \/etc\/inet\/ipnodes file.<\/p>\n<blockquote><p>root@myserver1 # vi \/etc\/inet\/ipnodes<br \/>\n#<br \/>\n# Internet host table<br \/>\n#<br \/>\n127.0.0.1       localhost<br \/>\n::1     localhost<br \/>\n168.20.10.11     myserver1 myserver1.gamescheat.ca loghost<\/p><\/blockquote>\n<p>To check the version of Soalris you have, read the \/etc\/release file.<\/p>\n<blockquote><p>root@server1 # more \/etc\/release<br \/>\n                       Solaris 10 5\/09 s10s_u7wos_08 SPARC<br \/>\n           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.<br \/>\n                        Use is subject to license terms.<br \/>\n                             Assembled 30 March 2009   <\/p><\/blockquote>\n<p>Perform a reconfiguration boot.<\/p>\n<blockquote><p>root@myserver1 # reboot \u2014 -r<\/p><\/blockquote>\n<p>After the system reboots, verify the interface configuration.<\/p>\n<blockquote><p>root@myserver1 # ifconfig -a<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>When configuring a new network interface in Solaris 10, the first thing you want to do is to list all available interfaces. During installation of Soalris 10 the drivers for the NICs will be automatically loaded, provided the NIC is&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=562\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[64],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/562"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=562"}],"version-history":[{"count":6,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":568,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions\/568"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}