- Table of Contents
-
- 06-Layer 3 - IP Services Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IP Forwarding Basics Commands
- 07-Adjacency Table Commands
- 08-IP Performance Optimization Commands
- 09-UDP Helper Commands
- 10-IPv6 Basics Commands
- 11-DHCPv6 Commands
- 12-IPv6 DNS Commands
- 13-Tunneling Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
09-UDP Helper Commands | 66.77 KB |
display udp-helper server
Syntax
display udp-helper server [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
interface interface-type interface-number: Displays information of forwarded UDP packets on a specified interface.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display udp-helper server command to display the information of forwarded UDP packets on the specified interface or all interfaces.
If interface-type interface-number is not specified, this command displays the information of forwarded UDP packets on all interfaces.
Examples
# Display the information of forwarded UDP packets on the interface VLAN-interface 1.
<Sysname> display udp-helper server interface vlan-interface 1
Interface name Server address Packets sent
Vlan-interface1 192.1.1.2 0
reset udp-helper packet
Syntax
reset udp-helper packet
View
User view
Default level
2: Monitor level
Parameters
None
Description
Use the reset udp-helper packet command to clear the statistics of forwarded UDP packets.
Related commands: display udp-helper server.
Examples
# Clear the statistics of the forwarded UDP packets.
<Sysname> reset udp-helper packet
udp-helper enable
Syntax
udp-helper enable
undo udp-helper enable
View
System view
Default level
2: System level
Parameters
None
Description
Use the udp-helper enable command to enable UDP Helper. The switch enabled with UDP Helper functions as a relay agent that converts UDP broadcast packets into unicast packets and forwards them to a specified destination server.
Use the undo udp-helper enable command to disable UDP Helper.
By default, UDP Helper is disabled.
Examples
# Enable UDP Helper
<Sysname> system-view
[Sysname] udp-helper enable
udp-helper port
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 }
View
System view
Default level
2: System level
Parameters
port-number: UDP port number with which packets need to be forwarded, in the range of 1 to 65535 (except 67 and 68).
dns: Forwards DNS data packets. The corresponding UDP port number is 53.
netbios-ds: Forwards NetBIOS data packets. The corresponding UDP port number is 138.
netbios-ns: Forwards NetBIOS name service data packets. The corresponding UDP port number is 137.
tacacs: Forwards terminal access controller access control system (TACACS) data packet. The corresponding UDP port number is 49.
tftp: Forwards TFTP data packets. The corresponding UDP port number is 69.
time: Forwards time service data packets. The corresponding UDP port number is 37.
Description
Use the udp-helper port command to enable the forwarding of packets with the specified UDP port number.
Use the undo udp-helper port command to remove the configured UDP port numbers.
By default, no UDP port number is specified.
Note the following:
· You can configure up to 256 UDP ports on a switch.
· All of the specified UDP port numbers will be removed if UDP Helper is disabled.
Examples
# Forward broadcast packets with the UDP destination port number 100.
<Sysname> system-view
[Sysname] udp-helper port 100
udp-helper server
Syntax
udp-helper server ip-address
undo udp-helper server [ ip-address ]
View
Interface view
Default level
2: System level
Parameters
ip-address: IP address of the destination server, in dotted decimal notation.
Description
Use the udp-helper server command to specify the destination server to which UDP packets are forwarded.
Use the undo udp-helper server command to remove the destination server.
No destination server is configured by default.
Note the following:
· You can configure up to 20 destination servers on an interface.
· Without the ip-address argument, the undo udp-helper server command removes all the destination servers on an interface.
Related commands: display udp-helper server.
Examples
# Specify the IP address of the destination server as 192.1.1.2 on the interface VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] udp-helper server 192.1.1.2