No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Service

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DHCP policy VLAN, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel, and IPv4 over IPv6 tunnel.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring the mDNS Gateway

Example for Configuring the mDNS Gateway

Networking Requirements

As shown in Figure 6-5, mobile terminals of an enterprise connect to the Internet through the WLAN. Layer 2 forwarding is performed between the Switch and AP_1 and AP_2. Departments 1 and 2 belong to VLAN 10 and VLAN 20 respectively, and each department has a Bonjour-compliant printer. The enterprise requires that the Apple terminals discover services provided by all printers in the enterprise using Bonjour.

Figure 6-5  Networking of the mDNS gateway

Configuration Roadmap

Configure the mDNS gateway on the Switch to discover services across VLANs.

Procedure

  1. Connect iPhone, Printer_1, and Printer_2 to the Internet through the WLAN.

    NOTE:

    If mobile terminals with Apple iOS V6.0 or later dynamically obtain IP addresses using DHCP, run the dns-list command in the global address pool view or the dhcp server dns-list command in the interface address pool view to configure the DNS server IP address.

  2. Enable the mDNS gateway on the Switch.

    <HUAWEI> system-view
    [HUAWEI] sysname Switch
    [Switch] mdns gateway enable

  3. Configure an mDNS group on the Switch.

    [Switch] mdns group group1 
    [Switch-mdns-group-group1] user-vlan 10
    [Switch-mdns-group-group1] service-vlan 20
    [Switch-mdns-group-group1] quit

  4. On the Switch, configure the service types that can be recorded by the mDNS gateway.

    [Switch] mdns permit service-type _raop._tcp.local id 0 
    [Switch] mdns permit service-type _airplay._tcp.local id 1
    [Switch] mdns permit service-type _printer._tcp.local id 2
    [Switch] mdns permit service-type _device-info._tcp.local id 3
    [Switch] mdns permit service-type _rfb._tcp.local id 4
    [Switch] mdns permit service-type _sftp-ssh._tcp.local id 5
    [Switch] mdns permit service-type _ssh._tcp.local id 6
    [Switch] mdns permit service-type _smb._tcp.local id 7
    [Switch] mdns permit service-type _afpovertcp._tcp.local id 8
    [Switch] mdns permit service-type _universal._sub._ipp._tcp.local id 9

  5. Configure the Switch to periodically discover services.

    [Switch] vlan 10
    [Switch-vlan10] mdns probe interval 100 
    [Switch-vlan10] quit
    [Switch] interface vlanif 10
    [Switch-Vlanif10] ip address 192.168.2.1 24
    [Switch-Vlanif10] quit
    [Switch] vlan 20
    [Switch-vlan20] mdns probe interval 100 
    [Switch-vlan20] quit
    [Switch] interface vlanif 20
    [Switch-Vlanif20] ip address 192.168.3.1 24
    [Switch-Vlanif20] quit
    

  6. Verify the configuration.

    # Run the display mdns gateway command on the Switch to check the mDNS gateway configuration.

    [Switch] display mdns gateway          
    MDNS Information:                                                               
    --------------------------------------------------------------------------------
     MDNS Gateway Status  :  Enable                                                 
     MDNS Source IP       :  -                                                      
    --------------------------------------------------------------------------------
     Gateway Probe Vlan   :  vlan10  vlan20                                       
    --------------------------------------------------------------------------------

    # Run the display mdns service all command on the Switch to check service information recorded on the mDNS gateway.

    [Switch] display mdns service all          
    MDNS Service Info:                                                              
                                                                                    
    Service name : Officejet Pro 8100 [C12FFA] (6)._printer._tcp.local              
      TXT Info:                                                                     
          Data Length : 297                                                         
                                                                                    
    Service name : _printer._tcp.local                                              
      PTR Info:                                                                     
          Domain Name : Officejet Pro 8100 [C12FFA] (6)._printer._tcp.local         
                                                                                    
    Service name : Officejet Pro 8100 [C12FFA] (7)._ipp._tcp.local                  
      TXT Info:                                                                     
          Data Length : 408                                                         
                                                                                    
    Service name : _ipp._tcp.local                                                  
      PTR Info:                                                                     
          Domain Name : Officejet Pro 8100 [C12FFA] (7)._ipp._tcp.local             
                                                                                    
    Total: 4    

    # After the configuration is complete, Bonjour-compliant terminals can discover printers in VLAN 10 and VLAN 20.

Configuration Files

Configuration file of the Switch

#
 sysname Switch
#                                                                               
mdns gateway enable                                                             
 mdns permit service-type _raop._tcp.local id 0                                 
 mdns permit service-type _airplay._tcp.local id 1                              
 mdns permit service-type _printer._tcp.local id 2                              
 mdns permit service-type _device-info._tcp.local id 3                          
 mdns permit service-type _rfb._tcp.local id 4                                  
 mdns permit service-type _sftp-ssh._tcp.local id 5                             
 mdns permit service-type _ssh._tcp.local id 6                                  
 mdns permit service-type _smb._tcp.local id 7                                  
 mdns permit service-type _afpovertcp._tcp.local id 8                           
 mdns permit service-type _universal._sub._ipp._tcp.local id 9                  
#                                                                               
mdns group group1                                                               
 user-vlan 10                                                                   
 service-vlan 20                                                                
#   
vlan 10                                                                        
 mdns probe interval 100                                                        
#                                                                               
vlan 20                                                                        
 mdns probe interval 100       
#                                                                               
interface Vlanif 10                                                              
 ip address 192.168.2.1 255.255.255.0                                             
#                                                                               
interface Vlanif20                                                              
 ip address 192.168.3.1 255.255.255.0                                                 
#                                                                               
return
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065678

Views: 34921

Downloads: 253

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next