<?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>Carlos&#039; Corner &#187; routing</title>
	<atom:link href="http://cars.lostroncos.org/tag/routing/feed/" rel="self" type="application/rss+xml" />
	<link>http://cars.lostroncos.org</link>
	<description>The tired geek-dad in the corner</description>
	<lastBuildDate>Wed, 12 May 2010 19:46:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simulating a more interesting environment with Vyatta and VMware ESXi &#8211; pt 2</title>
		<link>http://cars.lostroncos.org/2010/02/18/a-more-interesting-environment-with-vyatta-and-vmware-pt2/</link>
		<comments>http://cars.lostroncos.org/2010/02/18/a-more-interesting-environment-with-vyatta-and-vmware-pt2/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 22:37:37 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[vyatta]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/?p=343</guid>
		<description><![CDATA[<p>In an earlier post I went through the process of coming up with a solution to be able to test an Exchange 2003 to Exchange 2010 migration using VMs. In order to simulate a multi-site AD environment I wanted to use Vyatta based routers to create my network infrastructure. In this post I&#8217;ll actually walk [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cars.lostroncos.org/2010/02/17/a-more-interesting-environment-with-vyatta-and-vmware/">In an earlier post</a> I went through the process of coming up with a solution to be able to test an Exchange 2003 to Exchange 2010 migration using VMs. In order to simulate a multi-site AD environment I wanted to use Vyatta based routers to create my network infrastructure. In this post I&#8217;ll actually walk through the process of setting up the ESX and theinternal router. In the next post(s) I&#8217;ll go into configuring the DMZ and internet routers and firewalls. As a reminder the environment I want to set up will look like this&#8230;</p>
<p><a rel="lightbox[100]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga8.png"><img class="alignnone size-medium wp-image-299" title="Final Environment" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_0704_Simulatinga8-300x139.png" alt="Final Environment" width="300" height="139" /></a>.</p>
<p>In order to actually be able to implement this I first had to go configure the appropriate networking configuration on each of the ESXi hosts.</p>
<p>First I needed to create a virtual switch utilizing the NIC attached to the crossover cable. This is done by going to the &#8220;Configuration&#8221; tab for the ESX host within the vSphere Client.</p>
<p><a rel="lightbox[21]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part21.png"><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part21.png" alt="" width="535" height="176" /></a></p>
<p>Clicking the &#8220;Add Networking&#8221; option will walk one through the wizard to configure the new switch. I started by choosing &#8220;Virtual Machine&#8221; on the Connection Type Screen.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part22.png" alt="" /></p>
<p>On the next page I choose to create a new virtual switch and pick the appropriate physical NIC that will be used to communicate with the other host. (If I had the capacity to put all the VMs one one host I could create the vSwitch without having to specify a network adapter)</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part23.png" alt="" /></p>
<p>Then I created an initial Port Group and specified a VLAN ID for it. In this case for the Remote Site (192.168.3.X/24) I&#8217;m specifying VLAN ID 23.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part24.png" alt="" /></p>
<p>Once completed the new virtual switch should look similar to the one shown below.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part25.png" alt="" /></p>
<p>Now that the vSwitch has been created, I can add port groups for the other networks: DMZ (192.168.254.X), Internet (10.0.0.X) and HQ(192.168.2.X).  Each one of these should have a unique VLAN ID associated with it which is also used when these port groups get created on the second host.</p>
<p><span id="more-343"></span></p>
<p>In addition I need to add port groups for the network between the DMZ and Internet router (192.168.5.X), as well as the one between the internal router and the DMZ (192.168.4.X). Because I&#8217;ll put all three routers on the same host, these last two port groups need only exist on that one host.</p>
<p>When all is said and done there should be 6 port groups defined on the vSwitch on the host where I&#8217;ll put the routers and 4 port groups on the other host. Notice that the VLAN IDs for each network match up across the two switches.</p>
<p><a rel="lightbox[26]" href="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part26.png"><img title="Completed vSwitch Configs" src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part26.png" alt="" width="544" height="349" /></a></p>
<p>I initially tried this setup using an alpha version 6 of Vyatta but the routers felt a little slow to me (though I have no empirical evidence to back that up) so I went back to using version 5 LiveCDs for the routers as discussed in the earlier entry.</p>
<h2>Building the internal router</h2>
<p>I started by creating a custom VM for the internal or home router with 4 network adapters configured. I used the custom configuration because this VM won&#8217;t actually have a virtual hard disk. The four network adapters will be attached to my home LAN (lostroncos_01), the HQ Site Network, the Remote Site Network and the intranet to DMZ network. (Note: <a href="http://cars.lostroncos.org/2008/09/18/using-vyatta-with-vmware/">This post has a more detailed description</a> of the process I used to create Vyatta routers. )</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part27.png" alt="" /></p>
<p>After powering on the router and opening the VM console I like to enable the NIC on my home network and ssh so I can do the rest of the configuration via an ssh client such as Putty. Once the VM has initially been powered on, I can go back and look at the settings and determine the MAC address of the NIC attached to my home network (lostroncos_01) is 00:0c:29:76:e2:07. Upon logging into the VM console I can go into configure mode by entering the command &#8220;configure&#8221; and then get a list of the interfaces the router knows about by entering &#8220;show interfaces&#8221;.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part28.png" alt="" /><br />
The one I&#8217;m interested in initially configuring is eth0. I can tell because the MAC matches the one I took note of earlier. To configure it to use 192.168.1.254 as it&#8217;s address and enable ssh I can do the following:</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part29.png" alt="" /></p>
<p>Let&#8217;s look at these commands in a little more detail.</p>
<p>The  set interfaces command can take a wide variety of arguments. Here I&#8217;m specifying that I want to work on an ethernet interface. Other interface types include adsl, bonding, bridge, loopback, multilink, openvpn, serial, tunnel and wirelessmodem.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part210.png" alt="" /></p>
<p>Even after specifying the type as <strong><em>ethernet</em></strong> and the particular interface (eth0) I can still use one of several subcommands/options.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part211.png" alt="" /></p>
<p>Because I&#8217;m using VMs and a fairly generic setup I really only need to worry about the <strong><em>address</em></strong> option. So I specify the address and netmask notation by specifying the number of bits to use for the netmask (24).</p>
<p>The next command <strong><em>&#8220;set service ssh</em></strong>&#8221; simply enables the SSH server.</p>
<p>Now I&#8217;ve configured the interface and enabled SSH, but the settings haven&#8217;t been made active. That&#8217;s what the<strong><em> &#8220;commit&#8221;</em></strong> command does.</p>
<p>Executing the &#8220;<strong><em>show interfaces</em></strong>&#8221; command again I can see that the IP(v4) address is set for eth0 but not any of the other interfaces. Now I can use my ssh client to connect to the VM to finish the configuration. (One can also use the VMware console to perform all of the configuration steps, I just prefer an external SSH client).</p>
<p>After making sure the MAC addresses and networks match up the way I think they should, I can set the address for each of the other interfaces and commit the changes. Then I can exit the configuration mode by typing &#8220;<strong><em>exit</em></strong>&#8221; and save the configuration to the virtual floppy using the &#8220;<strong><em>init-floppy</em></strong>&#8221; command.  This then ensures that my configuration will survive reboots of the router.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part212.png" alt="" /></p>
<p>One of the other things than can be helpful to do is to use the &#8220;<strong><em>description</em></strong>&#8221; option with  set interfacse to provide a little more information when logged into the router.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part213.png" alt="" /></p>
<p>After doing this for each interface and then committing the changes I can see the descriptions when doing show interfaces from either the configure mode</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part214.png" alt="" /></p>
<p>Or from the actual router shell</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part215.png" alt="" /></p>
<p>Since I happen to  already have VMs on both the HQ and Remote networks I can verify basic connectivity from the router by pinging those VMs as well as my PC.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part216.png" alt="" /></p>
<p>The next trick is to validate that I can ping the HQ and Remote subnets from my physical PC. Since both of those subnets are directly connected to the router I don&#8217;t need to add any static routes on the router. However I do need to add a route on my PC to reach those subnets. Otherwise it&#8217;ll try to use the default gateway out to my ISP (as shown below) which doesn&#8217;t know anything about this lab environment.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part217.png" alt="" /></p>
<p>To reach the 192.168.[2,3,4] subnets I want to use the interface on rtr-home that&#8217;s attached to my home network (192.168.1.254). So using the &#8220;<strong><em>route</em></strong>&#8221; command from a command prompt on my Windows7 machine I can add the route to 192.168.4.X.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part218.png" alt="" /></p>
<p>The route command in this case takes a few arguments…</p>
<p style="margin-left: 27pt">#1 <strong><em>add </em></strong>tells route I&#8217;m adding a new one</p>
<p style="margin-left: 27pt">#2 Next I specify the destination, and since ultimately I&#8217;m trying to get to a subnet we&#8217;ll specify <strong><em>192.168.4.0</em></strong>.</p>
<p style="margin-left: 27pt">#3 &amp; #4 <strong><em>MASK </em></strong>says the next argument is the netmask relative to the destination</p>
<p style="margin-left: 27pt">#5 is the gateway for this destination, in this case the interface on my virtual router that&#8217;s attached to the home network.</p>
<p>Once that&#8217;s done I can then try to ping &amp; tracert the 192.168.4.2 interface on the router again.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part219.png" alt="" /><br />
<img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part220.png" alt="" /></p>
<p>Executing the <strong><em>&#8220;route print&#8221;</em></strong> command from the Command Prompt  I can see the entry for the 192.168.4.X network as I would expect.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part221.png" alt="" /></p>
<p>Now that this particular routing entry appears to be working properly I can re-run the route command with the <strong><em>-p</em></strong> option so that it&#8217;s persistent across reboots of my home PC.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part222.png" alt="" /><br />
Next I need to add routes for the 192.168.2.X and 192.168.3.X networks to the PC as well.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part223.png" alt="" /></p>
<p>At this point, I can try to do a traceroute from my PC to the VM on the HQ Site network that I was able to ping earlier from the router.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part224.png" alt="" /><br />
Because I&#8217;m occasionally paranoid, the next step for me was to connect to the console of the VMs on the HQ (shown below) and Remote (not shown) subnets and verify that I can ping machines on my home LAN across the internal router, rtr-home.</p>
<p><img src="http://cars.lostroncos.org/wp-content/uploads/2010/02/021810_2236_Part225.png" alt="" /></p>
<p>At this point my internal Vyatta router is routing traffic between subnets it is directly connected to (Home LAN, the HQ Site and Remote Site). Once the DMZ and Internet routers are set up some changes will need to be made on the internal router to get traffic to those non-connected subnets. I&#8217;ll go through that process in a subsequent post.</p>
<p>-crt</p>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2010/02/18/a-more-interesting-environment-with-vyatta-and-vmware-pt2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Vyatta with VMware</title>
		<link>http://cars.lostroncos.org/2008/09/18/using-vyatta-with-vmware/</link>
		<comments>http://cars.lostroncos.org/2008/09/18/using-vyatta-with-vmware/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 08:10:26 +0000</pubDate>
		<dc:creator>cars</dc:creator>
				<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[vyatta]]></category>

		<guid isPermaLink="false">http://cars.lostroncos.org/?p=94</guid>
		<description><![CDATA[<p style="margin-left: 1pt">[Note: I've started another series of posts using Vyatta in VMware for a more complex environment that starts with this one- crt (2/20/2010)]</p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt">After finally getting around to clearing space in the garage and getting an old Dell PowerEdge 2650 I&#8217;d acquired up and running with VMware ESXi I started [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-left: 1pt"><em>[Note: I've started another series of posts using Vyatta in VMware for a more complex environment that <a href="http://cars.lostroncos.org/2010/02/17/a-more-interesting-environment-with-vyatta-and-vmware/">starts with this one</a>- crt (2/20/2010)]</em></p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt">After finally getting around to clearing space in the garage and getting an old Dell PowerEdge 2650 I&#8217;d acquired up and running with VMware ESXi I started to think about what I&#8217;d need to do to set up a few tests/scenarios I wanted to play with. One of these includes the use of Read Only Domain Controllers in Windows Server 2008. Setting up a virtualized Domain Controller (DC) in VMware is easy enough, the trick was trying to figure out how to  simulate multiple IP subnets given that I only have one ESX box at the moment.</p>
<p style="margin-left: 1pt">At work I can do the whole assigning port groups and VLANs thing and let our physical routers do the routing.  For my home lab what I needed was some sort of virtual router that didn&#8217;t require 1) a bunch of work to configure, 2) lots of resources on my small host. That&#8217;s where Vyatta comes in.  In addition to their networking appliances they also provide a &#8220;Community Edition&#8221; of their software as either a Virtual Appliance (for VMware server it appears) or as a Live CD.</p>
<p style="margin-left: 1pt">I&#8217;ve chosen to use the Live CD for my particular lab scenario because it&#8217;s much smaller and since it&#8217;s based on an ISO image I can have multiple installations/configurations for just the cost of a virtual floppy image for each instance.</p>
<p style="margin-left: 1pt">Ultimately my goal is to get to a configuration resembling the following diagram all on one physical server:</p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/09/091808-0810-usingvyatta1.png" alt="" /><span style="font-family:Times New Roman; font-size:12pt"><br />
</span></p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt">In this post I&#8217;ll describe setting up Vyatta using the LiveCD image and validating that routing is happening.</p>
<p style="margin-left: 1pt"><span id="more-94"></span></p>
<p style="margin-left: 1pt">The first thing I had to do was create a second virtual switch (vSwitch1) on my ESX box for the second subnet. One could just as easily create port groups and  use VLANs on the first switch but I wanted to keep it really simple for now plus I think that conceptually this fits the model a little better.</p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/09/091808-0810-usingvyatta2.png" alt="" /><span style="font-family:Times New Roman; font-size:12pt"><br />
</span></p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt"><span style="font-size:16pt"><strong>Creating the second virtual switch<br />
</strong></span></p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt">The second virtual switch can be created by navigating to the server node in the Virtual infrastructure client. Then going to the Configuration tab. Select the Add Networking option. Choose the &#8220;Virtual machine&#8221; connection type. Click next. Choose &#8220;create a virtual switch&#8221; and uncheck the NIC (if applicable). Click next. Specify a network label. (in my case this is the virtual &#8220;remote site&#8221;). Click &#8220;Next&#8221; click Finish<span style="font-family:Times New Roman; font-size:12pt"><br />
</span></p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt"><img src="http://cars.lostroncos.org/wp-content/uploads/2008/09/091808-0810-usingvyatta3.png" alt="" /><span style="font-family:Times New Roman"><br />
</span></p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt"><span style="font-size:16pt"><strong>Creating the Vyatta VM.<br />
</strong></span></p>
<p style="margin-left: 1pt">I started by downloading the  Vyatta Live-CD image from <a href="http://www.vyatta.com/download/swdl.php">http://www.vyatta.com/download/swdl.php</a>.  Once I had a local copy of the ISO,  I uploaded it to the ESXi box.</p>
<p style="margin-left: 1pt">Actually creating the VM four our purposes consists of two parts: the initial creation, and then the creation of the floppy image to store the configuration. Because I prefer to keep the floppy image with the VM&#8217;s config files I have to perform that portion of the configuration after the VM (and it&#8217;s associated folder) is created.   Using your good friend the VMware Infrastructure Client here&#8217;s the first set of steps to follow, (<em>they&#8217;ll probably be fairly familiar with the slight change that we&#8217;re <strong>not going to add a hard disk</strong></em>).</p>
<p style="margin-left: 1pt">
<p style="margin-left: 28pt">Steps for Initial creation</p>
<p style="margin-left: 55pt">
<ol>
<li>File -&gt; New Virtual Machine</li>
<li>Custom Virtual Machine Configuration (Next)</li>
<li>Specify the Virtual Machine&#8217;s Name (Next)</li>
<li>Select the Datastore where you want to store the VM (Next)</li>
<li>Choose Linux for the guest Operating System  and  RHEL5-32bit as the version. (Next)</li>
<li>Select the number of virtual CPUs, I chose 1. (Next)</li>
<li>Specify the amount of memory 128 MB RAM</li>
<li>Specify the number of NICs. For my scenario I chose 2 and assigned one to each virtual switch (Next)</li>
<li>Pick a Scsi adapter type  the choice here doesn&#8217;t really matter since we won&#8217;t be adding a hard drive to this VM.(Next)</li>
<li>Choose &#8220;Do Not create a disk&#8221;. (Next)</li>
<li>Finish</li>
</ol>
<p>Now that the VM has been created we want to right click on it in the VIClient and choose &#8220;Edit Settings&#8221;</p>
<p style="margin-left: 28pt">
<p style="margin-left: 28pt">In the Virtual Machine Properties window go to the Hardware tab.</p>
<p style="margin-left: 28pt">Select the Floppy Drive.</p>
<ol>
<li>
<ol>
<li>Choose &#8220;Create new floppy image in datastore&#8221; as the Device Type</li>
<li>Click &#8220;Browse&#8221; and navigate to the directory in the datastore where you want to keep the floppy image.</li>
<li>Specify the name of the floppy image. (ex: vyatta-config) and click &#8220;OK.&#8221;</li>
<li>Ensure that the checkbox next to &#8220;Connect at power on&#8221; is checked,</li>
<li>Click Ok.</li>
</ol>
</li>
</ol>
<p style="margin-left: 28pt">Select the CD/DVD Drive</p>
<ol>
<li>
<ol>
<li>Choose Datastore ISO file as the Device Type.</li>
<li>Click Browse and navigate to where the ISO image is stored.</li>
<li>Set to connect at power on and click OK</li>
</ol>
</li>
</ol>
<p>You&#8217;re now ready to poweron the vm and begin the process of configuring it. Power it on via the VI client and connect to the console.  You can log in as &#8216;vyatta&#8217; with the password &#8216;vyatta&#8217;. The first thing you should do is make sure your VM sees both of the assigned NICs. This can be done by typing:  /sbin/ifconfig | grep -i ethernet. You should see two lines of output; one starting with &#8216;eth0&#8242; the other with &#8216;eth1&#8242;.</p>
<pre> 

vyatta@vyatta:/$ /sbin/ifconfig | grep -i ethernet

eth0      Link encap:Ethernet  HWaddr 00:0c:29:be:8e:2d

eth1      Link encap:Ethernet  HWaddr 00:0c:29:be:8e:37

vyatta@vyatta:/$</pre>
<p>To configure the router to match our diagram above we&#8217;re going to assign eth0 the IP address 192.168.1.10 and use a subnet mask of 255.255.255.0 (/24). The second NIC will be assigned the IP address 192.168.2.10.  To do this we&#8217;ll enter the four following commands.</p>
<p style="padding-left: 30px; ">configure</p>
<p style="padding-left: 30px; ">Set interfaces ethernet eth0 address 192.168.1.10/24</p>
<p style="padding-left: 30px; ">Set interfaces ethernet eth1 address 192.168.2.10/24</p>
<p style="padding-left: 30px; ">commit</p>
<p style="padding-left: 30px; ">exit</p>
<p>The first &#8216;configure&#8217; puts Vyatta into configuration mode where we can enter actual configuration commands. You might notice that the prompt changes from <strong><em>vyatta@vyatta:~$</em></strong> to <em><strong>vyatta@vyatta#.</strong></em> The second command assigns an IP address to the interface eth0, while the third does the same for eth1. The fourth command &#8220;commit&#8221; actually commits the changes so that they&#8217;re in use in the running config. The last command exits the configuration mode and you&#8217;ll notice that the prompt has changed back as well</p>
<pre> yatta@vyatta:~$ configure
[edit]
vyatta@vyatta# set interfaces ethernet eth0 address 192.168.1.10/24
[edit]
vyatta@vyatta# set interfaces ethernet eth1 address 192.168.2.10/24
[edit]
vyatta@vyatta# commit
[edit]
vyatta@vyatta# exit
exit
vyatta@vyatta:~$</pre>
<p style="margin-left: 55pt; padding-left: 30px; ">
<p style="margin-left: 1pt">To validate that this is now the running configuration you can type: show configuration</p>
<p style="margin-left: 1pt">
<p style="margin-left: 1pt">Now to ensure that this configuration sticks with the VM between reboots we need to initialize the attached floppy by entering &#8216;init-floppy&#8217; This will cause the VM to (re)format the floppy and write the configuration to the floppy.</p>
<pre>vyatta@vyatta:/$ init-floppy

This will erase all data on floppy /dev/fd0.

Your configuration was saved in: /media/floppy/config/config.boot

vyatta@vyatta:/$

<img src="http://cars.lostroncos.org/wp-content/uploads/2008/09/091808-0810-usingvyatta5.png" alt="" /></pre>
<p style="margin-left: 1pt">To validate that the configuration has been properly saved to the floppy and will be automatically available and in use upon reboot you can reboot the VM by typing &#8220;reboot&#8221; and waiting for the VM to reboot. Upon logging back in you can again run the &#8217;show configuration&#8217; command to see if the config has been kept through the reboot.</p>
<p style="margin-left: 27pt">
<h2><strong> How do I know routing is working? </strong></h2>
<p>Now that the router has been set up with an interface on each of your virtual switches/subnets you need to verify that it will actually route packets between the two subnets. One way to do this is to create two VMs, one on each virtual switch configured to use the appropriate router interface as its default router.  That can be a bunch of work just to test the routing depending on what kind of guest you use. Another option which I used to do my intital testing was to create two more VMs using the Vyatta LiveCD.  Simply by entering a few commands I can quickly have a configured VM on each subnet that I can use to ping back and forth with.  For the VM on the 192.168.1 subnet I could enter the following commands to configure the new VM.</p>
<pre>configure
set interfaces eth0 address 192.168.1.11/24
set system gateway-address 192.168.1.1
commit
exit</pre>
<h2>Enabling SSH</h2>
<p>I also like to enable ssh access for the vyatta router so I can use Putty from my Windows box to administer the VM and not have to use the VI Client console. That can be done by entering:</p>
<pre>configure
set service ssh
commit
exit</pre>
<h2>Saving your configuration</h2>
<p>Again to ensure that this is kept in the config through reboots you need to execute the &#8216;init-floppy&#8217; command.</p>
]]></content:encoded>
			<wfw:commentRss>http://cars.lostroncos.org/2008/09/18/using-vyatta-with-vmware/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
