Using Apple Caching Server with VLANS

Apple out of the box supports VLANS, although not very well.

You can setup a VLANS by doing the following.

  1. Choose Apple menu > System Preferences, then click Network.

  2. Click the Action pop-up menu at the bottom of the network connection services list, then choose Manage Virtual Interfaces.

  3. Click Add , then choose New VLAN.

  4. Give the service a name, then enter a value in the Tag field. (This is a numeric value)

  5. Click the Interface pop-up menu, choose a network interface, click Create, then click Done.

  6. Select the VLAN in the network connection list, click Advanced, then enter settings for the service, such as IP settings, the DNS server address, search domains, proxy or WINS server settings, or TCP/IP settings.

  7. Make note of the VLAN Number in the window..

Once your done this, you can continue setting up many other VLANS if you’d like.

Doing this has some unintended consequences. If you’ve got apple caching on the same box it fails to work..

Luckily there’s a quick fix.

  1. First find the ethernet VLANS number by running the following command in terminal. If you made note above skip to step 4.
  2. The output should look like this
  3. Now with the following info we  can configure caching server. In our case, the VLAN we want to work with is 105 – Wired Employee Network which corresponds with vlan0. Then, we’ll update caching server with the VLANS using the following commands. Replacing with whatever VLAN you want to select.
  4. Volia! Provided everything else is configured caching should start performing as normal.

 

No Comments

Leave a Comment