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