--- title: "Configuring Static IP and Default Gateway" slug: "configuring-static-ip-and-default-gateway" tags: ["IP management ", "flex 100", "flex 25"] updated: 2024-07-10T14:55:30Z published: 2024-09-03T19:23:37Z canonical: "docs.crossworkassurance.cisco.com/configuring-static-ip-and-default-gateway" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring Static IP and Default Gateway ### Static IP and Default Gateway Configuration **To configure the IP address** 1. Use the following command on the console: ``` Your Product# configure terminal Your Product (config)# interface cpu0 Your Product (config)# shutdown Your Product (config)# ip address Your Product (config)# no shutdown ``` - The following command adds a default static route to the OOB management interface. ``` Your Product# configure terminal Your Product(config)# ip route 0.0.0.0 0.0.0.0 cpu0 Your Product(config)#end Your Product# ``` - The following command adds a default static route to the gateway address. ``` Your Product# configure terminal Your Product(config)# ip route 0.0.0.0 0.0.0.0 Your Product(config)#end Your Product# ``` - If needed, the no form of the following command deletes a static route. ``` Your Product# configure terminal Your Product(config)# no ip route 0.0.0.0 0.0.0.0 cpu0 Your Product(config)#end Your Product# Your Product# configure terminal Your Product(config)# no ip route 0.0.0.0 0.0.0.0 Your Product(config)#end Your Product# ``` The following command verifies the routing table. ``` Your Product# show ip route ``` Codes: C - connected, S - static, R - rip, B - bgp, O - ospf, I - isis, E - ECMP
IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
E2 - OSPF external type 2 L1 - ISIS Level1, L2 - ISIS Level2, ia - ISIS Inter Area
Vrf Name: default
---------
0.0.0.0/0 [0/1] via 16.0.0.254
C 16.0.0.0/8 is directly connected, cpu0
Your Product# **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)