<?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>Hobbycode &#187; Networking</title>
	<atom:link href="http://www.hobbycode.com/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hobbycode.com</link>
	<description>A Technology Toybox</description>
	<lastBuildDate>Thu, 27 Aug 2009 18:28:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Proper NIC Teaming and Port Aggregation Configuration</title>
		<link>http://www.hobbycode.com/2008/02/proper-nic-teaming-and-port-aggregation-configuration/</link>
		<comments>http://www.hobbycode.com/2008/02/proper-nic-teaming-and-port-aggregation-configuration/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 10:06:00 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows Servers]]></category>

		<guid isPermaLink="false">http://www.hobbycode.com/2008/02/proper-nic-teaming-and-port-aggregation-configuration/</guid>
		<description><![CDATA[Servers from HP, Dell, IBM and many other big name manufacturers, come with at least two or more Network Interface Cards built-in.  Lately though, I have come to realize most network administrators do not know how to benefit from duel NIC&#8217;s.  Frequently, one of the NIC&#8217;s are simply disabled or not cabled up.  Occasionally, I [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10.5pt; font-family: ">Servers from HP, Dell, IBM and many other big name manufacturers, come with at least two or more Network Interface Cards built-in.  Lately though, I have come to realize most network administrators do not know how to benefit from duel NIC&#8217;s.  Frequently, one of the NIC&#8217;s are simply disabled or not cabled up.  Occasionally, I will see a good effort made to make the most of it, but that&#8217;s pretty rare. </span></p>
<p><span id="more-6"></span></p>
<p>Let&#8217;s create a scenario.  Pretend we have a server with two NIC&#8217;s.  That server is plugged into a 10/100 manageable switch.  Obviously, plugging one NIC in will allow for a full 100megs of bandwidth.  But if we team the NICs and bond two switch ports together, then we can create a full 200meg pipe between the server and the switch.  Performing these steps on multiple servers, means that you now have 200megs between each server.  This is especially useful for backups which run over the network.  The clients aren&#8217;t affected that much, because they are still at 100meg.</p>
<p>Link Aggregation Control Protocol, or LACP, is a protocol run on both the server and the switch.  LACP is a negotiation protocol.  This means that each device, the server and the switch, speak LACP to each other.  Once they agree upon certain terms, the trunk is formed.  LACP has two modes: Active and passive.  If the device is in active mode, then it proactively seeks an LACP partner in which to form a trunk with.  If in passive mode, the device will accept a request for trunking from another LACP host, but will not actively seek other LACP devices.  This is important for one simple reason:  Two devices in passive mode will never form a trunk.  At least one must be in active mode.  Or they both can be in active mode, but they both cannot be passive.</p>
<p><strong>NIC Teaming</strong></p>
<p>NIC Teaming is the process by which we create one logical NIC using both physical NIC&#8217;s.  When the switch sends a frame down the wire to the server, it sees only one NIC, with one MAC address.  How?  When the NICs are teamed, both physical adapters have TCP/IP disabled on them.  The server creates a logical (read: software based) NIC which TCP/IP is enabled and configured on.</p>
<p>Benefits of teaming are simple:</p>
<ul>
<li><strong>Fault Tolerance</strong>.  If one switch port, or one NIC goes down, the other remains online and passes traffic as if nothing happened at all.</li>
<li><strong>Load Balancing: </strong>The virtual NIC can distribute traffic evenly across the physical NICs.  If your switch is 10/100, and both switch and server are set to 100meg, then you have a 200meg link.</li>
<li><strong>Increased Bandwidth</strong>.  Do you use a disk based backup system to backup your server&#8217;s data over night?  Teaming can decrease the time it takes to backup by increasing the bandwidth between the servers.</li>
</ul>
<p><strong>Server Configuration:</strong></p>
<p>Configuration of the team is not difficult.  It will however, blip the network connection to your servers.  So it&#8217;s best to implement this during a scheduled outage.</p>
<p>Each server will usually come with a small application for managing the network interfaces.  Each servers software is different based on the manufacturer of the NIC.  So it&#8217;s up to you to locate this software.  If you don&#8217;t see it, go to your server manufacturers web page and download the driver for the NIC.  It should contain the software you need.</p>
<p>It&#8217;s difficult to walk you through the next step, as each NIC/Server is different.  The utilities are generally very small and easy to use.  Select both NICs and create the team.  A wizard will usually ask you if you want fault tolerance, load balancing, or a plethora of other options.  For the sake of this article, select and use LACP (Link Aggregation Control Protocol)</p>
<p>Once the wizard is complete, both NICs will be taken offline while the team is created.  A few seconds later, the team is functioning.  A reboot is usually not required.</p>
<p><strong>Switch Configuration:</strong></p>
<p>Many network equipment vendors sell switches capable of port aggregation.   Port aggregation is to switches, what teaming is for NICs.  Once again, we will be binding multiple interfaces together, to form one logical interface.  Cisco calls it an &#8220;Etherchannel&#8221;.  HP calls it &#8220;Tunking&#8221;.  I&#8217;m sure other manufactures call it something different.  Example configurations for both HP and Cisco follow:</p>
<p><span style="text-decoration: underline;">Cisco</span></p>
<pre>Switch# configure terminal
Switch(config)# interface range fastethernet0/1 - 2
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# speed 100
Switch(config-if-range)# duplex full
Switch(config-if-range)# channel-group 1 mode active
Switch(config-if-range)# end</pre>
<p>Briefly, using the &#8220;range&#8221; command allows us to specify more than one port at a time.  Once in port configuration mode, we ensure the port is an access port.  If necessary, make this a trunk port using the &#8220;switchport mode trunk&#8221; command.  Speed and duplex are both hard coded to 100/full.  I advise doing it this way as auto negotiation occasionally fails.</p>
<p>The &#8220;channel-group 1 mode active &#8221; command, when run for the first time, will automatically create the logical channel group interface.  &#8220;Mode active&#8221; enables LACP in active mode.</p>
<p><span style="text-decoration: underline;">HP</span></p>
<pre>ProCurve(config)# int c4-c6 lacp active</pre>
<p>Simpler than Cisco&#8217;s configuration, and less feature-full, is HP&#8217;s one line trunk configuration.  Used from global configuration mode, this command will enable LACP in active mode on ports c4-c6.</p>
<p><strong>Things to keep in mind:</strong></p>
<ul>
<li>Speed, duplex and flow control needs to be set the same way on all ports and on all devices.  Any deviation could cause the trunk to not form.  Because I&#8217;ve seen speed and duplex fail randomly, I recommend the ports be hard coded to the fastest speed allowed.</li>
<li>Use descriptions in your switch configuration.  This will help you better determine what the trunk/etherchannel is used for when your troubleshooting.</li>
<li>NICs on the server must be identical.</li>
<li>You don&#8217;t have to only trunk between a server and a switch.  You can also do this on two switches, creating a 200meg uplink.  Or as some would call it the &#8220;poor man&#8217;s fiber&#8221;</li>
</ul>
<p>Teaming your server&#8217;s NICs has a whole host of benefits.  Many of which could be felt as early as the next morning, when you check the duration of the backups and noticed they took half as long as they used to.</p>
<p><em>References:</em></p>
<p><a href="ftp://ftp.hp.com/pub/networking/software/3500-5400-6200-MCG-0207-K_12_XX-12-PtTrkg.pdf" target="_blank">HP Port Trunking for 5400zl switches</a></p>
<p><a href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.1_19_ea1/configuration/guide/swethchl.html" target="_blank">Cisco 3560 Etherchannels</a></p>
<p><a href="http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.1_19_ea1/configuration/guide/swethchl.html"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hobbycode.com/2008/02/proper-nic-teaming-and-port-aggregation-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proper External DNS Configuration</title>
		<link>http://www.hobbycode.com/2007/06/proper-external-dns-configuration/</link>
		<comments>http://www.hobbycode.com/2007/06/proper-external-dns-configuration/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 16:54:00 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.hobbycode.com/2007/06/proper-external-dns-configuration/</guid>
		<description><![CDATA[
Introduction       DNS can be a confusing subject for many. In fact, in my travels as a consultant I have found that DNS is by far the most mis-configured service of any, in the entire infrastructure. By the time you finish reading this, I hope you will have gained enough [...]]]></description>
			<content:encoded><![CDATA[<div class="staticpage_content">
<p><strong>Introduction</strong>       <br />DNS can be a confusing subject for many. In fact, in my travels as a consultant I have found that DNS is by far the most mis-configured service of any, in the entire infrastructure. By the time you finish reading this, I hope you will have gained enough knowledge to properly configure external DNS for your web site, email server and other services.</p>
</p></div>
<p> <span id="more-5"></span>
<p><strong>How it works</strong>     <br />Let&#8217;s begin by talking about what DNS is and its role in the operation of the Internet. When you enter www.yahoo.com in your web browser, the very first thing your browser does is convert it into an IP address. How does it do this? It performs a DNS query, asking the nearest DNS server for the IP address of yahoo.com.</p>
<p>DNS uses a small database. Inside that database, are records for each domain name contained on that server. Common types of DNS records include: A, NS and MX. When the DNS server is queried for the IP address of yahoo.com, it looks for the A record, and returns the IP address to the original requester.</p>
<p><strong>The A Record</strong>     <br />As mentioned before, the A record stores the IP address of a domain name. As you can see in the figure below, hobbycode&#8217;s IP address is 209.59.150.82.</p>
<p>&#160;</p>
<p align="center"><img alt="" src="http://www.hobbycode.com/articleimgs/DNSStuff.jpg" /></p>
<p align="center">&#160;</p>
<p>Your domain name will look much like hobbycode&#8217;s, if your ISP or web host, hosts all of the functions of your network. But what happens when you want to begin hosting your own email server?</p>
<p><strong>The MX Record</strong>     <br />Short for Mail Exchanger, the MX record is responsible for pointing to the IP address of your email server. Earlier I stated that your browser will query a DNS server&#8217;s A record for a website you just entered, a mail server will query a DNS server for it&#8217;s MX record to determine where to send the email.</p>
<p>Now that you&#8217;ve decided to host your own email server, you should contact your DNS host and ask them to change the MX record to point to the IP address of your network. This is often the external IP address of your router, and is assigned to you by your ISP when you account is setup. You should also ensure that your ISP assigned you a static IP address. It would be a huge burden to have to manually update your DNS records when your IP changes!</p>
<p><strong>MX Pointing to an A Record</strong>     <br />So now you&#8217;re up and running on your own mail server, sending and receiving all day long. Your users request access to webmail. If you&#8217;re using Microsoft Exchange Server, I&#8217;m referring to Outlook Web Access. The only way to access your server is to type in the IP address into your browser. But the whole goal of DNS is to avoid this. Lucky for you, a simple DNS change can remedy this!.</p>
<p>First off, create an A record which points to your external IP address. Name it something your users will remember. The most common name is simply &quot;mail&quot;.</p>
<p>Second, change your MX record from the IP address, and point it to mail.&lt;yourdomain&gt;.com, which is the A record you just created.</p>
<p>So, if your external IP address is 1.2.3.4, then: </p>
<p>&#160;</p>
<p>
<table style="width: 535px; height: 92px" cellspacing="1" cellpadding="1" border="1">
<tbody>
<tr>
<td style="width: 33%"><strong>Record Type</strong></td>
<td style="width: 33%"><strong>Name</strong></td>
<td style="width: 33%"><strong>Value</strong></td>
</tr>
<tr>
<td style="width: 33%">A</td>
<td style="width: 33%">mail.&lt;yourdomain.com&gt;</td>
<td style="width: 33%">1.2.3.4</td>
</tr>
<tr>
<td style="width: 33%">MX</td>
<td style="width: 33%">&lt;Yourdomain.com&gt;</td>
<td style="width: 33%">mail.&lt;yourdomain.com&gt;</td>
</tr>
</tbody>
</table>
<p>Lastly, tell your users to go to http://mail.&lt;yourdomain.com&gt;.</p>
<p><strong>Summary</strong>     <br />DNS is not a difficult subject to master, but can be very confusing as it&#8217;s not something the average network administrator works with on a daily basis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hobbycode.com/2007/06/proper-external-dns-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
