Page 1
H3C S5120-EI Series Ethernet Switches Layer 3 IP Routing Configuration Guide Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com...
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.
The H3C S5120-EI documentation set includes 13 configuration guides, which describe the software features for the H3C S5120-EI Series Ethernet Switches 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.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional.
Page 5
Network topology icons Convention Description Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
Provides a complete guide to hardware installation Installation guide and hardware specifications. Card manuals Provide the hardware specifications of cards. H3C Cabinet Installation Guides you through installing and remodeling H3C Hardware specifications and Remodel Introduction cabinets. and installation H3C Pluggable SFP...
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] –...
Dynamic routes: Routes that are discovered dynamically by routing protocols. Dynamic routing protocol is not supported on the S5120-EI Series Ethernet Switches. Each entry in the FIB table specifies the physical interface to which a packet should travel: the next hop (the next router), or directly to its intended destination.
Page 10
Contents of a routing table A routing table 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.
The following table lists some routing protocols and the default priorities for routes found by them: Routing approach Priority DIRECT STATIC UNKNOWN The smaller the priority value, the higher the priority. • The priority for a direct route is always 0, which you cannot change. Any other type of routes can have their •...
Page 13
To do… Use the command… Remarks statistics all | protocol } user view...
Static routing configuration Introduction Static route A static route is manually configured, but if a network’s topology is simple, you only need to configure static routes for the network to function. The proper configuration and usage of static routes can improve network performance and ensure bandwidth for important network applications.
While configuring a static route, you can specify either the output interface or the next hop address depending on the specific occasion. For a NULL0 interface, if the output interface has already been configured, there is no need to configure the next hop address In fact, all the route entries must have a next hop address.
Detecting reachability of the static route’s nexthop If a static route fails due to a topology change or a fault, the connection will be interrupted. To improve network stability, the system needs to detect reachability of the static route’s next hop and switch to a backup route once the next hop is unreachable.
To do… Use the command… Remarks display ip routing-table protocol static View information of static routes [ inactive | verbose ] Available In Delete all the static routes delete static-routes all system view Static route configuration example Basic static route configuration example Network requirements The IP addresses and masks of the switches and hosts are shown in Figure 2.
Page 18
[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 omitted. Display the configuration. Display the IP routing table of Switch A. [SwitchA] display ip routing-table Routing Tables: Public Destinations : 7...
Page 19
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 reachability to Host A. [HostB] tracert 1.1.2.2 Tracing route to 1.1.2.2 over a maximum of 30 hops <1 ms...
IPv6 static routing configuration Introduction to IPv6 static routing A static route is manually configured and works well in simple networks. Proper configuration and use can improve network performance and ensure enough bandwidth for high priority applications. Unfortunately, static routes also have shortcomings. Any topology changes require manual configuration and modification to the corresponding static routes.
To do… Use the commands… Remarks preference preference-value ] IPv6 static routes is 60. Displaying and maintaining IPv6 static routes To do… Use the command… Remarks display ipv6 routing-table protocol Display IPv6 static route Available in any view information static [ inactive | verbose ] delete ipv6 static-routes all Remove all IPv6 static routes Available in system view...
Page 22
Configuration procedure Configure the IPv6 addresses of all VLAN interfaces (Omitted) Configure IPv6 static routes. Configure the default IPv6 static route on SwitchA. <SwitchA> system-view [SwitchA] ipv6 route-static :: 0 4::2 Configure two IPv6 static routes on SwitchB. <SwitchB> system-view [SwitchB] ipv6 route-static 1:: 64 4::1 [SwitchB] ipv6 route-static 3:: 64 5::1 Configure the default IPv6 static route on SwitchC.
Page 23
Reply from 3::1 bytes=56 Sequence=1 hop limit=254 time = 63 ms Reply from 3::1 bytes=56 Sequence=2 hop limit=254 time = 62 ms Reply from 3::1 bytes=56 Sequence=3 hop limit=254 time = 62 ms Reply from 3::1 bytes=56 Sequence=4 hop limit=254 time = 63 ms Reply from 3::1 bytes=56 Sequence=5 hop limit=254...
Contact your authorized reseller or 3Com for a complete list of the value-added services available in your area. Troubleshoot online You will find support tools posted on the web site at http://www.h3cnetworks.com/ under Support, Knowledgebase. The Knowledgebase helps you troubleshoot H3C products. This query-based interactive tool contains thousands of technical solutions.
Access software downloads Software Updates are the bug fix / maintenance releases for the version of software initially purchased with the product. In order to access these Software Updates you must first register your product on the web site at http://www.h3cnetworks.com, go to Support, Product Registration. First time users will need to apply for a user name and password.
Acronyms # A B C D E F G H I K L M N O P Q R S T U V W X Z Acronym Full spelling Return 10GE Ten-GigabitEthernet Return Authentication, Authorization and Accounting Activity Based Costing Area Border Router Alternating Current Acknowledgement...
Page 27
Acronym Full spelling Auxiliary (port) Active Virtual Forwarder Return Broadband access server Bearer Control Backup Designated Router Best Effort Bidirectional Forwarding Detection Border Gateway Protocol BIMS Branch Intelligent Management System BOOTP Bootstrap Protocol BPDU Bridge Protocol Data Unit Basic Rate Interface Bootstrap Router BitTorrent BSR State...
Page 28
Acronym Full spelling CHAP Challenge Handshake Authentication Protocol CIDR Classless Inter-Domain Routing Committed Information Rate CIST Common and Internal Spanning Tree Command Line Interface Code/Length/Value CLNP Connectionless Network Protocol Customer Premise Equipment CPOS Channelized POS Certification Practice Statement Central Processing Unit Custom Queuing Carriage Return Cyclic Redundancy Check...
Page 29
Acronym Full spelling DLDP Device Link Detection Protocol Distinguished name Domain Name System Downstream on Demand Denial of Service Designated Router Digital Signature Algorithm DSCP Differentiated Services Code point Priority Digital Signal Processor (and Domain Specific Part) DSTE DiffServ Aware TE Data Terminal Equipment Downstream Unsolicited DUID...
Page 30
Acronym Full spelling Forward Defect Indication Forwarding Equivalence Class Fast Failure Detection Fixed filter Forwarding Group Forwarding information base FIFO First In First Out FQDN Full Qualified Domain Name Frame Relay Fast Reroute FRTT Fairness Round Trip Time Finite State Machine Functional Test File Transfer Protocol Return...
Page 31
Acronym Full spelling HVRP Hierarchy VLAN Register Protocol HWTACACS HUAWEI Terminal Access Controller Access Control System Return Incoming Access or Identity Association IANA Internet Assigned Number Authority IBGP Internal Border Gateway Protocol International Business Machines ICMP Internet Control Message Protocol ICPIF Calculated Planning Impairment Factor ICMPv6...
Page 32
Acronym Full spelling ISDN Integrated Services Digital Network Intermediate System-to-Intermediate System intra-domain routing IS-IS information exchange protocol International Organization for Standardization Internet service provider ISSU In Service Software Upgrade Internal Spanning Tree International Telecommunication Union - Telecommunication ITU-T Standardization Sector Return Kilobyte Key-encrypting key...
Page 33
Acronym Full spelling Line Rate LRTT Loop Round Trip Time Link State Link State Advertisement LSAck Link State Acknowledgment LSDB Link State Database Label Switch Path (and Link State Packet) LSPAGENT Label Switched Path AGENT LSPDU Link State Protocol Data Unit LSPM Label Switch Path Management Link State Request or Label Switching Route...
Page 34
Acronym Full spelling MAC Forced Forwarding Mac-based guest VLAN Management Information Base Maintenance Association Intermediate Point Multicast Listener Discovery Protocol MLD-Snooping Multicast Listener Discovery Snooping Meet-Me Conference MODEM Modulator/Demodulator Mean Opinion Scores Multilink PPP, Maintenance Point MP-BGP Multiprotocol extensions for BGP-4 Middle-level PE MP-group Multilink Point to Point Protocol group...
Page 35
Acronym Full spelling Network Control Protocol Neighborhood discovery NetStream Data Analyzer Network Data Collector Neighbor Discovery Protocol Network Entity Title NetBIOS Network Basic Input/Output System NHLFE Next Hop Label Forwarding Entry Network Load Balancing NLPID Network Layer Protocol Identifier NLRI Network Layer Reachability Information Network Management Station NPDU...
Page 36
Acronym Full spelling Organizationally Unique Identifier Return Provider P2MP Point to MultiPoint Point To Point Password Authentication Protocol PAFV Port-based Auth-Fail VLAN Policy-Based Route Printed Circuit Board Pulse Code Modulation Powered Device, Prefix Delegation or Pure Data Protocol Data Unit Provider Edge, Provider Edge Device Port-based Guest VLAN Penultimate Hop Popping...
Page 37
Acronym Full spelling PSNP Partial Sequence Number Packet PTMP or P2MP Point-to-Multipoint PTP or P2P Point-to-Point Permanent Virtual Channel Pseudo wires Pre-boot Execution Environment Return QACL QoS/ACL QinQ 802.1Q in 802.1Q Quality of Service QQIC Querier's Query Interval Code Querier's Robustness Variable Return Registration Authority or Router Advertisement RADIUS...
Page 38
Acronym Full spelling RRPPD Rapid Ring Protection Protocol Data Unit Router Solicitation Revest-Shamir-Adleman Algorithm Reservation State Block RSOH Regenerator Section Overhead RSTP Rapid Spanning Tree Protocol RSVP Resource Reservation Protocol RSVP-TE Resource Reservation Protocol – Traffic Engineering Route Target RTCP Real-time Transport Control Protocol Route Table Entry Real-time Transport Protocol...
Page 39
Acronym Full spelling SNMP Simple Network Management Protocol Sequence Number Packet SNPA Sub-network Points of Attachment Section Overhead SONET Synchronous Optical Network Site-of-Origin Strict Priority Queuing Superstratum PE/Sevice Provider-end PE Shortest Path First Shortest Path Tree SRPT Sub-ring Packet Tunnel SRPU Switching and Routing Processing Unit Secure Shell...
Page 40
Acronym Full spelling Transparent LAN Service Type-Length-Value Type of Service Traffic Policing TPID Tag Protocol Identifier TRIP Trigger RIP Traffic Shaping Time to Live True Type Terminal Return Universal/Local User Datagram Protocol Under-layer PE or User-end PE Uniform Resource Locators URPF Unicast Reverse Path Forwarding User-Based Security Model...
Page 41
Acronym Full spelling Virtual Tributary Virtual Type Terminal Return Wide Area Network Weighted Fair Queuing WINS Windows Internet Naming Service WLAN Wireless Local Area Network WRED Weighted Random Early Detection Weighted Round Robin Wait-to-Restore World Wide Web Return Ten-GigabitEthernet Return Zone Border Router...
Need help?
Do you have a question about the S5120-EI Series and is the answer not in the manual?
Questions and answers