Page 2
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners Notice The information in this document is subject to change without notice.
Page 3
The H3C S5120-HI documentation set includes 10 configuration guides, which describe the software features for the H3C S5120-HI Switch Series Release 5101, and guide you through the software configuration procedures. These configuration guides also provide configuration examples to help you apply software features to different network scenarios.
Page 4
Layer 2 forwarding and other Layer 2 features. Port numbering in examples The port numbers in this document are for illustration only and might be unavailable on your device. About the S5120-HI documentation set The H3C S5120-HI documentation set includes: Documents Purposes Product description and specifications Marketing brochure Describe product specifications and benefits.
Page 5
Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support &...
Page 6
Technical support service@h3c.com http://www.h3c.com Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
IP routing basics NOTE: The types of interfaces that appear in any figures other than the network diagrams for configuration examples are for illustration only. Some of them might be unavailable on your switch. IP routing overview Upon receiving a packet, a router determines the optimal route based on the destination address and forwards the packet to the next router in the path.
For example: <Sysname> display ip routing-table Routing Tables: Public Destinations : 7 Routes : 7 Destination/Mask Proto Cost NextHop Interface 1.1.1.0/24 Direct 0 1.1.1.1 Vlan11 2.2.2.0/24 Static 60 12.2.2.2 Vlan12 …(Part of the output information is omitted) A route entry includes the following key items: •...
recovers, the route selection process is performed again and the main route is selected again to forward packets. Displaying and maintaining a routing table To do… Use the command… Remarks display ip routing-table [ verbose ] [ | Display information about the { begin | exclude | include } Available in any view routing table...
Static routing configuration Introduction Static route Static routes are manually configured. If a network’s topology is simple, you only need to configure static routes for the network to work properly. The proper configuration and usage of static routes can improve network performance and ensure bandwidth for important network applications.
Configuring a static route Configuration prerequisites Before configuring a static route, complete the following tasks: Configure the physical parameters for related interfaces • • Configure the link-layer attributes for related interfaces Configure the IP addresses for related interfaces • Configuration procedure Follow these steps to configure a static route: To do…...
Displaying and maintaining static routes To do… Use the command… Remarks display ip routing-table protocol static [ inactive | Available in any Display information of static routes verbose ] [ | { begin | exclude | include } view regular-expression ] Available in Delete all the static routes delete static-routes all...
Page 14
[SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6 # Configure a default route on Switch C <SwitchC> system-view [SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5 Configure the hosts. The default gateways for hosts A, B, and C are 1.1.2.3, 1.1.6.1 and 1.1.3.1, respectively. The configuration procedure is not shown.
Page 15
C:\Documents and Settings\Administrator>ping 1.1.2.2 Pinging 1.1.2.2 with 32 bytes of data: Reply from 1.1.2.2: bytes=32 time=1ms TTL=255 Reply from 1.1.2.2: bytes=32 time=1ms TTL=255 Reply from 1.1.2.2: bytes=32 time=1ms TTL=255 Reply from 1.1.2.2: bytes=32 time=1ms TTL=255 Ping statistics for 1.1.2.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 1ms, Average = 1ms # Use the tracert command on Host B to check the reachability of Host A.
IPv6 static routing configuration Introduction to IPv6 static routing Static routes are manually configured. They work well in simple networks. Proper configuration and use can improve network performance and ensure enough bandwidth for important applications. However, static routes also have limitations. Any topology changes require manual configuration and modification to the relevant static routes.
To do… Use the commands… Remarks Required ipv6 route-static ipv6-address prefix-length { interface-type interface-number The default Configure an IPv6 static route [ next-hop-address ] | next-hop-address } preference of IPv6 [ preference preference-value ] static routes is 60. NOTE: If you specify a broadcast interface, such as a VLAN interface, as the output interface for a static route, you must specify the next hop address.
Page 18
Figure 2 Network diagram Configuration procedure Configure the IPv6 addresses for all VLAN interfaces. (Details not shown) Configure IPv6 static routes. # Configure a default IPv6 static route on Switch A. <SwitchA> system-view [SwitchA] ipv6 [SwitchA] ipv6 route-static :: 0 4::2 # Configure two IPv6 static routes on Switch B.
Index C D I S Configuring a static route,5 Introduction,4 Configuring an IPv6 static route,9 Introduction to IPv6 static routing,9 IP routing overview,1 IPv6 static routing configuration example,10 Displaying and maintaining a routing table,3 Displaying and maintaining IPv6 static routes,10 Displaying and maintaining static routes,6 Static route configuration...
Need help?
Do you have a question about the S5120-HI Series and is the answer not in the manual?
Questions and answers