Creating IP static route

book

Article ID: 168133

calendar_today

Updated On:

Products

XOS

Issue/Introduction

Creating and Reviewing IP static Routes
N/A

Cause

You require a static route to be added to your XOS configuration or you want to see the current configured static routes.

Resolution

Command for adding static routes:
Syntax (IPv4):
configure ip route {<IP_address> <subnet_mask> | <IP_address>/<0-32>} <next_hop_IP_address> [domain <domain_ID>] [circuit <circuit_name>] [vap-group <VAP_group_name>] [description <description>] configure no ip route {<IP_address> <subnet_mask> | <IP_address>/<0-32>} <next_hop_IP_address>

To remove an IPv4 static route:
configure no ip route {<IP_address> <subnet_mask> | <IP_address>/<0-32>} <next_hop_IP_address>
Syntax (IPv6)
configure ip route <IP_address>/<0-128> <next_hop_IP_address>
[domain <domain_ID>] [circuit <circuit_name>] [vap-group <VAP_group_name>] [description <description>]


You access this command from the main CLI context. This command places you in the config-ip-route context.

To remove an IPv6 static route:
configure no ip route <IP_address>/<0-128> <next_hop_IP_address>

To add a static route global to the chassis use the following command:
CBS# configure ip route circuit outside 192.168.5.0/24 10.10.4.254

Add a static route specific to a vap group:
CBS# configure ip route vap-group fw 192.168.100.0/24 10.10.1.254

To delete this route:
CBS# configure no ip route vap-group fw 192.168.100.0/24 10.10.1.254

To add a static route for the Management CPM:
CBS# configure management default-gateway 172.16.1.254

To review the ip routes use the following command:
grp4# sho ip route
Module Destination Gateway Metric Device
fw_1 2.2.2.0/24 0.0.0.0 0 vnd1028
fw_1 172.16.1.0/24 0.0.0.0 0 vnd1027
fw_1 3.3.3.0/24 0.0.0.0 0 vnd1029
fw_1 1.1.0.0/16 0.0.0.0 0 eth0
fw_1 127.0.0.0/8 0.0.0.0 0 lo
av_1 192.168.4.0/24 0.0.0.0 0 inside
av_1 172.16.1.0/24 0.0.0.0 0 vnd1027
av_1 3.3.3.0/24 0.0.0.0 0 vnd1029
av_1 1.1.0.0/16 0.0.0.0 0 eth0
av_1 127.0.0.0/8 0.0.0.0 0 lo
av_1 0.0.0.0/0 3.3.3.1 0 vnd1029
ids_1 1.1.0.0/16 0.0.0.0 0 eth0
ids_1 127.0.0.0/8 0.0.0.0 0 lo
primarycpm 172.16.1.0/24 0.0.0.0 0 eth2
primarycpm 1.1.0.0/16 0.0.0.0 0 eth0
primarycpm 127.0.0.0/8 0.0.0.0 0 lo
primarycpm 0.0.0.0/0 172.16.1.254 0 eth2

Workaround

N/A