<?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>Biobug.org &#187; networking</title>
	<atom:link href="http://biobug.org/index.php/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://biobug.org</link>
	<description>Projects, notes, etc by Will O'Brien</description>
	<lastBuildDate>Sat, 04 Feb 2017 13:43:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Juniper MX LAG to Cisco Nexus 7000 port channel</title>
		<link>http://biobug.org/index.php/2013/01/11/juniper-mx-lag-to-cisco-nexus-7000-port-channel/</link>
		<comments>http://biobug.org/index.php/2013/01/11/juniper-mx-lag-to-cisco-nexus-7000-port-channel/#comments</comments>
		<pubDate>Fri, 11 Jan 2013 15:20:05 +0000</pubDate>
		<dc:creator>willo</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Junos]]></category>
		<category><![CDATA[MX]]></category>
		<category><![CDATA[Nexus]]></category>
		<category><![CDATA[NXOS]]></category>

		<guid isPermaLink="false">http://biobug.org/?p=372</guid>
		<description><![CDATA[I recently needed to set up some aggregated ethernet connections. (LAGs, Etherchannel, port channel, Agg, etc). In this case, it was between a Cisco Nexus 7k series switch and a Juniper MX 480 with trio based blades (MPC-2 to be exact). I did NOT configure this with multi-chassis technology &#8211; this is between single devices. [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to set up some aggregated ethernet connections. (LAGs, Etherchannel, port channel, Agg, etc). In this case, it was between a Cisco Nexus 7k series switch and a Juniper MX 480 with trio based blades (MPC-2 to be exact). I did NOT configure this with multi-chassis technology &#8211; this is between single devices.</p>
<p>On the MX, you must enable aggregate ethernet interfaces. 100 is overkill, but this is actually from a MX960 in my lab. It&#8217;s upper limit is thousands.</p>
<p>set chassis aggregated-devices ethernet device-count 100</p>
<p>Without this, your new interface will never even appear in the interface list.</p>
<p>Now configure your first agg ethernet interface.</p>
<p>set interfaces ae0 description &#8220;test aggro port to lexus1&#8243;<br />
set interfaces ae0 flexible-vlan-tagging<br />
set interfaces ae0 mtu 9192<br />
set interfaces ae0 encapsulation flexible-ethernet-services<br />
set interfaces ae0 aggregated-ether-options lacp active<br />
set interfaces ae0 unit 1234 encapsulation vlan-bridge<br />
set interfaces ae0 unit 1234 vlan-id 1234</p>
<p>Note the vlan interface. I&#8217;m using bridge domains here. You don&#8217;t have to do it that way. Here&#8217;s the rest of the config for vlan 1234:</p>
<p>set interfaces irb unit 1234 description &#8220;test vlan for agg&#8221;<br />
set interfaces irb unit 1234 family inet address 192.168.200.1/24</p>
<p>set bridge-domains vlan-1234 domain-type bridge<br />
set bridge-domains vlan-1234 vlan-id 1234<br />
set bridge-domains vlan-1234 interface ae0.1234<br />
set bridge-domains vlan-1234 routing-interface irb.1234</p>
<p>That&#8217;s it for the MX configuration. This will work from MX to MX as well if you want a consistent LAG configuration. Now for the Nexus configuration.</p>
<p>Create a port channel:</p>
<p>interface port-channel1234<br />
description &#8220;test agg link&#8221;<br />
switchport mode trunk<br />
switchport trunk allowed vlan 1234<br />
spanning-tree port type normal<br />
mtu 9216</p>
<p>Now configure and add the interfaces:</p>
<p>interface Ethernet1/3<br />
description &#8220;link1 to mx&#8221;<br />
switchport mode trunk<br />
switchport trunk allowed vlan 1234<br />
spanning-tree port type normal<br />
mtu 9216<br />
channel-group 1234 mode active<br />
no shutdown</p>
<p>Note the mode active on the channel group. That forces active LACP. Also note the lack of VPC number in the port channel. That&#8217;s because it&#8217;s a single Nexus that&#8217;s not part of a VPC pair. I got burned on my original configuration because I&#8217;d left it in there. (Facepalm)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://biobug.org/index.php/2013/01/11/juniper-mx-lag-to-cisco-nexus-7000-port-channel/feed/</wfw:commentRss>
		<slash:comments>1102</slash:comments>
		</item>
		<item>
		<title>Cheap Wifi Thermostat with a JSON API</title>
		<link>http://biobug.org/index.php/2012/04/09/cheap-wifi-thermostat-with-a-json-api/</link>
		<comments>http://biobug.org/index.php/2012/04/09/cheap-wifi-thermostat-with-a-json-api/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 14:08:58 +0000</pubDate>
		<dc:creator>willo</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Toys]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://biobug.org/?p=316</guid>
		<description><![CDATA[I updated my thermostat to one of these. It&#8217;s made by Homewerks (Home depot sells a filtrete branded version.) It&#8217;s not as cool as the NEST, but it&#8217;ll do the job of controlling a furnace/AC. The interesting part of this device is that the wifi interface can be cloud managed, making it possible to control [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://biobug.org/blog/wp-content/uploads/2012/04/wifi-thermostat.jpg"><img class="alignnone size-full wp-image-317" title="wifi-thermostat" src="http://biobug.org/blog/wp-content/uploads/2012/04/wifi-thermostat.jpg" alt="" width="300" height="300" /></a></p>
<p>I updated my thermostat to one of <a href="http://www.amazon.com/exec/obidos/ASIN/B004YZFU1Q/cj708-20">these</a>. It&#8217;s made by Homewerks (Home depot sells a filtrete branded version.) It&#8217;s not as cool as the <a href="http://www.sparkfun.com/tutorials/334">NEST</a>, but it&#8217;ll do the job of controlling a furnace/AC. The interesting part of this device is that the wifi interface can be cloud managed, making it possible to control the thermostat via my iPhone, iPad (or android) from anywhere with data connectivity.</p>
<p>It&#8217;s actually a fairly decent device for the money. It has a JSON api that allows you to get and set variables via web interface. There&#8217;s a fantastic PDF on the API that shows examples using curl (available on linux, mac, etc). What&#8217;s really interesting is that with a JSON interface, you could easily write your own application for mobile phones or just script up some commands from your choice of computing platform.</p>
<p>Wiring was interesting. On my ancient furnace (built by chrystler) I discovered some new details. The fan wire wasn&#8217;t connected at all! At some point, some A/C tech had installed a honeywell fan controller and the fan is activated by either the cooling or heating wires being engaged. (there is a manual switch inside the furnace. Argh!) However, I was able to re-use the fan wire as a C wire to deliver both sides of the 24v a/c transformer power to the thermostat. Wifi eats more power, and you need an external supply to feed that radio.</p>
<p>Setup is pretty neat. I loaded the radio thermostat App on my iPad, and once it discovered the thermostat, I had to join the &#8216;stats wifi network. Then I could configure my WPA2 network (excellent! Thanks for supporting proper protocols!) as well as a dynamic or static ip address. I opted for static the last time I configured it. &#8211;I reconfigured it a few times while I played around with wiring options.</p>
<p>The hardware in the device is rather interesting. It&#8217;s the first one I&#8217;ve seen with a wifi <a href="http://www.usnap.org/Default.aspx">USNAP module</a>. I&#8217;d expect to see more of these devices on the market. The price point is fairly low and the curl api is ideal. Hmm, arduino USNAP shield, anyone?</p>
<p>Resources:</p>
<p>Wiki (unknown owner) for developing: <a href="http://central.isaroach.com/wiki/index.php/Main_Page">http://central.isaroach.com/wiki/index.php/Main_Page</a></p>
<p>PDF Documenting the <a href="www.radiothermostat.com/documents/RTCOAWiFIAPIV1_3.pdf">Thermostat API</a>. (local copy <a href="http://biobug.org/lj/RTCOAWiFIAPIV1_3.pdf">here</a>) This is the interesting one.</p>
]]></content:encoded>
			<wfw:commentRss>http://biobug.org/index.php/2012/04/09/cheap-wifi-thermostat-with-a-json-api/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>iPhone, jailbreak, ssh, car controller</title>
		<link>http://biobug.org/index.php/2011/11/20/iphone-jailbreak-ssh-car-controller/</link>
		<comments>http://biobug.org/index.php/2011/11/20/iphone-jailbreak-ssh-car-controller/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 16:00:33 +0000</pubDate>
		<dc:creator>willo</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Toys]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://biobug.org/?p=257</guid>
		<description><![CDATA[I&#8217;m working on a new car controller. It&#8217;s based on aftermarket remote start, a jailbroken iphone and some open source hardware. This post covers setting up the iPhone for that use. It&#8217;s really just a nice, cheap (if you have it) script-able serial telemetry platform. iPhone jailbreak notes: I used an iPhone 3g, downloaded 4.2.1 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a new car controller. It&#8217;s based on aftermarket remote start, a jailbroken iphone and some open source hardware. This post covers setting up the iPhone for that use. It&#8217;s really just a nice, cheap (if you have it) script-able serial telemetry platform.</p>
<p><a href="http://biobug.org/blog/wp-content/uploads/2011/11/installing-pic.png"><img class="alignnone size-full wp-image-266" title="installing-pic" src="http://biobug.org/blog/wp-content/uploads/2011/11/installing-pic.png" alt="" width="320" height="480" /></a></p>
<h2>iPhone jailbreak notes:</h2>
<p>I used an iPhone 3g, downloaded 4.2.1 iphone firmware and used pwnageTool_4.2 to build jailbroken firmware.<br />
(then did it all over again to build unlockable firmware &#8211; update baseband to 6.10: (add link)<br />
First stop was to configure wireless to talk to my home network.<br />
Then I hit Cydia (the app that&#8217;s loaded when jailbroken.) and updated everything it wanted.<br />
Get cell service (you can do this later):<br />
Install ultrasn0w and get a pay as you go t-mobile account activated on it.</p>
<h2>Now it&#8217;s time for software:</h2>
<p>Install openssh via cydia.<br />
ssh onto the phone and change the passwords for the root and mobile users.</p>
<p>I also install veency &#8211; it&#8217;ll allow you to vnc onto your iphone, making it much easier to do all your work from your computer. Set a password in settings if you like.</p>
<p>We want perl, so add the coredev.nl repo:<br />
download http://coredev.nl/cydia/coredev.pub on your machine. Then scp it to root@yourphonesip:/var/root<br />
ssh to the phone and run: apt-key add coredev.pub<br />
then run: echo &#8216;deb http://coredev.nl/cydia iphone main&#8217; &gt; /etc/apt/sources.list.d/coredev.nl.list<br />
Now when you load cydia next, you can get perl installed. <img src='http://biobug.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Use Cydia to install the following packages. Instead of confirm after each, just hit continue queuing and add things to be installed. Then you can go to manage or just hit confirm on the final package you want to install.</p>
<p>minicom<br />
perl<br />
perl-dbd-sqlite(search for dbd::sqlite)<br />
perl device serial (search for device::serial)<br />
vimproved (This is vim, find something else if you don&#8217;t do vi.)</p>
<p>Later we&#8217;ll want a command line sms sender, but for now I haven&#8217;t decided which to use yet.</p>
<h2>Set things up:</h2>
<p>Set up Minicom:<br />
As root mkdir /usr/etc<br />
Run minicom -s, set serial to /tty.iap, set 9600 N81, turn off flow control<br />
Save config as default.<br />
install vi (or vim for the search to work) (I like vim. deal.)</p>
<p>If you have a serial port dock built, now&#8217;s the time to test your port. My first phone had a bad dock connector, so no serial on it. Luckily I had a spare laying around with a bad home button. I swapped the screens and was good to go.</p>
<p>If you&#8217;re getting a data plan, it might be nice to ssh into the phone over the nat&#8217;d edge/3g/whatever you paid for:</p>
<p>install autossh.<br />
Follow this how-to: http://llemarie.wordpress.com/2009/09/05/tip-connect-to-your-iphone/<br />
install p5-Device-modem (which gets you device::serial)</p>
<p>Congratulations. Now you have the equivalent of a funky linux (yeah, it&#8217;s bsd. I know.) box with geolocation, 3g, wifi and a serial port. Muhahah.</p>
]]></content:encoded>
			<wfw:commentRss>http://biobug.org/index.php/2011/11/20/iphone-jailbreak-ssh-car-controller/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The new karkomp: iphone/ipad video server</title>
		<link>http://biobug.org/index.php/2011/07/03/the-new-karkomp-iphoneipad-video-server/</link>
		<comments>http://biobug.org/index.php/2011/07/03/the-new-karkomp-iphoneipad-video-server/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 14:09:29 +0000</pubDate>
		<dc:creator>willo</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[carpc]]></category>
		<category><![CDATA[evil]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mini-itx]]></category>

		<guid isPermaLink="false">http://biobug.org/?p=231</guid>
		<description><![CDATA[Quite a while ago, I spent quite a bit of time messing around with car pc&#8217;s. I was never truly happy with what I had. However, on my new car, I&#8217;m adding a pair of roof mounted LCDs and an iphone/ipad video cable. NO MORE DVDs in the car! Since storage space is fairly limited [...]]]></description>
			<content:encoded><![CDATA[<p>Quite a while ago, I spent quite a bit of time messing around with car pc&#8217;s. I was never truly happy with what I had. However, on my new car, I&#8217;m adding a pair of roof mounted LCDs and an iphone/ipad video cable. NO MORE DVDs in the car!<br />
Since storage space is fairly limited on those devices, I decided that a video server would be a great addition to load up a bunch of movies that I won&#8217;t carry around on my devices. (Think Tinkerbell)</p>
<p>For now I&#8217;m using what I have on hand: a dual core ATOM Foxconn 45CSX (the network interface is crappy slow on it) I will be upgrading it to something with gig and a core 2 duo at least in the future. That&#8217;s stuffed into a case with a 12v power supply. An older 200gb laptop drive will soon become a new 500gb, but it&#8217;s not a big deal.<br />
For the server, I decided to use ubuntu linux with the alpha air video server installed. It turns out to be really simple to do, thanks to a custom repository out there. I chose linux because it&#8217;s the most stable when you&#8217;re dealing with random power outages and it won&#8217;t waste the sparse cpu driving an unnecessary GUI.</p>
<p>Thanks to http://blog.frameos.org/2011/02/08/installing-airvideo-linux-server-in-ubuntu/ for the time saving writeup!<br />
More later when I get the install together.</p>
]]></content:encoded>
			<wfw:commentRss>http://biobug.org/index.php/2011/07/03/the-new-karkomp-iphoneipad-video-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Server update: Goodbye and thanks for all the phish</title>
		<link>http://biobug.org/index.php/2011/01/27/server-update-goodbye-and-thanks-for-all-the-phish/</link>
		<comments>http://biobug.org/index.php/2011/01/27/server-update-goodbye-and-thanks-for-all-the-phish/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 20:36:15 +0000</pubDate>
		<dc:creator>willo</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://biobug.org/?p=215</guid>
		<description><![CDATA[I shutdown my old virtual server today after migrating all my data&#8230;. Sorry if you got a short availability issue while DNS was updating around the internet. I updated this server to a more recent version of my favorite Linux flavor: Ubuntu. The old system was running on a Slice that was built many years [...]]]></description>
			<content:encoded><![CDATA[<p>I shutdown my old virtual server today after migrating all my data&#8230;. Sorry if you got a short availability issue while DNS was updating around the internet.</p>
<p>I updated this server to a more recent version of my favorite Linux flavor: Ubuntu. The old system was running on a Slice that was built many years ago and ran just fine on Ubuntu 6.06.2 LTS. It had a good run, but since I was destroying one of my other virtual machines, I figured it was time to migrate. Here&#8217;s how I did it.</p>
<p>1)Built a new slice at slicehost &#8211; my favorite virtual machine vendor. I installed the usual things like Apache2, php5, mysql, etc. Then I copied my Apache2 site configs over and added the missing modules to make them load properly. After that a large scp transfer copied my data and I performed a dump of my databases to flat text and imported them into my new improved MySQL server. My new slice ended up in a different data center on new hardware:</p>
<pre>10  abovenet-peer.chcgil01.transitrail.net (137.164.130.174)  22.218 ms  22.107 ms  22.106 ms
11  xe-0-0-0.er1.ord7.us.above.net (64.125.26.245)  34.977 ms  27.394 ms  24.189 ms
12  64.124.65.218.allocated.above.net (64.124.65.218)  23.406 ms  23.524 ms  23.524 ms
13  core1-ed1-edge3.ord1.rackspace.net (173.203.0.101)  24.545 ms  24.808 ms  24.535 ms
14  173.203.0.189 (173.203.0.189)  24.642 ms  25.373 ms  24.576 ms
15  biobug.org (184.106.65.132)  24.138 ms  24.182 ms  23.993 ms</pre>
<p>Looks like a Chicago data center (and behind a Juniper MX router at above.net) for the new system. My new VM is likely on a faster CPU and I upgraded the ram while I was at it. The price of the new data center was a new IP address, so I was forced to update DNS for my sites that I maintain here.</p>
]]></content:encoded>
			<wfw:commentRss>http://biobug.org/index.php/2011/01/27/server-update-goodbye-and-thanks-for-all-the-phish/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mediacom DNS appears to have gone lame(sigh)</title>
		<link>http://biobug.org/index.php/2009/10/24/mediacom-dns-appears-to-have-gone-lamesigh/</link>
		<comments>http://biobug.org/index.php/2009/10/24/mediacom-dns-appears-to-have-gone-lamesigh/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 18:33:38 +0000</pubDate>
		<dc:creator>willo</dc:creator>
				<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://biobug.org/?p=144</guid>
		<description><![CDATA[Since my home network is a bit more complex than most, I found some interesting issues with Mediacom&#8217;s DNS. Yesterday, our wireless network stopped working (My wife reports that to me: the internet is down, did you pay the bill?) I could ssh in from work, so the connection was definitely working. A bit of [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-146" title="cable-model" src="http://biobug.org/blog/wp-content/uploads/2009/10/cable-model.jpg" alt="cable-model" width="500" height="263" /></p>
<p>Since my home network is a bit more complex than most, I found some interesting issues with Mediacom&#8217;s DNS. Yesterday, our wireless network stopped working (My wife reports that to me: the internet is down, did you pay the bill?) I could ssh in from work, so the connection was definitely working.</p>
<p>A bit of poking around and I find that the old primary DNS server isn&#8217;t even responding to queries. Luckily, I run my own dns server on my inner network and it works just fine. My fix for now is to allow a special NAT exception so that my internal dns server and supply dns for every network zone in my house.</p>
<p>I would hope that a full dhcp renewal would provide new, working DNS servers. But ultimately I don&#8217;t care since my fix was just a reversion to my old network config anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://biobug.org/index.php/2009/10/24/mediacom-dns-appears-to-have-gone-lamesigh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->