The switch can have multiple IP addresses. Each IP address can be assigned to specified interfaces or ports, Link Aggregation Groups (LAGs), or Virtual Local Area Networks (VLANs). To remotely manage the device, an IP address must be defined to access the switch. This allows you to easily configure or troubleshoot the device through the web-based utility, Telnet, or Secure Shell (SSH).
The IP address of the switch can be manually configured or automatically received from a Dynamic Host Configuration Protocol (DHCP) server. If there are no DHCP servers available, the switch will use its factory default IP address which is 192.168.1.254.
This article provides instructions on how to configure the IP address settings of your Cisco Business 350 series switch through the Command Line Interface (CLI).
If you are unfamiliar with terms in this document, check out Cisco Business: Glossary of New Terms.
Important: If your switch is in one of the stacking modes with a Standby Switch present, it is recommended to configure a static IP address to prevent disconnecting from the network during a Stacking Active switchover. This is because when the standby switch takes control of the stack, when using DHCP, it might receive a different IP address than the one that was received by the original active-enabled unit of the stack.
In this scenario, the switch is set up without the availability of a DHCP server. Follow the steps below to configure a static IP address on the switch:
Connect your computer directly to the switch using a serial cable.
If you would prefer to SSH into your switch, click here to view an article on gaining CLI access to a switch.
Log in to the switch console. The default username and password is cisco/cisco. If you have configured a new username or password, enter the credentials instead.
From the Privileged EXEC mode of the switch, enter the Global Configuration mode by entering the following:
The configure command is equivalent to configure terminal
In the Global Configuration mode, enter the interface context by entering the following:
CBS350(config)#interface [interface-id | vlan-idIn this example, interface vlan 1 is used. VLAN 1 is the default VLAN of the switch.
Enter the IP address interface configuration command to define an IP address for an interface by entering either of the following:
The options are:
(Optional) To remove an IP address from an interface, use the no form of the IP address command by entering the following:
CBS350(config-if)#no ip addressEnter the end command to go back to the Privileged EXEC mode of the switch.
CBS350(config-if)#end(Optional) To display the IP address configuration and information on the interface, enter the following command in the Privileged EXEC mode:
CBS350#show ip interface(Optional) To save the configured settings to the startup configuration file, enter the following:
CBS350#copy running-config startup-config(Optional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-config]… prompt appears.
You have now successfully configured the static IP address settings of your switch.
In this scenario, the switch is connected to a router which acts as an active DHCP server. Follow the steps below to configure the IP address of the switch through DHCP.
Connect your computer directly to the switch using a serial cable.
Log in to the switch console. The default username and password is cisco/cisco. If you have configured a new username or password, enter the credentials instead.
From the Privileged EXEC mode of the switch, enter the Global Configuration mode by entering the following:
CBS350#configureIn the Global Configuration mode, enter the interface context by entering the following:
CBS350(config)#interface [interface id | vlan-id]In the interface context, acquire an IP address from the DHCP server by entering the following:
CBS350(config-if)#interface [interface id | vlan-id]You will receive a notification that the device has been configured on the specified interface.
(Optional) To remove an IP address from an interface, use the no form of the IP address DHCP command by entering the following:
CBS350(config-if)#no ip address dhcpEnter the end command to go back to the Privileged EXEC mode of the switch.
CBS350(config-if)#end(Optional) To display the IP address configuration and information of the interface, enter the following command in the Privileged EXEC mode:
CBS350#show ip interface(Optional) To display the IP address configuration and information on the DHCP client interface, enter the following command in the Privileged EXEC mode:
CBS350#show ip dhcp client interface(Optional) To save the configured settings to the startup configuration file, enter the following:
CBS350#copy running-config startup-configOptional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-config]… prompt appears.
You have now successfully configured the DHCP IP address settings on your Cisco Business 350 series switch.
Looking for more articles on your CBS250 or CBS350 switch? Check out any of the links below for more information.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
11-Jan-2021 |
Initial Release |