<?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>bahjons.com &#187; Vyatta Router</title>
	<atom:link href="http://bahjons.com/stuff/category/vyatta-router/feed" rel="self" type="application/rss+xml" />
	<link>http://bahjons.com/stuff</link>
	<description></description>
	<lastBuildDate>Wed, 26 May 2010 23:34:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Vyatta &#8211; My Basic Setup Guide</title>
		<link>http://bahjons.com/stuff/vyatta-my-basic-setup-guide</link>
		<comments>http://bahjons.com/stuff/vyatta-my-basic-setup-guide#comments</comments>
		<pubDate>Thu, 18 Oct 2007 18:56:25 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Vyatta Router]]></category>

		<guid isPermaLink="false">http://hostseries.com/vyatta-my-basic-setup-guide/</guid>
		<description><![CDATA[So if you haven&#8217;t already been introduced to Vyatta&#8230; Vyatta meet reader, reader meet Vyatta. Vyatta is a fairly new Opensource, Debian based router that&#8217;s taking geeks by storm. And I can tell you from personal experience with Vyatta that it&#8217;s a powerful system. So as I mentioned in a previous article, I would put [...]]]></description>
			<content:encoded><![CDATA[<p>So if you haven&#8217;t already been introduced to Vyatta&#8230; Vyatta meet reader, reader meet Vyatta.<br />
Vyatta is a fairly new Opensource, Debian based router that&#8217;s taking geeks by storm. And I can tell you from personal experience with Vyatta that it&#8217;s a powerful system.</p>
<p>So as I mentioned in a <a href="http://bahjons.com/stuff/vyatta-a-rival-of-cisco/">previous article</a>, I would put together a quick start guide on getting Vyatta working &#8220;out of the box.&#8221; Here it is&#8230;</p>
<p>***Please note, at the time of this writing, the latest version was Vyatta Community Edition 2.0 &#8211; these commands might not work on the newest release.</p>
<h2></h2>
<h2></h2>
<p><span id="more-17"></span><strong><br />
STEP 1: Installing and Updating Vyatta</strong></p>
<p>Let&#8217;s assume you have already downloaded the ISO Image from Vyatta&#8217;s website and burned it to CD and you have the hardware there that you want to run Vyatta on. For my example, I&#8217;m running an AMD Sempron 2600, 1GB Ram, 80GB HD, 2 Ethernet Cards (min. suggestion for a good router.) Okay, pop the CD in the drive and boot up to the CD. It should start loading the OS and Vyatta.</p>
<p>Vyatta is setup so you don&#8217;t have to have a hard drive to run it. It can run directly from the CD, as it&#8217;s setup in a &#8220;live cd&#8221; format. Problem with this is, if you reboot, you lose your configuration settings. So we&#8217;ll want to install it to the drive, in my case 80GB is major overkill. To do this, you&#8217;ll first need to login to Vyatta once it&#8217;s booted up. The default logins are (user: root  pass: vyatta)  To install to the drive you will issue the command:</p>
<pre class="code"><code>install-system</code></pre>
<p>During the install you will be asked how much diskspace to allot to the different partitions. I went with the default.  Once that&#8217;s complete, pop the CD out, and reboot to your installed Vyatta. Now we can start configuring the system.  Let&#8217;s start by setting up the Debian repos and making sure we&#8217;re running the latest version of Vyatta. So you need to get into the Vyatta configure Cli. You can go this by logging in as root and then running the commands:</p>
<pre class="code"><code>su vyatta
configure
set system package repository community component "experimental testing main"
set system package repository community url http://archive.vyatta.com/vyatta
set system package repository etch component main
set system package repository main url http://mirrors.kernel.org/debian
commit
exit
exit</code></pre>
<p>Now you can update to the latest version of Vyatta and update any packages with Debian:</p>
<pre class="code"><code>apt-get update
apt-get -y install vc-base
full-upgrade</code></pre>
<p><strong>STEP 2: Configuring Ethernet Interfaces</strong></p>
<p>I have some static IPs from my internet provider, so I&#8217;m going to assign one of them to one of the ethernet cards, and the other ethernet card will be used for my LAN.  Below is sample code from my setup:</p>
<pre class="code"><code>su vyatta
configure
</code><code>set interfaces ethernet eth0 address 141.99.208.118 prefix-length 29
set interfaces ethernet eth0 description "Internet"
set interfaces ethernet eth1 address 192.168.15.1 prefix-length 24
set interfaces ethernet eth1 description "OfficeLan"
commit</code></pre>
<p>So I created my first interface with my ISP&#8217;s IP: 141.99.208.118 /29  which is netmask: 255.255.255.248 (If you need to know how to get your prefix-length &#8211; good luck. It&#8217;s hard to explain without having some networking knowledge.)  I also, added a description for this interface as &#8220;Internet&#8221; as I tend to get forgetful.  This ethernet card will be plugged into my internet connection.</p>
<p>The second interface I created with the LAN IP: 192.168.15.1 /24 which is netmask: 255.255.255.0, and gave it a description as &#8220;Lan.&#8221; This ethernet will be plugged into a Switch or Hub which my workstations and IP phones are plugged into.</p>
<p>By the way, you may have noticed the &#8220;commit&#8221; command. This basically commits my settings to the system. If there&#8217;s something missing, or conflicting, it will let me know during the commit.</p>
<p></p>
<p><strong><br />
STEP 3: Setting Up Route and NAT </strong></p>
<p>So the workstations and phones that will be connected to the same switch as my LAN ethernet, will have 192.168.15.x IPs, I want them to have an internet connection and the rest of the world to see their IP as: 141.99.208.118. I need to setup my route and NAT. Below I&#8217;m doing that.</p>
<pre class="code"><code>set protocols static route 0.0.0.0/0 next-hop 141.99.208.117
set service nat rule 1
set service nat rule 1 type source
set service nat rule 1 translation-type masquerade
set service nat rule 1 outbound-interface eth0
set service nat rule 1 protocols all
set service nat rule 1 source network 192.168.15.0/24
set service nat rule 1 destination network 0.0.0.0/0
commit</code></pre>
<p>So in the above, I setup the route with the next-hop being my default gateway from my ISP: 141.99.208.117. This will give my LAN the internet connection. The rest translates my LAN IPs into the ISP IP.</p>
<p><strong><br />
STEP 4: Setting up DHCP Server</strong></p>
<p>While having static LAN IPs set on all my workstations and Phones is best, I do have users that come and go on their laptop. So I want the router to automatically assign IPs. I can set that up below:</p>
<pre class="code"><code>set service dhcp-server name OfficeLan start 192.168.15.2 stop 192.168.15.27
set service dhcp-server name OfficeLan network-mask 24
set service dhcp-server name OfficeLan dns-server 4.2.2.2
set service dhcp-server name OfficeLan dns-server 4.2.2.1
set service dhcp-server name OfficeLan default-router 192.168.15.1
set service dhcp-server name OfficeLan interface eth1
set service dhcp-server name OfficeLan domain-name officelan.hostname.com
commit</code></pre>
<p>In the example above, I want no more than 25 dynamic IPs on my network, so the DHCP server is only going to assign IPs in the range: 192.168.15.2  through 192.168.15.27.  I setup the default nameservers to be Level3&#8242;s: 4.2.2.2 and 4.2.2.1  with the gateway: 192.168.15.1 on my second ethernet. And then I gave it a hostname.</p>
<p>STEP5: Enabling Vyatta GUI</p>
<p>For setting up the Vyatta GUI, you can issue the following command from the Vyatta Cli:</p>
<pre class="code"><code>set service http
commit</code></pre>
<p>(**Note: This is one such command that changes in the newer version.**)</p>
<p>That&#8217;s all you need for a basic setup. There&#8217;s additional configurations that can be done, including firewalls, etc. Hopefully I will publish something on those shortly.</p>
<h1></h1>
<h1></h1>
<p>You can download the commands mentioned in this article <a href="http://bahjons.com/stuff/wp-content/uploads/2007/10/installing_vyatta.txt" title="Vyatta Installation Commands">here</a> for quick copy and pasting.</p>
]]></content:encoded>
			<wfw:commentRss>http://bahjons.com/stuff/vyatta-my-basic-setup-guide/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Vyatta &#8211; A Rival of Cisco?</title>
		<link>http://bahjons.com/stuff/vyatta-a-rival-of-cisco</link>
		<comments>http://bahjons.com/stuff/vyatta-a-rival-of-cisco#comments</comments>
		<pubDate>Wed, 17 Oct 2007 13:44:09 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Vyatta Router]]></category>

		<guid isPermaLink="false">http://hostseries.com/vyatta-a-rival-of-cisco/</guid>
		<description><![CDATA[Recently in the office, we began having problems with out internet connection and IM disconnecting regularly. Yes, we should have known better than using a residential grade Linksys router in the office. Normally it won&#8217;t be a big problem, but we need our internet connection to remain online 24/7 for the IP Phones and for [...]]]></description>
			<content:encoded><![CDATA[<p>Recently in the office, we began having problems with out internet connection and IM disconnecting regularly. Yes, we should have known better than using a residential grade Linksys router in the office. Normally it won&#8217;t be a big problem, but we need our internet connection to remain online 24/7 for the IP Phones and for communicating with our other offices during nighttime hours, etc.<br />
So we set out on a search for a inexpensive business grade router, preferably from Linksys/Cisco. Interestingly enough we ran into the <a href="http://vyatta.com">Vyatta </a>team at <a href="http://hostingcon.com">HostingCon2007</a>, and picked up a CD.<span id="more-51"></span></p>
<p>I&#8217;m not a big <a href="http://debian.org">Debian</a> user (as I love the power of &#8220;yum&#8221;) but found Vyatta to be very easy to use. So over the next month or so we tested all the configuration options that we would use within the office. We recently went live with it, and haven&#8217;t looked back at the dusty Linksys since. Sure, Vyatta is probably major overkill for our uses, but it&#8217;s rock solid.</p>
<p>So some quick features of the Vyatta system&#8230;</p>
<p>++ Vyatta is a Cli router, seeing as it&#8217;s based on Debian. However they do have a web based GUI which can be used once enabled. (That&#8217;s right, it&#8217;s not enabled by default.) GUI will probably seem bulky if you&#8217;re use to the likes of <a href="http://linksys.com">Linksys</a> or <a href="http://netgear.com">Netgear</a> interfaces. Keep in mind, Vyatta is more enterprise than these residential routers. But my main purpose is to introduce opensource more into the residential areas and uses.</p>
<p>++ You can do just about anything with Vyatta aside from port-forwarding. Yea, that seems kind of cheesy, but according to Vyatta, they are working on that. We were a bit disabled with not having port forwarding, but we got by, we just had to assign some additional IPs to our Vyatta to access systems within our network.<br />
And there&#8217;s many more features, I just don&#8217;t have time to touch on.</p>
<p>During setup we did find the documentation a little hard to follow. That is, for those of us that didn&#8217;t have a complete understanding of networking, DNS, IPs, subnets, masks, etc. I mentioned this to Vyatta, and they didn&#8217;t seem to interested in putting together a &#8220;dummy&#8217;s&#8221; guide to Vyatta. So over the course of the next couple of weeks, I will do my best to spit out some articles and howto&#8217;s on getting Vyatta up and running for the &#8220;dummy.&#8221;</p>
<p>Whether it will be the big rival of Cisco, I don&#8217;t know. Only time will tell&#8230; but I have high hopes.  As long as the Vyatta team focuses on the feature request of the community, and continues to put out a great product, I don&#8217;t see why someday they might have a large portion of the marketshare.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://bahjons.com/stuff/vyatta-a-rival-of-cisco/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
