Skip to main content

How to vlan a school when you don't know anything about vlans......

A little over a year ago a network engineer came in to setup a captive webportal for out BYOD WiFi. Now this is nothing to do with BYOD directly, that's just what he was doing. He asked me if I'd like him to check the health of out network. I agreed to this and he plugged in his laptop into our network and fired up an application that I now know was WireShark.

About 15 minutes later, he pronounced out network to be 80% dead. This troubled me somewhat and the engineer spent the next hour or so explaining all that was wrong about our network. In brief, we had a 'flat' network - so all devices were on the same IP address range 192.168.x.x. This I leant was bad as when one devices wanted some information from another device, it sent the request to every devices on our network - some 600 odd devices. This is broadcast traffic and 80% of out network traffic was this.

The solution looked simple on a piece of paper that he wrote on. Segment the network into several different sections, vlans (virtual local area networks) which could talk to each other using a router. So devices on each vlan have their own IP address range and don't broadcast to the whole network. This results in better network performance and security. The engineer then suggested that his company could help us do this for some fairly eye watering sums of money!

We spent some time trying to forget the 80% dead network bit as everything was working OK. However, the pressure to have more BYOD devices and talk of a 1:1 Chromebook deployment made us think of moving away from the flat network. So I got a couple of old Netgear switches and watched a few YouTube videos on how to vlan them and started to experiment.

On of the difficult things I found was that the terminology that different switch manufacturers used varied quite a bit. However, here are a few key terms I came to know:

  • Trunk port - a port on a switch configured to carry more than one vlan. So a port might be configured to be tagged on vlan 10,20,30 etc (each vlan needs a number to identify it - this needs to be the same on all switches).
  • Untagged - the setting typically given to a port on the end of the line - so a client PC. A port might be configured as untagged vlan 10. 
So on a couple of switches I setup vlans (typically going to the vlan option on the switches web GUI) and clicking on 'add vlan'. Ports going to end users where set as untagged vlan x (x being the vlan you want them on) and ports connecting switches, tagged on all the vlans you want them to carry.

On the test switches this all worked fine and was fairly easy. The question was how to route between vlans and how to provide DHCP services to each vlan? The network engineer had suggested using a Layer 3 switch and a Windows DHCP server set with multiply DHCP scopes. I looked up the price of layer 3 switches and found them to be around £2000+. Bit more than we had to spend. I then remembered we where running a ClearOS gateway server and it has some spare network interfaces. I'd read that ClearOS could act as a router so thought to give it a go.

I essence, the ClearOS box runs ESXi 5.1 (the free version). It has 6 nics. One goes to the internet. One went to feed the flat network it's internet. The other 4 were unused. So in ESXi I add four new virtual nics to the ClearOS VM. In ClearOS, I assigned IP addresses on new IP ranges to each of these nics and enabled DHCP on each ones. A different range for each nic. This is pretty easy to do in the ClearOS web interface.

The physical nics where plugged into out core switch and each port set untagged to the vlan that each nic was to feed. So we ended up with 5 feeds into the network each on a different vlan. The ClearOS VM providing DHCP and routing between vlans. We also created a separate vlan for some boilers. So in total we now have 6 vlans, So they are:
  • Servers
  • Staff PCs
  • Student PCs
  • BYOD
  • Chromebooks
  • Boilers

May add a few more in time. It has meant buying some new switches and reconfiguring every switch. But it does work and has been done with minimal disruption in school time. Some PCs needed a reboot to pick up a new IP address - thats about it. 

This is a overview of what we did:


We use Aerohive APs and these had to be set so that each SSID ran on a different vlan.

So at the end of the day, we spend a little over a £1000 on new switches, did the work over 2 months, largely in term time. We have probably broken all sorts of networking rules, but it works and thats what counts I guess.

If someone tells you your network is 80% dead - don't despair - just watch a few YouTube videos on how to configure switches and away you go......

Wireshark now gives us less than 1% broadcast traffic.
 

Popular posts from this blog

Delete a specific email using GAM

If a user send an inappropriate email to a loads of people or get stung by some sort of email exploit you can quickly delete the email from all of the recipients using a GAM command.
Step 1 - get the email header Go into Google Vault and search for the offending user or someone known to have got the message.
Click show details and grab the email ID. This will be a long string of characters followed by @mail.gmail.com
Step 2 - find out who has the email Go into Google Vault and find the original message sent by the offending user. Look at the details to see who got it. Copy the list and dump it into a spreadsheet. Clean up to just a list of emails with a column header 'mail'. Save as a csv file.
Step 3 - delete messages with GAM Put your CSV file in your GAM folder - this e.g. assumes its called mail.csv
Run:
gam csv mail.csv gam user ~mail delete messages query rfc822msgid:MESSAGEIDHERE doit

The alternative nuke option is:
gam all users delete messages query rfc822msgid:MESSAGEI…

How to push bookmarks to users in Chrome via the management console

With the release of Chrome and ChomeOS 37 an update to the management console has arrived that allows you to push bookmarks to users.

Under Device Management > Chrome > User Settings > User Experience you will now find the option to add managed bookmarks.


In the example above, the bookmarks are applied to the sub-OU of 'students' - so all our students will get these bookmarks. Simply add your url and the bookmark name, click the + and save. These will appear in a folder called 'yourdomain bookmarks' - see below:



Be aware that to get these bookmarks applied on a Windows/OS-X device the user must be signed into Chrome. Update: if you install the latest group policy template you can push the bookmarks via policy on PCs - details are given here.
Video Guide:

ClearOS 7.1 as a Windows Domain Controller

I've been a long time user of ClearOS for gateway, DNS,DHCP, backup and a variety of other services. It is a Linux distro that is backed up with a marketplace of great apps that can be easily managed via a web config (although you can drop into cli whenever you want more control). The new samba directory app allows ClearOS to behave as a full on Windows Domain controller and file server without the cost of Windows Server.

So this is a demo from installation to a working DC and files server. Its about 40 mins for the full job - so skip though bits - gives you an example of what you can do. Please note the the Samba Directory App is currently in beta - but I've not spotted any bugs in a my test setup yet.