Huawei Technologies Co., Ltd. provides customers with comprehensive technical support and service. For any
assistance, please contact our local office or company headquarters.
Huawei Technologies Co., Ltd.
Address:Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China
No part of this document may be reproduced or transmitted in any form or by any means without prior written
consent of Huawei Technologies Co., Ltd.
Trademarks and Permissions
and other Huawei trademarks are the property of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective holders.
Notice
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but the statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP ServiceContents
Contents
About This Document.....................................................................................................................1
1 IP Address Configuration.........................................................................................................1-1
1.1 Introduction to IP Addresses...........................................................................................................................1-2
1.2 IP Address Features Supported by the S9300.................................................................................................1-2
1.3 Assigning IP Addresses to Interfaces..............................................................................................................1-2
1.3.1 Establishing the Configuration Task......................................................................................................1-2
1.3.2 Setting a Primary IP Address for an Interface........................................................................................1-3
1.3.3 (Optional) Setting a Secondary IP Addresses for an Interface...............................................................1-4
1.3.4 Checking the Configuration...................................................................................................................1-4
1.4 Setting Unnumbered IP Addresses..................................................................................................................1-4
1.4.1 Establishing the Configuration Task......................................................................................................1-5
1.4.2 Setting the Primary IP Address..............................................................................................................1-5
1.4.3 Setting the Unnumbered IP Address......................................................................................................1-6
1.4.4 Checking the Configuration...................................................................................................................1-6
2.1 Introduction to DHCP.....................................................................................................................................2-2
2.2 DHCP Features Supported by the S9300........................................................................................................2-2
2.3 Configuring the DHCP Relay Agent...............................................................................................................2-2
2.3.1 Establishing the Configuration Task......................................................................................................2-2
2.3.2 Configuring a DHCP Server Group.......................................................................................................2-3
2.6.1 Example for Configuring the DHCP Relay Agent.................................................................................2-8
2.6.2 Example for Configuring the DHCP Relay in a Super VLAN............................................................2-10
Configuration Guide - IP Service
3 IP Performance Configuration.................................................................................................3-1
3.1 IP Performance Supported by the S9300........................................................................................................3-2
3.2 Optimizing IP Performance.............................................................................................................................3-2
3.2.1 Establishing the Configuration Task......................................................................................................3-2
3.2.2 Enabling an Interface to Check the Source IP Addresses of Packets.....................................................3-3
3.2.3 Configuring Forcible Fragmentation of Outgoing Packets on an Interface...........................................3-4
3.2.6 Setting the Load Balancing Mode of IP Packet Forwarding..................................................................3-7
3.2.7 Checking the Configuration...................................................................................................................3-7
3.3 Maintaining IP Performance...........................................................................................................................3-8
3.3.1 Clearing IP Performance Statistics.........................................................................................................3-8
3.3.2 Monitoring the Running Status of IP Performance................................................................................3-9
3.3.3 Debugging IP Performance..................................................................................................................3-10
3.4.1 Example for Disabling the Sending of ICMP Redirection Packets.....................................................3-11
3.4.2 Example for Configuring ICMP Host Unreachable Packets................................................................3-14
3.4.3 Example for Optimizing System Performance by Discarding Certain ICMP Packets........................3-16
4 IP Unicast PBR Configuration.................................................................................................4-1
4.1 Introduction to IP Unicast PBR.......................................................................................................................4-2
4.2 IP Unicast PBR Features Supported by the S9300.........................................................................................4-2
4.3 Configuring IP Unicast PBR...........................................................................................................................4-2
4.3.1 Establishing the Configuration Task......................................................................................................4-2
4.3.2 Defining Matching Rules for PBR.........................................................................................................4-3
4.3.3 Defining Actions of PBR.......................................................................................................................4-4
4.3.4 Applying a Policy-based Route..............................................................................................................4-5
4.3.5 Checking the Configuration...................................................................................................................4-6
4.4 Maintaining IP Unicast PBR...........................................................................................................................4-6
4.4.1 Monitoring the Running Status of IP Unicast PBR................................................................................4-6
4.4.2 Debugging IP Unicast PBR....................................................................................................................4-7
5.1 Introduction to UDP Helper............................................................................................................................5-2
5.2 UDP Helper Features Supported by the S9300...............................................................................................5-2
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP ServiceAbout This Document
About This Document
Purpose
This document describes the configurations of the IP services of the S9300, including the basic
knowledge and configurations of secondary IP addresses, DHCP, IP performance, IP unicast
policy-based routing, UDP Helper, . By reading this document, you can learn the concepts and
configuration procedures of IP services.
Related Versions
The following table lists the product versions related to this document.
Product Name
S9300V100R001C03
Intended Audience
This document is intended for:
lPolicy planning engineers
lInstallation and commissioning engineers
lNM configuration engineers
lTechnical support engineers
Organization
Version
This document is organized as follows.
Chapter
1 IP Address ConfigurationDescribes the general procedure for setting IP addresses.
2 DHCP ConfigurationDescribes the principle of DHCP and provides configuration
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
The symbols that may be found in this document are defined as follows.
SymbolDescription
Describes the principle of IP performance and provides
configuration procedures and examples of IP performance.
Describes the principle of IP unicast PBR and provides
configuration procedures and examples of IP unicast PBR.
Describes the principle of UDP helper and provides
configuration procedures and examples of UDP helper.
Indicates a hazard with a high level of risk, which if not
avoided, will result in death or serious injury.
General Conventions
The general conventions that may be found in this document are defined as follows.
Convention
Times New RomanNormal paragraphs are in Times New Roman.
BoldfaceNames of files, directories, folders, and users are in
Indicates a hazard with a medium or low level of risk, which
if not avoided, could result in minor or moderate injury.
Indicates a potentially hazardous situation, which if not
avoided, could result in equipment damage, data loss,
performance degradation, or unexpected results.
Indicates a tip that may help you solve a problem or save
time.
Provides additional information to emphasize or supplement
important points of the main text.
This section describes the concept of IP addresses.
Each host needs an IP address to communicate with each other on an IP network.
An IP address is a 32-bit address used on the Internet. It consists of a network ID and a host ID.
The network ID identifies a network and the host ID identifies a specific network device on the
network. If multiple network devices have the same network ID, they reside on the same network
regardless of their physical locations.
1.2 IP Address Features Supported by the S9300
This section describes the methods for setting the IP addresses for the S9300.
The S9300 supports the following methods for setting IP addresses:
lSetting static IP addresses for interfaces manually
lConfiguring an interface to borrow an IP address from other interfaces
To save IP address spaces, the S9300 enables you to configure the address mask of an interface
as 31 bits. In this case, there are two IP addresses on a subnet: the subnet address and the broadcast
address of the subnet. Both the addresses are called host addresses.
1.3 Assigning IP Addresses to Interfaces
This section describes the procedure for assigning the IP addresses to interfaces.
1.3.1 Establishing the Configuration Task
1.3.2 Setting a Primary IP Address for an Interface
1.3.3 (Optional) Setting a Secondary IP Addresses for an Interface
1.3.4 Checking the Configuration
1.3.1 Establishing the Configuration Task
Applicable Environment
To run IP services on an interface, you need to set an IP address for the interface. Each interface
of the S9300 can be assigned with multiple IP addresses, in which one is the primary IP address
and the others are secondary IP addresses.
Generally, only one IP address, namely, the primary IP address, is required for an interface. In
special cases, the secondary IP addresses need to be set for the interface. For example, the
S9300 is connected to a physical network through an interface. The hosts on this physical
network belong to two Class C networks. In this case, you need to set a primary IP address and
a secondary IP address on the interface of the S9300. The S9300 can then communicate with all
the hosts on the physical network.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service1 IP Address Configuration
Pre-configuration Tasks
Before setting an IP address for an interface, complete the following tasks:
lConnecting interfaces and setting the physical parameters of each interface to make the
physical layer in Up state
lSetting parameters of the link layer protocol for interfaces and ensuring that the status of
the link layer protocol on the interfaces is Up
Data Preparation
To set an IP address for an interface, you need the following data.
No.Data
1Interface number
2IP address and subnet mask of the interface
3(Optional) Secondary IP address and subnet
mask of the interface
1.3.2 Setting a Primary IP Address for an Interface
Context
Do as follows on the S9300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The interface view is displayed.
Step 3 Run:
ip address ip-address { mask | mask-length }
The IP address of the interface is set.
One interface has only one primary IP address. If a primary IP address is already set on an
interface when a new primary IP address is set, the original primary IP address is deleted and
the new primary IP address takes effect.
----End
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
1.3.3 (Optional) Setting a Secondary IP Addresses for an Interface
Context
Do as follows on the S9300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The interface view is displayed.
Step 3 Run:
ip address ip-address { mask | mask-length } sub
The secondary IP address of the interface is set.
The secondary IP address with a 31-bit mask can be set for the interface.
Each interface supports up to 31 secondary IP addresses.
NOTE
The primary and secondary IP addresses of the same interface or different secondary IP addresses of the
same interface cannot be in the same network segment.
----End
1.3.4 Checking the Configuration
Context
All configurations are complete.
Procedure
Step 1 Run the display ip interface [ interface-type interface-number ] command to view the settings
of IP addresses on the interface.
Step 2 Run the display ip interface brief [ interface-type [ interface-number ] ] command to view brief
information about IP addresses on the interface.
----End
1.4 Setting Unnumbered IP Addresses
This section describes how to configure a tunnel interface to use the address of the loopback
interface.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service1 IP Address Configuration
1.4.3 Setting the Unnumbered IP Address
1.4.4 Checking the Configuration
1.4.1 Establishing the Configuration Task
Applicable Environment
In certain application environment, an interface needs to be configured to borrow an IP address
from another interface, thus saving IP addresses. Sometimes, an interface that is rarely used can
be configured to borrow an IP address from another interface. Configuring such interface with
a fixed IP address is unnecessary.
At present, the S9300 only allows the tunnel interface to borrow the IP address of the loopback
interface.
Pre-configuration Tasks
Before configuring an unnumbered address for an interface, complete the following tasks:
lSetting the physical attributes of the interface that borrows an IP address and the interface
lSetting the link layer protocol of the interface that borrows an IP address and the interface
Data Preparation
To set an unnumbered IP address for an interface, you need the following data.
No.
1Number, IP address, and mask of the interface
2Number of the interface that borrows an IP
that lends an IP address
that lends an IP address
Data
that lends an IP address
address
NOTE
This section describes only the configuration of IP address unnumbered.
Because the interface that borrows an IP address does not have an IP address itself, the dynamic routing
protocol cannot be enabled on such an interface. Therefore, you must manually set a static route to the
remote network segment to implement the interconnection between S9300s.
1.4.2 Setting the Primary IP Address
Context
Do as follows on the S9300.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service1 IP Address Configuration
Step 2 Run the display ip interface brief [ interface-type [ interface-number ] ] command to view brief
information about the IP address on the interface.
----End
1.5 Configuration Examples
This section provides several examples of IP address configuration.
1.5.1 Example for Setting Primary and Secondary IP Addresses
1.5.2 Example for Configuring a Tunnel Interface to Borrow the IP Address of a Loopback
Interface
1.5.1 Example for Setting Primary and Secondary IP Addresses
Networking Requirements
As shown in Figure 1-1, GE 1/0/1 of the S9300 is connected to a LAN, in which hosts belong
to two different network segments, that is 172.16.1.0/24 and 172.16.2.0/24. It is required that
the S9300 can access the two network segments but the host in 172.16.1.0/24 cannot interconnect
with the host in 172.16.2.0/24.
Figure 1-1 Networking diagram for setting IP addresses
Configuration Roadmap
The configuration roadmap is as follows:
1.Analyze the address of the network segment to which each interface is connected.
2.Set the secondary IP addresses for an interface.
NOTE
Note that the primary and secondary IP addresses of the same interface or different secondary IP addresses
of the same interface cannot be in the same network segment.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
To complete the configuration, you need the following data.
lPrimary IP address and subnet mask of the interface
lSecondary IP address and subnet mask of the interface
Procedure
Step 1 Set the IP address for VLANIF 100 where GE 1/0/1 of the S9300 belongs.
<Quidway> system-view
[Quidway] vlan 100
[Quidway-Vlan100] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port hybrid pvid vlan 100
[Quidway-GigabitEthernet1/0/1] port hybrid untagged vlan 100
[Quidway-GigabitEthernet1/0/1] quit
[Quidway] interface vlanif 100
[Quidway-Vlanif100] ip address 172.16.1.1 24
[Quidway-Vlanif100] ip address 172.16.2.1 24 sub
Step 2 Verify the configuration.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
# Ping a host on network segment 172.16.2.0 from S9300. The ping succeeds.
<Quidway> ping 172.16.1.2
PING 172.16.1.2: 56 data bytes, press CTRL_C to break
Reply from 172.16.1.2: bytes=56 Sequence=1 ttl=128 time=25 ms
Reply from 172.16.1.2: bytes=56 Sequence=2 ttl=128 time=27 ms
Reply from 172.16.1.2: bytes=56 Sequence=3 ttl=128 time=26 ms
Reply from 172.16.1.2: bytes=56 Sequence=4 ttl=128 time=26 ms
Reply from 172.16.1.2: bytes=56 Sequence=5 ttl=128 time=26 ms
0.00% packet loss
round-trip min/avg/max = 25/26/27 ms
Ping a host on network segment 172.16.2.0 from the S9300. The ping succeeds.
<Quidway> ping 172.16.2.2
PING 172.16.2.2: 56 data bytes, press CTRL_C to break
Reply from 172.16.2.2: bytes=56 Sequence=1 ttl=128 time=25 ms
Reply from 172.16.2.2: bytes=56 Sequence=2 ttl=128 time=26 ms
Reply from 172.16.2.2: bytes=56 Sequence=3 ttl=128 time=26 ms
Reply from 172.16.2.2: bytes=56 Sequence=4 ttl=128 time=26 ms
Reply from 172.16.2.2: bytes=56 Sequence=5 ttl=128 time=26 ms
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service1 IP Address Configuration
ip address 172.16.1.1 255.255.255.0
ip address 172.16.2.1 255.255.255.0 sub
#
interface GigabitEthernet1/0/1
port hybrid pvid vlan 100
port hybrid untagged vlan 100
#
return
1.5.2 Example for Configuring a Tunnel Interface to Borrow the IP
Address of a Loopback Interface
Networking Requirements
As shown in Figure 1-2, Tunnel 3/0/15 of S9300-A is connected to S9300-C through a tunnel.
Tunnel 3/0/15 of S9300-A is rarely used. To save IP addresses, configure Tunnel 3/0/15 to
borrow the IP address of Loopback0. Tunnel 3/0/15 of S9300-C borrows the IP address of
Loopback0 of S9300-C.
Figure 1-2 Networking diagram for configuring a tunnel interface to borrow an IP address of a
loopback interface
Configuration Roadmap
The configuration roadmap is as follows:
lSet addresses of the Loopback0 interfaces of S9300-A and S9300-C.
lConfigure OSPF.
lConfigure Tunnel 3/0/15 of S9300-A to borrow the IP address of Loopback0.
lConfigure Tunnel 3/0/15 of S9300-C to borrow the IP address of Loopback0.
Data Preparation
To complete the configuration, you need the following data.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
Step 2 Configure S9300-C. The configuration procedure is the same as the configuration procedure of
S9300-A.
Step 3 Verify the configuration.
# Ping 9.9.9.9 on S9300-A.
[S9300-A] ping 9.9.9.9
PING 9.9.9.9: 56 data bytes, press CTRL_C to break
Reply from 9.9.9.9: bytes=56 Sequence=1 ttl=255 time=2 ms
Reply from 9.9.9.9: bytes=56 Sequence=2 ttl=255 time=3 ms
Reply from 9.9.9.9: bytes=56 Sequence=3 ttl=255 time=3 ms
Reply from 9.9.9.9: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 9.9.9.9: bytes=56 Sequence=5 ttl=255 time=3 ms
This chapter describes the principle of the Dynamic Host Configuration Protocol (DHCP), and
provides configuration procedures and examples of DHCP.
2.1 Introduction to DHCP
This section describes the principle of DHCP.
2.2 DHCP Features Supported by the S9300
This section describes the DHCP features supported by the S9300.
2.3 Configuring the DHCP Relay Agent
This section describes how to configure the DHCP relay agent so that DHCP requests from
clients can be sent to the DHCP server through the DHCP relay agent across the network
segment.
2.4 Configuring the S9300 to Request the DHCP Server to Release an IP Address of a Client
This section describes how to configure the S9300 to request the DHCP server to release the IP
address obtained by a client.
2.5 Maintaining DHCP
This section describes how to maintain DHCP.
2.6 Configuration Examples
This section provides several configuration examples of DHCP.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
With the rapid growth in network scales and complexity, network configuration becomes more
complicated; the location of hosts such as portable computers and wireless networks changes;
the number of computers exceeds the number of assignable IP addresses. DHCP is developed
to solve the preceding problems.
DHCP works in client/server mode. DHCP clients request the configuration from the DHCP
server dynamically. Then, the DHCP server can send the configuration to the clients easily.
The early DHCP protocol is used on a subnet where the DHCP clients and DHCP server are
located, whereas it cannot work across the network segment. In this case, you need to configure
a DHCP server for each subnet, which wastes resources. DHCP relay is introduced to prevent
the wastage of resources.
2.2 DHCP Features Supported by the S9300
Configuration Guide - IP Service
This section describes the DHCP features supported by the S9300.
The S9300 supports DHCP relay; therefore, the S9300 can provide relay services for DHCP
clients across subnets and the DHCP server. The S9300 then sends DHCP protocol messages to
the destination DHCP server or clients across the network segment. In this case, DHCP clients
on multiple networks can use the same DHCP server. This saves the costs and facilitates
centralized management.
2.3 Configuring the DHCP Relay Agent
This section describes how to configure the DHCP relay agent so that DHCP requests from
clients can be sent to the DHCP server through the DHCP relay agent across the network
segment.
Context
After the DHCP relay function is enabled in a super VLAN, the DHCP snooping cannot be
enabled in the same super VLAN.
2.3.1 Establishing the Configuration Task
2.3.2 Configuring a DHCP Server Group
2.3.3 Enabling DHCP Relay
2.3.4 Binding an Interface to a DHCP Server Group
2.3.5 Checking the Configuration
2.3.1 Establishing the Configuration Task
Applicable Environment
If a DHCP server is not configured on the local network, you can enable DHCP relay on the
S9300 so that DHCP Request messages from clients can be transmitted to the DHCP server
through the DHCP relay agent. To ensure that the clients can obtain IP addresses, the server
must be the DHCP server based on the global address pool. That is, the interface connecting the
DHCP server and the DHCP relay agent must not be configured with any interface address pool.
Pre-configuration Tasks
Before configuring the DHCP relay agent, complete the following tasks:
lConfiguring a DHCP server
lConfiguring a reachable route between the S9300 and the DHCP server
Data Preparation
To configure the DHCP relay agent, you need the following data.
No.Data
1Name of the DHCP server group
2IP address of the DHCP server in the DHCP server group
3Number and IP address of the interface enabled with DHCP relay
2.3.2 Configuring a DHCP Server Group
Context
Do as follows on the S9300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
dhcp server group
A DHCP server group is created and the DHCP server group view is displayed.
You can configure up to 512 DHCP server groups.
Step 3 Run:
dhcp-server
DHCP servers are added to a DHCP server group.
You can add up to 20 DHCP servers to a DHCP server group.
----End
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
The DHCP server group that is bound to the VLANIF interface is specified.
----End
2.3.5 Checking the Configuration
Prerequisite
The configurations of DHCP relay are complete.
Procedure
lRun the display dhcp relay { all | interface interface-type interface-number } command
to check the DHCP server group and servers in the DHCP server group on the VLANIF
interface.
lRun the display dhcp relay statistics group-name command to check the statistics on the
DHCP relay agent.
lRun the display dhcp server group group-name command to check the configuration of
DHCP servers in the DHCP server group.
----End
2.4 Configuring the S9300 to Request the DHCP Server to
Release an IP Address of a Client
This section describes how to configure the S9300 to request the DHCP server to release the IP
address obtained by a client.
2.4.1 Establishing the Configuration Task
2.4.2 Configuring the S9300 to Request the DHCP Server to Release an IP Address of a Client
2.4.3 Checking the Configuration
2.4.1 Establishing the Configuration Task
Applicable Environment
You may need to use the DHCP relay agent to manually release the IP address obtained by the
client in certain situations, for example, you need to forcibly cut the user off. After the S9300
is configured to request the DHCP server to release the IP address obtained by a client through
the DHCP relay agent, the DHCP relay agent sends Release messages to the DHCP server. The
DHCP server then releases the lease of the specified IP address after receiving Release messages.
Pre-configuration Tasks
Before configuring the S9300 to request the DHCP server to release the IP address of a client,
complete the following task:
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
lRun the display dhcp relay { all | interface interface-type interface-number } command
to check the DHCP server group and servers in the DHCP server group on the VLANIF
interface.
lRun the display dhcp relay statistics command to check the statistics on the DHCP relay
agent.
lRun the display dhcp server group [ group-name ] command to check the configuration
of DHCP servers in the DHCP server group.
----End
2.6 Configuration Examples
This section provides several configuration examples of DHCP.
2.6.1 Example for Configuring the DHCP Relay Agent
2.6.2 Example for Configuring the DHCP Relay in a Super VLAN
2.6.1 Example for Configuring the DHCP Relay Agent
Networking Requirements
As shown in Figure 2-1, the DHCP client is on the network segment 20.20.20.0/24, whereas
the DHCP server is on the network segment of 10.10.10.0/24. DHCP messages need to be sent
by the S9300 enabled with DHCP relay so that the DHCP client can apply for the configuration
including an IP address from the DHCP server.
The DHCP server needs to be configured with an IP address pool of the network segment
20.20.20.0/24 and the route from the DHCP server to the network segment 20.20.20.0/24 is
reachable.
Figure 2-1 Networking diagram for configuring the DHCP relay agent
Run the display dhcp relay command on the S9300. You can view the configuration of DHCP
relay enabled on the interface.
[Quidway] display dhcp relay interface vlanif 100
** Vlanif100 DHCP Relay Configuration **
DHCP server group name : dhcpgroup1
DHCP server IP [0 ] : 100.10.10.1
DHCP server IP [1 ] : 100.10.10.2
----End
Configuration Files
Configuration file of the S9300
#
sysname Quidway
#
vlan 100
#
dhcp server group dhcpgroup1
dhcp-server 100.10.10.1
dhcp-server 100.10.10.2
#
interface Vlanif100
ip address 20.20.20.1 255.255.255.0
dhcp select relay
dhcp relay server-select dhcpgroup1
#
interface GigabitEthernet1/0/0
port link-type access
port default vlan 100
#
return
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
2.6.2 Example for Configuring the DHCP Relay in a Super VLAN
Networking Requirements
As shown in Figure 2-2, the DHCP client is on the network segment 20.20.20.0/24 and the
DHCP server is on the network segment 100.10.10.0/24. Therefore, the DHCP packet needs to
be relayed through the S9300 enabled with the DHCP relay function in the super VLAN. In this
manner, the DHCP client can apply for an IP address from the DHCP server.
An IP address pool containing the network segment 20.20.20.0/24 is configured on the DHCP
server. The DHCP server has a reachable route to 20.20.20.0/24.
Run the display dhcp relay command on the S9300 to view the DHCP relay configuration on
the interface.
[Quidway] display dhcp relay interface vlanif 100
** Vlanif100 DHCP Relay Configuration **
DHCP server group name : dhcpgroup1
DHCP server IP [0 ] : 100.10.10.1
DHCP server IP [1 ] : 100.10.10.2
This section describes the IP Performance features supported by the S9300.
The S9300 supports the following IP performance parameters that can be changed:
lSending of Internet Control Message Protocol (ICMP) host unreachable packets
lSending of ICMP redirection packets
lSending ICMP Port Unreachable packets
lDiscarding the ICMP packets whose TTL values are 1
lDiscarding the ICMP packets that carry options
lDiscarding ICMP Destination Unreachable packets
lLoad balancing mode of IP packet forwarding
NOTE
The S9300 supports the load balancing of only the packets sent by the CPU.
lTimeout interval of the TCP FIN-Wait timer
Configuration Guide - IP Service
lTimeout interval of the TCP SYN-Wait timer
lSize of the packet receive or transmit buffer of the connection-oriented socket
lForcible fragmentation of packets on an interface at the outbound direction
lStatistics on Transmission Control Protocol (TCP), IP, User Datagram Protocol (UDP),
and socket monitor traffic
3.2 Optimizing IP Performance
This section describes how to optimize IP performance of a certain network by setting IP
performance parameters.
3.2.1 Establishing the Configuration Task
3.2.2 Enabling an Interface to Check the Source IP Addresses of Packets
3.2.3 Configuring Forcible Fragmentation of Outgoing Packets on an Interface
3.2.4 Setting ICMP Parameters
3.2.5 Setting TCP Parameters
3.2.6 Setting the Load Balancing Mode of IP Packet Forwarding
3.2.7 Checking the Configuration
3.2.1 Establishing the Configuration Task
Applicable Environment
On certain networks, you need to change IP performance parameters to optimize the
performance. To optimize the performance, you need to set parameters.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service3 IP Performance Configuration
CAUTION
l If the S9300 is disabled from sending ICMP redirection packets, the S9300 does not send
ICMP redirection packets in any case.
l If the S9300 is disabled from sending ICMP host unreachable packets, the S9300 does not
send ICMP host unreachable packets in any case.
Do as follows on the S9300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
icmp ttl-exceeded drop { slot slot-id | all }
The LPU is configured to discard the ICMP packets whose TTL values are 1.
Step 3 Run:
icmp with-options drop { slot slot-id | all }
The LPU is configured to discard the ICMP packets that carry options.
Step 4 Run:
icmp unreachable drop
The S9300 is configured to discard the ICMP Destination Unreachable packets.
Step 5 Run:
icmp port-unreachable send
The S9300 is configured to send ICMP Port Unreachable packets.
Step 6 Run:
icmp host-unreachable send
The S9300 is configured to send ICMP Host Unreachable packets.
The relation between the icmp host-unreachable send (system view) and the icmp host-unreachable send
(interface view) commands are as follows:
l When the S9300 is disabled from sending ICMP Host Unreachable packets, all the interfaces of the
l When the S9300 is enabled to send ICMP Host Unreachable packets, all the interfaces of the S9300 can
NOTE
S9300 do not send the ICMP Host Unreachable packets even if you run the icmp host-unreachable send
(interface view) command in the interface view.
send ICMP Host Unreachable packets, which conforms to the default setting. In this case, you can run the
undo icmp host-unreachable send (interface view) command to disable a specified interface from sending
the ICMP Host Unreachable packets.
Step 7 Run:
interface interface-type interface-number
The VLANIF interface view is displayed.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
The interface is enabled to send ICMP redirection packets.
Step 9 Run:
icmp host-unreachable send
The interface is enabled to send ICMP host unreachable packets.
----End
3.2.5 Setting TCP Parameters
Context
You can set the following TCP parameters:
lSYN-Wait timer: When sending packets with the SYN flag, TCP starts the SYN-Wait timer.
If no response is received before the SYN-Wait timer expires, the TCP connection ends.
The timeout interval of the TCP SYN-Wait timer is an integer that ranges from 2 to 600,
in seconds. By default, the value is 75s.
lFIN-Wait timer: When the TCP connection status changes from FIN_WAIT_1 to
FIN_WAIT_2, the FIN-Wait timer is enabled. If no packet with the FIN flag is received
before the FIN-Wait timer expires, the TCP connection ends. The timeout interval of the
TCP FIN-Wait timer is an integer that ranges from 76 to 3600, in seconds. By default, the
value is 675s.
lSize of the packet receive or transmit buffer: The value is an integer that ranges from 1 to
32, in Kbytes. By default, the value is 8 Kbytes.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
Procedure
Step 1 Run:
Step 2 Run:
Step 3 Run:
Step 4 Run:
If you run the tcp window command repeatedly in the same system view, the latest configuration
overrides the previous configuration.
Do as follows on the S9300.
system-view
The system view is displayed.
tcp timer syn-timeout interval
The timeout interval of the TCP SYN-Wait timer is set.
tcp timer fin-timeout interval
The timeout interval of the TCP FIN-Wait timer (FIN_WAIT_2) is set.
tcp window window-size
The size of the packet receive or transmit buffer is set.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service3 IP Performance Configuration
3.2.6 Setting the Load Balancing Mode of IP Packet Forwarding
Context
When flow-based load balancing mode is adopted, the S9300 performs the Hash algorithm based
on the protocol type, source IP address and mask, destination IP address and mask, source port
number, and destination port number, and then selects a route for forwarding packets according
to the Hash value.
When packet-based load balancing mode is adopted, the S9300 selects different links for
forwarding packets.
By default, the flow-based load balancing mode is adopted.
The load-balance command is valid for forwarding of Multiprotocol Label Switching Protocol
(MPLS) packets. For details on this command, see "MPLS Public Configuration" in the QuidwayS9300 Terabit Routing Switch Configuration Guide - MPLS.
[ destination-mask1 ] [ longer ] [ verbose ] command to check information about the FIB
entries that match destination IP addresses in a specified range.
[ destination-mask1 ] [ longer ] [ verbose ] command to check information about the FIB
entries that match destination IP addresses in a specified range.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
to check information about the FIB entries that match the specified next hop address.
lRun the display fib [ slot-id ] [ vpn-instance vpn-instance-name ] statistics command to
check the total number of FIB entries.
----End
3.3.3 Debugging IP Performance
Context
CAUTION
Debugging affects the performance of the system. So, after debugging, run the undo debugging
all command to disable it immediately.
When an IP, TCP, UDP, RAWIP, or RAWLINK fault occurs, run the following debugging
commands in the user view to locate the fault.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
Procedure
For the procedure for displaying the debugging information, see "Information Center" in the
Quidway S9300 Terabit Routing SwitchConfiguration Guide - Device Management. For details
on debugging commands, see the Quidway S9300 Terabit Routing Switch DebuggingReference.
lRun the debugging ip packet [ error ] [ acl acl-number ] [ verbose ] command in the user
view to debug IP packets.
lRun the debugging ip icmp [ verbose ] command in the user view to debug ICMP packets.
address ] [ dest-port dest-port ] [ flag flag-number ] or debugging tcp packet [ task-id
task-id ] [ socket-id socket-id ] [ flag flag-number ] command in the user view to debug
ip remote-address ] [ remote-port remote-port ] or debugging tcp event [ task-id task-id ] [ socket-id socket-id ] command in the user view to debug TCP events.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service3 IP Performance Configuration
socket-id ] [ verbose verbose-number ] command in the user view to debug RAWLINK
packets.
----End
3.4 Configuration Examples
This section provides several configuration examples of IP performance.
3.4.1 Example for Disabling the Sending of ICMP Redirection Packets
3.4.2 Example for Configuring ICMP Host Unreachable Packets
3.4.3 Example for Optimizing System Performance by Discarding Certain ICMP Packets
3.4.1 Example for Disabling the Sending of ICMP Redirection
Packets
Networking Requirements
As shown in Figure 3-1, to limit the sending of ICMP redirection packets, S9300-A, S9300-B,
and S9300-C are required and these devices are connected through their GE interfaces.
Figure 3-1 Networking diagram for disabling the sending of ICMP redirection packets
Configuration Roadmap
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
The configuration roadmap is as follows:
1.Assign IP addresses to interfaces on routing devices.
2.Configure static routes to indirectly connected devices.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service3 IP Performance Configuration
[S9300-B-Vlanif10] quit
Step 4 Verify the configuration.
# Debug ICMP packets on S9300-B.
<S9300-B> debugging ip icmp
# Run the ping command on S9300-A. You can view that S9300-B does not send host redirection
packets.
[S9300-A] ping 2.2.2.2
PING 2.2.2.2: 56 data bytes, press CTRL_C to break
Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=255 time=3 ms
Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=255 time=3 ms
Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=255 time=3 ms
Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=255 time=3 ms
#
interface GigabitEthernet1/0/0
port hybrid tagged vlan 10
#
return
Configuration Guide - IP Service
3.4.2 Example for Configuring ICMP Host Unreachable Packets
Networking Requirements
As shown in Figure 3-2, to limit the sending of ICMP redirection packets, S9300-A, S9300-B,
and S9300-C are required and these devices are connected through their GE interfaces.
Figure 3-2 Networking diagram for disabling the sending of ICMP host unreachable packets
Configuration Roadmap
The configuration roadmap is as follows:
1.Assign IP addresses to interfaces on S9300s.
2.Configure static routes to indirectly connected devices.
3.Enable the sending of ICMP host unreachable packets in the system view.
4.Enable the sending of ICMP host unreachable packets in the interface view.
Data Preparation
To complete the configuration, you need the following data:
lStatic routes to indirectly connected devices
lIP address of the interface
NOTE
By default, the sending of ICMP host unreachable packets is enabled on the system view and on the
interface view. If the configuration is not changed, you can skip this configuration.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service3 IP Performance Configuration
Networking Requirement
As shown in Figure 3-3, the S9300 functions as the convergence device. The enterprise users,
individual users, and DSLAMs are attached to the S9300. The S9300 is connected to the Internet
through a BRAS. To reduce the workload on the S9300, you need to configure the S9300 to
discard certain ICMP packets. The ICMP packets to be discarded have any of the following
characteristics:
lThe TTL values of the packets are 1.
lThe packets carry options.
lThe destination addresses of the packets are unreachable.
Figure 3-3 Networking for configuring ICMP security function
Configuration Roadmap
Perform the configurations in the system view of the S9300. The configuration roadmap is as
follows:
lConfigure the S9300 to discard the ICMP packets whose TTL values are 1.
lConfigure the S9300 to discard the ICMP packets that carry options.
lConfigure the S9300 to discard the ICMP packets whose destination addresses are
unreachable.
Data Preparation
None
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
Step 1 Configure the S9300 to discard certain ICMP packets.
# Configure the S9300 to discard the ICMP packets whose TTL values are 1.
<Quidway> system-view
[Quidway] icmp ttl-exceeded drop all
# Configure the S9300 to discard the ICMP packets that carry options.
[Quidway] icmp with-options drop all
# Configure the S9300 to discard the ICMP packets whose destination addresses are unreachable.
[Quidway] icmp unreachable drop
Step 2 Verify the configuration.
# Run the display this command in the system view to display the configuration of the ICMP
security function.
[Quidway] display this
#
icmp unreachable drop
icmp ttl-exceeded drop slot 1
icmp with-options drop slot 1
icmp ttl-exceeded drop slot 2
icmp with-options drop slot 2
icmp ttl-exceeded drop slot 3
icmp with-options drop slot 3
#
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
----End
Configuration Files
#
sysname Quidway
#
icmp unreachable drop
icmp ttl-exceeded drop slot 1
icmp with-options drop slot 1
icmp ttl-exceeded drop slot 2
icmp with-options drop slot 2
icmp ttl-exceeded drop slot 3
icmp with-options drop slot 3
#
return
This section describes the basic concepts of IP Unicast PBR.
PBR is a routing mechanism based on user-defined policies. Compared with the routing based
on the destination address of data packets, PBR is more flexible. It is secure and facilitates load
balancing of routes.
4.2 IP Unicast PBR Features Supported by the S9300
This section describes the IP unicast PBR features supported by the S9300.
The S9300 configured with PBR supports routing based on the source IP address and length of
the packets and can specify routes flexibly. When sending packets, the S9300 first forwards
them according to the policy-based route. If no policy-based route exists or the policy is
configured but no entry is matched, the S9300 forwards the packets according to the routing
table.
The S9300 supports only local PBR. That is, the S9300 can send packets generated locally
through the policy-based route, but does not forward the received packets through the policybased route.
NOTE
Do not be confused by the concepts of IP unicast policy-based routing and routing policy.
4.3 Configuring IP Unicast PBR
This section describes how to configure IP unicast PBR so that certain packets are forwarded
through a specified outgoing interface.
4.3.1 Establishing the Configuration Task
4.3.2 Defining Matching Rules for PBR
4.3.3 Defining Actions of PBR
4.3.4 Applying a Policy-based Route
4.3.5 Checking the Configuration
4.3.1 Establishing the Configuration Task
Applicable Environment
A private network is connected to the public network through an S9300, which provides multiple
interfaces to connect to the public network. To forward certain packets through a specified
outgoing interface, you need to configure IP unicast PBR.
Pre-configuration Tasks
Before configuring IP unicast PBR, complete the following tasks:
When defining actions of PBR, pay attention to the following points:
lA policy can contain multiple apply clauses that are used together.
lIf multiple next hops are set in a policy, packets are balanced among the multiple next hops.
lIf the apply ip-address next-hop command is used to configure two next hops and then
the command is used to configure a next hop, the next hop configured later overrides the
first next hop configured previously. The second next hop that is configured previously,
however, is not overridden.
The apply ip-precedence command is used to set the priority of IP packets. The value of
precedence ranges from 0 to 7. You can also use preference keywords to represent its priority
values. Table 4-1 lists the relations between keywords and values.
The policy-based route is applied on the local S9300.
A policy-based route takes effect for only the packets generated by the local S9300. You
can configure only one local policy-based route. If you configure multiple local policybased routes, the latest configuration overrides the previous configuration.
----End
4.3.5 Checking the Configuration
Prerequisite
The configurations of IP unicast PBR are complete.
Procedure
lRun the display ip policy-based-route command to check the policy used on the local
S9300.
lRun the display ip policy-based-route setup local command to check the the policy-based
route on the local S9300.
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
lRun the display ip policy-based-route statistics local command to check the statistics on
the policy-based route on the local S9300.
lRun the display policy-based-route [ policy-name ] command to check the contents of a
created policy.
----End
4.4 Maintaining IP Unicast PBR
This section describes how to maintain IP unicast PBR.
4.4.1 Monitoring the Running Status of IP Unicast PBR
4.4.2 Debugging IP Unicast PBR
4.4.1 Monitoring the Running Status of IP Unicast PBR
Context
In routine maintenance, you can run the following command in any view to view the running
status of IP unicast PBR.
Procedure
lRun the display ip policy-based-route command to check the policy used on the local
S9300.
lRun the display ip policy-based-route setup local command to check the policy-based
route on the local S9300.
lRun the display ip policy-based-route statistics local command to check the statistics on
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service4 IP Unicast PBR Configuration
lRun the display policy-based-route [ policy-name ] command to check the contents of a
created policy.
----End
4.4.2 Debugging IP Unicast PBR
Context
CAUTION
Debugging affects the performance of the system. So, after debugging, run the undo debugging
all command to disable it immediately.
When an IP unicast PBR fault occurs, you can run the debugging command in the user view to
locate the fault.
For the procedure for displaying the debugging information, see "Information Center" in the
Quidway S9300 Terabit Routing SwitchConfiguration Guide - Device Management. For details
on debugging commands, see the Quidway S9300 Terabit Routing Switch DebuggingReference.
Procedure
Step 1 Run the debugging ip policy-based-route command in the user view to debug the policy-based
route.
----End
4.5 Configuration Examples
This section provides several configuration examples of IP unicast PBR.
4.5.1 Example for Configuring PBR Based on the Protocol Type
4.5.2 Example for Configuring PBR Based on the Packet Length
4.5.1 Example for Configuring PBR Based on the Protocol Type
Networking Requirements
As shown in Figure 4-1, a policy-based route named aaa is defined. All TCP packets sent from
S9300A are sent through VLANIF 11, whereas other packets are still forwarded according to
the routing table. S9300A is directly connected to S9300B and S9300C. The route between
S9300B and S9300C is unreachable.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
# Establish a Telnet connection with S9300B (1.1.2.2/24) on S9300A, and the connection
succeeds.
<S9300A> telnet 1.1.2.2
Trying 1.1.2.2 ...
Press CTRL+K to abort
***********************************************************
* All rights reserved (2000-2010) *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
* Notice: *
* This is a private communication system. *
* Unauthorized access or use may lead to prosecution. *
***********************************************************
Info: The max number of VTY users is 20, and the number
of current VTY users on line is 1.
<S9300B>
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
# Establish a Telnet connection with S9300C (1.1.3.2/24) on S9300A, and the connection fails.
<S9300A> telnet 1.1.3.2
Trying 1.1.3.2 ...
Press CTRL+K to abort
Error: Failed to connect to the remote host.
TCP is used for establishing a Telnet connection. The preceding results indicate that all the TCP
packets are forwarded to the next hop 1.1.2.2, and PBR is set successfully.
----End
Configuration Files
lConfiguration file of S9300A
#
sysname S9300A
#
vlan batch 11 to 12
#
acl number 3001
rule 5 permit tcp
#
acl number 3002
rule 5 permit ip
#
interface Vlanif11
ip address 1.1.2.1 255.255.255.0
#
interface Vlanif12
ip address 1.1.3.1 255.255.255.0
#
interface GigabitEthernet1/0/0
port hybrid tagged vlan 11
#
interface GigabitEthernet2/0/0
port hybrid tagged vlan 12
#
ip local policy-based-route aaa
#
policy-based-route aaa permit node 5
if-match acl 3001
apply ip-address next-hop 1.1.2.2
policy-based-route aaa deny node 10
if-match acl 3002
#
return
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service4 IP Unicast PBR Configuration
# Ping Loopback 0 of S9300B from S9300A and set the data length of packets to 80 bytes.
C:\> ping -l 80 10.1.1.1
Pinging 10.1.1.1 with 80 bytes of data:
Reply from 10.1.1.1: bytes=80 time<6ms TTL=255
Reply from 10.1.1.1: bytes=80 time<1ms TTL=255
Reply from 10.1.1.1: bytes=80 time<10ms TTL=255
Reply from 10.1.1.1: bytes=80 time<18ms TTL=255
Ping statistics for 10.1.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 18ms, Average = 8ms
# The following information about PBR is displayed on S9300A:
# According to the preceding information about PBR, S9300A sends the received packets
through VLANIF 10 according to the next hop 150.1.1.2 determined by the policy-based route.
# Ping Loopback 0 of S9300B from S9300A and set the data length of packets to 1450 bytes.
C:\> ping -l 1450 10.1.1.1
Pinging 10.1.1.1 with 1450 bytes of data:
Reply from 10.1.1.1: bytes=1450 time<18ms TTL=255
Reply from 10.1.1.1: bytes=1450 time<140ms TTL=255
Reply from 10.1.1.1: bytes=1450 time<5ms TTL=255
Reply from 10.1.1.1: bytes=1450 time<15ms TTL=255
Ping statistics for 10.1.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 5ms, Maximum = 1408ms, Average = 44ms
# The following information about PBR is displayed on S9300A:
# According to the preceding information about PBR, S9300A sends the received packets
through VLANIF 11 according to the next hop 151.1.1.2 determined by the policy-based route.
----End
Configuration Files
lConfiguration file of S9300A
#
sysname S9300A
#
ip local policy-based-route policy1
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
This section describes the principle of UDP helper.
The S9300 on a network needs to obtain network configurations or query the name of another
device by sending broadcast packets. The S9300, however, cannot obtain the required
information if the S9300 and the server or the device to be queried are in different broadcast
domains.
To address the preceding problem, the S9300 provides the UDP helper function. Through the
UDP helper function, the S9300 can convert broadcast packets on a specified User Datagram
Protocol (UDP) port into unicast packets to be sent to a specified destination server, or forward
broadcast packets on a subnet to another subnet.
5.2 UDP Helper Features Supported by the S9300
This section describes the UDP Helper features supported by the S9300.
After the UDP helper function is enabled on the S9300, the S9300 forwards broadcast packets
of six default UDP ports to corresponding destination servers in unicast mode. Other UDP ports
must be configured manually.
Table 5-1 lists the default ports.
Table 5-1 Lists of default UDP ports on which packets are forwarded after the UDP helper
function is enabled
Protocol
Trivial File Transfer
Protocol (TFTP)
Domain Name
System (DNS)
Time Service37
NetBIOS Name
Service (NetBIOSNS)
NetBIOS Datagram
Service (NetBIOSDS)
UDP Port Number
69
53
137
138
Terminal Access
Controller Access
Control System
(TACACS)
The UDP helper function cannot be used to send DHCP messages, that is, the number of the
UDP port cannot be 67 or 68. To forward Dynamic Host Configuration Protocol (DHCP)
messages, you need to enable the DHCP relay function.
5.3 Configuring UDP Helper
This section describes how to configure UDP helper to forward IP broadcast packets of a
specified UDP port.
5.3.1 Establishing the Configuration Task
5.3.2 Enabling the UDP Helper Function
5.3.3 (Optional) Configuring the UDP Port on Which Packets Are Forwarded
5.3.4 Configuring the Destination Server for Packet Relay
5.3.5 Checking the Configuration
5.3.1 Establishing the Configuration Task
Applicable Environment
When an S9300 on a network needs to obtain network configurations or query the name of
another device by sending broadcast packets, you can enable the UDP helper function if the
S9300 and the device to be queried are in different broadcast domains.
Pre-configuration Tasks
Before configuring the UDP helper function, complete the following task:
lConfiguring a reachable route between the S9300 and the server
Data Preparation
To configure the UDP helper function, you need the following data.
No.
1UDP port on which packets are forwarded
2VLANIF interface and IP address of the
Data
destination server that sends packets of UDP
ports
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
After the UDP Helper function is enabled, the S9300 checks the destination UDP port of the
received packet and determines whether to relay the packet. Then the S9300 performs the
operations as follows:
lIf the destination UDP port number of packets matches the UDP port number on which
packets need to be forwarded and the destination MAC address is the broadcast MAC
address, the S9300 changes the destination IP address in the IP packet header and sends
them to a specified destination server.
lIf the destination UDP port number of packets does not match the UDP port number on
which packets need to be forwarded, the S9300 discards them.
Procedure
Step 1 Run:
system-view
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
The system view is displayed.
Step 2 Run:
udp-helper enable
The UDP helper function is enabled.
----End
5.3.3 (Optional) Configuring the UDP Port on Which Packets Are
Forwarded
Prerequisite
The UDP helper function is enabled.
Context
After the UDP helper function is enabled, the S9300 forwards broadcast packets of UDP ports
37, 49, 53, 69, 137, and 138 by default. If the port number that needs to be configured is in the
range of default UDP port numbers, you can skip this configuration procedure.
The S9300 does not forward DHCP messages of UDP ports 67 and 68.
udp-helper port { port-number | dns | netbios-ds | netbios-ns | tacacs | tftp |
time }
The UDP port on which packets need to be forwarded are configured.
----End
5.3.4 Configuring the Destination Server for Packet Relay
Context
Do as follows on the S9300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface vlanif vlan-id
The VLANIF interface view is displayed.
Step 3 Run:
udp-helper server ip-address
The destination server to which UDP packets are forwarded is configured.
After the UDP Helper function is enabled, if the destination UDP port of the packet received by
the VLANIF interface is the same as the UDP port for packet relay, the packet is forwarded to
the destination server configured on the VLANIF interface.
----End
5.3.5 Checking the Configuration
Prerequisite
The configurations of the UDP helper function are complete.
Procedure
lRun the display udp-helper server [ interface interface-type interface-number ] command
to check information about UDP packets forwarded on the interface
----End
Example
Run the display udp-helper server command to check the number of the VLANIF interface
that forwards UDP packets, the IP address of the destination server, and the number of forwarded
UDP packets.
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
As shown in Figure 5-1, the IP address of VLANIF 100 on the S9300 is 10.110.1.1/16; the IP
address of the NetBIOS-NS name server is 10.2.1.1/16. The S9300 and the NetBIOS-NS name
server are on different network segments, but the route between the S9300 and the NetBIOSNS name server is reachable.
The S9300 is configured to forward broadcast packets with the destination UDP port number as
137 and the destination IP address as 255.255.255.255 and broadcast packets with the the
destination IP address as 10.110.255.255 to the NetBIOS-NS name server.
When receiving broadcast packets of NetBIOS-NS Register, the S9300 changes the packets
whose destination IP address is the IP address of the NetBIOS-NS name server. Then, the
S9300 forwards the packets to the specified NetBIOS-NS name server.
Figure 5-1 Networking diagram for configuring UDP helper
Configuration Roadmap
Data Preparation
Issue 02 (2009-08-06)Huawei Proprietary and Confidential
The configuration roadmap is as follows:
1.Enable the UDP helper function on the S9300.
2.After the UDP helper function is enabled on the S9300, the S9300 forwards broadcast
packets with the destination UDP port as 137 by default. The UDP port number, therefore,
does not need to be configured here.
3.Create a VLAN, assign the IP address and configure the destination server to which packets
To complete the configuration, you need the following data:
of UDP ports are forwarded on the VLANIF interface..