H3C S5120-EI Series Configuration Manual Download Page 15

 

15 

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. When forwarding a packet, a router first 

searches the routing table for the route to the destination address of the packet. The system can find 

the corresponding link layer address and forward the packet only after the next hop address is 
specified. The next hop address can not be a local interface IP address; otherwise, the route 

configuration will not take effect.    

 

Other attributes: 

You can configure different preferences for different static routes so that route management policies 

can be applied more flexibly.  

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… 

Use the command…

Remarks 

1.

 

Enter system view

 

system-view 

— 

2.

 

Configure a static 
route

 

ip route-static

 dest-address 

mask

 | 

mask-

length

 } { 

next-hop-address 

|

 interface-type 

interface-number 

next-hop-address

 ] } [ 

preference

 

preference-value 

] [

 description 

description-text 

Required 
By default, 

preference

 for static 

routes is 60

 

and no description 

information is configured.

 

3.

 

Configure the 
default preference 

for static routes

 

ip route-static default-preference

 

default-preference-value

 

Optional 
60 by default

 

 

 

 

When configuring a static route, the static route does not take effect if you specify the next hop address first and 
then configure it as the IP address of a local interface. 

 

If you do not specify the preference when configuring a static route, the default preference will be used. 
Reconfiguring the default preference applies only to newly created static routes. 

 

If the destination IP address and mask are both configured as 0.0.0.0 with the 

ip route-static

 command, the 

route is the default route. 

Summary of Contents for S5120-EI Series

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: ...hou 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 n...

Page 3: ...se configuration guides also provide configuration examples to help you apply software features to different network scenarios This preface includes Audience Conventions About the H3C S5120 EI Documen...

Page 4: ...se optional syntax choices separated by vertical bars from which you may select multiple choices or none 1 n The argument or keyword and argument combination before the ampersand sign can be entered 1...

Page 5: ...neric 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 rou...

Page 6: ...luggable SFP SFP XFP Transceiver Modules Installation Guide Guides you through installing SFP SFP XFP transceiver modules Adjustable Slider Rail Installation Guide Guides you through installing adjust...

Page 7: ...chnical Documents Provides hardware installation software upgrading and software feature configuration and maintenance documentation Products Solutions Provides information about products and technolo...

Page 8: ...he static route s nexthop 16 Detecting nexthop reachability through track 16 Displaying and maintaining static routes 16 Static route configuration example 17 Basic static route configuration example...

Page 9: ...utes that are manually configured Dynamic routes Routes that are discovered dynamically by routing protocols Dynamic routing protocol is not supported on the S5120 EI Series Ethernet Switches Each ent...

Page 10: ...op Priority for the route Routes to the same destination but having different nexthops may have different priorities and be found by various routing protocols or manually configured The optimal route...

Page 11: ...back is that you must reconfigure it whenever the network topology changes it cannot self adjust to network changes Dynamic routing is based on dynamic routing protocols which can detect network topol...

Page 12: ...sk verbose Available in any view Display routes of a routing protocol display ip routing table protocol protocol inactive verbose Available in any view Display statistics about the network routing tab...

Page 13: ...13 To do Use the command Remarks statistics all protocol user view...

Page 14: ...in the routing table can be forwarded to a designated upstream router A router selects the default route only when it cannot find any matching entry in the routing table If the destination address of...

Page 15: ...r 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...

Page 16: ...first For detailed Track configuration procedure refer to Track Configuration in the High Availability Configuration Guide Configuration procedure Follow these steps to detect the reachability of a st...

Page 17: ...Figure 2 Static routes are required for interconnection between any two hosts Figure 2 Network diagram for static route configuration Configuration procedure 1 Configuring IP addresses for interfaces...

Page 18: ...IP routing table of Switch B SwitchB display ip routing table Routing Tables Public Destinations 10 Routes 10 Destination Mask Proto Pre Cost NextHop Interface 1 1 2 0 24 Static 60 0 1 1 4 1 Vlan500 1...

Page 19: ...ss 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 ov...

Page 20: ...op addresses IPv6 static routes use IPv6 addresses whereas IPv4 static routes use IPv4 addresses Default IPv6 route An IPv6 static route with a destination prefix of 0 is a default IPv6 route The defa...

Page 21: ...stem view Use the undo ipv6 route static command to delete a single IPv6 static route The delete ipv6 static routes all command deletes all IPv6 static routes including the default route For more info...

Page 22: ...re the default gateway of Host A as 1 1 that of Host B as 2 1 and that of Host C as 3 1 4 Display configuration information Display the IPv6 routing table of SwitchA SwitchA display ipv6 routing table...

Page 23: ...54 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 time 63 ms 3 1 pi...

Page 24: ...chase value added services To enhance response times or extend warranty benefits contact 3Com or your authorized reseller Value added services like ExpressSM and GuardianSM can include 24x7 telephone...

Page 25: ...of the warranty and other service benefits available to you When you contact 3Com for assistance please have the following information ready Product model name part number and serial number Proof of p...

Page 26: ...red Forwarding AFI Address Family Identifier and Authority and Format Identifier ALG Application Layer Gateway AM Accounting Management AMB Active Main Board ANSI American National Standard Institute...

Page 27: ...strap Router BT BitTorrent BS BSR State BT Burst Tolerance C Return C BSR Candidate Bootstrap Router C RP Candidate Rendezvous Point CA Call Appearance CA Certificate Authority CAR Committed Access Ra...

Page 28: ...revocation list CR LSP Constraint based Routing LSP CR LDP Constraint based Routing LDP CSMA CD Carrier Sense Multiple Access Collision Detect CSNP Complete Sequence Number Packet CSPF Constraint Shor...

Page 29: ...Link Layer Address D V Distance Vector Routing Algorithm DVMRP Distance Vector Multicast Routing Protocol DWDM Dense Wavelength Division Multiplexing E Return EACL Enhanced ACL EAD Endpoint Admission...

Page 30: ...GARP Generic Attribute Registration Protocol GE Gigabit Ethernet GR Graceful Restart GRE Generic Routing Encapsulation GTS Generic Traffic Shaping GVRP GARP VLAN Registration Protocol H Return HA Hig...

Page 31: ...and Electronics Engineers IETF Internet Engineering Task Force IGMP Internet Group Management Protocol IGMP Snooping Internet Group Management Protocol Snooping IGP Interior Gateway Protocol IIH IS to...

Page 32: ...2 Virtual Private Network L3VPN Layer 3 Virtual Private Network LACP Link Aggregation Control Protocol LACPDU Link Aggregation Control Protocol Data Unit LAN Local Area Network LAPB Link Access Proced...

Page 33: ...SU Link State Update LT Linktrace LTM Lintrace Message LTR Linktrace Reply Message LVF Listening Virtual Forwarder M Return MA Maintenance Association MAC Media Access Control MAD Multi Active Detecti...

Page 34: ...l Label Switching MPLSFW Multi protocol Label Switch Forward MPM Multicast Port Management MSC Mobile Switching Center MSDP Multicast Source Discovery Protocol MSOH Multiplex Section Overhead MSTI Mul...

Page 35: ...anagement Station NPDU Network Protocol Data Unit NPE Network Provider Edge NQA Network Quality Analyzer NS Neighbor Solicitation NSAP Network Service Access Point NSC NetStream Collector N SEL NSAP S...

Page 36: ...imate Hop Popping PHY Physical Layer PIM Protocol Independent Multicast PIM DM Protocol Independent Multicast Dense Mode PIM SM Protocol Independent Multicast Sparse Mode PIR Peak Information Rate PKC...

Page 37: ...Advertisement RADIUS Remote Authentication Dial in User Service RALM RADIUS Authenticated Login using MAC address RAM Random Access Memory RD Routing Domain RD Router Distinguisher RED Random Early D...

Page 38: ...otocol S Return SA Source Active or Suppress Advertisement SAFI Subsequent Address Family Identifier SBM Sub network Bandwidth Management SCEP Simple Certificate Enrollment Protocol SCFF Single Choke...

Page 39: ...r SSM Source Specific Multicast ST Shared Tree STelnet Secure Telnet STM 1 SDH Transport Module 1 STM 16 SDH Transport Module 16 STM 16c SDH Transport Module 16c STM 4c SDH Transport Module 4c STP Spa...

Page 40: ...verse Path Forwarding USM User Based Security Model V Return VBR Variable Bit Rate VCI Virtual Channel Identifier VE Virtual Ethernet VF Virtual Forwarder VFS Virtual File System VLAN Virtual Local Ar...

Page 41: ...AN Wide Area Network WFQ Weighted Fair Queuing WINS Windows Internet Naming Service WLAN Wireless Local Area Network WRED Weighted Random Early Detection WRR Weighted Round Robin WTR Wait to Restore W...

Page 42: ...v6 static routing configuration 20 21 configuring static route 20 default route 20 displaying static route 21 features 20 maintaining static route 21 local routing table IP routing 9 maintaining routi...

Page 43: ...otocol routing table IP routing 9 protocols IP routing 1 1 routing table IP routing 9 routing table contents IP routing 10 static IP routing 1 1 static route 14 static routing application environment...

Reviews: