User Tools

Site Tools


hpe:switch:5800:configuring_static_routing

This is an old revision of the document!


HP 5830 Switch Series - Configuring Static Routing

1. Static route configuration items

Before configuring a static route, understand the following concepts:

Destination address and mask: In the ip route-static command, an IPv4 address is in dotted decimal format and 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 configuring a static route, specify either the output interface or the next hop address, or both depending on the specific occasion. The next hop address cannot be a local interface IP address or the route configuration does not take effect.

In fact, each route lookup operation has to find the next hop to resolve the destination link layer address.

When specifying the output interface:

  • Unordered List ItemIf the output interface is a Null 0 interface, there is no need to configure the next hop address.
  • Unordered List ItemIf the user specifies a broadcast interface (such as VLAN interface) as the output interface, the user must specify the corresponding next hop for the output interface.

Other attributes: The user can configure different priorities for different static routes so that route management policies can be more flexible. For example, specifying the same priority for different routes to the same destination enables load sharing, but specifying different priorities for these routes enables route backup.

2. Configuring a static route

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

Procedure:

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

If the user does 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.

  1. Enter system view.
system-view
  1. Ordered List ItemConfigure a static route.
ip route-static dest-address { mask | mask- length } { next-hop-address [ track track- entry-number ] | 
interface-type interface- number [ next-hop-address ] } [ preference preference-value ] [ tag tag-value ] [ 
permanent ] [ description description-text ]
  1. Ordered List ItemConfigure the default preference for static routes.
ip route-static default-preference default- preference-value

The user can flexibly control static routes by configuring tag values and using the tag values in the routing policy.

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.

3. Configuring BFD for static routes

4. Configuring static route FRR

5. Displaying and maintaining static routes

6. Static route configuration examples

hpe/switch/5800/configuring_static_routing.1623273852.txt.gz · Last modified: 2021/06/09 16:24 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki