User Tools

Site Tools


huawei:switch:s5735:example_for_configuring_udp_helper

Example for Configuring UDP Helper

Networking Requirements

As shown in Figure 9-2, the IP address of VLANIF 100 on the Switch is 10.110.1.1/16, and the IP address of the NetBIOS-NS server is 10.2.1.1/16. The Switch and NetBIOS-NS server are on different network segments, and a reachable route exists between them. The PCs need to access each other using host names.

Figure 9-2 UDP helper network

Configuration Roadmap

The configuration roadmap is as follows:

Relay the UDP packets with destination port 137 and destination address 255.255.255.255 and the UDP packets with destination address 10.110.255.255 to the specified NetBIOS-NS server.

When the Switch receives a broadcast NetBIOS-NS Register packet, it changes the destination IP address in the IP header of the broadcast packet to the IP address of the NetBIOS-NS server and forwards the packet to the NetBIOS-NS server.

Note: After UDP helper is enabled on the Switch, the Switch 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

Enable UDP helper.

<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] udp-helper enable

Configure a destination server.

[Switch] vlan 100
[Switch-vlan100] quit
[Switch] interface vlanif 100
[Switch-Vlanif100] ip address 10.110.1.1 16
[Switch-Vlanif100] udp-helper server 10.2.1.1
[Switch-Vlanif100] quit
[Switch] quit

Verify the configuration.

The destination server configured on VLANIF 100 is the NetBIOS-NS server.

<Switch> display udp-helper server interface vlanif 100
vlan-interface        Server-Ip        packet-num
Vlanif100               10.2.1.1                0

Configuration Files

Switch configuration file

#
sysname Switch 
#
vlan batch 100
#
udp-helper enable
#
interface Vlanif100
ip address 10.110.1.1 255.255.0.0
udp-helper server 10.2.1.1
#
return
huawei/switch/s5735/example_for_configuring_udp_helper.txt · Last modified: 2021/08/27 16:55 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki