H3C s5120-si series Configuration Manual
H3C s5120-si series Configuration Manual

H3C s5120-si series Configuration Manual

Hide thumbs Also See for s5120-si series:

Advertisement

H3C S5120-SI Switch Series
Layer 3 - IP Routing Configuration Guide
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 1513
Document version: 6W100-20130425

Advertisement

Table of Contents
loading

Summary of Contents for H3C s5120-si series

  • Page 1 H3C S5120-SI Switch Series Layer 3 - IP Routing Configuration Guide Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 1513 Document version: 6W100-20130425...
  • Page 2 Copyright © 2013, Hangzhou H3C Technologies Co., Ltd. and its licensors All rights reserved No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of Hangzhou H3C Technologies Co., Ltd.
  • 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 | ...
  • Page 5: Obtaining Documentation

    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] –...
  • Page 6: Technical Support

    [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.
  • Page 7: Table Of Contents

    Contents IP routing basics ··························································································································································· 1   IP routing overview ··························································································································································· 1   Routing ······································································································································································· 1   Routing table and FIB table ····································································································································· 1   Routing protocol overview ················································································································································ 3   Static routing and dynamic routing ························································································································ 3   Routing protocols and routing preference ············································································································· 3  ...
  • Page 8: Ip Routing Basics

    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.
  • Page 10: Routing Protocol Overview

    Figure 1 A sample routing table 11.1.1.0/24 Router B 1.1.1.2/24 Vlan1 1.1.1.1/24 Vlan2 Router A 2.2.2.2/24 Vlan3 3.3.3.3/24 Router C Router D 2.2.2.1/24 3.3.3.1/24 12.1.1.0/24 13.1.1.0/24 Destination Network Nexthop Interface 11.1.1.0 1.1.1.2 Vlan1 12.1.1.0 2.2.2.1 Vlan2 13.1.1.0 3.3.3.1 Vlan3 Routing protocol overview Static routing and dynamic routing Static routing is easy to configure and requires less system resources.
  • Page 11: Displaying And Maintaining A Routing Table

    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...
  • Page 13: Static Routing Configuration

    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.
  • Page 14: Configuring A Static Route

    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. •...
  • Page 15: Displaying And Maintaining Static Routes

    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.
  • Page 18: Ipv6 Static Routing Configuration

    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.
  • Page 19: Configuration Procedure

    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.
  • Page 21 Destination : ::1/128 Protocol : Direct NextHop : ::1 Preference Interface : InLoop0 Cost Destination : 1::/64 Protocol : Direct NextHop : 1::1 Preference Interface : Vlan-interface100 Cost Destination : 1::1/128 Protocol : Direct NextHop : ::1 Preference Interface : InLoop0 Cost Destination : FE80::/10...
  • Page 22: Index

    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...

Table of Contents