cisco aci Add Static Route

Short overview about Cisco Aci Add Static Route and what's good to know about.

In order to add a static route in Cisco ACI, you will need to use the following command:

Read more related to Cisco ACI: Cisco aci apic ordering guide
ip route {destination} {mask} {gateway} {distance} {admin-distance}

For example, to add a static route for the 10.0.0.0/8 network with a next-hop gateway of 10.1.1.1 and an administrative distance of 1, you would use the following command:

ip route 10.0.0.0 255.0.0.0 10.1.1.1 1 1

If you wanted to add a static route for the 172.16.0.0/16 network with a next-hop gateway of 10.1.1.1 and an administrative distance of 1, you would use the following command:

ip route 172.16.0.0 255.255.0.0 10.1.1.1 1 1

The above two commands will add static routes for the 10.0.0.0/8 and 172.16.0.0/16 networks with a next-hop gateway of 10.1.1.1 and an administrative distance of 1.

You can also add static routes for specific hosts. For example, to add a static route for the host 10.1.1.100 with a next-hop gateway of 10.1.1.1 and an administrative distance of 1, you would use the following command:

ip route 10.1.1.100 255.255.255.255 10.1.1.1 1 1

The above command will add a static route for the host 10.1.1.100 with a next-hop gateway of 10.1.1.1 and an administrative distance of 1.

Related content