- Table of Contents
-
- 05-Layer 3 - IP Services Command Reference
- 00-Preface
- 01-ARP commands
- 02-IP addressing commands
- 03-DHCP commands
- 04-DNS commands
- 05-IP forwarding basics commands
- 06-Adjacency table commands
- 07-IP performance optimization commands
- 08-UDP helper commands
- 09-IPv6 basics commands
- 10-DHCPv6 commands
- 11-IPv6 fast forwarding commands
- 12-Fast forwarding commands
- 13-Tunnel commands
- 14-GRE commands
- Related Documents
-
Title | Size | Download |
---|---|---|
08-UDP helper commands | 83.39 KB |
display udp-helper interface
Use display udp-helper interface to display information about packets forwarded by UDP helper on an interface.
Syntax
display udp-helper interface interface-type interface-number
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
This command shows information about the destination server and the number of UDP packets forwarded to the destination server.
Examples
# Display information about packets forwarded by UDP helper on VLAN-interface 1.
<Sysname> display udp-helper interface vlan-interface 1
Interface Server address Packets sent
Vlan-interface1 192.1.1.2 0
Table 1 Command output
Field |
Description |
Interface |
Interface name. |
Server address |
Destination server to which UDP packets are forwarded. |
Packets sent |
Number of packets forwarded to the destination server. |
Related commands
· reset udp-helper statistics
· udp-helper server
reset udp-helper statistics
Use reset udp-helper statistics to clear the statistics of UDP packets forwarded by UDP helper.
Syntax
reset udp-helper statistics
Views
User view
Predefined user roles
network-admin
mdc-admin
Examples
# Clear the statistics of UDP packets forwarded by UDP helper.
<Sysname> reset udp-helper statistics
Related commands
display udp-helper interface
udp-helper enable
Use udp-helper enable to enable UDP helper.
Use undo udp-helper enable to disable UDP helper.
Syntax
udp-helper enable
undo udp-helper enable
Default
UDP helper is disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
UDP helper converts specific UDP broadcast packets into unicast packets and forwards them to a specific destination server.
Examples
# Enable UDP helper.
<Sysname> system-view
[Sysname] udp-helper enable
udp-helper port
Use udp-helper port to specify a UDP port number for UDP helper.
Use undo udp-helper port to remove UDP port numbers.
Syntax
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 }
Default
No UDP port number is specified for UDP helper.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
port-number: Specifies a UDP port number in the range of 1 to 65535 (except 67 and 68).
dns: Specifies the UDP port 53 used by DNS packets.
netbios-ds: Specifies the UDP port 138 used by NetBIOS datagram distribution service packets.
netbios-ns: Specifies the UDP port 137 used by NetBIOS name service packets.
tacacs: Specifies the UDP port 49 used by TACACS packets.
tftp: Specifies the UDP port 69 used by TFTP packets.
time: Specifies the UDP port 37 used by time protocol packets.
Usage guidelines
To specify a UDP port, you can specify the port number or the corresponding protocol keyword. For example, udp-helper port 53 and udp-helper port dns specify the same UDP port.
UDP helper will process UDP broadcast packets destined for the specified UDP port and forward them to the destination server.
You can specify up to 256 UDP ports on a device.
Examples
# Enable UDP helper to forward broadcast packets with UDP destination port 100.
<Sysname> system-view
[Sysname] udp-helper port 100
udp-helper server
Use udp-helper server to specify a destination server for UDP helper.
Use undo udp-helper server to remove a destination server for UDP helper.
Syntax
udp-helper server ip-address
undo udp-helper server [ ip-address ]
Default
No destination server is specified.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies the IP address of a destination server, in dotted decimal notation.
Usage guidelines
Specify destination servers on an interface that receives UDP broadcast packets. You can specify up to 20 destination servers on an interface.
Without the ip-address argument, the undo udp-helper server command removes all destination servers on the interface.
Examples
# Specify the destination server 192.1.1.2 on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] udp-helper server 192.1.1.2
Related commands
display udp-helper interface