<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Bonjour (mDNS, Airplay, Airprint, Screen Mirroring) and Cisco WLC

Published on
19,514 Points
13,414 Views
1 Endorsement
Last Modified:
Approved
In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires multicast to be functional on your wired network.

As Bonjour is a link local protocol (it's TTL is set to 0) it will not cross layer 3 boundaries on a network even if multicast routing is configured.  To get around this problem and traverse VLANs/Subnets we will configure an AVAHI Gateway on Ubuntu Server.

From wikipedia we find a good Definition "Bonjour is Apple's implementation of Zero configuration networking (Zeroconf), a group of technologies that includes service discovery, address assignment, and hostname resolution. Bonjour locates devices such as printers, other computers, and the services that those devices offer on a local network using multicast Domain Name System (mDNS) service records."

Prerequisites:
1. Cisco WLC
2. WLAN setup able to communicate with wired network
3. Virtual or Physical Ubuntu Server
4. Multicast functioning on wired network
5. APs NOT running in FlexConnect mode

Example Configuration:
1. WLC 5508 with 7.0.116.0 firmware
2. VLAN 10 - Wired Network 1
3. VLAN 20 - Wired Network 2
4. VLAN 12 - Wireless Network 1
5. VLAN 22 - Wireless Network 2
6. Ubuntu Server 12.10
7. AppleTV v3

1. Configure Multicast on WLC 5508
1a. Login to web interface for WLC
1b. Click Controller at the top then Multicast in the left pane
1c. Check "Enable Global Multicast Mode"
1d. Check "Enable IGMP Snooping"
1e. Click Apply
2. Configure Multicast Distribution Mode to APs (We will configure Multicast-Multicast mode rather than Multicast-Unicast mode to reduce the load on the controller and wired networks.)
2a. Click Controller at the top then General in the left pane
2b. Set "AP Multicast Mode" to "Multicast"
2c. Enter 239.1.0.0 as the Multicast Group Address (Per Cisco, do not use 224.x.x.x, 239.0.0.x, or 239.128.0.x address ranges)
2d. Click Apply
3. Verify Bonjour Is Being Snooped
3a. Click Monitor at the top then Multicast in the left pane
3b. Verify the address 224.0.0.251 is visable
4. Configure Ubuntu to run AVAHI Gateway (**If you are not traversing VLANs with Bonjour (mDNS) skip to step 5)
4a. Configure Ubuntu's Switch port as trunk with native vlan 10
interface gi1/10
descriptoin AVAHI-Bonjour-Gateway
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 10
4b. Install required packages in Ubuntu
sudo apt-get install vlan avahi-daemon avahi-utils
4c. Edit Avahi configuration file to enable reflector
4c1. sudo nano /etc/avahi/avahi-daemon.conf
4c2. look for line that reads #enable-reflector=no and change it to
enable-reflector=yes
4c3. Ctrl + O to save
4c4. Ctrl + X to exit nano
4d. Add interfaces for VLAN 12, 20, and 22 (vlan 10 is our trunk native vlan)
4d1. sudo vconfig add eth0 12 (WARNING: Could not open /proc/net/vlan/config can be safely ignored)
4d2. sudo dhclient eth0.12
4d3. Repeat steps 4d1 and 4d2 for remaining VLANs (20 and 22)
4d4. Restart AVAHI daemon - sudo /etc/init.d/avahi-daemon restart
4e. Verify AVAHI can see devices on the network by issuing the command
avahi-browse -all -t
5. Setup AppleTV
5a. Connect the AppleTV to the wired or wireless network (I suggest wired)
5b. Check Settings, Airplay menu to ensure Airplay is enabled
5c. On iOS device double tap the home button
5d. Swipe left to right once or twice to reveal the airplay menu
5e. Tap AirPlay icon, Select Apple TV, and turn Mirroring On. AirplayIcon
1
Comment
Author:mcsween
0 Comments

Featured Post

Discover the Answer to Productive IT

Discover app within WatchGuard's Wi-Fi Cloud helps you optimize W-Fi user experience with the most complete set of visibility, troubleshooting, and network health features. Quickly pinpointing network problems will lead to more happy users and most importantly, productive IT.

Join & Write a Comment

This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month