smb5557 Configure The Internet Protocol Ip Address Settings On A Swi
smb5557 Configure The Internet Protocol Ip Address Settings On A Swi
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 switch
through the Command Line Interface (CLI).
If you are unfamiliar with terms in this document, check out Cisco Business: Glossary of New
Terms.
Applicable Devices
● Sx350 Series
● SG350X Series
● Sx500 Series
● Sx550X Series
Software Version
● 1.4.7.05 — Sx500
● 2.2.8.4 — Sx350, SG350X, Sx550X
Static IP Address
DHCP IP Address
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:
Step 1. 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.
Step 2. 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.
Step 3. From the Privileged EXEC mode of the switch, enter the Global Configuration mode by
entering the following:
SG350X#configure
In this example, interface vlan 1 is used. VLAN 1 is the default VLAN of the switch.
Step 5. Enter the IP address interface configuration command to define an IP address for an
interface by entering either of the following:
● ip address [ip-address] {{mask | prefix-length}}— Use the reload command to reload the
switch immediately.
● ip address [ip-address] {{mask | prefix-length}} [default-gateway-ip-address] — Use the
reload {{in hhh:mm | mmm | at hh:mm [day month]}} command to specify scheduled switch
reload.
Step 6. (Optional) To remove an IP address from an interface, use the no form of the IP address
command by entering the following:
SG350X(config-if)#no ip address
Step 7. Enter the end command to go back to the Privileged EXEC mode of the switch.
SG350X(config-if)#end
Step 8. (Optional) To display the IP address configuration and information on the interface, enter
the following command in the Privileged EXEC mode:
SG350X#show ip interface
Step 9. (Optional) To save the configured settings to the startup configuration file, enter the
following:
Step 10. (Optional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-
config]… prompt appears.
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.
Step 1. Connect your computer directly to the switch using a serial cable.
Step 2. 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.
SG350X#configure
Step 4. In the Global Configuration mode, enter the interface context by entering the following:
In this example, interface vlan 1 is used. VLAN 1 is the default VLAN of the switch.
Step 5. In the interface context, acquire an IP address from the DHCP server by entering the
following:
You will receive a notification that the device has been configured on the specified interface.
Step 6. (Optional) To remove an IP address from an interface, use the no form of the IP address
DHCP command by entering the following:
Step 7. Enter the end command to go back to the Privileged EXEC mode of the switch.
SG350X(config-if)#end
Step 8. (Optional) To display the IP address configuration and information of the interface, enter
the following command in the Privileged EXEC mode:
SG350X#show ip interface
Step 10. (Optional) To save the configured settings to the startup configuration file, enter the
following:
Step 11. (Optional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-
config]… prompt appears.