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.
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.
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:
SG550XG#configureStep 3. In the Global Configuration mode, enter the Interface Configuration context by entering the following:
SG550XG#interface [interface-id]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:
SG550XG#endYou should now have successfully configured the IPv4 management interface addresses on your switch through the CLI.
Step 1. To display the usability status of configured IP interfaces, enter the following:
SG550XG#show ip interface [interface-id]The IPv4 Interface table contains the following information:
- 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.
- 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-configStep 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.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
13-Dec-2018 |
Initial Release |