<?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>unixpowered.com &#187; networking</title>
	<atom:link href="http://www.unixpowered.com/blog/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixpowered.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 13:42:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Finding out length of a UTP cable using Cisco IOS</title>
		<link>http://www.unixpowered.com/blog/2010/01/05/finding-out-length-of-a-utp-cable-using-cisco-ios/</link>
		<comments>http://www.unixpowered.com/blog/2010/01/05/finding-out-length-of-a-utp-cable-using-cisco-ios/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:21:03 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=348</guid>
		<description><![CDATA[Well, this is just cool. Everyone has been there; sitting at a Cisco switch console wondering how long the unmarked UTP plugged into port 17 is&#8230; Thankfully Cisco IOS might be able to tell you:
core# test cable-diagnostics tdr interface gigabitethernet0/17
Unfortunately it&#8217;s not available on all switches. I dug this up on here Cisco site. And [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this is just cool. Everyone has been there; sitting at a <a title="Cisco Homepage" href="http://www.cisco.com" target="_blank">Cisco</a> switch console wondering how long the unmarked <acronym title="Unshielded Twisted Pair">UTP</acronym> plugged into port 17 is&#8230; Thankfully Cisco <acronym title="Internetwork Operating System">IOS</acronym> might be able to tell you:</p>
<p><code>core# <strong>test cable-diagnostics tdr interface gigabitethernet0/17</strong></code></p>
<p>Unfortunately it&#8217;s not available on all switches. I dug this up on <a title="Cool Tool for Solving Layer 1 Cable Issues" href="http://https://supportforums.cisco.com/docs/DOC-5815" target="_blank">here</a> Cisco site. And <a title="Cisco IOS Configuration Fundamentals Command Reference" href="http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_t1.html#wp1046637" target="_blank">here</a> is the command reference&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2010/01/05/finding-out-length-of-a-utp-cable-using-cisco-ios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Network interface bonding in Linux</title>
		<link>http://www.unixpowered.com/blog/2009/05/04/network-interface-bonding-in-linux/</link>
		<comments>http://www.unixpowered.com/blog/2009/05/04/network-interface-bonding-in-linux/#comments</comments>
		<pubDate>Mon, 04 May 2009 14:42:15 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux tips]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=194</guid>
		<description><![CDATA[Bonding Ethernet interfaces in Linux is pretty straight forward. There is bunch of articles out there on it already, but since this is where I keep some of my notes, I decided to write a post on it. Plus I do not have to bother with Google and I can come straight here for instructions.
This [...]]]></description>
			<content:encoded><![CDATA[<p>Bonding Ethernet interfaces in Linux is pretty straight forward. There is bunch of articles out there on it already, but since this is where I keep some of my notes, I decided to write a post on it. Plus I do not have to bother with Google and I can come straight here for instructions.<br />
This was done on <a title="Dell Computers" href="http://www.dell.com" target="_self">Poweredge</a> running <a title="CentOS Home Page" href="http://www.centos.org" target="_self">CentOS</a> 5.2. Here are things that need to be done to make this happen:</p>
<ul>
<li>tell OS to load <em>bonding.ko</em> module on boot</li>
<li>set up configuration files for members of the bonded interface and the bonded interface itself</li>
<li>restart networking services or reboot</li>
</ul>
<p>The following is <em>/etc/modprobe.conf</em> file. To get the OS to load bonding module on boot, you will need to add the <em>alias bond0 bonding</em> line. You can also pass some options to the bonding module. In this case I wanted the driver to check for link loss every <em>100ms</em>. I also wanted the <em>bond0</em> interface to perform <em>adaptive load balancing</em>, hence <em>mode=6</em>. Adaptive load balancing does not require any configuration on the switch side. If you choose a different mode, you might have to do additional configuration on the switch.</p>
<p><code>[root@bigfoot etc]# <strong>cat /etc/modprobe.conf</strong><br />
alias eth0 e1000<br />
alias eth1 e1000<br />
alias bond0 bonding<br />
alias scsi_hostadapter qla1280<br />
alias scsi_hostadapter1 megaraid_mbox<br />
alias scsi_hostadapter2 ata_piix<br />
options bond0 miimon=100 mode=6</code></p>
<p>Next, you need to set up configuration files for physical interfaces to be included in the <em>bond0</em> interface. In my case <em>bond0</em> consists of <em>eth0</em> and <em>eth1</em>. Configuration files for both interfaces are identical except for <em>DEVICE=</em> lines.</p>
<p><code>[root@bigfoot etc]# <strong>cat /etc/sysconfig/network-scripts/ifcfg-eth0</strong><br />
# Intel Corporation 82541GI Gigabit Ethernet Controller<br />
DEVICE=eth0<br />
BOOTPROTO=none<br />
MASTER=bond0<br />
SLAVE=yes<br />
ONBOOT=yes<br />
USERCTL=no</code></p>
<p>The last step is to configure <em>bond0</em> interface itself:</p>
<p><code>[root@bigfoot etc]# <strong>cat /etc/sysconfig/network-scripts/ifcfg-bond0</strong><br />
DEVICE=bond0<br />
BOOTPROTO=none<br />
IPADDR=192.168.11.200<br />
NETMASK=255.255.255.0<br />
NETWORK=192.168.11.0<br />
ONBOOT=yes<br />
USERCTL=no</code></p>
<p>That is all. You can now do either <em>/etc/init.d/networking restart</em> or reboot the box.</p>
<p>This time I actually ran into a problem, where the physical interfaces were not being &#8220;enslaved&#8221; properly:</p>
<p><code>May  4 11:17:40 bigfoot kernel: ADDRCONF(NETDEV_UP): bond0: link is not ready<br />
May  4 11:17:40 bigfoot kernel: bonding: bond0: Adding slave eth0.<br />
May  4 11:17:40 bigfoot kernel: bonding: bond0: enslaving eth0 as an active interface with a down link.<br />
May  4 11:17:40 bigfoot kernel: bonding: bond0: link status definitely up for interface eth0.<br />
May  4 11:17:40 bigfoot kernel: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready<br />
May  4 11:17:40 bigfoot kernel: bonding: bond0: Adding slave eth1.<br />
May  4 11:17:40 bigfoot kernel: bonding: bond0: enslaving eth1 as an active interface with a down link.<br />
May  4 11:17:45 bigfoot kernel: bonding: bond0: Removing slave eth0<br />
May  4 11:17:45 bigfoot kernel: bonding: bond0: Warning: the permanent HWaddr of eth0 - 00:11:43:D8:AF:63 - is still in use by bond0. Set the HWaddr of eth0 to a different address to avoid conflicts.<br />
May  4 11:17:45 bigfoot kernel: bonding: bond0: releasing active interface eth0<br />
May  4 11:17:47 bigfoot kernel: bonding: bond0: Adding slave eth0.<br />
May  4 11:17:48 bigfoot kernel: bonding: bond0: Warning: failed to get speed and duplex from eth0, assumed to be 100Mb/sec and Full.<br />
May  4 11:17:48 bigfoot kernel: bonding: bond0: enslaving eth0 as an active interface with an up link.</code></p>
<p>I have never had this problem before and quick googlage revealed that I am not alone. I came across <a title="Some guy's blog" href="http://planet.larrythecow.org/archives/2009-01-12.html" target="_self">this guy</a> who had the same problem. He also links to the <a title="CentOS Bugzilla" href="http://bugs.centos.org/view.php?id=2404" target="_self">solution</a>. Basically it seems <a title="Xen Home Page" href="http://www.xen.org" target="_self">Xen</a> is causing the issue and to fix it you will need to edit <em>/etc/xen/xend-config.sxp</em> and force the network device to be used for network bridge in Xen:</p>
<p><code>(network-script 'network-bridge netdev=bond0')</code></p>
<p>Once I had that in place everything worked as advertised. Oh, and for thorough documentation check out Documentation included with kernel source. The file is called <em>bonding.txt</em>. <a title="bonding.txt" href="http://www.mjmwired.net/kernel/Documentation/networking/bonding.txt" target="_self">Here</a> is an online version of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/05/04/network-interface-bonding-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris Link Aggregation</title>
		<link>http://www.unixpowered.com/blog/2009/03/22/solaris-link-aggregation/</link>
		<comments>http://www.unixpowered.com/blog/2009/03/22/solaris-link-aggregation/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 11:19:44 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[solaris utilities]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=116</guid>
		<description><![CDATA[Link aggregation takes a bunch of network interfaces and creates a big pipe out of them.
Aggregation also provides redundancy. If all interfaces but one go down, the server will remain connected to the network.
Before starting make sure that:

 interfaces to be aggregated are of the following type: xge, e1000g, and bge
interfaces to be aggregated are [...]]]></description>
			<content:encoded><![CDATA[<p>Link aggregation takes a bunch of network interfaces and creates a big pipe out of them.</p>
<p>Aggregation also provides redundancy. If all interfaces but one go down, the server will remain connected to the network.</p>
<p>Before starting make sure that:</p>
<ul>
<li> interfaces to be aggregated are of the following type: <em>xge</em>, <em>e1000g</em>, and <em>bge</em></li>
<li>interfaces to be aggregated are not plumbed</li>
<li>they run in full duplex mode at the same speeds</li>
<li>eeprom&#8217;s <em>local-mac-address?</em> variable is set to <em>true</em></li>
</ul>
<p>The following will create <em>aggr1</em> interface with <em>bge1</em> as one of its members:</p>
<p><code>bash-3.00# <strong>dladm create-aggr -d bge1 1</strong></code></p>
<p>Next plumb the aggregate interface, configure an IP address on it and bring it up:</p>
<p><code>bash-3.00# <strong>ifconfig aggr1 plumb 192.168.1.5 netmask 255.255.255.0 up</strong></code></p>
<p>At this point you can list aggregations:</p>
<p><code>bash-3.00# <strong>dladm show-aggr</strong><br />
key: 1 (0x0001) policy: L4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address: 0:3:ba:56:7f:ba (auto)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;speed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duplex&nbsp;&nbsp;link&nbsp;&nbsp;&nbsp;&nbsp;state<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bge1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0:3:ba:56:7f:ba&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mbps&nbsp;&nbsp;&nbsp;&nbsp;unknown&nbsp;down&nbsp;&nbsp;&nbsp;&nbsp;standby</code></p>
<p>Now add <em>bge0</em> as a second member of <em>aggr1</em> aggregation interface and list aggregate interfaces:</p>
<p><code>bash-3.00# <strong>dladm add-aggr -d bge0 1</strong><br />
bash-3.00# <strong>dladm show-aggr</strong><br />
key: 1 (0x0001) policy: L4      address: 0:3:ba:56:7f:ba (auto)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;speed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;duplex&nbsp;&nbsp;link&nbsp;&nbsp;&nbsp;&nbsp;state<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bge1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0:3:ba:56:7f:ba&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mbps&nbsp;&nbsp;&nbsp;&nbsp;unknown&nbsp;down&nbsp;&nbsp;&nbsp;&nbsp;standby<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bge0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0:3:ba:56:7f:b9&nbsp;&nbsp;&nbsp;1000&nbsp;&nbsp;Mbps&nbsp;&nbsp;&nbsp;&nbsp;full&nbsp;&nbsp;&nbsp;&nbsp;up&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attached</code></p>
<p>To keep the configuration persistent across reboots, create <em>/etc/hostname.aggr1</em> with appropriate content and remove any<em> hostname.*</em> files pertaining to the interfaces that are now members of aggr1.</p>
<p>To have link aggregation working properly you need to have the switch to which server is connected to properly configured with <acronym title="Link Aggregation Control Protocol">LACP</acronym>.</p>
<p>Another thing to consider is load balancing policy for outgoing traffic. You can load balance on layers 2,3 and 4. Load balancing policy can be changed using <a title="dladm man page" href="http://docs.sun.com/app/docs/doc/816-5166/dladm-1m?l=en&amp;a=view&amp;q=dladm" target="_self"><em>dladm</em></a> command. Here is a quick example that will modify load balancing policy to combination of <em>L3</em> and <em>L4</em>:</p>
<p><code>bash-3.00# <strong>dladm modify-aggr -P L3,L4 1</strong><br />
bash-3.00# <strong>dladm show-aggr -L</strong><br />
key: 1 (0x0001) policy: L3,L4   address: 0:3:ba:56:7f:ba (auto)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LACP&nbsp;mode:&nbsp;off&nbsp;&nbsp;LACP&nbsp;timer:&nbsp;short<br />
&nbsp;&nbsp;&nbsp;&nbsp;device&nbsp;&nbsp;&nbsp;&nbsp;activity&nbsp;timeout&nbsp;aggregatable&nbsp;sync&nbsp;&nbsp;coll&nbsp;dist&nbsp;defaulted&nbsp;expired<br />
&nbsp;&nbsp;&nbsp;&nbsp;bge1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;passive&nbsp;&nbsp;short&nbsp;&nbsp;&nbsp;yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no<br />
&nbsp;&nbsp;&nbsp;&nbsp;bge0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;passive&nbsp;&nbsp;short&nbsp;&nbsp;&nbsp;yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no</code></p>
<p>And finally, command that will allow you to see utilisation of individual links within aggregation. Note the <em>%ipkts</em> column, I did not have LACP turned on on the switch at that time:</p>
<p><code>bash-3.00# <strong>dladm show-aggr -s</strong><br />
key: 1&nbsp;&nbsp;ipackets&nbsp;&nbsp;rbytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;opackets&nbsp;&nbsp;&nbsp;obytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%ipkts %opkts<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2723785&nbsp;&nbsp;&nbsp;2287233197&nbsp;&nbsp;1481682&nbsp;&nbsp;&nbsp;710633551<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bge1 618712&nbsp;&nbsp;&nbsp;&nbsp;115674760&nbsp;&nbsp;&nbsp;870443&nbsp;&nbsp;&nbsp;&nbsp;636559150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;22.7&nbsp;&nbsp;&nbsp;&nbsp;58.7<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bge0 2105073&nbsp;&nbsp;&nbsp;2171558437&nbsp;&nbsp;611239&nbsp;&nbsp;&nbsp;&nbsp;74074401&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;77.3&nbsp;&nbsp;&nbsp;&nbsp;41.3</code></p>
<p>More info on link aggregation is <a title="Overview of Link Aggregation" href="http://docs.sun.com/app/docs/doc/816-4554/fpjvl?l=en&amp;q=link+aggregation&amp;a=view" target="_self">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/03/22/solaris-link-aggregation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic IPMP</title>
		<link>http://www.unixpowered.com/blog/2009/01/26/basic-ipmp/</link>
		<comments>http://www.unixpowered.com/blog/2009/01/26/basic-ipmp/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 18:52:16 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[solaris utilities]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=111</guid>
		<description><![CDATA[Finally, I got tired of remembering which network interfaces is configured on my Netra test box. So I do not have to remember which interface to plug cable into I configured IPMP on the box. IPMP provides link redundancy among multiple network interfaces in multipathing group. IPMP is not meant to be full fledged load [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, I got tired of remembering which network interfaces is configured on my Netra test box. So I do not have to remember which interface to plug cable into I configured <acronym title="IP Multipathing">IPMP</acronym> on the box. IPMP provides link redundancy among multiple network interfaces in multipathing group. IPMP is not meant to be full fledged load balancing solution, though it will spread outgoing traffic across the interfaces.</p>
<p>I have put my two <em>hme</em> interfaces into a multipathing group. The group has a failover IP address assigned to it. Initially this address will be assigned to <em>hme0</em>. If <em>hme0</em> fails, the address will automatically move to the other interface in the failover group.</p>
<p>First I edited <em>/etc/hostname.hme0</em>:</p>
<p><code>unreal-hme0 netmask + broadcast + deprecated -failover group unrealgrp1 up addif unreal netmask + broadcast + failover up</code></p>
<p>This configures physical <em>hme0</em> with IP address of 192.168.11.6, which will not fail over and puts <em>hme0</em> in <em>unrealgrp1</em> multipathing group. It will additionally configure a virtual IP address of 192.168.11.5 which will <em>failover</em> when <em>hme0</em> link goes down. <em>Deprecated</em> means the IP address 192.168.11.5 will not be used as source address for any outgoing packets.</p>
<p>Then I edited /etc/hostname.hme1:</p>
<p><code>unreal-hme1 netmask + broadcast + deprecated -failover group unrealgrp1 up</code></p>
<p>Similarly, <em>hme1</em> will be configured with IP address of 192.168.11.7 and as a member of <em>unrealgrp1</em> multipathing group. Again, 192.168.11.7 is marked as <em>deprecated</em> so it will not be used for outgoing packets. Finally I made sure my hosts file is correct:</p>
<p><code>bash-3.00# <strong>cat /etc/hosts</strong><br />
127.0.0.1       localhost<br />
192.168.11.5    unreal          loghost<br />
192.168.11.6    unreal-hme0<br />
192.168.11.7    unreal-hme1</code></p>
<p>And here is the result:</p>
<p><code>bash-3.00# <strong>ifconfig -a</strong><br />
lo0: flags=2001000849 mtu 8232 index 1<br />
inet 127.0.0.1 netmask ff000000<br />
hme0: flags=9040843 mtu 1500 index 2<br />
inet 192.168.11.6 netmask ffffff00 broadcast 192.168.11.255<br />
groupname unrealgrp1<br />
ether 8:0:20:d9:ac:c<br />
hme0:1: flags=1000843 mtu 1500 index 2<br />
inet 192.168.11.5 netmask ffffff00 broadcast 192.168.11.255<br />
hme1: flags=19040803 mtu 1500 index 3<br />
inet 192.168.11.7 netmask ffffff00 broadcast 192.168.11.255<br />
groupname unrealgrp1<br />
ether 8:0:20:d9:ac:d</code></p>
<p>Essentially IP address 192.168.11.5 &#8220;floats&#8221; among interfaces. If I were to unplug <em>hme0</em>, 192.168.11.5 would fail over to <em>hme1</em>. Failure is detected on link loss. There are some tunable parameters in <em>/etc/default/mpathd</em>.</p>
<p>This is all I needed. Of course, there is much more to IPMP: you can setup test system, that your system will test for reachability, detection of interfaces missing on boot, etc. Sun has much more info on it <a title="IPMP Overview" href="http://docs.sun.com/app/docs/doc/816-4554/mpoverview?l=en&amp;a=view" target="_self">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2009/01/26/basic-ipmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing network speed and duplex in Open Boot prompt</title>
		<link>http://www.unixpowered.com/blog/2008/08/03/forcing-network-speed-and-duplex-in-open-boot-prompt/</link>
		<comments>http://www.unixpowered.com/blog/2008/08/03/forcing-network-speed-and-duplex-in-open-boot-prompt/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 20:04:31 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[jumpstart]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openboot]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=43</guid>
		<description><![CDATA[I had a Sun box attached to a switch I had not control over and I needed to jumpstart it. Unfortunately, I was getting nowhere. After crosschecking everything in my setup the only thing I did not try was to force speed and duplex on the Sun box to see if it would start booting.
I [...]]]></description>
			<content:encoded><![CDATA[<p>I had a Sun box attached to a switch I had not control over and I needed to jumpstart it. Unfortunately, I was getting nowhere. After crosschecking everything in my setup the only thing I did not try was to force speed and duplex on the Sun box to see if it would start booting.</p>
<p>I wondered if it would be possible to do so in Open Boot prompt. So I fired up the most logical man page in the given situation &#8211; the <a title="boot man page" href="http://docs.sun.com/app/docs/doc/817-3937/boot-1m?l=en&amp;q=coreadm&amp;a=view" target="_self">boot man page</a>. Sure enough it is possible to force speed and duplex from <em>ok</em> prompt:</p>
<p><code>{1} ok <strong>boot net:speed=100,duplex=full - install</strong></code></p>
<p>And off it went happily booting&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2008/08/03/forcing-network-speed-and-duplex-in-open-boot-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determining ethernet MAC address from Open Boot prompt</title>
		<link>http://www.unixpowered.com/blog/2008/06/03/determining-ethernet-mac-address-from-open-boot-prompt/</link>
		<comments>http://www.unixpowered.com/blog/2008/06/03/determining-ethernet-mac-address-from-open-boot-prompt/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:02:54 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[openboot]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=35</guid>
		<description><![CDATA[Today I had a need to jumpstart SunFire V240 using network interface in one of its PCI slots. In order to do that I need to find the MAC address of that interface, preferably with least amount of hassle. There was no Solaris installed and all I had was ok prompt. So I took a [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had a need to jumpstart SunFire V240 using network interface in one of its <acronym title="Peripheral Component Interconnect">PCI</acronym> slots. In order to do that I need to find the <acronym title="Media Access Control">MAC</acronym> address of that interface, preferably with least amount of hassle. There was no Solaris installed and all I had was <em>ok</em> prompt. So I took a quick look at device aliases:</p>
<p><code>{1} ok <strong>devalias</strong><br />
xnet2                    /pci@1d,700000/pci@1/SUNW,hme@0,1:dhcp,<br />
xnet1                    /pci@1e,600000/pci@3/SUNW,hme@0,1:dhcp,<br />
xnet                     /pci@1e,600000/pci@2/SUNW,hme@0,1:dhcp,<br />
net3                     /pci@1d,700000/network@2,1<br />
net2                     /pci@1d,700000/network@2<br />
net1                     /pci@1f,700000/network@2,1<br />
net                      /pci@1f,700000/network@2<br />
cdrom                    /pci@1e,600000/ide@d/cdrom@0,0:f<br />
ide                      /pci@1e,600000/ide@d<br />
disk3                    /pci@1c,600000/scsi@2/disk@3,0<br />
disk2                    /pci@1c,600000/scsi@2/disk@2,0<br />
disk1                    /pci@1c,600000/scsi@2/disk@1,0<br />
disk0                    /pci@1c,600000/scsi@2/disk@0,0<br />
disk                     /pci@1c,600000/scsi@2/disk@0,0<br />
scsi                     /pci@1c,600000/scsi@2<br />
sc-control               /pci@1e,600000/isa@7/rmc-comm@0,3e8<br />
ttyb                     /pci@1e,600000/isa@7/serial@0,2e8<br />
ttya                     /pci@1e,600000/isa@7/serial@0,3f8<br />
name                     aliases</code></p>
<p>Starting with first <em>net*</em> alias I did:</p>
<p><code>{1} ok <strong>cd /pci@1d,700000</strong><br />
{1} ok <strong>ls</strong><br />
f00f8dac network@1<br />
f00b3274 network@2,1<br />
f00acbf4 network@2<br />
{1} ok <strong>cd network@1</strong><br />
{1} ok <strong>ls</strong><br />
{1} ok <strong>pwd</strong><br />
/pci@1d,700000/network@1<br />
{1} ok <strong>.properties</strong><br />
assigned-addresses       82000810 00000000 00600000 00000000 00200000<br />
82000830 00000000 00100000 00000000 00100000<br />
d-fru-len                00000000<br />
d-fru-off                0000e800<br />
d-fru-dev                eeprom<br />
s-fru-len                00000800<br />
s-fru-off                0000e000<br />
s-fru-dev                eeprom<br />
compatible               pci108e,abba.11<br />
pci108e,abba<br />
pciclass,020000<br />
pciclass,0200<br />
reg                      00000800 00000000 00000000 00000000 00000000<br />
02000810 00000000 00000000 00000000 00200000<br />
02000830 00000000 00000000 00000000 00100000<br />
address-bits             00000030<br />
max-frame-size           00004000<br />
device_type              network<br />
name                     network<br />
local-mac-address        00 03 ba 4d b3 3f<br />
version                  Sun PCI Gigaswift Base-X FCode 2.6 01/09/27<br />
phy-type                 pcs<br />
board-model              501-5524<br />
model                    SUNW,pci-ce<br />
fcode-rom-offset         00000000<br />
66mhz-capable<br />
fast-back-to-back<br />
devsel-speed             00000002<br />
latency-timer            00000040<br />
cache-line-size          00000010<br />
max-latency              00000040<br />
min-grant                00000040<br />
interrupts               00000001<br />
00000002<br />
00000003<br />
00000004<br />
class-code               00020000<br />
revision-id              00000011<br />
device-id                0000abba<br />
vendor-id                0000108e</code></p>
<p>The MAC address of the network interface is shown in <em>local-mac-address</em> field above. All it took then was following <em>boot</em> command to get jumpstart going:</p>
<p><code>{1} ok <strong>boot /pci@1d,700000/network@1 -v - install nowin</strong></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2008/06/03/determining-ethernet-mac-address-from-open-boot-prompt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NFS4 Invalid inbound domain name</title>
		<link>http://www.unixpowered.com/blog/2008/03/03/nfs4-invalid-inbound-domain-name/</link>
		<comments>http://www.unixpowered.com/blog/2008/03/03/nfs4-invalid-inbound-domain-name/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 18:51:35 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=12</guid>
		<description><![CDATA[It seems that starting with Solaris 06/07 nfs4_domain is required in sysidcfg file, otherwise jumpstart will go interactive. You can force a value for example nfs4_domain=example.net or you can set it to be dynamic. In that case the value will be derived from the name service in use. Solaris 10 has nfsmapid daemon that maps [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that starting with Solaris 06/07 <em>nfs4_domain</em> is <a title="Solaris bug database" href="http://bugs.opensolaris.org/view_bug.do?bug_id=6541730">required</a> in <em>sysidcfg </em>file, otherwise jumpstart will go interactive. You can force a value for example <em>nfs4_domain=example.net</em> or you can set it to be <em>dynamic</em>. In that case the value will be derived from the name service in use. Solaris 10 has <em>nfsmapid </em>daemon that maps numeric UID/GID to a string in format <em>user@example.net</em>.</p>
<p>If there is a domain mismatch between NFS4 client and server, the client will see files on the server owned by <em>nobody</em>. On the server syslog might log something like this:</p>
<p><code>Mar 3 15:13:14 ultra /usr/lib/nfs/nfsmapid[275]: [ID 300081 daemon.error] valid_domain: Invalid inbound domain name example.net..</code></p>
<p>In my case there was a typo in <em>/etc/resolv.conf</em> file at the end of <em>domain</em> entry. The entry contained trailing dot. <a title="docs.sun.com" href="http://docs.sun.com/app/docs/doc/816-4555/rfsrefer-118?a=view">This Sun document</a> has all the useful info that might help troubleshooting similar problems with <em>nfsmapid</em>.</p>
<p><a href="http://bugs.opensolaris.org/view_bug.do?bug_id=6541730"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2008/03/03/nfs4-invalid-inbound-domain-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
