<?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>Admins Goodies &#187; vlan</title>
	<atom:link href="http://adminsgoodies.com/tag/vlan/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminsgoodies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 17 May 2013 16:34:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>VLAN security compared to DMZ</title>
		<link>http://adminsgoodies.com/vlan-security-compared-to-dmz/</link>
		<comments>http://adminsgoodies.com/vlan-security-compared-to-dmz/#comments</comments>
		<pubDate>Wed, 26 Dec 2012 16:37:53 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[dmz]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/vlan-security-compared-to-dmz/</guid>
		<description><![CDATA[I found this question very illuminating about DMZs and when to place a server in one. We&#8217;re re-organizing our internal company network (keeping the same external IPs and domains), our mainly Windows servers (we use WinAD heavily) will be kept on the LAN with firewalls and port forwarding to direct external traffic. What are the security (dis)advantages setting a server (example: email) up on a different VLAN to the rest of the internal network rather [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I found <a href="http://serverfault.com/questions/241787/placing-a-server-in-the-dmz-vs-opening-firewall-ports">this question</a> very illuminating about DMZs and when to place a server in one.</p>
<p>We&#8217;re re-organizing our internal company network (keeping the same external IPs and domains), our <em>mainly</em> Windows servers (we use WinAD heavily) will be kept on the LAN with firewalls and port forwarding to direct external traffic.</p>
<p>What are the security (dis)advantages setting a server (example: email) up on a different VLAN  to the rest of the internal network rather than inside a DMZ?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/139468/steb" target="_blank">SteB</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>That&#8217;s a bit of an apples and oranges comparison.  A DMZ is a separate network segment for systems with a greater risk of compromise; a vlan is a mechanism for achieving logical separation between different logical networks on the same physical network.</p>
<p>The comparison you probably want to make instead is this one:  <strong>Should I implement my DMZ through physical separation by using separate network infrastructure, or through logical separation on the same network infrastructure?</strong></p>
<hr />
<p>With physical separation, the main barrier is cost; you&#8217;ll be investing in dedicated network equipment for what sounds like a small number of DMZ systems.  There&#8217;s also extra management time involved in setting up and maintaining that infrastructure.</p>
<p>With vlan separation, you&#8217;ll be essentially building the same logical infrastructure as with the physical separation; a dedicated vlan with its own subnet, the device doing the routing between the subnets will apply access controls, etc.</p>
<p>However, the concern is security; sharing the same physical infrastructure increases the number of potential attack surfaces for an attacker who has compromised a DMZ device to try to access the non-DMZ network.</p>
<p>When using just the logical separation, vlan hopping attacks, as well as direct remote exploits against the network devices accessible to the DMZ (but serving both networks) are potential risks, as well as a greater risk of a misconfiguration in a single device compromising the barrier between the networks.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/72586/shane-madden" target="_blank">Shane Madden</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/460849/vlan-security-compared-to-dmz" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/vlan-security-compared-to-dmz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Router and Switch VLAN Configuration for Isolated Network</title>
		<link>http://adminsgoodies.com/router-and-switch-vlan-configuration-for-isolated-network/</link>
		<comments>http://adminsgoodies.com/router-and-switch-vlan-configuration-for-isolated-network/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 17:35:47 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[netgear]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/router-and-switch-vlan-configuration-for-isolated-network/</guid>
		<description><![CDATA[I haven&#8217;t worked with VLANs much in the past and I was hoping if I could get a good explanation of what I need to setup for this to work. I have a Netgear WNR2000v2 router and a Netgear GS108T smart switch currently in my network. The fourth port on the router connects to port one on the switch. I would like to be able to isolated port 8 on the switch for use as [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I haven&#8217;t worked with VLANs much in the past and I was hoping if I could get a good explanation of what I need to setup for this to work.</p>
<p>I have a Netgear WNR2000v2 router and a Netgear GS108T smart switch currently in my network. The fourth port on the router connects to port one on the switch. I would like to be able to isolated port 8 on the switch for use as a &#8220;guest port&#8221; when I bring home malware infested PCs for repair. I figured the VLAN capabilities of the GS108T would be able to do this for me, but I think I have a misunderstanding of how the VLAN actually works.</p>
<p>Port 8 needs internet access but should not be able to communicate with the rest of the PCs on the home network. The subnet for the home network is 192.168.1.0/24 and I would like the guest PC to have A) 192.168.1.64 or B) 192.168.2.2. I am reading a lot of stuff about port trunking and VLAN membership, but I am confused as to which setup needs to be in place to make this work.</p>
<p>Any help is greatly appreciated! Let me know if there is more information I need to provide. Definitely looking to learn something from this project.</p>
<p>Thanks!</p>
<div class="author">Asked by <a href="http://serverfault.com/users/102062/ben" target="_blank">Ben</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>This has been answered many times here, but I need practice so I&#8217;ll have another go at it. </p>
<p>VLANs themselves are pretty easy to understand. Basically, what you are doing is carving up a switch into one or more logical groupings of ports. As an example, let&#8217;s take an 8-port switch and assign ports 1-4 to VLAN10, and ports 5-8 to VLAN20. </p>
<p>Devices plugged into ports 1-4 can all communicate to each other using like networking configuration. So&#8230; 192.168.1.1 which is part of network 192.168.1.0/24 can talk to any IP 192.168.1.1 through 192.168.1.254 as long as those devices are on those ports. If you connected 192.168.1.2/24 to port 5, a device on port 1 would not see that traffic because it is on a different network segment. It would be no different than if you had connected the devices to two entirely separate physical switches.</p>
<p>So, moving forward, think of each VLAN as being a separate switch and with each VLAN should come a different subnet configuration. So&#8230; VLAN10 could be 192.168.1.0/24, and devices on VLAN20 could be 192.168.2.0/24. If you overlapped, you might as well just put everything on the same VLAN.</p>
<p>To communicate BETWEEN two VLANs (that can and should be on different subnets), you need a router. Layer 3 capable switches allow for this to be done right on the switch.</p>
<p>However, you have a problem. A consumer grade router like the Netgear is probably not going to support routing more than 2 networks together unless you use DDWRT on it. This is because it&#8217;s expecting to be connected to a WAN network, and a LAN network, and perhaps maybe a wireless network but they usually just bridge this to the LAN segment. </p>
<p>You need the router to route between two separate LAN segments, as well as perform NAT to the WAN, but it probably doesn&#8217;t support that.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/50458/spacemanspiff" target="_blank">SpacemanSpiff</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/334627/router-and-switch-vlan-configuration-for-isolated-network" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/router-and-switch-vlan-configuration-for-isolated-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHCP for Multiple Subnets</title>
		<link>http://adminsgoodies.com/dhcp-for-multiple-subnets/</link>
		<comments>http://adminsgoodies.com/dhcp-for-multiple-subnets/#comments</comments>
		<pubDate>Sat, 03 Nov 2012 16:36:02 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[sonicwall]]></category>
		<category><![CDATA[subnet]]></category>
		<category><![CDATA[vlan]]></category>
		<category><![CDATA[windows-server-2008-r2]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/dhcp-for-multiple-subnets/</guid>
		<description><![CDATA[So this is the current setup &#8211; essentially I would like to get my DHCP server, serving DHCP requests for two seperate subnets. Netgear DG834G acting as a modem connected to a Sonicwall Pro 2040. X0 - LAN - 192.168.1.0/24 X1 - WAN - &#60;WAN-IP&#62; X2 - WLAN - 192.168.10.0/24 At the moment, I have a 2008R2 server with DHCP installed, with an IP address on the 192.168.1.0/24 range handling DHCP fine for this subnet. [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>So this is the current setup &#8211; essentially I would like to get my DHCP server, serving DHCP requests for two seperate subnets.</p>
<p>Netgear DG834G acting as a modem connected to a Sonicwall Pro 2040.</p>
<p><code>X0 - LAN - 192.168.1.0/24</code></p>
<p><code>X1 - WAN - &lt;WAN-IP&gt;</code></p>
<p><code>X2 - WLAN - 192.168.10.0/24</code></p>
<p>At the moment, I have a 2008R2 server with DHCP installed, with an IP address on the 192.168.1.0/24 range handling DHCP fine for this subnet. </p>
<p>The Sonicwall is configured correctly &#8211; anything connected to the WLAN has Full Allow to anything in the LAN, and vice versa but it will not lease an IP from my Server. </p>
<p>I&#8217;ve also added another IP address to the server, so the physical NIC now has two IP&#8217;s:</p>
<p><code>192.168.1.2</code> and <code>192.168.10.2</code> with a DHCP scope configured for each.</p>
<p>Still no luck!</p>
<p>Any ideas?</p>
<p>Thanks!</p>
<div class="author">Asked by <a href="http://serverfault.com/users/124156/thed" target="_blank">TheD</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>The initial steps in a DHCP client communicating with a DHCP server uses broadcast messages (to the physical layer broadcast address of FF-FF-FF-FF-FF-FF). Because these messages are broadcasts they are typically blocked/dropped at the network partition (a firewall, a layer 3 switch or a router that separates the client network from the server network). In order for DHCP clients on a network that&#8217;s different from the server network to communicate with the DHCP server an intermediate host on the client network (usually the router, layer 3 switch or firewall) needs to act as a relay for these broadcast messages. The DHCP relay agent relays the client broadcast messages on behalf of the client to the server as unicast messages. The DHCP server then uses information in these unicast messages to determine what layer 3 network the client is on and assigns an ip address from the DHCP scope configured for that network.</p>
<p>So, long story short, here&#8217;s what you need to do:</p>
<ol>
<li>
<p>Remove the additional ip address from the server.</p>
</li>
<li>
<p>Configure a DHCP scope for the WLAN network.</p>
</li>
<li>
<p>Configure the Sonicwall to act as a DHCP relay agent.</p>
</li>
</ol>
<div class="author">Answered by <a href="http://serverfault.com/users/19152/joeqwerty" target="_blank">joeqwerty</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/444956/dhcp-for-multiple-subnets" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/dhcp-for-multiple-subnets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerConnect 2848 , vlan configuration with AP</title>
		<link>http://adminsgoodies.com/powerconnect-2848-vlan-configuration-with-ap/</link>
		<comments>http://adminsgoodies.com/powerconnect-2848-vlan-configuration-with-ap/#comments</comments>
		<pubDate>Tue, 02 Oct 2012 16:33:59 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/powerconnect-2848-vlan-configuration-with-ap/</guid>
		<description><![CDATA[Good day, I need to configure two vlan on an AP connected with a Dell PowerConnect 2848. The first one is up and running (let&#8217;s say vlan x) , the second one is a completely different network (vlan y) , provided by a Gateway-DHCP wich i have no access, directely Patched (via patch panel) at a secondo AP device. So i cannot just plug this Gateway device on my switch without tagging traffic before, for [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Good day,</p>
<p>I need to configure two vlan on an AP connected with a Dell PowerConnect 2848.<br />
The first one is up and running (let&#8217;s say vlan x) , the second one is a completely different network (vlan y) , provided by a Gateway-DHCP wich i have no access, directely Patched (via patch panel) at a secondo AP device.</p>
<p>So i cannot just plug this Gateway device on my switch without tagging traffic before, for DHCP collion .<br />
I have to solve this problem.<br />
I was thinking about tagging the traffic at the port wich I will connect the gateway device with vlan y and then set as trunk (vlanx+y) the AP port. In this way I hope to limit the vlan y traffic ONLY for the ports I selected avoiding the spread of unwanted dhcp calls.<br />
But all other ports are Unassigned , so I am not sure they won&#8217;t forward dhcp (vlan y) traffic.</p>
<p>I cannot change the Unassigned state for the vlan x ports cause vlanx is native. </p>
<div class="author">Asked by <a href="http://serverfault.com/users/139290/francesco" target="_blank">Francesco</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I&#8217;m not 100% sure I understand the question, but it sounds like you have an existing DHCP server/network setup on the native VLAN (&#8220;x&#8221;) on the PowerConnect and you&#8217;d like to create another VLAN (&#8220;y&#8221;) for strictly wireless use; on VLAN &#8220;y&#8221; I&#8217;m assuming you have a router that&#8217;s running a DHCP server for your wireless clients and will also be the wireless client&#8217;s gateway.</p>
<p>I&#8217;m not going to get into syntax/UI commands, but typically there will be a SSID-to-VLAN mapping where you&#8217;ll want to assign a VLAN (&#8220;y&#8221;) to the SSID in the AP&#8217;s management user interface (UI).  This will tag VLAN &#8220;y&#8221; traffic that leaves the uplink (or &#8220;LAN&#8221; port) on your AP for any wireless station (client) traffic associated with that SSID.  </p>
<p>Usually you can also tag the non-wireless traffic (for instance, access to the Web/SSH/telnet management UI of the AP) if you&#8217;d like, or leave it untagged, which will put the AP&#8217;s management interface onto the default/member VLAN that the port belongs to on the switch.</p>
<p>For the switch, you&#8217;ll want to enable tagging for VLAN &#8220;y&#8221; for the port where your AP will be plugged into.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/13008/gravyface" target="_blank">gravyface</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/433967/powerconnect-2848-vlan-configuration-with-ap" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/powerconnect-2848-vlan-configuration-with-ap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up VLAN network</title>
		<link>http://adminsgoodies.com/how-to-set-up-vlan-network/</link>
		<comments>http://adminsgoodies.com/how-to-set-up-vlan-network/#comments</comments>
		<pubDate>Fri, 21 Sep 2012 16:33:32 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-to-set-up-vlan-network/</guid>
		<description><![CDATA[I&#8217;m changing my network from having every device on flat network to using VLans. My problem is that we already have a lot of devices on this network(192.168.20.0/24). From theory, I read that each Vlan has to be a different subnet and then I need to configure virtual interfaces on my Cisco router to cater for inter vlan routing. 1) How can I segment this network with minimum down time on the devices already on [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m changing my network from having every device on flat network to using VLans. My problem is that we already have a lot of devices on this network(192.168.20.0/24). From theory, I read that each Vlan has to be a different subnet and then I need to configure virtual interfaces on my Cisco router to cater for inter vlan routing.</p>
<p>1) How can I segment this network with minimum down time on the devices already on the network?  </p>
<p>2) Can I just create Vlans and leave all these Vlans in the same layer 3 network so that they can go out of the network (I am not too concerned about inter-Vlan routing) or I have to create subnets which means reconfiguring the existing devices (something I do not want).</p>
<div class="author">Asked by <a href="http://serverfault.com/users/125623/paddington" target="_blank">Paddington</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>As Joeqwerty already noted, you&#8217;re approaching this with an inadequate fundamental understanding, combined with vaguely-defined goals.  You are setting yourself up for failure, downtime, and security holes.  Rather than just answering your questions as asked I&#8217;m going to indulge in a little &#8220;vLAN 101&#8243; tutorial which might be a bit more useful for you.</p>
<hr />
<p>You seem to have a few fundamental misconceptions about vLAN segmentation and how it fits into network architecture, so let&#8217;s roll ALLLLLLL the way back to the beginning for a minute:  </p>
<p><strong>From a network architecture level you can take the very simplistic view that a vLAN is nothing more than a separate switch, not connected to any other switch (vLAN).</strong></p>
<p>If you look at vLANs in this way it becomes relatively clear how to use them: When you don&#8217;t want machines in <code>Group A</code> to be able to talk to machines in <code>Group B</code> you put them in separate vLANs, and force them to traverse a router (ideally one with firewall functionality) to talk to each other.<br />
Under nearly all circumstances it&#8217;s better (and easier) to do this by also putting the machines in different IP networks (subnets) &#8212; Machines within a vLAN are in the same subnet, and can chat amongst themselves as much as they want, but if they want to talk to someone outside their vLAN it&#8217;s also going to be outside their subnet, so they get handed off to their default gateway, which can handle the security concern of who can talk to whom under what circumstances.</p>
<p>So vLAN architecture in 11 easy steps:</p>
<ol>
<li>
<p>Figure out which machines form logical groups. These are your vLANs<br />
In a very simple environment this could be <code>Web Servers</code> and <code>Database Servers</code>.<br />
In more complex environments you may have lots of groups, and you may combine multiple groups in a single vLAN &#8212; This is an architecture decision you have to make.</p>
</li>
<li>
<p>Figure out an addressing scheme that suits your vLANs.<br />
If you&#8217;re supremely lucky every vLAN will fit into a /24 and you&#8217;ll be able to build a topology based around that.  If you aren&#8217;t that lucky figure out which vLANs need bigger (or smaller) blocks.  </p>
</li>
<li>
<p>Draw what you have done so far on paper.</p>
</li>
<li>
<p>Figure out which vLANs need to talk to each other.<br />
What ports/services should be open between vLANs/Networks?<br />
What other conditions need to exist for your environment to function?</p>
</li>
<li>
<p>Draw what you came up with on paper. Make sure it&#8217;s sane, then convert it into firewall/router policy.</p>
</li>
<li>
<p>Draft a firewall/router configuration.  Ideally play with it in a test environment.</p>
</li>
<li>
<p>Draw your switch on paper and map which ports will go to which vLANs.<br />
It&#8217;s helpful to physically group connections so that they&#8217;re in the same logical vLAN,<br />
but this isn&#8217;t strictly necessary.</p>
</li>
<li>
<p>Turn your switch drawing into a switch configuration.  Ideally play with it in a test environment.</p>
</li>
<li>
<p>Clean up your drawings on paper.  The logical drawing should look somewhat like this:<br />
<img src="http://i.stack.imgur.com/Oi72c.png" alt="Network Diagram"><br />
(The image has been shrunk to obscure stuff you don&#8217;t need to read)</p>
</li>
<li>
<p>Get someone else to look at your design.<br />
You can ask on Server Fault, but it&#8217;s better if someone familiar with your environment looks at it as they&#8217;re more likely to catch potential breakage.</p>
</li>
<li>
<p>Take a weekend and turn your logical design into a physical reality.<br />
(It should go without saying that you should have a rollback plan in case things go horribly wrong, but I&#8217;m saying it anyway.)</p>
</li>
</ol>
<p>(If you are <em>VERY</em> good you might be able to skip some of the &#8220;Draw it on paper&#8221; steps above, but I don&#8217;t recommend skipping that your first time.)</p>
<hr />
<p>Re: the two specific questions you asked:</p>
<blockquote>
<p>1)How can I segment this network with minimum down time on the devices already on the network?</p>
</blockquote>
<p>You can&#8217;t. Breaking your network into vLANs will require an outage window &#8211; you will have to reconfigure your switch, move machines into different logical networks, configure routing, probably move some cables around, etc. etc. etc.<br />
Plan for an outage starting at 5PM Friday and extending over a weekend, ESPECIALLY if this is your first time designing a properly segmented network &#8211; you will spend some time debugging things that break.</p>
<blockquote>
<p>2)Can I just create Vlans and leave all these Vlans in the same laye 3 network so that they can go out of the network (I am not not concerned about Vlan routing) or I have to create subnets which means reconfiguring the existing devices (something I do not want)</p>
</blockquote>
<p>Can you? Yes.<br />
Will it buy you anything in terms of security? Not really.<br />
Will it make the entire project 10 times harder? Absolutely.<br />
Should you design a network this way? <strong>NO.</strong></p>
<div class="author">Answered by <a href="http://serverfault.com/users/32986/voretaq7" target="_blank">voretaq7</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/430309/how-to-set-up-vlan-network" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-to-set-up-vlan-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Provide Internet access for different VLAN</title>
		<link>http://adminsgoodies.com/provide-internet-access-for-different-vlan/</link>
		<comments>http://adminsgoodies.com/provide-internet-access-for-different-vlan/#comments</comments>
		<pubDate>Sun, 26 Aug 2012 16:33:36 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/provide-internet-access-for-different-vlan/</guid>
		<description><![CDATA[I have several managed switches at work that connect all computer within our office to the ADSL modem. However I would like enforce a VLAN policy to isolate traffic within the network. Through my previous studies of the CCNA certification it has come clear to me that I would require a router. The router would facilitate routing traffic back and forth between the different VLANs and the ADSL modem. However I have a limited budget [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have several managed switches at work that connect all computer within our office to the ADSL modem. However I would like enforce a VLAN policy to isolate traffic within the network. Through my previous studies of the CCNA certification it has come clear to me that I would require a router. The router would facilitate routing traffic back and forth between the different VLANs and the ADSL modem.</p>
<p>However I have a limited budget and was thinking to replace the router with a switch running a customized version of Linux or *BSD distro. Would this be viable? If anyone could provide me with guidelines for getting it set up I would be very grateful.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/133506/nocturnal" target="_blank">Nocturnal</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Grab a workstation with a couple of NICs on it (or buy an <a href="http://store.netgate.com/ALIX-Kits-C86.aspx" rel="nofollow">ALIX</a> device) and setup a <a href="http://blog.stefcho.eu/?p=695" rel="nofollow">router-on-a-stick</a>, or depending on how many VLANs you have, dedicate an interface for each one.  If you&#8217;re doing a lot of inter-VLAN routing (i.e. workstations on VLAN 1, servers on VLAN 2) then you&#8217;ll want a layer 3 switch or a real router (or one of <a href="http://www.lannerinc.com/x86_Network_Appliances/x86_Desktop_Appliances/FW-7535" rel="nofollow">these</a>).</p>
<div class="author">Answered by <a href="http://serverfault.com/users/13008/gravyface" target="_blank">gravyface</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/421263/provide-internet-access-for-different-vlan" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/provide-internet-access-for-different-vlan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring vlans on Cisco SG200 series switch with Ubuntu server</title>
		<link>http://adminsgoodies.com/configuring-vlans-on-cisco-sg200-series-switch-with-ubuntu-server/</link>
		<comments>http://adminsgoodies.com/configuring-vlans-on-cisco-sg200-series-switch-with-ubuntu-server/#comments</comments>
		<pubDate>Sat, 30 Jun 2012 16:33:29 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ubuntu-10.04]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/configuring-vlans-on-cisco-sg200-series-switch-with-ubuntu-server/</guid>
		<description><![CDATA[I created a vlan on Ubuntu with vconfig tool with 21 as id and eth1 as the host port. I connected eth1 to one of the ports on the swtich (GE23) as all ports trunk by default. In the webgui I created a vlan named test with the id 21 and I made GE2 are port as an access port. In port to vlan mapping I selected vlan 21 and added it port GE2 by [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I created a vlan on Ubuntu with vconfig tool with 21 as id and eth1 as the host port. I connected eth1 to one of the ports on the swtich (GE23) as all ports trunk by default. In the webgui I created a vlan named test with the id 21 and I made GE2 are port as an access port. In port to vlan mapping I selected vlan 21 and added it port GE2 by selecting untagged option. I have assigned 192.168.1.1/24 as the ip of eth1.21 on Ubuntu. If I connect another cleint pc to GE2 port with a ip of 192.168.1.2/24 I cannot ping the server ip (192.168.1.1/24). Ping from server to client also does not work. I inspected packets that are sent out eth1 on the server and I could see the vlan 21 tag. And I connect the other end of the cable to a different Linux pc and inspected the packets but no vlan tags can be seen. What could be preventing me from getting vlans working?</p>
<p><strong>Edit 1</strong> screenshots:</p>
<p><img src="http://i.stack.imgur.com/WSjCx.png" alt="Interface Settings"></p>
<p><img src="http://i.stack.imgur.com/THqjn.png" alt="Port to vlan mapping"></p>
<p><img src="http://i.stack.imgur.com/frHYD.png" alt="Port to vlan membership"></p>
<div class="author">Asked by <a href="http://serverfault.com/users/59291/nixnotwin" target="_blank">nixnotwin</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>After my initial comments and Mike&#8217;s suggestion (see above) I did a bit of fact checking. (I was going from memory.)<br />
We have several dozen of SG200 switches lying around here. They have been causing issues in the past.  </p>
<p>We found the following:<br />
- Upgrade the SG200 to the latest firmware.<br />
- For any port on the switch that you need to have as Trunk: Set it to Access and then back to Trunk.<br />
  Even though the web-gui shows &#8220;Trunk&#8221; the port will initially (or after factory-default reset) be in &#8220;General&#8221;.<br />
This is an auto-negotiate mode that often only works properly if the other end of the connection is also a Cisco switch in &#8220;General&#8221; mode.<br />
The setting to Access and then back to Trunk will insure it is really working as Trunk.</p>
<p>Disabling spanning-tree (STP) on the port is in this case probably also a good idea as the server is certainly not going to participate in STP elections. </p>
<div class="author">Answered by <a href="http://serverfault.com/users/70964/tonny" target="_blank">Tonny</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/403017/configuring-vlans-on-cisco-sg200-series-switch-with-ubuntu-server" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/configuring-vlans-on-cisco-sg200-series-switch-with-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regarding the VLANs and their uses</title>
		<link>http://adminsgoodies.com/regarding-the-vlans-and-their-uses/</link>
		<comments>http://adminsgoodies.com/regarding-the-vlans-and-their-uses/#comments</comments>
		<pubDate>Sun, 24 Jun 2012 16:33:20 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/regarding-the-vlans-and-their-uses/</guid>
		<description><![CDATA[What are virtual LANS. And why we need them? As far as i have understood them when switches are been used to create broadcast domain between two different LANS. Then a switch could be used to connect both of the LANS. So they share the same broadcast domain. Because a switch forwards packets which are broadcasted to all of its interfaces. Please elaborate more. Many many thanx in advance Asked by Luv Virtual LANs are [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<pre><code>What are virtual LANS. And why we need them?
</code></pre>
<p>As far as i have understood them when switches are been used to create broadcast domain between two different LANS. Then a switch could be used to connect both of the LANS.<br />
So they share the same broadcast domain. Because a switch forwards packets which are broadcasted to all of its interfaces.</p>
<p>Please elaborate more.<br />
Many many thanx in advance</p>
<div class="author">Asked by <a href="http://serverfault.com/users/125821/luv" target="_blank">Luv</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Virtual LANs are there to  secure and segregate networks and overall make the network more manageable.</p>
<p><strong>Manageability</strong> </p>
<p>With a VLAN you can create a logical broadcast domain. This means the physical layout doesn&#8217;t necessarily need to be the logical. For instance you might virtually have 3 servers attached in one VLAN. This would seem as if they were on the same switch. But physically they can be on 3 different switches. </p>
<p>This means that if you ever need to move the machines around physically, the logical design still can stay the same. This means you need to stress your routers less since there is no special route traversing necessary to get to the other machine.  </p>
<p><strong>secure and segregate networks</strong></p>
<p>VLANs provide a certain level of security. If you have one switch to which all your machines are connected, but you do not want the other machines to reach each other, you can just use VLAN&#8217;s to devide the network. In practice this might be that you use ports 1-5 for your critical server machines, ports 6-10 for employee PC&#8217;s and 11-15 for a guest network. Each of them are put in a different VLAN and can&#8217;t reach eachother even though they are physically on the same device. </p>
<p><strong>Inter VLAN routing</strong></p>
<p>Now what if you want to let some VLAN&#8217;s talk to each other? Well then you need inter-vlan routing. This means you add a router (or use a level 3 switch) to provide this functionality. A common practice is to use a router on a stick:</p>
<p><img src="http://i.stack.imgur.com/ewnq6.jpg" alt="enter image description here"></p>
<p>You can see a trunk as an uplink, it can run between multiple switches/routers. A trunk is a special line over which a number of VLAN&#8217;s run. You can have multiple trunks on once device.</p>
<p>(I come from a cisco background)</p>
<div class="author">Answered by <a href="http://serverfault.com/users/86280/lucas-kauffman" target="_blank">Lucas Kauffman</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/401740/regarding-the-vlans-and-their-uses" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/regarding-the-vlans-and-their-uses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Juniper EX3300 as a router</title>
		<link>http://adminsgoodies.com/using-juniper-ex3300-as-a-router/</link>
		<comments>http://adminsgoodies.com/using-juniper-ex3300-as-a-router/#comments</comments>
		<pubDate>Sun, 24 Jun 2012 16:33:04 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[juniper]]></category>
		<category><![CDATA[junos]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/using-juniper-ex3300-as-a-router/</guid>
		<description><![CDATA[So I have a Juniper EX3300 Switch. One of its uplink ports (ge-0/1/0) is connected to my ISP&#8217;s router. ISP router&#8217;s port address is xx.xx.xx.109. My switch&#8217;s IP address is xx.xx.xx.110. From the switch, I can ping to xx.xx.xx.109 and any other IP in the world. I mean its connected to the Internet. I connected the port eth0 of a computer (running Ubuntu) to the port ge-0/0/0 of the switch (which in the same VLAN [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>So I have a Juniper EX3300 Switch. One of its uplink ports (ge-0/1/0) is connected to my ISP&#8217;s router. ISP router&#8217;s port address is xx.xx.xx.109. My switch&#8217;s IP address is xx.xx.xx.110.</p>
<p>From the switch, I can ping to xx.xx.xx.109 and any other IP in the world. I mean its connected to the Internet.</p>
<p>I connected the port eth0 of a computer (running Ubuntu) to the port ge-0/0/0 of the switch (which in the same VLAN as ge-0/1/0). I configured the port eth0 as follows:</p>
<pre><code>iface eth0 inet static
    address yy.yy.yy.208
    netmask 255.255.255.240
    gateway xx.xx.xx.110
</code></pre>
<p>yy.yy.yy.208 is assigned to me by the ISP. So, now I can ping to the switch (xx.xx.xx.110) from this computer. But I can not ping to either xx.xx.xx.109 (ISP router) or any other IP.</p>
<p>I want this computer to be connected to the Internet. What am I doing wrong?</p>
<p>Here are some of the configurations on my switch:</p>
<pre><code>interfaces {
    ge-0/0/0 {
        unit 0 {
            family ethernet-switching;
        }
    }
    .
    .
    .
    ge-0/1/0 {
        ether-options {
            no-auto-negotiation;
            link-mode full-duplex;
            speed {
                1g;
            }
        }
        unit 0 {
            family ethernet-switching {
                port-mode access;
            }
        }
    }
    .
    .
    .
    vlan {
        unit 0 {
            family inet {
                address 10.0.1.1/24;
            }
        }
        unit 1 {
            family inet {
                address xx.xx.xx.110/30;
            }
        }
    }
}
.
.
.
routing-options {
    static {
        route 0.0.0.0/0 {
            next-hop xx.xx.xx.109;
            retain;
        }
    }
}
vlans {
    Cogent {
        vlan-id 3;
        interface {
            ge-0/1/0.0;
            ge-0/0/0.0;
            ge-0/0/1.0;
            ge-0/0/2.0;
            ge-0/0/3.0;
        }
        l3-interface vlan.1;
    }
    TFLan {
        vlan-id 2;
        interface {
            ge-0/0/5.0;
            ge-0/0/6.0;
            ge-0/0/7.0;
            ge-0/0/8.0;
            ge-0/0/9.0;
            ge-0/0/10.0;
            ge-0/0/11.0;
            ge-0/0/12.0;
            ge-0/0/13.0;
            ge-0/0/14.0;
            ge-0/0/15.0;
            ge-0/0/16.0;
            ge-0/0/17.0;
            ge-0/0/18.0;
            ge-0/0/19.0;
            ge-0/0/20.0;
            ge-0/0/21.0;
            ge-0/0/22.0;
            ge-0/0/23.0;
            ge-0/0/4.0;
        }
        l3-interface vlan.0;
    }
}
</code></pre>
<div class="author">Asked by <a href="http://serverfault.com/users/125704/richard-whitman" target="_blank">Richard Whitman</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<blockquote>
<p>I want this computer to be connected to the internet.  What am I doing wrong?</p>
</blockquote>
<p><strong>Summary info</strong></p>
<p>Recalling information from the discussion in <a href="http://serverfault.com/questions/401397/using-the-juniper-ex3300-switch-as-a-router">Using the Juniper EX3300 as a router</a>:</p>
<ul>
<li><code>ge-0/1/0</code> is assigned a public /30 address by Cogent.  For sake of illustration, we will call EX3300&#8242;s address on this subnet <code>192.0.2.109/30</code>.  Your default gateway is <code>192.0.2.110/30</code>.  From the configuration above, you have assigned <code>ge-0/1/0</code> to <code>vlan.1</code> using vlan-id 3.</li>
<li><code>ge-0/0/0</code> is also assigned a public IP address.  For the sake of argument, this subnet is <code>192.0.2.208/28</code>.  <code>ge-0/0/0</code>&#8216;s subnet is different than <code>ge-0/1/0</code>.  The interface addressing (and a few other things) need to be fixed.</li>
</ul>
<h2>List of items to fix</h2>
<ol>
<li>You can&#8217;t assign <code>192.0.2.208/28</code> to the Ubuntu server.  .208 is the subnet adddress, and .223 is the broadcast address.  Valid host addresses in this subnet range from <code>192.0.2.209</code> to <code>192.0.2.222</code> (it doesn&#8217;t matter that I&#8217;m using <a href="http://tools.ietf.org/html/rfc5737" rel="nofollow">RFC 5737 addresses</a> here, the subnet math works out the same).</li>
<li>You need <code>l3-interface vlan.1</code> for your /30 link to the Cogent router; however, you also have the Ubuntu machine in that same subnet on a /28. Now that we have established that the Ubuntu server is in a different subnet than <code>ge-0/1/0</code>, please follow standard internet engineering practices and <em>assign a different vlan to that subnet</em>.  Let&#8217;s call it <code>l3 interface vlan.100</code> with <code>vlan-id 100</code> on your EX3300. Assign <code>192.0.2.209/28</code> to your <code>vlan.100</code> on the EX3300 and use it as the default gateway for this new subnet.</li>
<li>Even if you assigned a valid host address to your Ubuntu server (see point 1., above), that server&#8217;s default gateway <em>must</em> be in the same subnet.  Assign <code>192.0.2.210/28</code> to the Ubuntu server and make the default gateway <code>192.0.2.209</code>.</li>
</ol>
<p><strong>Purely informational material</strong></p>
<p>FYI, We also said that you cannot use <a href="http://tools.ietf.org/html/rfc1918" rel="nofollow">private IP addresses (RFC 1918)</a> without <a href="http://tools.ietf.org/html/rfc3022" rel="nofollow"><code>NAT</code> (RFC 3022)</a>. I see that you have <code>10.0.1.1/24</code> assigned to <code>vlan.0</code>.  Anything in 10.0.0.0/8 is <a href="http://tools.ietf.org/html/rfc1918" rel="nofollow">RFC 1918</a> space.  If these devices need to access the internet, you will need some form of NAT.</p>
<p>May I suggest:</p>
<ul>
<li><a href="http://rads.stackoverflow.com/amzn/click/1587052024" rel="nofollow">a good book on internet routing</a>; it&#8217;s geared towards Cisco IOS, but the concepts are still very similar.</li>
<li><a href="http://rads.stackoverflow.com/amzn/click/0131876716" rel="nofollow">a good book on TCP/IP</a></li>
</ul>
<p>Best of luck to you in this endeavor.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/78702/mike-pennington" target="_blank">Mike Pennington</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/401670/using-juniper-ex3300-as-a-router" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/using-juniper-ex3300-as-a-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Isolate clients on same subnet?</title>
		<link>http://adminsgoodies.com/isolate-clients-on-same-subnet/</link>
		<comments>http://adminsgoodies.com/isolate-clients-on-same-subnet/#comments</comments>
		<pubDate>Sun, 03 Jun 2012 16:33:17 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[isolated-network]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/isolate-clients-on-same-subnet/</guid>
		<description><![CDATA[Given n (e.g. 200) clients in a /24 subnet and the following network structure: client 1 \ . \ . switch -- firewall . / client n / (in words: all clients connected to one switch and the switch connected to the firewall) Now by default, e.g. client 1 and client n can communicate directly using the switch, without any packets ever arriving the firewall. Therefore none of those packets could be filtered. However I [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Given n (e.g. 200) clients in a /24 subnet and the following network structure:</p>
<pre><code>client 1 \
.         \
.          switch -- firewall
.         / 
client n /
</code></pre>
<p>(in words: all clients connected to one switch and the switch connected to the firewall)</p>
<p>Now by default, e.g. client 1 and client n can communicate directly using the switch, without any packets ever arriving the firewall. Therefore none of those packets could be filtered. However I would like to filter the packets between the clients, therefore I want to disallow any direct communication between the clients. </p>
<p>I know this is possible using vlans, but then &#8211; according to my understanding &#8211; I would have to put all clients in their own network. However I don&#8217;t even have that much IP addresses: I have about 200 clients, only a /24 subnet and all clients shall have public ip addresses, therefore I can&#8217;t just create a private network for each of them (well, maybe using some NAT, but I&#8217;d like to avoid that). </p>
<p>So, is there any way to tell the switch: Forward all packets to the firewall, don&#8217;t allow direct communication between clients? Thanks for any hint!</p>
<div class="author">Asked by <a href="http://serverfault.com/users/81912/stefan-at-wpf" target="_blank">stefan.at.wpf</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>You can separate clients within a VLANM if your switch supports PVLAN (private VLAN) which can be configured to allow any host to talk to the firewall while being unable to communicate with any other device.  You can additionally configure your PVLAN to also allow communication amongst limited groups of servers.  </p>
<p>What sort of switch are you using?</p>
<div class="author">Answered by <a href="http://serverfault.com/users/121497/rnxrx" target="_blank">rnxrx</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/395099/isolate-clients-on-same-subnet" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/isolate-clients-on-same-subnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
