- 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 | 62.57 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 about forwarded UDP packets on the 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 display udp-helper server to display information about forwarded UDP packets on the specified interface or all interfaces.
If you do not specify interface-type interface-number, this command displays information about forwarded UDP packets on all interfaces.
Examples
# Display information about forwarded UDP packets on the interface VLAN-interface 1.
<Sysname> display udp-helper server interface vlan-interface 1
Interface name Server VPN Server address Packets
Vlan-interface1 192.1.1.2 0
# Display information about forwarded UDP packets on the GigabitEthernet 3/0/1.
<Sysname> display udp-helper server interface GigabitEthernet3/0/1
Interface name Server VPN Server address Packets
GigabitEthernet3/0/1 Server-Group-1 192.1.1.2 0
The output shows that the destination server corresponding to the interface GigabitEthernet 3/0/1 resides in the private network Server-Group-1, the IP address of the destination server is 192.1.1.2, and that no packets are forwarded to the destination server.
reset udp-helper packet
Syntax
reset udp-helper packet
View
User view
Default level
2: Monitor level
Parameters
None
Description
Use reset udp-helper packet 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 udp-helper enable 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 the specified destination server.
Use undo udp-helper enable 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 udp-helper port to enable the forwarding of packets with the specified UDP port number.
Use undo udp-helper port to remove the configured UDP port numbers.
By default, no UDP port number is specified.
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 [ vpn-instance vpn-instance-name ] ip-address
undo udp-helper server [ [ vpn-instance vpn-instance-name ] ip-address ]
View
Interface view
Default level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies the name of an MPLS L3VPN to which a private IP address belongs, a case-sensitive string of 1 to 31 characters. If you do not specify any VPN, the destination server belongs to the public network.
ip-address: IP address of the destination server, in dotted decimal notation.
Description
Use udp-helper server to specify the destination server to which UDP packets are forwarded.
Use undo udp-helper server to remove the destination server.
No destination server is configured by default.
You can configure up to 20 destination servers on an interface.
If you do not specify 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 public 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
# Specify the IP address of the destination server in the private network Server-Group-1 as 192.1.1.2 on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet3/0/1
[Sysname-GigabitEthernet3/0/1] udp-helper server vpn-instance Server-Group-1 192.1.1.2