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

Command Reference

AR500, AR510, and AR530 V200R007

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).
UDP Helper Configuration Commands

UDP Helper Configuration Commands

NOTE:

Among the AR500 series routers, the AR502G-L-D-H, AR502GR-L-D-H do not support UDP helper function.

display udp-helper port

Function

The display udp-helper port command displays the configured UDP ports to which packets need to be relayed on the device.

Format

display udp-helper port

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view the configured UDP ports to which packets need to be relayed, run this command. If the UDP helper function is not enabled, this command does not display any information.

Example

# Display the UDP ports to which packets need to be relayed.

<Huawei> display udp-helper port
Udp-Port-Number       Description
-------------------------------------------------------------
       1              TCP Port Service Multiplexer
      37              Time
      49              TAC Access Control System 
      53              Domain Name Server
      69              Trivial File Transfer Protocol
     137              NETBIOS Name Service
     138              NETBIOS Datagram Service
Table 7-57  Description of the display udp-helper port command output

Item

Description

Udp-Port-Number

UDP ports to which UDP broadcast packets need to be relayed.

UDP ports are classified into the following types:

  • Well-known port: The well-known port numbers range from 0 to 1023. These ports are used by standard TCP/UDP protocols.
  • Registered port: The registered port numbers range from 1024 to 49151. They are vendor-specific ports.
  • Dynamic/Static port: The dynamic or static port numbers range from 49152 to 65535. These ports can be used as required and may conflict on a network.

To configure the UDP ports, run the udp-helper port command.

Description

UDP port description. For details about port numbers, see RFC1700.

display udp-helper server

Function

The display udp-helper server command displays statistics about packets relayed by UDP helper.

Format

display udp-helper server [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays statistics about UDP broadcast packets relayed on the specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command displays statistics about packets relayed by UDP helper. The statistics help you monitor the UDP helper function.

Example

# Display statistics about packets relayed by UDP helper.

<Huawei> display udp-helper server
Server-interface                  Server-Ip                    packet-num        
------------------------------------------------------------------------        
GigabitEthernet0/0/1              192.1.2.1                            10
GigabitEthernet0/0/1.1            192.1.1.2                            25 
Table 7-58  Description of the display udp-helper server command output

Item

Description

Server-interface

Interface on which packets are relayed by UDP helper.

To configure the interface, run the udp-helper server command in the interface view.

Server-Ip

Destination server address.

To configure the destination server address, run the udp-helper server command in the interface view.

packet-num

Number of UDP packets sent to the destination server.

Related Topics

reset udp-helper packet

Function

The reset udp-helper packet command clears statistics about packets relayed by UDP helper.

Format

reset udp-helper packet

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

This command clears statistics about packets relayed by UDP helper. Before collecting packet statistics in a certain period, run this command to clear existing statistics first.

UDP helper statistics cannot be restored after being cleared. Exercise caution when you run the reset udp-helper packet command.

Example

# Clear statistics about packets relayed by UDP helper.

<Huawei> reset udp-helper packet
Warning: This command will delete the packet statistics of udp-helper.Continue?[Y/N]y

udp-helper enable

Function

The udp-helper enable command enables the UDP Helper function.

The undo udp-helper enable command disables the UDP Helper function.

By default, the UDP Helper function is disabled.

Format

udp-helper enable

undo udp-helper enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Hosts on an enterprise intranet may need to obtain the network configuration or resolve host names by sending UDP broadcast packets to the server. If the host and the server are located in different broadcast domains, broadcast packets cannot reach the server and the host cannot obtain the configuration from the server. The industrial switch router provides the UDP Helper function to solve this problem. UDP Helper can relay the UDP broadcast packets with specified destination ports. It converts the broadcast packets into unicast packets and sends the unicast packets to the specified destination servers.

The packets that can be forwarded by UDP Helper must meet the following requirements:

  • The destination MAC address is the broadcast MAC address (ffff-ffff-ffff).
  • The destination IP address is the broadcast IP address (255.255.255.255) or a subnet broadcast IP address (for example, 192.168.255.255).
  • The Time-to-Live (TTL) is larger than 1.
  • The protocol type is UDP.
  • The destination port is a specified UDP port.

Precautions

UDP Helper does not relay DHCP packets. That is, the destination port number cannot be 67 or 68. To relay DHCP packets, run the dhcp select relay command.

After the UDP Helper function is enabled, the industrial switch router relays broadcast packets destined for the following UDP ports by default.

Table 7-59  The relation of default UDP port number with UDP Protocol

Protocol

UDP Port Number

Time Service

37

Terminal Access Controller Access Control System (TACACS)

49

Domain Name System (DNS)

53

Trivial File Transfer Protocol (TFTP)

69

NetBIOS Name Service (NetBIOS-NS)

137

NetBIOS Datagram Service (NetBIOS-DS)

138

After UDP Helper is disabled, all specified UDP ports and default ports are canceled.

NOTE:
After the UDP Helper function is enabled, the industrial switch router automatically relays the UDP broadcast packets on six default ports. If you want to relay the packets on only one default port, run the undo udp-helper port { dns | netbios-ds | netbios-ns | tacacs | tftp | time } command to disable packet relay on other five ports.

Example

# Enable UDP Helper.

<Huawei> system-view
[Huawei] udp-helper enable

udp-helper port

Function

The udp-helper port command specifies the UDP ports to which UDP broadcast packets are relayed.

The undo udp-helper port command deletes the UDP ports to which packets are relayed.

By default, no UDP port is specified. After UDP helper is enabled, the industrial switch router relays broadcast packets destined for ports 37, 49, 53, 69, 137, and 138 by default.

Format

udp-helper port { port-number | dns | netbios-ds | netbios-ns | tacacs | tftp | time }

undo udp-helper port { port-number | dns | netbios-ds | netbios-ns | tacacs | tftp | time }

Parameters

Parameter

Description

Value

port-number

Specifies the UDP ports to which packets are relayed.

The value is an integer that ranges from 1 to 65535, excluding 67 and 68.

dns

Relays the UDP broadcast packets sent by DNS. The UDP port number is 53.

-

netbios-ds

Relays the UDP broadcast packets sent by NetBIOS-DS. The UDP port number is 138.

-

netbios-ns

Relays the UDP broadcast packets sent by NetBIOS-NS. The UDP port number is 137.

-

tacacs

Relays the UDP broadcast packets sent by TACACS. The UDP port number is 49.

-

tftp

Relays the UDP broadcast packets sent by TFTP. The UDP port number is 69.

-

time

Relays the UDP broadcast packets sent by time service. The UDP port number is 37.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After UDP helper is enabled and the UDP ports are specified, the industrial switch router relays the received UDP broadcast packets destined for the specified ports.

The udp-helper port command takes effect globally. That is, if the industrial switch router is configured to relay packets destined for a UDP port, all the interfaces configured with the destination server address will relay such packets.

Precautions

UDP helper does not relay DHCP packets. That is, the destination port number cannot be 67 or 68. To relay DHCP messages, enable the DHCP relay function.

In addition to the 6 default ports that have UDP Helper enabled, another 10 destination ports can be specified.

Example

# Configure the industrial switch router to relay the broadcast packets destined for UDP port 100.

<Huawei> system-view
[Huawei] udp-helper enable
[Huawei] udp-helper port 100

udp-helper server

Function

The udp-helper server command configures the destination server to which UDP packets are relayed.

The undo udp-helper server command deletes the destination server to which UDP packets are relayed.

By default, no destination server is configured for UDP Helper.

Format

udp-helper server ip-address

undo udp-helper server [ ip-address ]

Parameters

Parameter

Description

Value

ip-address

Specifies the IP address of a destination server. The IP address can be a unicast address or a subnet broadcast address, but cannot be 255.255.255.255. Otherwise, the configuration fails.

The value is in dotted decimal notation.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If UDP Helper is enabled and the destination server is configured on an interface, when the interface receives the UDP broadcast packets destined for the specified port, it converts the broadcast packets into unicast packets with the destination address ip-address and sends them to the specified server.

Prerequisites

The UDP Helper function is enabled by the udp-helper enable command.

Precautions

  • If multiple destination servers are configured on an interface, the industrial switch router converts the broadcast packets into unicast packets and sends them to all these servers.
  • When specifying the IP address of a destination server, ensure that the industrial switch router has a reachable route to the network segment where the destination server is located. If no route is reachable, packets cannot be forwarded.
  • When the undo udp-helper server command is used without parameter specified, all the configured destination servers on the interface are deleted.

Example

# Configure destination server 10.1.1.2 on GE0/0/1.

<Huawei> system-view
[Huawei] udp-helper enable
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] udp-helper server 10.1.1.2
Translation
Download
Updated: 2019-02-18

Document ID: EDOC1000097293

Views: 37531

Downloads: 101

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