Configure IPv4 Management Interface on an SG350XG or SG550XG Switch through the CLI
Configuring IPv4 management interface is useful in managing IP addresses for the switch. The IP address can be configured on a port, a Link Aggregation Group (LAG), a Virtual Local Area Network (VLAN), Out-of-Band (OOB), or a loopback interface.
To manage an SG350XG or SG550XG switch through the web-based utility or the Command Line Interface (CLI), the IPv4 device management IP address must be defined on the OOB port of the switch. The device IP address can be manually configured or automatically received from a DHCP server.
This article provides instructions on how to manually configure the IPv4 management interface (OOB) on the switch through the Command Line Interface (CLI).
Note: For instructions on how to configure IPv4 management interface on the switch through the web-based utility, click here.
If you are unfamiliar with terms in this document, check out Cisco Business: Glossary of New Terms.
- SG350XG Series
- SG550XG Series
Configure IPv4 Management Interface
Important: When the switch is in a stacking mode with a Standby switch present, it is recommended to configure the IP address as a static 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 on the stack.
Configure IPv4 Address on the OOB Interface
Step 1. 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.
Note: To learn how to access an SMB switch CLI through SSH or Telnet, click here.
Note: The commands may vary depending on the exact model of your switch. In this example, the SG550XG 16-port switch is accessed through the serial port.
Step 2. From the Privileged EXEC mode of the switch, enter the Global Configuration mode by entering the following:
Step 3. In the Global Configuration mode, enter the Interface Configuration context by entering the following:
- interface-id — Specifies an interface ID on which IP addresses are defined.
Note: To configure the management interface, the interface OOB must be entered.
Step 4. Enter the IP address and the corresponding network mask of the interface:
Note: In this example, the IP address configured is 192.168.100.2 with 255.255.255.0 as subnet mask.
If you are using Telnet or Secure Shell (SSH), your session will be automatically closed and connection will be lost. The switch will apply the new management IP address on the OOB port. You can skip to Access the IPv4 Management Interface.
Step 5. (Optional) Enter the end command to go back to the Privileged EXEC context, enter the following:
You should now have successfully configured the IPv4 management interface addresses on your switch through the CLI.
Display VLAN IPv4 Interfaces
Step 1. To display the usability status of configured IP interfaces, enter the following:
SG550XG#show ip interface [interface-id]
- interface-id — The interface ID on which IP addresses are defined.
The IPv4 Interface table contains the following information:
- IP Address — The Unit or interface for which the IP address is defined. This can also be a loopback interface.
- I/F — The name of the specific interface.
- I/F Status: admin/oper — Displays the administrative and operational status of the interface.
- Type — The IP address type. The available options are:
- DHCP — Received from Dynamic Host Configuration Protocol (DHCP) server.
- Static — Entered manually. Static interfaces are non-DHCP interfaces that are created by the user.
- Default — The default address that exists on the device by default, before any configurations have been made.
- Directed Broadcast — The status of the translation of a directed broadcast to physical broadcasts on the interface.
- Prec — The status if source precedence is supported on the interface.
- Redirect — The interface status of sending of Internet Control Message Protocol (ICMP) redirect messages to resend a packet through the same interface on which the packet was received.
- Status — Results of the IP address duplication check.
- Tentative — There is no final result for the IP address duplication check.
- Valid — The IP address collision check was completed, and no IP address collision was detected.
- Valid-Duplicated — The IP address duplication check was completed, and a duplicate IP address was detected.
- Duplicated — A duplicated IP address was detected for the default IP address.
- Delayed — The assignment of the IP address is delayed for 60 seconds if DHCP Client is enabled on startup in order to give time to discover DHCP address.
- Not Received — Relevant only for DHCP Address. When a DCHP Client starts a discovery process, it assigns a dummy IP address 0.0.0.0 before the real address is obtained. This dummy address has the status of Not Received.
Step 2. (Optional) In the Privileged EXEC mode of the switch, save the configured settings to the startup configuration file, by entering the following:
SG550XG#copy running-config startup-config
Step 3. (Optional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-config]… prompt appears.
You should now have displayed the IP management interface details on your switch through the CLI.
Step 1. To access the CLI of the configured switch interface, enter the IP address in the client that you are using. In this example, PuTTY is used.
Note: Make sure that your computer is connected on the same VLAN as the switch interface. In this example, 192.168.100.2 is entered.
The CLI of the switch should be accessible.
Step 2. (Optional) To access the web-based utility of the interface, enter the IP address on your web browser. In this example, 192.168.100.2 is entered.
You should now have successfully accessed the CLI or the web-based utility of the switch using the IPv4 management interface address.