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

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

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:

CE6880EI does not support this function.

display ip udp-helper port

Function

The display ip udp-helper port command displays all UDP port numbers that are configured on a relay switch.

Format

display ip udp-helper port

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When configuring UDP Helper on a switch, you can run the display ip udp-helper port command to view the configured UDP port numbers on the switch. If the UDP port number to be configured already exists, you do not need to run the undo ip udp-helper port disable command to configure it. Instead, you can directly run the ip udp-helper server command to configure the IP address of the destination server.

Example

# Display all UDP port numbers that are configured on a relay switch.

<HUAWEI> display ip udp-helper port
UDP-Port-Number       Description
-------------------------------------------------------------
      22              Unassigned
      37              Time Server
      49              Login Host Protocol
      53              Domain Name Server
      69              Trivial File Transfer
     111              SUN Remote Procedure Call
     137              NETBIOS Name Service
     138              NETBIOS Datagram Service
     178              NextStep Window Server
   45454              Registered Port
   65535              Dynamic/Private Port
Table 8-32  Description of the display ip udp-helper port command output

Item

Description

UDP-Port-Number

UDP port number

Description

Description of a UDP interface

Related Topics

display ip udp-helper server

Function

The display ip udp-helper server command displays UDP Helper information.

Format

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

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface. interface-type can specify only the VLANIF interface.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To verify the configuration after configuring the UDP Helper function, run the display ip udp-helper server command to display UDP Helper information. The information includes VLANIF interface numbers and the IP addresses of destination servers. In addition, you can specify interface interface-type interface-number in the display ip udp-helper server command to display UDP Helper information on a specified interface.

Example

# Display UDP Helper information on VLANIF 100.

<HUAWEI> display ip udp-helper server interface vlanif 100
Vlan Interface        Server Ip                  Packet Num  Packet Drop
------------------------------------------------------------------------
Vlanif100               1.2.3.4                           0            0
Table 8-33  Description of the display ip udp-helper server command output

Item

Description

Vlan Interface

VLANIF interface

Server Ip

IP address of the destination server

Packet Num

Number of packets sent to the destination IP address

Packet Drop

Number of packets dropped when being sent to the destination IP address

ip udp-helper enable

Function

The ip udp-helper enable command enables UDP Helper.

The undo ip udp-helper enable command disables UDP Helper.

By default, UDP Helper is disabled.

Format

ip udp-helper enable

undo ip udp-helper enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Clients need to access remote servers to obtain required information. For example, a client may need to access a DNS server to obtain domain name information, access a TFTP server to download files, and access a NetBIOS-NS server to obtain a device name. If the client and servers are on different network segments, you must run the ip udp-helper enable command on a switch to enable UDP Helper.

Follow-up Procedure

After running the ip udp-helper enable command to enable UDP Helper, perform the following operations to relay UDP packets.
  1. Run the undo ip udp-helper port disable command on a switch to configure UDP port numbers.
    NOTE:
    You can skip this step if the UDP port number specified in UDP broadcast packets is one of the six default interface numbers including 69, 53, 37, 137, 138, and 49.
  2. Run the ip udp-helper server command on the VLANIF interface of the switch to configure the IP address of the destination server.

Precautions

UDP Helper cannot relay DHCP packets. Specifically, the UDP port number cannot be set to 67 or 68. DHCP relay must be enabled using the dhcp select relay command to relay DHCP packets.

Example

# Enable UDP Helper.

<HUAWEI> system-view
[~HUAWEI] ip udp-helper enable

ip udp-helper port

Function

The ip udp-helper port command enables a non-default UDP port to relay broadcast packets.

The undo ip udp-helper port command disables a non-default UDP port from relaying broadcast packets.

By default, non-default UDP ports do not relay broadcast packets. UDP ports 37, 49, 53, 69, 137, and 138 are default UDP ports.

Format

ip udp-helper port { port-number [ description description ] }

undo ip udp-helper port port-number

Parameters

Parameter Description Value
port-number Specifies the UDP port number. The value is an integer ranging from 1 to 65535. The default UDP port numbers 37, 49, 53, 69, 137, and 138 and DHCP port numbers 67 and 68 cannot be specified.
description description Specifies the description of a UDP interface. The value is a string of 1 to 39 case-sensitive characters, spaces supported.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a client and the destination server reside on different network segments, you must specify a UDP port number on a relay agent to forward broadcast packets to the destination server. After the relay agent receives the broadcast packets with the destination port number as the specified UDP port number, the relay agent unicasts the packets to the destination server.

After the ip udp-helper enable command is run, the default UDP ports 37, 49, 53, 69, 137, and 138 are allowed to relay broadcast packets, whereas the other ports are not allowed to do so. If you want a non-default UDP port to relay broadcast packets, run the ip udp-helper port command.

The following table lists the default UDP port numbers.

UDP Protocol

Interface Number

Time Protocol

37

TACACS

49

DNS

53

TFTP

69

NetBIOS-NS

137

NetBIOS-DS

138

Prerequisites

Before running the ip udp-helper port command to configure UDP port numbers, run the ip udp-helper enable command to enable UDP Helper.

Follow-up Procedure

After running the ip udp-helper port command to configure UDP port numbers, run the ip udp-helper server command on VLANIF interfaces to configure the IP addresses of destination servers.

Precautions

  • After UDP Helper is disabled, all configured UDP port numbers will be deleted.

  • UDP Helper cannot relay DHCP packets. Specifically, the UDP port number cannot be set to 67 or 68. DHCP relay must be enabled to relay DHCP packets.

Example

# Configure a switch to relay broadcast packets carrying destination UDP port number 100.

<HUAWEI> system-view
[~HUAWEI] ip udp-helper enable
[*HUAWEI] ip udp-helper port 100
Related Topics

ip udp-helper port disable

Function

The ip udp-helper port disable command disables a default UDP port from relaying broadcast packets.

The undo ip udp-helper port disable command restores the default configuration.

By default, default UDP ports are enabled to relay broadcast packets. UDP ports 37, 49, 53, 69, 137, and 138 are default UDP ports.

Format

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

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

Parameters

Parameter Description Value
default-port-number Specifies the UDP port number. The value is an integer, such as,
  • 37: Specifies the switch to relay data packets to the time service server.
  • 49: Specifies the switch to relay data packets to the TACACS server.
  • 53: Specifies the switch to relay data packets to the DNS server.
  • 69: Specifies the switch to relay data packets to the TFTP server.
  • 137: Specifies the switch to relay data packets to the NetBIOS-NS server.
  • 138: Specifies the switch to relay data packets to the NetBIOS-DS server.
time Specifies the switch to relay data packets to the time service server whose UDP port number is 37. -
tacacs Specifies the switch to relay data packets to the TACACS server whose UDP port number is 49. -
dns Specifies the switch to relay data packets to the DNS server whose UDP port number is 53. -
tftp Specifies the switch to relay data packets to the TFTP server whose UDP port number is 69. -
netbios-ns Specifies the switch to relay data packets to the NetBIOS-NS server whose UDP port number is 137. -
netbios-ds Specifies the switch to relay data packets to the NetBIOS-DS server whose UDP port number is 138. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If a client and the destination server reside on different network segments, you must specify a UDP port number on a relay agent to forward broadcast packets to the destination server. After the relay agent receives the broadcast packets with the destination port number as the specified UDP port number, the relay agent unicasts the packets to the destination server.

After the ip udp-helper enable command is run, the default UDP ports 37, 49, 53, 69, 137, and 138 are allowed to relay broadcast packets. To disable a default UDP port from relaying broadcast packets, run the ip udp-helper port disable command.

For a non-default port, you can run the ip udp-helper port to enable the forwarding function of the UDP port to be relayed.

Example

# disable a switch to relay broadcast packets carrying destination UDP port number 37.

<HUAWEI> system-view
[~HUAWEI] ip udp-helper enable
[*HUAWEI] ip udp-helper port disable 37
Related Topics

ip udp-helper server

Function

The ip udp-helper server command configures the IP address of a destination server on the VLANIF interface of a relay switch.

The undo ip udp-helper server command deletes the IP address of a destination server from the VLANIF interface of a relay switch.

By default, IP addresses of destination servers are not configured on the VLANIF interface of a relay switch.

Format

ip udp-helper server ip-address

undo ip udp-helper server [ ip-address ]

Parameters

Parameter Description Value
ip-address Specifies the IP address of a destination server. The value is in dotted decimal notation.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a client and a server are on different network segments, to relay broadcast packets carrying specified UDP port numbers to the destination server, run the ip udp-helper server ip-address command on a relay switch to configure the IP address of the destination server.

Precautions

  • You can configure a maximum of 20 destination servers on a VLANIF interface.

  • If you do not specify any parameters when running the undo ip udp-helper server command, you will delete all IP addresses of destination servers configured on the VLANIF interface.

  • When configuring IP addresses of destination servers, you must make sure that there are reachable routes to the destination servers. Otherwise, packets cannot be forwarded.

  • If you have configured a switch to relay packets carrying a certain UDP port number, the UDP port number takes effect on all VLANIF interfaces on the switch. You cannot configure only one or several VLANIF interfaces to forward packets carrying specified UDP port numbers.

Example

# Configure the IP address of the destination server on VLANIF 100 to be 192.168.1.2.

<HUAWEI> system-view
[~HUAWEI] ip udp-helper enable
[*HUAWEI] interface vlanif 100
[*HUAWEI-Vlanif100] ip udp-helper server 192.168.1.2
Related Topics

reset ip udp-helper packet

Function

The reset ip udp-helper packet command clears statistics about packets relayed using UDP Helper.

Format

reset ip udp-helper packet

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To clear statistics about packets relayed using UDP Helper, you can run the reset ip udp-helper packet command.

Precautions

Statistics about packets relayed using UDP Helper are deleted if you reset the statistics using the reset ip udp-helper packet command. Exercise caution when running the reset command.

Example

# Clear statistics about packets relayed using UDP Helper.

<HUAWEI> reset ip udp-helper packet
Warning: This command will delete the packet statistics of udp-helper.Continue?[Y/N]y
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 49880

Downloads: 336

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