Huawei Quidway S9300 Configuration Guide - IP Service

Quidway S9300 Terabit Routing Switch
V100R001C03
Configuration Guide - IP Service
Issue 02
Date 2009-08-06
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
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
Website: http://www.huawei.com
Email: support@huawei.com
Copyright © Huawei Technologies Co., Ltd. 2009. All rights reserved.
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.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service Contents

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
1.5 Configuration Examples..................................................................................................................................1-7
1.5.1 Example for Setting Primary and Secondary IP Addresses...................................................................1-7
1.5.2 Example for Configuring a Tunnel Interface to Borrow the IP Address of a Loopback Interface........1-9
2 DHCP Configuration.................................................................................................................2-1
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.3.3 Enabling DHCP Relay...........................................................................................................................2-4
2.3.4 Binding an Interface to a DHCP Server Group......................................................................................2-4
2.3.5 Checking the Configuration...................................................................................................................2-5
2.4 Configuring the S9300 to Request the DHCP Server to Release an IP Address of a Client..........................2-5
2.4.1 Establishing the Configuration Task......................................................................................................2-5
2.4.2 Configuring the S9300 to Request the DHCP Server to Release an IP Address of a Client.................2-6
2.4.3 Checking the Configuration...................................................................................................................2-7
2.5 Maintaining DHCP..........................................................................................................................................2-7
2.5.1 Clearing DHCP Statistics.......................................................................................................................2-7
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i
Quidway S9300 Terabit Routing Switch
Contents
2.5.2 Monitoring the Running Status of DHCP..............................................................................................2-7
2.6 Configuration Examples..................................................................................................................................2-8
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.4 Setting ICMP Parameters.......................................................................................................................3-4
3.2.5 Setting TCP Parameters.........................................................................................................................3-6
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 Configuration Examples................................................................................................................................3-11
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
4.5 Configuration Examples..................................................................................................................................4-7
4.5.1 Example for Configuring PBR Based on the Protocol Type.................................................................4-7
4.5.2 Example for Configuring PBR Based on the Packet Length...............................................................4-11
5 UDP Helper Configuration......................................................................................................5-1
5.1 Introduction to UDP Helper............................................................................................................................5-2
5.2 UDP Helper Features Supported by the S9300...............................................................................................5-2
5.3 Configuring UDP Helper................................................................................................................................5-3
ii Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service Contents
5.3.1 Establishing the Configuration Task......................................................................................................5-3
5.3.2 Enabling the UDP Helper Function.......................................................................................................5-4
5.3.3 (Optional) Configuring the UDP Port on Which Packets Are Forwarded.............................................5-4
5.3.4 Configuring the Destination Server for Packet Relay............................................................................5-5
5.3.5 Checking the Configuration...................................................................................................................5-5
5.4 Maintaining UDP Helper................................................................................................................................5-6
5.4.1 Clearing UDP Helper Statistics..............................................................................................................5-6
5.4.2 Monitoring the Running Status of UDP Helper.....................................................................................5-6
5.5 Configuration Examples..................................................................................................................................5-6
5.5.1 Example for Configuring UDP Helper...................................................................................................5-7
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
iii
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service Figures

Figures

Figure 1-1 Networking diagram for setting IP addresses.....................................................................................1-7
Figure 1-2 Networking diagram for configuring a tunnel interface to borrow an IP address of a loopback interface
...............................................................................................................................................................................1-9
Figure 2-1 Networking diagram for configuring the DHCP relay agent..............................................................2-8
Figure 2-2 Networking diagram for configuring the DHCP relay in a super VLAN.........................................2-11
Figure 3-1 Networking diagram for disabling the sending of ICMP redirection packets..................................3-11
Figure 3-2 Networking diagram for disabling the sending of ICMP host unreachable packets........................3-14
Figure 3-3 Networking for configuring ICMP security function.......................................................................3-17
Figure 4-1 Networking diagram for configuring PBR based on the protocol type..............................................4-8
Figure 4-2 Networking diagram for configuring PBR based on the packet length............................................4-11
Figure 5-1 Networking diagram for configuring UDP helper..............................................................................5-7
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
v
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service Tables

Tables

Table 4-1 Relations between values and keywords..............................................................................................4-5
Table 5-1 Lists of default UDP ports on which packets are forwarded after the UDP helper function is enabled
...............................................................................................................................................................................5-2
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
vii
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service About 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
S9300 V100R001C03
Intended Audience
This document is intended for:
l Policy planning engineers
l Installation and commissioning engineers
l NM configuration engineers
l Technical support engineers
Organization
Version
This document is organized as follows.
Chapter
1 IP Address Configuration Describes the general procedure for setting IP addresses.
2 DHCP Configuration Describes the principle of DHCP and provides configuration
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Description
procedures and examples of DHCP.
1
DANGER
WARNING
CAUTION
TIP
NOTE
About This Document
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
Chapter Description
3 IP Performance Configuration
4 IP Unicast PBR Configuration
5 UDP Helper Configuration
Conventions
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol Description
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 Roman Normal paragraphs are in Times New Roman.
Boldface Names 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.
Description
boldface. For example, log in as user root.
Italic Book titles are in italics.
2 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service About This Document
Convention Description
Courier New
Command Conventions
The command conventions that may be found in this document are defined as follows.
Convention Description
Boldface The keywords of a command line are in boldface.
Italic Command arguments are in italics.
[ ] Items (keywords or arguments) in brackets [ ] are optional.
{ x | y | ... } Optional items are grouped in braces and separated by
[ x | y | ... ] Optional items are grouped in brackets and separated by
{ x | y | ... }
Examples of information displayed on the screen are in Courier New.
vertical bars. One item is selected.
vertical bars. One item is selected or no item is selected.
*
Optional items are grouped in braces and separated by vertical bars. A minimum of one item or a maximum of all items can be selected.
[ x | y | ... ]
&<1-n> The parameter before the & sign can be repeated 1 to n times.
# A line starting with the # sign is comments.
GUI Conventions
The GUI conventions that may be found in this document are defined as follows.
Convention
Boldface Buttons, menus, parameters, tabs, window, and dialog titles
> Multi-level menus are in boldface and separated by the ">"
Keyboard Operations
*
Optional items are grouped in brackets and separated by vertical bars. Several items or no item can be selected.
Description
are in boldface. For example, click OK.
signs. For example, choose File > Create > Folder.
The keyboard operations that may be found in this document are defined as follows.
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3
About This Document
Format Description
Key Press the key. For example, press Enter and press Tab.
Key 1+Key 2 Press the keys concurrently. For example, pressing Ctrl+Alt
Key 1, Key 2 Press the keys in turn. For example, pressing Alt, A means
Mouse Operations
The mouse operations that may be found in this document are defined as follows.
Action Description
Click Select and release the primary mouse button without moving
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
+A means the three keys should be pressed concurrently.
the two keys should be pressed in turn.
the pointer.
Double-click Press the primary mouse button twice continuously and
Drag Press and hold the primary mouse button and move the
Update History
Updates between document issues are cumulative. Therefore, the latest document issue contains all updates made in previous issues.
Updates in Issue 02 (2009-08-06)
Based on issue 01 (2009-07-28), the document is updated as follows:
The following information is modified: The link to 1 IP Address Configuration is corrected.
Updates in Issue 01 (2009-07-28)
Initial commercial release.
quickly without moving the pointer.
pointer to a certain position.
4 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service 1 IP Address Configuration

1 IP Address Configuration

About This Chapter
This chapter describes the concept and configuration procedures of the IP addresses on the S9300.
1.1 Introduction to IP Addresses
This section describes the concept of IP addresses.
1.2 IP Address Features Supported by the S9300
This section describes the methods for setting the IP addresses for the S9300.
1.3 Assigning IP Addresses to Interfaces
This section describes the procedure for assigning the IP addresses to interfaces.
1.4 Setting Unnumbered IP Addresses
This section describes how to configure a tunnel interface to use the address of the loopback interface.
1.5 Configuration Examples
This section provides several examples of IP address configuration.
Issue 02 (2009-08-06) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1-1
Quidway S9300 Terabit Routing Switch
1 IP Address Configuration
Configuration Guide - IP Service

1.1 Introduction to IP Addresses

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:
l Setting static IP addresses for interfaces manually
l Configuring 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.
1-2 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service 1 IP Address Configuration
Pre-configuration Tasks
Before setting an IP address for an interface, complete the following tasks:
l Connecting interfaces and setting the physical parameters of each interface to make the
physical layer in Up state
l Setting 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
1 Interface number
2 IP 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
Copyright © Huawei Technologies Co., Ltd.
1-3
Quidway S9300 Terabit Routing Switch
1 IP Address Configuration
Configuration Guide - IP Service

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.
1.4.1 Establishing the Configuration Task
1.4.2 Setting the Primary IP Address
1-4 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service 1 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:
l Setting the physical attributes of the interface that borrows an IP address and the interface
l Setting 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.
1 Number, IP address, and mask of the interface
2 Number 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
Copyright © Huawei Technologies Co., Ltd.
1-5
1 IP Address Configuration
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 primary IP address of the interface is set.
----End

1.4.3 Setting the Unnumbered IP Address

Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
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 unnumbered interface interface-type interface-number
The interface is configured to borrow the IP address of a specified interface.
----End

1.4.4 Checking the Configuration

Context
All configurations are complete.
Procedure
Step 1 Run the display ip interface [ interface-type interface-number ] command to view information
about IP addresses on the interface.
1-6 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
172.16.1.0/24
172.16.2.0/24
S9300
GE 1/0/1
VLANIF 100
172.16.1.1/24
172.16.2.1/24 sub
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service 1 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
Copyright © Huawei Technologies Co., Ltd.
1-7
1 IP Address Configuration
Data Preparation
To complete the configuration, you need the following data.
l Primary IP address and subnet mask of the interface
l Secondary 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
--- 172.16.1.2 ping statistics --­ 5 packet(s) transmitted 5 packet(s) received
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
--- 172.16.2.2 ping statistics --­ 5 packet(s) transmitted 5 packet(s) received
0.00% packet loss round-trip min/avg/max = 25/25/26 ms
----End
Configuration Files
Configuration file of the S9300
# sysname Quidway # vlan 100 # interface Vlanif100
1-8 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
LoopBack 0
9.9.9.9/32
S9300-B
S9300-A S9300-C
Tunnel
PC 1 PC 2
LoopBack 0
116.116.116.116/32
Tunnel 3/0/15
Tunnel 3/0/15
Quidway S9300 Terabit Routing Switch Configuration Guide - IP Service 1 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:
l Set addresses of the Loopback0 interfaces of S9300-A and S9300-C.
l Configure OSPF.
l Configure Tunnel 3/0/15 of S9300-A to borrow the IP address of Loopback0.
l Configure 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
Copyright © Huawei Technologies Co., Ltd.
1-9
1 IP Address Configuration
l IP address for Loopback0 of S9300-A
l IP address for Loopback0 of S9300-C
l Index for Loopback0 of S9300-A
l Index for Loopback0 of S9300-C
Procedure
Step 1 # Configure S9300-A.
# Set an IP address for Loopback0 of S9300-A.
<Quidway> system-view [Quidway] sysname S9300-A [S9300-A] interface loopback 0 [S9300-A-LoopBack0] ip address 116.116.116.116 32 [S9300-A-LoopBack0] quit
Configure OSPF.
[S9300-A] ospf [S9300-A-ospf-1] area 0 [S9300-A-ospf-1-area-0.0.0.0] network 116.116.116.116 0.0.0.0 [S9300-A-ospf-1-area-0.0.0.0] quit [S9300-A-ospf-1] quit
Quidway S9300 Terabit Routing Switch
Configuration Guide - IP Service
# Configure Tunnel 3/0/15 to borrow the IP address of Loopback0.
[S9300-A] interface tunnel 3/0/15 [S9300-A-Tunnel3/0/15] ip address unnumbered interface loopback 0 [S9300-A-Tunnel3/0/15] quit
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
--- 9.9.9.9 ping statistics --­ 5 packet(s) transmitted 5 packet(s) received
0.00% packet loss round-trip min/avg/max = 2/2/3 ms
----End
Configuration Files
l Configuration file of S9300-A
# sysname S9300-A # interface LoopBack0 ip address 116.116.116.116 255.255.225.255 # interface Tunnel3/0/15
1-10 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2009-08-06)
Loading...
+ 56 hidden pages