Example for Configuring UDP Helper
Networking Requirements
As shown in Figure 6-2, Router connects to a local area network (LAN) through GE1/0/0. The IP address of GE1/0/0 is 10.110.1.1/16. NetBIOS-NS is connected to GE2/0/0 on Router. The IP address of the NetBIOS-NS server is 1.1.1.1/16 and the IP address of GE2/0/0 is 1.1.1.2/16. PC1 and PC2 on the LAN need to access each other using host names.
Configuration Roadmap
- Because the PCs on the LAN need to access each other using host names, the host names must be resolved into IP addresses. However, the NetBIOS-NS and PCs are in different broadcast domains. The NetBIOS-NS Register packets cannot reach the NetBIOS-NS server. The Router must be enabled with UDP helper to forward the UDP packets with destination port 137 (NetBIOS-NS port) to the NetBIOS-NS server.
- After UDP helper is enabled, specify the IP address of destination NetBIOS-NS server on GE1/0/0 of Router.
After UDP helper is enabled on the Router, the Router relays the broadcast packets with UDP destination port 137 by default. The UDP port number, therefore, does not need to be configured in this example.
Procedure
- Assign an IP address to GE1/0/0 on Router.
<Huawei> system-view [Huawei] sysname Router [Router] interface gigabitethernet 1/0/0 [Router-GigabitEthernet1/0/0] ip address 10.110.1.1 16 [Router-GigabitEthernet1/0/0] quit
- Assign an IP address to GE2/0/0 on Router.
[Router] interface gigabitethernet 2/0/0 [Router-GigabitEthernet2/0/0] ip address 1.1.1.2 16 [Router-GigabitEthernet2/0/0] quit
- Enable UDP helper.
[Router] udp-helper enable
- Configure a destination server for packet relay on GE1/0/0 of Router.
[Router] interface gigabitethernet 1/0/0 [Router-GigabitEthernet1/0/0] udp-helper server 1.1.1.1 [Router-GigabitEthernet1/0/0] quit [Router] quit
- Verify the configuration.# Run the display udp-helper server command to check UDP Helper statistics.
<Router> display udp-helper server Server-interface Server-Ip packet-num ------------------------------------------------------------------------ GigabitEthernet1/0/0 1.1.1.1 201
# Run the display udp-helper port command to check the configured destination port number of UDP packets to be forwarded using the UDP Helper.<Router> display udp-helper port Udp-Port-Number Description ------------------------------------------------------------- 37 Time 49 TAC Access Control System 53 Domain Name Server 69 Trivial File Transfer Protocol 137 NETBIOS Name Service 138 NETBIOS Datagram Service