Static route what is




















If you want a dynamic route to override a static route, you can specify an administrative distance for the static route. For example, if you have two dynamic routes with an administrative distance of , you would specify an administrative distance that is greater than for the static route if you want the dynamic route to override the static route. You need to specify only the output interface the interface on which all packets are sent to the destination network in a directly connected static route.

The router assumes the destination is directly attached to the output interface and the packet destination is used as the next hop address. The next-hop can be an interface, only for point-to-point interfaces. For broadcast interfaces, the next-hop must be an IPv4 address. You must specify either the output interface the interface on which all packets are sent to the destination network or the next hop address in a fully specified static route.

You can use a fully specified static route when the output interface is a multi-access interface and you need to identify the next-hop address. The next-hop address must be directly attached to the specified output interface. A floating static route is a static route that the router uses to back up a dynamic route. You must configure a floating static route with a higher administrative distance than the dynamic route that it backs up. In this instance, the router prefers a dynamic route to a floating static route.

You can use a floating static route as a replacement if the dynamic route is lost. Note By default, a router prefers a static route to a dynamic route because a static route has a smaller administrative distance than a dynamic route. You can specify the next-hop address of a neighboring router which is not directly connected to the router for static routes with remote non-directly attached next-hops.

If a static route has remote next-hops during data-forwarding, the next-hops are recursively used in the unicast routing table to identify the corresponding directly attached next-hop s that have reachability to the remote next-hops. For more information, see Chapter 9 "Configuring Layer 3 Virtualization. C isco NX-OS. Static routing requires no license. Any feature not included in a license package is bundled with the C isco NX-OS system images and is provided at no extra charge to you.

Table lists the default settings for static routing parameters. Table Default Static Routing Parameters. Optional show ip static-route. Optional copy running-config startup-config. Configures a static route and the interface for this static route. Note that, however, static routes are not widely used today, since you have to configure each static route manually on each router in the network.

The router with the next-hop IP address must be on a directly connected network. Consider the following example:. Note that R1 knows about the two directly connected networks: However, we can specify a static route that will rectify this problem:. Static routes provide more routing information to your router.

Typically, you do not need to add static routes unless you have multiple routers or multiple IP subnets on your network. As an example of when a static route is needed, consider the following case:. When you set up your router, two implicit static routes were created. A default route was created with your ISP as the gateway, and a second static route was created to your local network for all With this configuration, if you try to access a device on the The ISP forwards your request to the company where you are employed, and the company firewall is likely to deny the request.

In this case you must define a static route, telling your router that Here is an example:. Advanced remote support tools are used to fix issues on any of your devices. The service includes support for the following:.



0コメント

  • 1000 / 1000