<?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>Copious Communications</title>
	<atom:link href="http://www.copiouscom.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.copiouscom.com</link>
	<description>Vancouver IT Management</description>
	<lastBuildDate>Thu, 26 Jan 2012 02:10:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Backup and Restore Lion Wiki</title>
		<link>http://www.copiouscom.com/2011/11/backup-and-restore-lion-wiki/</link>
		<comments>http://www.copiouscom.com/2011/11/backup-and-restore-lion-wiki/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 18:05:05 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Collaboration]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Migrate]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=1014</guid>
		<description><![CDATA[Backup the Collaboration Database on the server running the wiki open a terminal and paste the following into the file backup-wiki.sh #!/bin/bash rm -rfd /tmp/wiki_backup BACKUP=/tmp/wiki_backup mkdir $BACKUP pg_dumpall --username=_postgres > $BACKUP/postgres_lion_db.sql cp -ap /Library/Server/Wiki $BACKUP tar -cvzf wiki-backup.tar.gz $BACKUP Save and exit the file, then do the following chmod +x backup-wiki.sh sudo ./backup-wiki.sh This [...]]]></description>
			<content:encoded><![CDATA[<h3>Backup the Collaboration Database</h3>
<p> <a href="http://www.copiouscom.com/wp-content/uploads/2011/11/Screen-Shot-2011-11-07-at-9.58.44-AM.png"><img src="http://www.copiouscom.com/wp-content/uploads/2011/11/Screen-Shot-2011-11-07-at-9.58.44-AM-300x277.png" alt="" title="Screen Shot 2011-11-07 at 9.58.44 AM" width="300" height="277" class="alignright size-medium wp-image-1015" /></a></p>
<p>on the server running the wiki open a terminal and paste the following into the file backup-wiki.sh<br />
<code><br />
#!/bin/bash<br />
rm -rfd /tmp/wiki_backup<br />
BACKUP=/tmp/wiki_backup<br />
mkdir $BACKUP<br />
pg_dumpall --username=_postgres > $BACKUP/postgres_lion_db.sql<br />
cp -ap /Library/Server/Wiki $BACKUP<br />
tar -cvzf wiki-backup.tar.gz $BACKUP<br />
</code></p>
<p>Save and exit the file, then do the following</p>
<p><code><br />
chmod +x backup-wiki.sh<br />
sudo ./backup-wiki.sh<br />
</code></p>
<p>This will create the file wiki-backup.tar.gz in your CWD</p>
<h3>Prep the migration file</h3>
<p>Copy this file to the new server, untar it.</p>
<p>edit the postgres_lion_db.sql file and add the following in the appropriate place, near the top of the file, just look you’ll figure it out. (Put it before the CREATE DATABASE statements)</p>
<p><code><br />
DROP DATABASE IF EXISTS collab;<br />
</code></p>
<p>Save and exit the file</p>
<p>Then follow this procedure.<br />
1. Open server.app and turn on wiki<br />
2. Open terminal and find pgsql process  (ps aux | grep pgsql) , copy it to clipboard<br />
3. Stop wiki server<br />
4. open terminal and enter sudo -u _postgres (paste in clipboard)<br />
5. open terminal and enter<br />
<code><br />
sudo su<br />
cd /tmp<br />
psql --username=collab < /path/to/postgres_lion_db.sql<br />
</code><br />
6. a bunch of shit will fly by, forget about it.<br />
7. Nuke that psql process running in the terminal<br />
8. copy the Wiki folder from our backup into /Library/Server<br />
9. Repair permissions<br />
10. Turn on wiki, pray</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/11/backup-and-restore-lion-wiki/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Now Supporting Mac OS X Lion</title>
		<link>http://www.copiouscom.com/2011/11/now-supporting-mac-os-x-lion/</link>
		<comments>http://www.copiouscom.com/2011/11/now-supporting-mac-os-x-lion/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 17:12:50 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[FrontPage]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=1009</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/11/now-supporting-mac-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IT Solutions for Business</title>
		<link>http://www.copiouscom.com/2011/09/mac-support-for-your-business/</link>
		<comments>http://www.copiouscom.com/2011/09/mac-support-for-your-business/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 15:42:33 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[FrontPage]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=1002</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/09/mac-support-for-your-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Build an 802.1q LACP Trunk for Xen in CentOS 5.5</title>
		<link>http://www.copiouscom.com/2011/09/how-to-build-an-802-1q-lacp-trunk-for-xen-in-centos-5-5/</link>
		<comments>http://www.copiouscom.com/2011/09/how-to-build-an-802-1q-lacp-trunk-for-xen-in-centos-5-5/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 15:24:01 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=996</guid>
		<description><![CDATA[Overview In this how-to we&#8217;re going to install CentOS 5.5 and prep it to become a virtual machine server. Before proceeding PLEASE read our Xen software page so you understand how the VM and network topology works. This how-to was built combining various methods publicly already available. If you find some copy and pasted text [...]]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>In this how-to we&#8217;re going to install CentOS 5.5 and prep it to become a virtual machine server. Before proceeding PLEASE read our Xen software page so you understand how the VM and network topology works. This how-to was built combining various methods publicly already available. If you find some copy and pasted text just remember: a good sysadmin is a lazy sysadmin.</p>
<h3>Prerequisites</h3>
<p>LACP bonded 802.1q trunk with necessary VLAN&#8217;s assigned</p>
<h3>Installation</h3>
<p>Install CentOS 5.5, during the package selection screen make sure to enable the Virtualization option.</p>
<h3>Configuration</h3>
<p>First let&#8217;s make sure that xen is running properly. Log into the GUI of the server, if you do not have a GUI then log into an ssh session as root with X forwarding on. Run virt-manager from the console. You should see &#8220;dom0&#8243; running, if you double click on it you&#8217;ll be able to see the statistics for this domain and how much resources it is consuming. If you cannot see this or if virt-manager does not find a dom0 to connect to you have done something wrong. I cannot help you.</p>
<p><strong>1. Physical Networking Devices</strong><br />
What we first need to do is setup our networking devices.<br />
Edit some files in /etc/sysconfig/network-scripts. Remember that bond0 is the physical interface that the trunk is connected to therefore it does not need an IP address.<br />
<code># ifcfg-bond0<br />
DEVICE=bond0<br />
BOOTPROTO=none<br />
ONBOOT=yes<br />
USERCTL=no<br />
TYPE=BOND<br />
BONDING_OPTS="mode=4"<br />
</code></p>
<p><code>#ifcfg-eth0<br />
DEVICE=eth0<br />
BOOTPROTO=none<br />
ONBOOT=yes<br />
MASTER=bond0<br />
SLAVE=yes<br />
USERCTL=no<br />
TYPE=Ethernet<br />
HWADDR:(MAC-ADDRESS OF ETH0)</code></p>
<p><code>#ifcfg-eth1<br />
DEVICE=eth1<br />
BOOTPROTO=none<br />
ONBOOT=yes<br />
MASTER=bond0<br />
SLAVE=yes<br />
USERCTL=no<br />
TYPE=Ethernet<br />
HWADDR:(MAC-ADDRESS OF ETH1F)</code></p>
<p>Then for every VLAN that you are passing in your trunk create a file as follows. Please replace the &#8216;N&#8217; with the VLAN ID number<br />
<code><br />
[root@xentest jeunson]# more /etc/sysconfig/network-scripts/ifcfg-bond0.N<br />
DEVICE=bond0.N<br />
BOOTPROTO=none<br />
#IPADDR=192.168.100.51<br />
#NETMASK=255.255.255.0<br />
ONBOOT=yes<br />
VLAN=yes<br />
TYPE=BOND<br />
</code></p>
<p>Note how the IP address is commented out on this VLAN interface. You can assign an IP address to the VLAN interface that will be the management interface for the hardware.</p>
<p>Finally don&#8217;t forget to add the following line to <em>/etc/modprobe.conf</em><br />
<code><br />
alias bond0 bonding<br />
</code></p>
<p>Now that you&#8217;ve created the VLANs and assigned a management interface we edit the file <em>/etc/sysconfig/network</em><br />
<code><br />
[root@xentest jeunson]# more /etc/sysconfig/network<br />
NETWORKING=yes<br />
NETWORKING_IPV6=no<br />
HOSTNAME=xentest.example.com<br />
GATEWAY=192.168.101.254<br />
GATEWAYDEV=bond0.101<br />
</code></p>
<p>Now restart the networking with <em>/etc/init.d/network restart</em> It should restart with out any errors<br />
<code><br />
Shutting down interface bond0.100: Removed VLAN -:bond0.100:-<br />
[ OK ]<br />
Shutting down interface bond0.101: Removed VLAN -:bond.101:-<br />
[ OK ]<br />
Shutting down interface bond: [ OK ]<br />
Shutting down loopback interface: [ OK ]<br />
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0 [ OK ]<br />
Bringing up loopback interface: [ OK ]<br />
Bringing up interface bond0.100: Added VLAN with VID == 100 to IF -:bond0:-<br />
[ OK ]<br />
Bringing up interface bond0.101: Added VLAN with VID == 101 to IF -:bond0:-<br />
[ OK ]<br />
</code></p>
<p><a href="http://www.copiouscom.com/wp-content/uploads/2011/09/Xen-Interface-Topology.png"><img src="http://www.copiouscom.com/wp-content/uploads/2011/09/Xen-Interface-Topology-243x300.png" alt="" title="Xen Interface Topology" width="243" height="300" class="alignleft size-medium wp-image-999" /></a><strong>2. Xen Networking Scripts</strong><br />
First modify <em>/etc/xen/xend-config.asp</em> and change the netdev device from eth0 to bond0. You&#8217;ll probably have to reboot the computer.</p>
<p>A.Modify the network-bridge script</p>
<p>Now that we&#8217;re done that we need to configure Xen to tell it what networking interfaces to use. First make a backup of the xen network-bridge script and edit as follows.<br />
<em>cp /etc/xen/scripts/network-bridge /etc/xen/scripts/network-bridge.orig</em><br />
Change around line 78 from<br />
<code>[ -f "/sys/class/net/$1/bonding/slaves" ]<br />
to<br />
[ -f "/sys/class/net/$1/bonding/slaves" ] || [ -f /proc/net/vlan/$1 ]</code></p>
<p>B. Modfiy xend-config.sxp<br />
The second change involves modifying the xend configuration file to use a new network initialization script.<br />
<code>[root@xentest scripts]# cd /etc/xen<br />
[root@xentest scripts]# cp -p xend-config.sxp xend-config.sxp-dist</code><br />
Change the network-script configuration directive to the new script name &#8211; such as network-multi-bridge. After the modification:<br />
<code>[root@xentest xen]# diff xend-config.sxp-dist xend-config.sxp<br />
91c91<br />
&lt; (network-script network-bridge) --- &gt; (network-script network-multi-bridge)</code><br />
C. Create network-multi-bridge script<br />
This script uses the two VLAN interfaces previously defined.</p>
<p><code>[root@xentest scripts]# cd /etc/xen/scripts<br />
[root@xentest scripts]# more network-multi-bridge<br />
#!/bin/sh<br />
dir=$(dirname "$0")<br />
"$dir/network-bridge" "$@" vifnum=0 netdev=bond0 bridge="xbr_trunk"</pre>
<p>/sbin/ifup eth0.100<br />
"$dir/network-bridge" "$@" vifnum=1 bridge="xbr_v100" netdev="bond0.100"<br />
/sbin/ifup eth0.101<br />
"$dir/network-bridge" "$@" vifnum=2 bridge="xbr_v101" netdev="bond0.101"<br />
</code></p>
<p>At this point you should reboot your server to make sure that everything comes up cleanly. Use the logs to debug problems and look out for which type of bond your computer connects to the switch as. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/09/how-to-build-an-802-1q-lacp-trunk-for-xen-in-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Force Propagation on Apple Secondary DNS Server</title>
		<link>http://www.copiouscom.com/2011/05/how-to-force-propagation-on-apple-secondary-dns-server/</link>
		<comments>http://www.copiouscom.com/2011/05/how-to-force-propagation-on-apple-secondary-dns-server/#comments</comments>
		<pubDate>Mon, 16 May 2011 19:23:05 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[mac os x server]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[snow leopard server]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=994</guid>
		<description><![CDATA[As you all probably know that using Apple&#8217;s DNS server can be challenging at times. If you make changes on the primary you usually have to wait some time before those changes propagate to the secondaries. However with the following commands you can force this propagation without having to nuke files or folders in /var/named [...]]]></description>
			<content:encoded><![CDATA[<p>As you all probably know that using Apple&#8217;s DNS server can be challenging at times. If you make changes on the primary you usually have to wait some time before those changes propagate to the secondaries. However with the following commands you can force this propagation without having to nuke files or folders in <em>/var/named</em></p>
<p>1. On the secondary server, run this command. (use whatever zone you want to transfer in place of lan.example.com<br />
	<code>rndc -p 54 retransfer lan.example.com IN com.apple.ServerAdmin.DNS.public</code></p>
<p>2. Reload configuration<br />
	<code>rndc -p 54 reload</code></p>
<p>3. Forcing client cache flush<br />
	<code>dscacheutil -flushcache</code></p>
<p>The reason I think this is better in my opinion is it gets rid of the potential &#8220;oops&#8221; of deleting critical files in <em>/var/named.</em> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/05/how-to-force-propagation-on-apple-secondary-dns-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Align your IT with your business goals</title>
		<link>http://www.copiouscom.com/2011/04/align-your-it-with-your-business-goals-2/</link>
		<comments>http://www.copiouscom.com/2011/04/align-your-it-with-your-business-goals-2/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 15:06:55 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[FrontPage]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=30</guid>
		<description><![CDATA[Copious integrates with your business to help you align your technology with your business goals &#160;]]></description>
			<content:encoded><![CDATA[<p>Copious integrates with your business to help you align your technology with your business goals</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/04/align-your-it-with-your-business-goals-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A little blue planet once asked</title>
		<link>http://www.copiouscom.com/2011/04/managed-services/</link>
		<comments>http://www.copiouscom.com/2011/04/managed-services/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 14:30:59 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[FrontPage]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=23</guid>
		<description><![CDATA[Why can&#8217;t we be a little green?]]></description>
			<content:encoded><![CDATA[<p>Why can&#8217;t we be a little green?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/04/managed-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managed Services</title>
		<link>http://www.copiouscom.com/2011/04/hello-world-2/</link>
		<comments>http://www.copiouscom.com/2011/04/hello-world-2/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 19:19:19 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[FrontPage]]></category>

		<guid isPermaLink="false">http://www.copiouscom.com/?p=1</guid>
		<description><![CDATA[Fixed price no hassle IT]]></description>
			<content:encoded><![CDATA[<p>Fixed price no hassle IT</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/04/hello-world-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Calculate MTU for Tunnels</title>
		<link>http://www.copiouscom.com/2011/04/how-to-calculate-mtu-for-tunnels/</link>
		<comments>http://www.copiouscom.com/2011/04/how-to-calculate-mtu-for-tunnels/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 14:42:11 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[gre]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tunnels]]></category>

		<guid isPermaLink="false">http://jordaneunson.com/?p=907</guid>
		<description><![CDATA[WARNING: BORING ALERT!!!! If you have any tunnels in your network you may notice at times packet loss between subnets or perhaps stalled web sessions. This usually has to do with a combination of MTU negotiation and packet fragmentation. MTU 101 Maximum Transmission Unit refers to how much data in bytes the data layer can [...]]]></description>
			<content:encoded><![CDATA[<p>WARNING: BORING ALERT!!!!</p>
<p><div id="attachment_986" class="wp-caption alignright" style="width: 310px"><a href="http://jordaneunson.com/wp-content/uploads/2011/04/medium.jpg"><img src="http://jordaneunson.com/wp-content/uploads/2011/04/medium-300x225.jpg" alt="" title="medium" width="300" height="225" class="size-medium wp-image-986" /></a><p class="wp-caption-text">Packet Fragmentation Example</p></div>If you have any tunnels in your network you may notice at times packet loss between subnets or perhaps stalled web sessions. This usually has to do with a combination of MTU negotiation and packet fragmentation. </p>
<h3>MTU 101</h3>
<p>Maximum Transmission Unit refers to how much data in bytes the data layer can send forward. For ethernet the size is 1500 bytes, which coincides with how much data can fit in an ethernet frame. Within the MTU is another size called MSS (Maximum Segment Size) which refers to how much TCP data can be transmitted. This is also known as the payload and is usually 1460 bytes. The 40 bytes difference between the MTU and MSS sizes are for TCP/IP headers. But this can create a problem when GRE is introduced. </p>
<h3>Enter the Tunnel</h3>
<p>The big problem with GRE is that it doesn&#8217;t fit into the 7 layer dip of the OSI model. It acts as a separator between the network and transport layers. GRE adds a header to all the packets that will traverse the GRE tunnel, thus consume some of the 1500 bytes of the ethernet frame. The MTU then needs to be decreased to allow the packet to fit within the frame. This can result in packet fragmentation or packet loss as some packets will have a &#8220;don&#8217;t fragment&#8221; bit set. </p>
<p>
<h3>Determine MTU</h3>
<p>To optimize your network performance it would be best practice to determine the MTU through the tunnel. This size my vary depending upon encapsulation, encryption, and routing. To determine the MTU size we will conduct some tests with &#8220;don&#8217;t fragment&#8221; ping packets from a host on one side of the tunnel to a host on the other side of the tunnel.</p>
<p>First let&#8217;s take a look at how &#8220;don&#8217;t fragment&#8221; pings work. We&#8217;re going to send two pings (-c 2) with the don&#8217;t fragment (-D) bit set and specify the payload to be 1472 bytes (-s 1472)<br />
<code><br />
homer:~ jordan$ ping -D -c 2 -s 1472 4.2.2.2<br />
PING 4.2.2.2 (4.2.2.2): 1472 data bytes<br />
1480 bytes from 4.2.2.2: icmp_seq=0 ttl=54 time=37.163 ms<br />
1480 bytes from 4.2.2.2: icmp_seq=1 ttl=54 time=34.799 ms<br />
</code></p>
<p>This shows us that the MTU between us and 4.2.2.2 which is a public root DNS server is 1500. The difference between the MTU size (1500) and ping payload size (1472) is the ICMP headers of 28 bytes. This is important to note, as ping payloads used to test the MTU must be 28 bytes lower than the MTU value you are testing.</p>
<p>If we add one byte to this test it will cause the ping to be lost.<br />
<code><br />
homer:~ jordan$ ping -D -c 2 -s <b>1473</b> 4.2.2.2<br />
PING 4.2.2.2 (4.2.2.2): 1473 data bytes<br />
ping: sendto: Message too long<br />
ping: sendto: Message too long<br />
</code></p>
<p><a href="http://jordaneunson.com/wp-content/uploads/2011/03/MTU-Diagram.png"><img src="http://jordaneunson.com/wp-content/uploads/2011/03/MTU-Diagram-300x99.png" alt="" title="MTU Diagram" width="300" height="99" class="alignleft size-medium wp-image-910" /></a>So let&#8217;s try and determine the MTU for this sample network. We have a host on each side with a default MTU of 1500 and tunnel in between the two of them. To determine the MTU we issue the command listed above<br />
<code><br />
homer:~ jordan$ ping -D -c 2 -s 1472 172.16.10.10<br />
PING 172.16.10.10 (172.16.10.10): 1472 data bytes<br />
ping: sendto: Message too long<br />
ping: sendto: Message too long<br />
</code></p>
<p>Clearly this shows us the payload is too large and thus the MTU is lower than 1500. So let&#8217;s lower the payload by 10 bytes and round it down, if it fails decrement the payload by 10 bytes again and again while testing until you have a successful test. Then increment by 1 byte until it stops working. The last test payload size, plus 28 bytes is your MTU.</p>
<p>Example:<br />
<code><br />
homer:~ jordan$ ping -D -c 2 -s 1460 172.16.10.10<br />
PING 172.16.10.10 (172.16.10.10): 1460 data bytes<br />
ping: sendto: Message too long<br />
ping: sendto: Message too long<br />
homer:~ jordan$ ping -D -c 2 -s 1450 172.16.10.10<br />
PING 172.16.10.10 (172.16.10.10): 1450 data bytes<br />
ping: sendto: Message too long<br />
ping: sendto: Message too long<br />
homer:~ jordan$ ping -D -c 2 -s 1440 172.16.10.10<br />
PING 172.16.10.10 (172.16.10.10): 1440 data bytes<br />
1448 bytes from 172.16.10.10: icmp_seq=0 ttl=254 time=72.199 ms<br />
1448 bytes from 172.16.10.10: icmp_seq=1 ttl=254 time=78.266 ms<br />
homer:~ jordan$ ping -D -c 2 -s 1441 172.16.10.10<br />
PING 172.16.10.10 (172.16.10.10): 1441 data bytes<br />
ping: sendto: Message too long<br />
ping: sendto: Message too long<br />
</code><br />
Tada, the last payload that worked was 1440, therefore our MTU is 1468. Ping payload size of 1440 bytes + ICMP header of 28 bytes = MTU of 1468 bytes</p>
<p>I hope you enjoyed yourself as much as I have, please feel free to leave questions in the <a href="http://jordaneunson.com/2011/03/how-to-calculate-mtu-for-tunnels#respond">comments here.</a></p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/04/how-to-calculate-mtu-for-tunnels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculate Subnet Network Masks and CIDR notation</title>
		<link>http://www.copiouscom.com/2011/04/calculate-subnet-network-masks-and-cidr-notation/</link>
		<comments>http://www.copiouscom.com/2011/04/calculate-subnet-network-masks-and-cidr-notation/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 22:38:42 +0000</pubDate>
		<dc:creator>jordan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[calculate]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[subnets]]></category>

		<guid isPermaLink="false">http://jordaneunson.com/?p=929</guid>
		<description><![CDATA[How to calculate the network mask from a CIDR notation, or a CIDR notation from a network mask. To figure this out we need to understand the relationship between the two. A network mask when written in binary will be 32 bits long. This also means that each octet of a network mask can hold [...]]]></description>
			<content:encoded><![CDATA[<p>How to calculate the network mask from a CIDR notation, or a CIDR notation from a network mask. To figure this out we need to understand the relationship between the two. A network mask when written in binary will be 32 bits long. This also means that each octet of a network mask can hold a total of 8 bits.<br />
<code><br />
255.255.0.0 == 11111111.11111111.00000000.00000000<br />
255.255.255.0 == 11111111.11111111.11111111.00000000<br />
255.255.255.192 == 11111111.11111111.11111111.11000000<br />
</code></p>
<h3>Example 1-1: Calculate the network mask from CIDR Notation /16</h3>
<p><a href="http://jordaneunson.com/wp-content/uploads/2011/03/Screen-shot-2011-03-31-at-10.03.08-PM.png"><img src="http://jordaneunson.com/wp-content/uploads/2011/03/Screen-shot-2011-03-31-at-10.03.08-PM.png" alt="" title="Screen shot 2011-03-31 at 10.03.08 PM" width="188" height="334" class="alignleft size-full wp-image-931" /></a><br />
1. First subtract the CIDR notation from the total number of bits available in CIDR notation. This is the number of bits occupied in the mask. </p>
<p>2. Next, place no more than 8 bits into each octet starting with the one the on the right.</p>
<p>3. Move the bits into an exponent of two and calculate</p>
<p>4. Subtract one from each octet and you now have your reverse mask</p>
<p>5. Inverse the reverse mask to finally find out your network mask</p>
<p>The network mask for CIDR notation /16 is 255.255.0.0<br />
<BR><BR><BR></p>
<h3>Example 2-1: Calculate the CIDR notation from network mask 255.255.0.0</h3>
<p><a href="http://jordaneunson.com/wp-content/uploads/2011/03/Screen-shot-2011-03-31-at-11.03.10-PM.png"><img src="http://jordaneunson.com/wp-content/uploads/2011/03/Screen-shot-2011-03-31-at-11.03.10-PM.png" alt="" title="Screen shot 2011-03-31 at 11.03.10 PM" width="189" height="329" class="alignleft size-full wp-image-943" /></a></p>
<p>This is exactly the procedure above but just reversed</p>
<p>1. Inverse the network mask to find out your reverse mask</p>
<p>2. Add one to each populated octet</p>
<p>3. Find the exponent value of 2 for each octet (PROTIP: double 2 in your head until you hit the number, that is the number of bits ie {2 4 8 16} = 4&#8230;)</p>
<p>4. Add up all the exponent values and subtract from 32</p>
<p><BR><BR><BR></p>
<p><BR><BR><BR></p>
<h3>Example 1-2: Calculate the network mask from CIDR Notation /13</h3>
<p><a href="http://jordaneunson.com/wp-content/uploads/2011/04/Screen-shot-2011-04-01-at-7.16.51-AM.png"><img src="http://jordaneunson.com/wp-content/uploads/2011/04/Screen-shot-2011-04-01-at-7.16.51-AM.png" alt="" title="Screen shot 2011-04-01 at 7.16.51 AM" width="187" height="337" class="alignleft size-full wp-image-969" /></a></p>
<p>1. First subtract the CIDR notation from the total number of bits available in CIDR notation. This is the number of bits occupied in the mask. </p>
<p>2. Next, place no more than 8 bits into each octet starting with the one the on the right.</p>
<p>3. Move the bits into an exponent of two and calculate</p>
<p>4. Subtract one from each octet and you now have your reverse mask</p>
<p>5. Inverse the reverse mask to finally find out your network mask (PROTIP, for the second octet just subtract 7 from 255)</p>
<p><BR><BR><BR></p>
<h3>Example 2-2: Calculate the CIDR notation from network mask 255.248.0.0</h3>
<p><a href="http://jordaneunson.com/wp-content/uploads/2011/04/Screen-shot-2011-04-01-at-7.33.52-AM.png"><img src="http://jordaneunson.com/wp-content/uploads/2011/04/Screen-shot-2011-04-01-at-7.33.52-AM.png" alt="" title="Screen shot 2011-04-01 at 7.33.52 AM" width="179" height="327" class="alignleft size-full wp-image-978" /></a></p>
<p>This is exactly the procedure above but just reversed</p>
<p>1. Inverse the network mask to find out your reverse mask</p>
<p>2. Add one to each populated octet</p>
<p>3. Find the exponent value of 2 for each octet (PROTIP: double 2 in your head as many bits as you have 2 4 8 16&#8230;)</p>
<p>4. Add up all the exponent values and subtract from 32</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copiouscom.com/2011/04/calculate-subnet-network-masks-and-cidr-notation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

