{"id":72,"date":"2008-08-19T14:35:35","date_gmt":"2008-08-19T14:35:35","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2008\/08\/19\/configuring-an-interface\/"},"modified":"2021-07-24T19:32:48","modified_gmt":"2021-07-24T19:32:48","slug":"configuring-an-interface","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html","title":{"rendered":"Solaris – Configuring an Interface"},"content":{"rendered":"

In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex.<\/span><\/p>\n

Bring up the Interface<\/strong><\/span><\/p>\n

To bring up and plumb the interface, we first need to type the following, (change the IP to yours)<\/span><\/p>\n

ifconfig qfe1 plumb
ifconfig qfe1 192.168.1.1 netmask 255.255.255.0 up<\/span>
<\/span><\/pre>\n

Update the <\/span>\/etc\/netmasks<\/span> file with the network address and subnet mask, if not already present (the required line is below),<\/span><\/p>\n

192.168.1.0           255.255.255.0<\/span>
<\/span><\/pre>\n

For the new interface , first edit the \/etc\/hosts file and create a new entry. The space should be a tab.<\/span><\/p>\n

192.168.1.1            solarisserver-qfe1<\/span>
<\/span><\/pre>\n

Now create a new file <\/span>\/etc\/hostname.qfe1<\/span> and add the entry<\/span><\/p>\n

solarisserver-qfe1<\/span>
<\/span><\/pre>\n

To do the above but using less effort (and lines) try the following,<\/span><\/p>\n

ifconfig qfe1 plumb ; ifconfig qfe1 192.168.1.1 netmask 255.255.255.0 up 
echo \"192.168.1.0\\t255.255.255.0\" >> \/etc\/netmasks
echo \"192.168.1.1\\t\"`hostname`-qfe1 >> \/etc\/hosts
echo `hostname`-qfe1 > \/etc\/hostname.qfe1<\/span>
<\/span><\/pre>\n

Set Duplex<\/strong><\/span><\/p>\n

ndd -set \/dev\/qfe instance 1 <\/span>
<\/span>ndd -set \/dev\/qfe adv_100fdx_cap 1<\/span>
<\/span><\/pre>\n

Then to make the change permanent add to <\/span>\/etc\/system<\/span>
<\/span><\/p>\n

set \/dev\/qfe1 adv_100fdx_cap 1<\/span>
<\/span><\/pre>\n

Below is a reference to the difference abbreviations : <\/span><\/p>\n

instance 1 = port instance 1
adv          = advertise
cap          = capability
1             = enabled
0             = disabled
<\/span><\/pre>\n

Check the interface <\/strong><\/span><\/p>\n

Check the IP address and status of the interface <\/span><\/p>\n

ifconfig -a
<\/span><\/pre>\n

Set the interface we are going to check,<\/span><\/p>\n

ndd -set \/dev\/qfe instance 1
<\/span><\/pre>\n

To check the link, (reply of 1 = LED is active, 0 = Line is dead)<\/span><\/p>\n

ndd -get \/dev\/qfe link_status
<\/span><\/pre>\n

To check the negotiated speed,<\/span><\/p>\n

     1=100mbit for qfe & hme, 1 Gbit for ge.
     0=10mbit for qfe & hme, 500 mbit for ge. <\/span><\/p>\n

ndd -get \/dev\/qfe link_speed<\/span>
<\/span><\/pre>\n

To check link mode, (1= full-duplex, 0 = half-duplex)<\/span><\/p>\n

ndd -get \/dev\/qfe link_mode<\/span>
<\/span><\/pre>\n

Remove the Interface<\/strong><\/span><\/p>\n

Disable interface qfe1<\/span><\/p>\n

ifconfig qfe1 down<\/span>
<\/span><\/pre>\n

Remove the interface qfe1<\/span><\/p>\n

ifconfig qfe1 unplum<\/span>b
<\/span><\/pre>\n

 <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface To bring up and plumb the interface, we first need to type the following, (change the IP to yours) ifconfig qfe1 plumbifconfig qfe1 192.168.1.1 netmask 255.255.255.0 up Update … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"yoast_head":"\nSolaris - Configuring an Interface - Fir3net<\/title>\n<meta name=\"description\" content=\"In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solaris - Configuring an Interface - Fir3net\" \/>\n<meta property=\"og:description\" content=\"In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2008-08-19T14:35:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-24T19:32:48+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"Solaris – Configuring an Interface\",\"datePublished\":\"2008-08-19T14:35:35+00:00\",\"dateModified\":\"2021-07-24T19:32:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\"},\"wordCount\":213,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Solaris\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\",\"url\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\",\"name\":\"Solaris - Configuring an Interface - Fir3net\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2008-08-19T14:35:35+00:00\",\"dateModified\":\"2021-07-24T19:32:48+00:00\",\"description\":\"In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operating Systems\",\"item\":\"https:\/\/www.fir3net.com\/os\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"UNIX\",\"item\":\"https:\/\/www.fir3net.com\/os\/unix\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Solaris\",\"item\":\"https:\/\/www.fir3net.com\/os\/unix\/solaris\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Solaris – Configuring an Interface\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solaris - Configuring an Interface - Fir3net","description":"In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html","og_locale":"en_US","og_type":"article","og_title":"Solaris - Configuring an Interface - Fir3net","og_description":"In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface","og_url":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html","og_site_name":"Fir3net","article_published_time":"2008-08-19T14:35:35+00:00","article_modified_time":"2021-07-24T19:32:48+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"Solaris – Configuring an Interface","datePublished":"2008-08-19T14:35:35+00:00","dateModified":"2021-07-24T19:32:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html"},"wordCount":213,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Solaris"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html","url":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html","name":"Solaris - Configuring an Interface - Fir3net","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2008-08-19T14:35:35+00:00","dateModified":"2021-07-24T19:32:48+00:00","description":"In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Operating Systems","item":"https:\/\/www.fir3net.com\/os"},{"@type":"ListItem","position":3,"name":"UNIX","item":"https:\/\/www.fir3net.com\/os\/unix"},{"@type":"ListItem","position":4,"name":"Solaris","item":"https:\/\/www.fir3net.com\/os\/unix\/solaris"},{"@type":"ListItem","position":5,"name":"Solaris – Configuring an Interface"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/72"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":0,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}