Configure VLAN Interface IPv4 Address on an Sx350 or SG350X Switch
Updated:December 13, 2018
This article provides instructions on how to configure VLAN interface IPv4 address on the switch.
The switch can have multiple IP addresses and can be configured either on a port, a Link Aggregation Group (LAG), a Virtual Local Area Network (VLAN), or a loopback interface. If a switch does not have a Dynamic Host Configuration Protocol (DHCP) server then the IP address needs to be assigned statically. The switch routes traffic between the directly-attached IP subnets configured on the device and continues to bridge traffic between devices in the same VLAN. Traffic is routed by the device in layer 3 mode.
Note: For instructions on how to configure IPv4 management interfaces on the switch, click here.
Configure IPv4 Management Interface
When the switch is in a stacking mode with a Backup Master present, it is recommended to configure the IP address as a static address to prevent disconnecting from the network during a Stacking Master switchover. This is because when the backup master takes control of the stack, when using DHCP, it might receive a different IP address than the one that was received by the original master-enabled unit on the stack.
Enable IPv4 Routing
Step 1. Log in to the web-based utility of the switch then choose IP Configuration >IPv4 Management and Interfaces > IPv4 Interface.
Note: The available menu options may vary depending on the device model. In this example, SG350X-48MP is used.
Step 2. To enable IPv4 routing, check the EnableIPv4 Routing check box.
Note: If you want to configure VLAN mapping on your switch, you must disable this feature.
Step 3. Click Apply.
You should now have successfully enabled IPv4 routing on your switch.
Configure IPv4 Address on the Interface
The IPv4 Interface Table on the IPv4 Interface page contains the following information:
Interface - The Unit or interface for which the IP address is defined. This can also be a loopback interface.
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.
IP Address - Configured IP address for the interface.
Mask - Configured IP address mask.
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.
Note: In this example, the IPv4 Interface Table contains the default VLAN 1 which has a DHCP-assigned IP address of 192.168.100.19 with 255.255.255.224 subnet mask.
Step 1. To add a new interface, click the Add button.
Step 2. In the Interface area, click on the radio button of the interface type that you want to assign with an IP address then choose the specific interface accordingly.
Note: In this example, VLAN is clicked and VLAN 20 is chosen from the drop-down list. To learn how to configure VLANs on your switch, click here.
Step 3. In the IP Address Type area, choose from the following options:
Dynamic IP Address - The IP address is received from DHCP server. If this option is chosen, skip to Step 6.
Static IP Address - The IP address is entered manually. Static interfaces are non-DHCP interfaces that are created by the user.
Note: In this example, Static IP Address is chosen.
Step 4. (Optional) If Static IP Address is chosen, enter the IP address in the IP Address field.
Note: In this example 192.168.100.66 is used.
Step 5. Click a radio button from the Mask area then enter the corresponding subnet mask. The options are:
Network Mask - IP mask for this address.
Prefix Length - Length of the IPv4 prefix.
Note: In this example, Prefix Length is chosen and 27 is entered in the corresponding field which also translates to 255.255.255.224 network mask.