<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sun Solaris System Admin &#187; speed</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/speed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>dladm &#8211; Display Link status,speed,duplex,statistics,MTU</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dladm-display-link-statusspeedduplexstatisticsmtu</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:45:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[dladm]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[link speed]]></category>
		<category><![CDATA[link status]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[nxge]]></category>
		<category><![CDATA[packets]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=78</guid>
		<description><![CDATA[In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility. dladm is the admin utility for Data-Link Interface which helps to display informarthe like <a href='http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility.</p>
<p><strong>dladm</strong> is the admin utility for Data-Link Interface which helps to display informarthe like Link Status (UP/DOWN), Speed, Duplex, MTU, VLAN Tagged and crucially statistics of network traffic on each of the interfaces historically as well as in real time. dladm can also configure and admin Link Aggregation on multiple NICs which we will not focus here.<br />
<span id="more-78"></span><br />
<span style="text-decoration: underline;"><strong>Show Link Status/Speed/Duplex</strong></span></p>
<blockquote><p><strong># dladm show-dev</strong><br />
nxge0           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge1           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge2           link: up        speed: 1000  Mbps       duplex: full<br />
nxge3           link: up        speed: 1000  Mbps       duplex: full</p></blockquote>
<p>As you can see above the &#8220;<strong>show-dev</strong>&#8221; option lists all the network interfaces with Link Status (UP/DOWN), current speed in Mbps and Duplex (Half/Full)</p>
<p><span style="text-decoration: underline;"><strong>Show Link Status</strong></span></p>
<blockquote><p><strong># dladm show-link</strong><br />
nxge0           type: non-vlan  mtu: 1500       device: nxge0<br />
nxge1           type: non-vlan  mtu: 1500       device: nxge1<br />
nxge2           type: non-vlan  mtu: 1500       device: nxge2<br />
nxge3           type: non-vlan  mtu: 1500       device: nxge3</p></blockquote>
<p>Here<strong> &#8220;show-link&#8221;</strong> option reveals the MTU and the VLAN tagging detail on each of the interfaces on the system.</p>
<p><span style="text-decoration: underline;"><strong>Show Stats of all Interfaces for all time</strong></span></p>
<blockquote><p><strong># dladm show-dev -s</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
nxge1           0         0           0       0         0           0<br />
nxge2           179625752557169463759657      581104982 3964684165410<br />
nxge3           22240891  1834257868  0       5198483   395084708   0</p></blockquote>
<p>The <strong>&#8220;-s&#8221;</strong> option along with <strong>&#8220;show-dev&#8221;</strong> or <strong>&#8220;show-link&#8221;</strong> displays network traffic statistics including Input/Output packets, input/output errors.</p>
<p><span style="text-decoration: underline;"><strong>Stats in real-time</strong></span></p>
<p>To show the stats of a particular interface in real-time use the<strong> &#8220;-i&#8221; </strong>option which is the interval in seconds. The first line shows again historic stats and later on the real-time information for every &#8220;n&#8221; seconds (5 seconds in our example)</p>
<blockquote><p><strong># dladm show-link -s -i 5 nxge2</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           179637824757173944575957      581119516 3964706801670<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           961       319105             0       150       17874       0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           887       263850             0       117       16505       0</p></blockquote>
<p>If we fail to mention the interface then it takes the default interface (1st in the list). As you can see from the example below, we see stats for nxge0 which is not connected.</p>
<blockquote><p><strong># dladm show-link -s -i 5</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Configure IPMP network resilience with Multiple NICs in Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/configure-ipmp-network-resilience-with-multiple-nics-in-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configure-ipmp-network-resilience-with-multiple-nics-in-solaris</link>
		<comments>http://www.sunsolarisadmin.com/networking/configure-ipmp-network-resilience-with-multiple-nics-in-solaris/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 18:15:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[IPMP]]></category>
		<category><![CDATA[MultiPathing]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[resilience]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[Virtual-IP]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/networking/configure-ipmp-network-resilience-with-multiple-nics-in-solaris/</guid>
		<description><![CDATA[IP Multipathing (IPMP) in Sun Solaris enables the load balancing capabilities and resilience for Network connections with multple Network Interface Cards (NIC). IPMP is mostly used to provide resilience with network connections wherein a Sun Solaris Server with multiple NICs can be configured such that if the primary NIC fails it automatically failover to the <a href='http://www.sunsolarisadmin.com/networking/configure-ipmp-network-resilience-with-multiple-nics-in-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><br />
IP Multipathing (IPMP) in Sun Solaris enables the load balancing capabilities and resilience for Network connections with multple Network Interface Cards (NIC).</p>
<p>IPMP is mostly used to provide resilience with network connections wherein a Sun Solaris Server with multiple NICs can be configured such that if the primary NIC fails it automatically failover to the secondary NIC on the system. Also, if it is a multi-switch environment then each Network Interface participating in IPMP can be connection to two different switches such that a network connection failure due to a NIC failure or a switch failure can be avoided.</p>
<p><span id="more-38"></span><br />
To configure IPMP for resiliency we need to have</p>
<blockquote><p><strong>1. Virtual IP Address</strong></p>
<p><strong>2. Test IP Address for each NIC.</strong></p></blockquote>
<p>The Virtual IP is the actual Data IP and the test IPs are the ones used by IPMP to probe a remote target system to check connectivity. The test IP interfaces are marked as &#8220;deprecated&#8221; which indicates that this IP should be used by applications for any network data transfer. The NICs doesn&#8217;t have to be of the same make or have to be the same speed (10/100/1000Mbps). However, they should be of the same kind (Ethernet here)</p>
<p>In our configuration,</p>
<blockquote><p><strong>192.168.1.100 &#8211; Virtual IP </strong></p>
<p><strong>192.168.1.101 &#8211; Test IP for ce0 (NIC1)</strong></p>
<p><strong>192.168.1.102 &#8211; Test IP for ce1 (NIC2)</strong></p>
<p><strong>appserver &#8211; Hostname</strong></p>
<p><strong>appserver-ce0 &#8211; Hostname for IP on ce0 interface</strong></p>
<p><strong>appserver-ce1 &#8211; Hostname for IP on ce1 interface</strong></p></blockquote>
<p><u><strong>Add Host Entries in /etc/hosts<br />
</strong></u><br />
Let&#8217;s start with adding the hosts entries for the IP addresses in the /etc/hosts file.</p>
<blockquote><p><strong># IPMP group appserver-ipmp</strong><br />
<strong>127.0.0.1       localhost</strong><br />
<strong>192.168.1.100  appserver        loghost</strong><br />
<strong>192.168.1.101  appserver-ce0    loghost</strong><br />
<strong>192.168.1.102  appserver-ce1    loghost</strong></p></blockquote>
<p><u><strong>Create hostname.ce* files</strong></u></p>
<p>For every interface on the system create a hostname.ce* file. For us, create the files</p>
<p><strong>hostname.ce0 &amp; hostname.ce1<br />
</strong><br />
<u><strong>Edit hostname.ce0<br />
</strong></u><br />
Add the following on the hostname.ce0 file. This is the primary or master interface of the IPMP Pair</p>
<blockquote><p><strong>appserver-ce0 netmask + broadcast + group appserver-ipmp deprecated -failover up\</strong></p>
<p><strong>addif appserver netmask + broadcast + failover up</strong></p></blockquote>
<p><u><strong>Edit hostname.ce1</strong></u></p>
<p>Add the following on the hostname.ce1 file. This is the secondary or slave interface of the IPMP Pair</p>
<blockquote><p><strong>appserver-ce1 netmask + broadcast + group appserver-ipmp deprecated \</strong><br />
<strong>-failover standby up</strong></p></blockquote>
<p>where</p>
<p>netmask &#8211; sets default netmask values</p>
<p>broadcast &#8211; sets default broadcast address</p>
<p>-failover  &#8211; indicates that the test IPs should not be failed over</p>
<p>deprecated &#8211; indicates that the interface should not be used for data transfer</p>
<p>Now, the configuration is complete and an ifconfig output should look like as follows:</p>
<blockquote><p><strong>root@ appserver:/$</strong><br />
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&gt; mtu 8232 index 1<br />
inet 127.0.0.1 netmask ff000000<br />
ce0: flags=9040843&lt;UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER&gt; mtu 1500 index 2<br />
inet 192.168.1.101 netmask ffffff00 broadcast 192.168.1.255<br />
groupname appserver-ipmp<br />
ether 0:xx:xx:xx:xx:x<br />
<strong>ce0:1: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2<br />
inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255<br />
</strong>ce1: flags=69040843&lt;UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE&gt; mtu 1500 index 3<br />
inet 192.168.1.102 netmask ffffff00 broadcast 192.168.1.255<br />
groupname appserver-ipmp<br />
ether 0:xx:xx:xx:xx:x</p></blockquote>
<p>You can see a new virtual interface for &#8220;ce0&#8243; is being created as &#8220;ce0:1&#8243; and the  &#8220;ce1&#8243; interface status is UP but INACTIVE. Indicating it is up and participating in the IPMP but is  as a standby. Test by pinging the device continously from a remote PC and unplugging the active NIC and you should see no packets drop. Reverse the tests and check if it works OK. Also, if you are on the console, you can see the live link messages (check later from /var/adm/messages)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/configure-ipmp-network-resilience-with-multiple-nics-in-solaris/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

