Article Overview

Assigning a static IP to a core switch ensures stable network management and prevents IP conflicts during DHCP changes.

Step 1: Access the Switch CLI

Connect to your switch using a console cable or via SSH/Telnet if remote access is enabled. Use a terminal emulator like PuTTY to open the connection. Log in with your credentials; the default username and password for many Cisco switches is cisco/cisco .

Step 2: Enter Global Configuration Mode

From the Privileged EXEC mode, enter global configuration mode:

CodeCopyenableconfigure terminal

This allows you to make changes to the switch configuration .

Step 3: Select the Interface

For a core switch, you typically assign the IP to a VLAN interface (commonly VLAN 1):

CodeCopyinterface vlan 1

If your switch is a Multilayer Switch, ensure the interface is configured as Layer 3 before assigning an IP .

Step 4: Assign the Static IP Address

Use the following command to assign the IP and subnet mask:

CodeCopyip address

Optionally, you can also set the default gateway:

CodeCopyip default-gateway

For example:

CodeCopyip address 192.168.1.10 255.255.255.0ip default-gateway 192.168.1.1

After entering the commands, exit the interface configuration mode:

CodeCopyexit

Step 5: Save the Configuration

To ensure the static IP persists after a reboot, save the configuration:

CodeCopywrite memory

or

CodeCopycopy running-config startup-config

Step 6: Verify the Configuration

Check the IP assignment and connectivity:

CodeCopyshow running-configping

This confirms the switch is reachable and the static IP is correctly applied .

Optional: Using Dashboard or Local Web Interface

For switches like Cisco Meraki, you can also assign a static IP via the Dashboard:

  1. Navigate to Switch > Monitor > Switches.
  2. Select the switch and click the pencil icon next to LAN IP.
  3. Enter the desired static IP, subnet mask, and default gateway.
  4. Save the configuration .

Tips

  • Always ensure the static IP is outside the DHCP pool to avoid conflicts.
  • For stacked switches, configure static IPs to prevent address changes during failover .
  • Document the IP assignments for network management and troubleshooting. By following these steps, your core switch will have a stable static IP, ensuring reliable network management and connectivity.

How to Configure a Cisco Switch (step by step)

If you''re looking to configure a switch for the first time, this post is for you. Learn step-by-step configuration commands

Assigning a Static IP Address

By default, when you setup a switch, it will try to attain connectivity via DHCP. You can also configure a static IP address through

Configuring Static IP Routing

Configuring Static IP Routing Note When configuring routing parameters on the switch and to allocate system

Configure IP Address Settings on a Switch using the CLI

This article provides instructions on how to configure the IP address settings of your switch through the Command Line Interface

Giving static IP to wireless AP from core switch

I have noticed that when the APs restart the IP address is changing on them. I want to give the fixed Ip to these APS.

How to change the IP address of the smart and L2 managed switches

Configure the IP Address Mode as Static. Then enter the new IP address 192.168.0.100 and the subnet mask

Setting the switch IP address

You can configure the SAN96B-5 with a static IP address, or you can use a Dynamic Host Configuration Protocol (DHCP) server to

How to Set Up a Static IP Address: A Step-By-Step Guide

Setting one up is straightforward once you know which address to use, what gateway and DNS settings to enter, and

How to Assign a Static IP Address in Windows 10 or Windows 11

To set a static IP address in Windows 10 or 11, open Settings -> Network & Internet and click Properties for your active

Configure an IP address on a switch

This article describes how to configure an IP address on a Cisco switch in order to connect over the network for management.

Chapter: Configuring Static Routing

This chapter describes how to configure static routing on the switch. This chapter includes the following sections: •

Initial Switch Configuration

Whether the configuration deployment of a switch is completed all at once or done in phases, the basic switch settings must first be

Configure using DHCP or static IP

All switch ports are part of access VLAN 1 by default. Static IP address and IP DHCP configuration can co-exist on VLAN 1, however

Configure IPv4 Static Routes Settings on a Switch

Important: You cannot configure a static route through a directly‑connected IP subnet where the device gets its IP

Configure IP Address Settings on a Switch using the CLI

This article provides instructions on how to configure the IP address settings on the Sx350, SG350X, Sx500, Sx500X

How to set static IP address on Windows 10

You can set a static IP address on Windows 10 using Command Prompt, PowerShell, Control Panel, and even the

Assign an IP address based on switch port

I could program each environmental controller with a static IP, so that I can associate a controller to a particular room

How to Configure Static IP on Cisco Switch and Configure DHCP Pool

By the end of this tutorial, you will have a solid understanding of how to configure both static IP addresses and DHCP

Basic Cisco Switch Configuration Example in 10 Steps

Unlike other lower class switch vendors (which are plug-and-play), the Cisco switch needs some initial basic configuration in order to

How to Configure a Switch IP Address

To configure an IP address on a network switch, follow these general steps. Exact commands and menus may vary by

Configure IP Address for Interface in Cisco Switches

To configure an IP Address on a switch interface, first, we must change the interface from a layer 2 interface to a layer

Configure IPv4 Static Routes on an SMB Switch via CLI

This article provides instructions on how to configure IPv4 static routes on the switch through the Command Line

How to Set Up a Static IP Address

How to Set Up a Static IP Address DHCP is fine, unless you''re looking to perform advanced

How to set a static IP while using a switch?

What you have actually done is added a static IP address to the wrong adapter on your computer. There may be

How to assign a static IP to a Cisco Layer 3 switch in order to connect

The steps of this manual have been executed in order to configure SSH. Once SSH has been configured, how to access the switch

How to Set a Static IP Address

There are many reasons that you may need to change and set a static IP address for your IP device, such as a managed switch,

Setting static IPv4 address on a switch using GUI

Step 6. To verify the new static IP address of the switch, repeat Step 2. Step 7. Choose IP Configuration > IPv4

how to assign static IP on a switch

On a L3 switch you can have multiple ip interfances. Unlike a L2 switch, an L3 switch can have static ip addresses on multiple vlan

How to Set a Static IP Address on a Cisco Switch or Router

Switch#Copy Running-Config Startup-Config Destination filename [startup-config]? Building configuration 0

How to Set a Static IP Address On Your Device?

A static IP address is one that does not change over time and can be assigned to a computer connected to the

How do I set a static IP address in Windows?

A static IP address is useful for hosting servers or websites and for sharing large files. For more information about static

Best Practices for Setting Static IP Addresses on Cisco Business

This article gives the reader general information about static IP addresses and some recommended best practices

Configure IP Address Settings on a Switch using the CLI

Configure the IP Address of the Switch through the CLI Important: If your switch is in one of the stacking modes with a Standby

Configure the Internet Protocol (IP) Address Settings on Cisco

This article provides instructions on how to configure the IP address settings on the Cisco Business series switches

How to configure a static IP on Windows 10 or 11

Do you need to switch from a dynamic to a static IP address configuration on Windows 11 or 10? Here''s how.

Related Resources

Need Precision Optical Test Instruments?

Request a free quote for OTDR, power meters, light sources, spectrum analyzers, return loss testers, VFL, or complete fiber test kits. EU‑owned manufacturer with local support in South Africa – reliable, accurate, and field‑proven equipment.