Page 3
The H3C S5120-SI documentation set includes 10 configuration guides, which describe the software features for the H3C S5120-SI Switch Series Release 1513, 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
Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ... } you select one. Square brackets enclose a set of optional syntax choices separated by vertical bars, from [ x | y | ...
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 & Documents > Technical Documents] –...
[Technical Support & Documents > Software Download] – Provides the documentation released with the software version. 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: router The term in this document refers to a routing-capable device. IP routing overview Routing Routing in the Internet is achieved through routers. Upon receiving a packet, a router determines the optimal path based on the destination address and forwards the packet to the next router in the path. When the packet reaches the last router, it then forwards the packet to the intended destination host.
Page 9
Contents of a routing table A route entry includes the following key items: Destination address—Destination IP address or destination network • Network mask—Specifies, in company with the destination address, the address of the destination • network. A logical AND operation between the destination address and the network mask yields the address of the destination network.
Table 1 Some routing protocols and the default priorities for routes found by them Routing approach Preference DIRECT STATIC UNKNOWN NOTE: The smaller the preference value, the higher the preference. • • The preference for a direct route is always 0, which cannot be changed. Any other type of routes can have their priorities manually configured.
Page 12
To do… Use the command… Remarks display ipv6 routing-table verbose [ | Display verbose IPv6 routing table { begin | exclude | include } Available in any view information regular-expression ] display ipv6 routing-table ipv6-address Display routing information for a prefix-length [ longer-match ] [ verbose ] Available in any view specified destination IPv6 address...
Static routing configuration NOTE: router The term in this document refers to a routing-capable device. Introduction Static route A static route is 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.
In fact, each route lookup operation has to find the next hop to resolve the destination link layer address. When specifying the output interface, observe the following rules: If the output interface is a Null 0 interface, no next hop address is required. •...
Displaying and maintaining static routes To do… Use the command… Remarks display ip routing-table protocol static [ inactive Display information of static | verbose ] [ | { begin | exclude | include } Available in any view routes regular-expression ] Delete all the static routes delete static-routes all Available in system view...
Page 16
<SwitchB> system-view [SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1 [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. Configure the default gateways of hosts A, B and C as 1.1.2.3, 1.1.6.1 and 1.1.3.1. (Details not shown) Display the configuration.
Page 17
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 NOTE: router The term in this document refers to a routing-capable device. Introduction to IPv6 static routing Static routes are manually configured by network administrators and work well in simple networks. Configuring and using them properly can improve network performance and ensure enough bandwidth for important applications.
Configuration procedure Follow these steps to configure an IPv6 static route: To do… Use the commands… Remarks Enter system view system-view — Required Configure an IPv6 static route with ipv6 route-static ipv6-address prefix-length The default the output interface being a [ interface-type interface-number ] preference of IPv6 broadcast or NBMA interface...
Page 20
Figure 3 Network diagram for IPv6 static route configuration 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 R S Introduction,6 Introduction to IPv6 static routing,1 1 Configuring a static route,7 IP routing overview,1 Configuring an IPv6 static route,1 1 IPv6 static routing configuration example,12 Displaying and maintaining a routing table,4 Routing protocol overview,3 Displaying and maintaining IPv6 static routes,12 Displaying and maintaining static...