本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本文件說明如何將 Chromecast 裝置設定為 Bonjour 服務提供者。Bonjour服務可簡化網路上對Chromecast裝置的使用和管理。_googlecast._tcp.local。服務字串允許Chromecast裝置充當任何其他Bonjour服務提供商。此服務專門用於將受支援裝置的螢幕轉換為Chromecast連線的螢幕。
本文檔重點介紹如何從運行Google Chrome的電腦映象到Chromecast裝置。有關詳細資訊,請參閱轉換頁籤。
本文檔重點介紹使用mDNS發現Chromecast裝置的應用程式和終端裝置(如智慧手機)。有些應用程式或裝置只會嘗試使用發現和啟動(撥號)服務來查詢Chromecast裝置。
如果我們的應用和/或終端裝置支援mDNS,我們可以按照案例1至3執行,但如果我們的應用僅支援DIAL服務,則Chromecast裝置和用於探索它的終端裝置必須位於同一個虛擬區域網路(VLAN)上。此外,多點傳送轉送需要在WLC上啟用。請參閱本文結尾的案例4。
為了驗證我們的裝置/應用程式是否支援mDNS和/或DIAL,我們可以執行資料包捕獲並檢查我們的裝置/應用程式傳送的查詢。
如果我們只看到傳送到239.255.255.250埠UDP 1900的查詢,那麼我們的裝置/應用程式僅支援撥號服務發現,如果我們也看到傳送到224.0.0.251埠UDP 5353的查詢,那麼我們的裝置/應用程式也支援mDNS。
撥號查詢示例:
mDNS查詢示例:
思科建議您瞭解Bonjour服務在無線LAN控制器(WLC)上的基本知識。 有關詳細資訊,請參閱管理BYOD的Bonjour服務。
Chromecast裝置必須能夠對8.8.8.8進行域名系統(DNS)查詢,否則無法正常工作。
將螢幕映象到Chromecast的無線客戶端不需要訪問Internet。
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
本節介紹這四種配置方案:
對於除場景4以外的所有場景,請在螢幕上投射時新增Chromecast使用的服務字串。這麼做可讓WLC識別Chromecast裝置。
在CLI上:
>config mdns service create chromecast _googlecast._tcp.local. origin wireless
lss disable query enable
>show mdns service summary
Number of Services.............................. 7
Mobility learning status ........................ Enabled
Service-Name LSS Origin No SP Service-string
-------------------------------- ---- ---------- ----- ---------------
chromecast No All 1 _googlecast._tcp.local.
在 GUI 上:
新的Chromecast服務出現在組播域名系統(mDNS)視窗中:
在CLI上:
>config mdns profilechromecast service add default-mdns-profile
>show mdns profile detailed default-mdns-profile
Profile Name..................................... default-mdns-profile
Profile Id....................................... 1
No of Services................................... 7
Services......................................... AirPrint
AirTunes
AppleTV
HP_Photosmart_Printer_1
HP_Photosmart_Printer_2
Printer
chromecast
在GUI中選擇Controller > mDNS > Profiles。在「Profile Name」欄位中驗證配置檔名稱,並在「Service Name」欄位中,從下拉式清單中選擇chromecast。完成後按一下Add。
此圖顯示相同WLAN和VLAN上的Chromecast和無線客戶端。
在CLI上:
>config interface create vlan10 10
>config interface address dynamic-interface vlan10 192.168.10.15
255.255.255.0 192.168.10.254
>config interface port vlan10 1
>config interface mdns-profile vlan10 default-mdns-profile
>config interface dhcp dynamic-interface vlan10 proxy-mode disable
在 GUI 上:
新介面即會顯示在螢幕上。按一下新介面。在本範例中,vlan10。
在CLI上:
>config wlan create 1 blue
>config wlan security wpa akm 802.1x disable 1
>config wlan security wpa akm psk enable 1
>config wlan security wpa akm psk set-key ascii cisco-chrome 1
>config wlan interface 1 vlan10
>config wlan radio 1 802.11g-only
>config wlan ccx aironetIeSupport disable 1
>config wlan enable 1
在 GUI 上:
此圖顯示WLAN A上的Chromecast、WLAN B和不同VLAN上的無線客戶端。
>config interface create vlan20 20
>config interface address dynamic-interface vlan10 192.168.20.15
255.255.255.0 192.168.20.254
>config interface port vlan20 1
>config interface mdns-profile vlan20 default-mdns-profile
>config interface dhcp dynamic-interface vlan20 proxy-mode disable
>config wlan create 2 red
>config wlan security wpa akm 802.1x disable 2
>config wlan security wpa akm psk enable 2
>config wlan security wpa akm psk set-key ascii cisco-chrome 2
>config wlan interface 2 vlan20
>config wlan radio 2 802.11g-only
>config wlan ccx aironetIeSupport disable 2
>config wlan enable 2
附註:在此場景中,智慧手機找不到用於管理的Chromecast。此方案僅針對螢幕映象進行了測試。
附註:此案例僅在AP處於本地模式時有效。對於flexconnect — 本地交換中的AP,映象只有在裝置使用同一個VLAN(Chromecast和筆記型電腦)時才有效。
此圖顯示錨點WLC上的Chromecast和外部WLC上的無線客戶端。
在CLI上:
(WLC-Anchor) >show mobility summary
Mobility Protocol Port........................... 16666
Default Mobility Domain.......................... mb-anchor
Multicast Mode .................................. Disabled
Mobility Domain ID for 802.11r................... 0x5313
Mobility Keepalive Interval...................... 10
Mobility Keepalive Count......................... 3
Mobility Group Members Configured................ 1
Mobility Control Message DSCP Value.............. 0
Controllers configured in the Mobility Group
MAC Address IP Address Group Name Multicast IP Status
bc:16:65:c2:aa:c0 10.88.244.87 mb-anchor 0.0.0.0 Up
(WLC-Foreign) >show mobility summary
Mobility Protocol Port........................... 16666
Default Mobility Domain.......................... mb-foreign
Multicast Mode .................................. Disabled
Mobility Domain ID for 802.11r................... 0x25f5
Mobility Keepalive Interval...................... 10
Mobility Keepalive Count......................... 3
Mobility Group Members Configured................ 1
Mobility Control Message DSCP Value.............. 0
Controllers configured in the Mobility Group
MAC Address IP Address Group Name Multicast IP Status
6c:20:56:b8:ba:40 10.10.30.10 mb-foreign 0.0.0.0 Up
(WLC-Anchor) >config mobility group member add 6c:20:56:b8:ba:40 10.10.30.10 mb-foreign
(WLC-Foreign) >config mobility group member add bc:16:65:c2:aa:c0 10.88.244.87 mb-anchor
(WLC-Anchor) >show mobility summary
Mobility Protocol Port........................... 16666
Default Mobility Domain.......................... mb-anchor
Multicast Mode .................................. Disabled
Mobility Domain ID for 802.11r................... 0x5313
Mobility Keepalive Interval...................... 10
Mobility Keepalive Count......................... 3
Mobility Group Members Configured................ 2
Mobility Control Message DSCP Value.............. 0
Controllers configured in the Mobility Group
MAC Address IP Address Group Name Multicast IP Status
6c:20:56:b8:ba:40 10.10.30.10 mb-foreign 0.0.0.0 Up
bc:16:65:c2:aa:c0 10.88.244.87 mb-anchor 0.0.0.0 Up
(WLC-Foreign) >show mobility summary
Mobility Protocol Port........................... 16666
Default Mobility Domain.......................... mb-foreign
Multicast Mode .................................. Disabled
Mobility Domain ID for 802.11r................... 0x25f5
Mobility Keepalive Interval...................... 10
Mobility Keepalive Count......................... 3
Mobility Group Members Configured................ 2
Mobility Control Message DSCP Value.............. 0
Controllers configured in the Mobility Group
MAC Address IP Address Group Name Multicast IP Status
6c:20:56:b8:ba:40 10.10.30.10 mb-foreign 0.0.0.0 Up
bc:16:65:c2:aa:c0 10.88.244.87 mb-anchor 0.0.0.0 Up
在CLI上:
(WLC-Anchor) >config wlan disable 1
(WLC-Anchor) >config wlan mobility anchor add 1 10.88.244.87
(WLC-Anchor) >config wlan enable 1
(WLC-Foreign) >config wlan disable 1
(WLC-Foreign) >config wlan mobility anchor add 1 10.88.244.87
(WLC-Foreign) >config wlan enable 1
有關GUI的說明,請參閱配置移動組(GUI)。
為了從僅支援DIAL服務的智慧手機/應用中發現Chromecast裝置,我們需要確保它們都在同一個vlan中,並且在WLC上啟用了組播轉發。在某些情況下,它們可以位於不同的VLAN中。有關更多詳細資訊,請查閱下一個文檔Chromecast部署指南7.6版
使用本節內容,確認您的組態是否正常運作。
輸出直譯器工具(僅供已註冊客戶使用)支援某些show命令。使用輸出直譯器工具來檢視show命令輸出的分析。
>show client wlan 1
Number of Clients in WLAN........................ 1
MAC Address AP Name Status Auth Protocol Port Wired Mobility Role Device Type
----------------- ----------------- ------------- ---- ---------------- -----
80:d2:1d:4a:69:86 APe4c7.228a.4bf3 Associated Yes 802.11n(2.4 GHz) 1 No Local Unknown
00:f4:b9:0b:14:19 APe4c7.228a.4bf3 Associated Yes 802.11n(2.4 GHz) 1 No Local Unknown
chromecast mac address
wireless client mac address
>show mdns domain-name-ip summary
Number of Domain Name-IP Entries................. 2
DomainName MAC Address IP Address Vlan Id Type TTL Time left
(sec) (sec)
-------------------- ---------------- ---------------- ------- ------ ------ ------
Chromecastkcg.local. 80:d2:1d:4a:69:86 192.168.10.66 10 Wireless 4725 4411
>show mdns service detailed chromecast
Service Name..................................... chromecast
Service String................................... _googlecast._tcp.local.
Service Id....................................... 8
Service query status............................. Enabled
Service LSS status............................... Disabled
Service learn origin............................. Wireless
Number of Profiles............................... 1
Profile.......................................... default-mdns-profile
Number of Service Providers ..................... 2
Number of priority MAC addresses ................ 0
ServiceProvider MAC Address AP Radio MAC Vlan Id Type TTL Time left
(sec) (sec)
-------------------- ---------------- ---------------- ------- ------
Chromecastkcg._googlecast._tcp.local. 80:D2:1D:4A:69:86 34:DB:FD:0B:9C:90
10 Wireless 4500 4410
Chromecast's name
本節提供的資訊可用於對組態進行疑難排解。
輸出直譯器工具(僅供已註冊客戶使用)支援某些show命令。使用輸出直譯器工具來檢視show命令輸出的分析。
附註:使用 debug 指令之前,請先參閱有關 Debug 指令的重要資訊。
輸入debug mdns all enable命令對此配置進行故障排除。