Configuring static routing using the CLI

Is there a command-line equivalent to adding a static route on the ASA? The answer to that question is definitely, yes. The following format is used on the ASA:

route [Inside | Outside] <destination network-ID> <subnet mask> <next hop IP address>

Let's take  a look at how to achieve the same using the CLI:

ASA-1(config)# route Inside 192.168.1.0 255.255.255.0 192.168.2.2

Let's verify the static route has been added to the ASA using the CLI. To view the routing table of the ASA, use the show route command:

We can see the static route has been added successfully in the routing table of the ASA.

Another method of checking static routes is to use the show running-config route command on the ASA:

The number 1 at the end of the line is the Distance metric for the route, the default value is 1.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.253.221