Converting from a dynamically assigned IP address (DHCP) to static is prevented by a bug. The graphical user interface (GUI) does not enable you to compose the IP address field (see screenshot below). This document introduces a temporary workaround for setting a static IP address on the virtual local area network (VLAN) interface for the above mentioned switch models.
NOTE: To assign static IP address via the command line interface (CLI), click here.
The following workaround can be applied irrespective of whether the switch and personal computer (PC) are in the same subnet or a different subnet. When changing the IP address of the switch from DHCP to static, you must ensure that the default gateway IP address is also changed so that any further remote operations with the switch can be possible. In order to simplify this process, you can create a text file (*.txt) pre-populated with commands and copy it to the running configuration of the switch.
To set a static IPv4 address via the GUI follow the steps below:
Note: The images on this article are taken from the SG550X-24. Menu options may slightly vary depending on the model of your device.
Step 1. Create a text file and save it to your PC. Below are the commands that are required to populate the text file. Be sure to edit the items in [bracket notation]. Treat the brackets like a quote, where you only enter what is within to reflect the settings you want to enact on your network and not the brackets themselves. Save the file when you are done editing. The naming conventions will not matter. In this example, the text file will be called "SG550 runconfig.txt".
Interface [VLAN ID]
No ip address DHCP
No ip address [old IP address]
IP address [new IP address] [subnet mask]
IP default-gateway [gateway IP address]
Note: Replace the above IP addresses with the one you wish to assign statically to your switch.
Step 2. Log in to the web-based utility of the switch by entering your Username and Password in the fields provided and then click Log In.
Step 4. In the File Operations menu, choose the following:
Operation type - Update File
Destination File Type - Running Configuration
Copy Method - HTTP/HTTPS
Click on Browse and choose the text file from the PC.
Note:Do not use the text file to update the Startup Configuration of the switch as the operation will replace the Startup Configuration. Using the Running Configuration option will only add settings to the existing configuration.
Step 5. To access the switch, open a new browser and enter the IP address of the switch to which it was assigned (In this example, it is 192.168.1.200)
Step 6. To verify the new static IP address of the switch, repeat Step 2.
Step 7. Choose IP Configuration > IPv4 Interface.
Step 8. The IPv4 interface table will display the new static IP address assigned to the switch.
You should now have successfully assigned a static IPv4 address on the VLAN interface through the web-based utility of the switch.