- Assign IP address 192.150.2.1/24 to interface 1/0/2.
- Select Routing > Advanced > IP Interface Configuration.
A screen similar to the following displays.

- Scroll down and select the Interface 1/0/2 check box.
Now 1/0/2 appears in the Interface field at the top.
- Enter the following information:
- In the IP Address field, enter 192.150.2.1.
- In the Subnet Mask field, enter 255.255.255.0.
- In the Routing Mode field, select Enable.
- Click Apply to save the settings.
- Select Routing > Advanced > IP Interface Configuration.
- Assign IP address 192.150.3.1/24 to interface 1/0/3.
- Select Routing > Advanced >IP Interface Configuration.
A screen similar to the following displays.

- Scroll down and select the interface 1/0/3 check box.
Now 1/0/3 appears in the Interface field at the top.
- Enter the following information:
- In the IP Address field, enter 192.150.3.1.
- In the Subnet Mask field, enter 255.255.255.0.
- In the Routing Mode field, select Enable.
- Click Apply to save the settings.
- Select Routing > Advanced >IP Interface Configuration.
For more information, see the following support articles:
- What is a Routing Information Protocol (RIP) and how does it work with my managed switch?
- How do I enable routing and assign IP addresses for ports 1/0/2 and 1/0/3 using CLI commands on my managed switch?
This article applies to the following managed switches and their respective firmware:
- M5300 - firmware version 10.0.0.x
-
- M5300-28G (GSM7228S)
- M5300-5G (GSM7252S)
- M5300-28G3 (GSM7328Sv2h2)
- M5300-52G3 (GSM7352Sv2h2)
- M5300-28G_POE+ (GSM7228PSv1h2)
- M5300-52G-POE+ (GSM7252PSv1h2)
- M5300-28GF3 (GSM7328FSv2)
- M4100 - firmware version 10.0.1.x
-
- M4100-26G (GSM7224v2h2)
- M4100-50G (GSM7248v2h2)
- M4100-26G-POE (GSM7226Pv1h1)
- M4100-50G-POE+ (GSM7248Pv1h1)
- M4100-26G-POE (FSM7226Pv1h1)
- M4100-50-POE (FSM7250Pv1h1)
- M4100-D12G (GSM5212v1h1)
- M4100-D10-POE (FSM5210Pv1h1)
- M7100 - firmware version 10.0.1.x
-
- M7100-24X (XSM7224)
- XSM7224S - firmware version 9.0.1.x