Configuring Static IP and Default Gateway
  • 30 May 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Configuring Static IP and Default Gateway

  • Dark
    Light
  • PDF

Article Summary

Static IP and Default Gateway Configuration

To configure the IP address

  1. Use the following command on the Flex 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 Accedian Networks Inc. All rights reserved. Accedian®, Accedian Networks®,  the Accedian logo™, Skylight™, Skylight Interceptor™ and per-packet intel™, are trademarks or registered trademarks of Accedian Networks Inc. To view a list of Accedian trademarks visit: http://accedian.com/legal/trademarks/. 


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.