background image

 

Configuring static routing 

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.  
Static routes cannot adapt to network topology changes. If a fault or a topological change occurs in the 
network, the relevant routes will be unreachable and the network breaks. When this happens, the 

network administrator must modify the static routes manually.  
The term "router" in this chapter refers to both routers and Layer 3 switches. 

Default route 

Without a default route, a packet that does not match any routing entries is discarded. 
A default route is used to forward packets that do not match any routing entry. The network administrator 
can configure a default route with both the destination and mask being 0.0.0.0. The router forwards any 

packet whose destination address fails to match any entry in the routing table to the next hop of the 

default static route.  

Static route configuration items 

Before you configure a static route, you must know the following concepts:  

 

Destination address and mask 
In the 

ip route-static 

command, an IPv4 address is in dotted decimal notation. A mask can be 

either in dotted decimal format or in the form of mask length—the number of consecutive 1s in the 

mask. 

 

Output interface and next hop address 
When you configure a static route, specify either the output interface, next hop address, or both 
depending on the specific occasion. The next hop address cannot be a local interface IP address; 

otherwise, the route configuration will not take effect.  
Each route lookup operation has to find the next hop to resolve the destination link layer address.  
Follow these guidelines when you specify the output interface:  

{

 

If the output interface is a Null 0 interface, no next hop address is required.  

{

 

If you specify a broadcast interface (such as a VLAN interface) as the output interface, you must 
specify the corresponding next hop for the output interface.   

 

Содержание 3100-16 v2 EI

Страница 1: ...JG222A HP 3100 24 v2 SI Switch JG223A HP 3100 8 v2 EI Switch JD318B HP 3100 16 v2 EI Switch JD319B HP 3100 24 v2 EI Switch JD320B HP 3100 8 PoE v2 EI Switch JD311B HP 3100 16 PoE v2 EI Switch JD312B HP 3100 24 PoE v2 EI Switch JD313B Part number 5998 5993 Software version Release 5203P05 Document version 6W100 20140603 ...

Страница 2: ...MATERIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE Hewlett Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing performance or use of this material The only warranties for HP products and services are set forth in the express warranty statements accompan...

Страница 3: ...ic route configuration items 4 Configuring a static route 5 Displaying and maintaining static routes 5 Configuring IPv6 static routing 7 Overview 7 IPv6 static routes features 7 Default IPv6 route 7 Configuring an IPv6 static route 7 Displaying and maintaining IPv6 static routes 8 Support and other resources 9 Contacting HP 9 Subscription service 9 Related information 9 Documents 9 Websites 9 Conv...

Страница 4: ...routes Criterion Categories Destination Network route Destination is a network The subnet mask is less than 32 bits Host route Destination is a host The subnet mask is 32 bits Whether the destination is directly connected Direct route Destination is directly connected Indirect route Destination is indirectly connected Origin Direct route A direct route is discovered by the data link protocol on an...

Страница 5: ...references for any other route type Each static route can be configured with a different preference The following table lists the types of routes and the default preferences The smaller the preference value the higher the preference Table 2 Route types and their default route preferences Routing approach Preference Direct route 0 Static route 60 Route backup Route backup can improve network availa...

Страница 6: ...table reset ip routing table statistics protocol protocol all Available in user view Display IPv6 routing table information display ipv6 routing table verbose begin exclude include regular expression Available in any view Display routing information for a specified destination IPv6 address display ipv6 routing table ipv6 address prefix length longer match verbose begin exclude include regular expr...

Страница 7: ...0 0 The router forwards any packet whose destination address fails to match any entry in the routing table to the next hop of the default static route Static route configuration items Before you configure a static route you must know the following concepts Destination address and mask In the ip route static command an IPv4 address is in dotted decimal notation A mask can be either in dotted decima...

Страница 8: ...as 0 0 0 0 with the ip route static command then the route is the default route To configure a static route Step Command Remarks 1 Enter system view system view N A 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 permanent description description text Required By default preferenc...

Страница 9: ...tatic routes delete static routes all Available in system view For more information about the display ip routing table protocol static inactive verbose begin exclude include regular expression command see Layer 3 IP Routing Command Reference ...

Страница 10: ...he destination and next hop 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 default route is used to forward packets that match no specific routes in the routing table Configuring an IPv6 static route In small IPv6 networks IPv6 static routes can be used ...

Страница 11: ...ic routes Task Command Remarks Display IPv6 static route information display ipv6 routing table protocol static inactive verbose begin exclude include regular expression Available in any view Remove all IPv6 static routes delete ipv6 static routes all Available in system view To delete a single IPv6 static route use the undo ipv6 route static command To delete all IPv6 static routes including the ...

Страница 12: ...ng you will receive email notification of product enhancements new driver versions firmware updates and other product resources Related information Documents To find related documents browse to the Manuals page of the HP Business Support Center website http www hp com support manuals For related documentation navigate to the Networking section and select a networking category For a complete list o...

Страница 13: ...parated by vertical bars from which you select one choice multiple choices or none 1 n The argument or keyword and argument combination before the ampersand sign can be entered 1 to n times A line that starts with a pound sign is comments GUI conventions Convention Description Boldface Window names button names field names and menu items are in bold text For example the New User window appears cli...

Страница 14: ... a unified wired WLAN module or the switching engine on a unified wired WLAN switch Represents an access point Represents a mesh access point Represents omnidirectional signals Represents directional signals Represents a security product such as a firewall UTM multiservice security gateway or load balancing device Represents a security card such as a firewall load balancing NetStream SSL VPN IPS o...

Страница 15: ...ns 10 D Default IPv6 route 7 Displaying and maintaining a routing table 2 Displaying and maintaining IPv6 static routes 8 Displaying and maintaining static routes 5 I Introduction 4 IPv6 static routes features 7 O Overview 1 Overview 7 R Related information 9 Route backup 2 Routing preference 2 Routing table 1 ...

Отзывы: