- Print
- PDF
Configuring Static IP and Default Gateway
Static IP and Default Gateway Configuration
To configure the IP address
- 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 <flex-ip-address> <netmask: 255.255....>
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 <ip-default-gateway>
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 <ip-default-gateway>
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#
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks