EdgeSwitch - How to Enable Routing Mode

 Overview


This article provides an example and instructions on how to enable Layer 3 functionality for routing on an EdgeSwitch.

Notes & Requirements
- Firmware Version Applicable: all versions of EdgeSwitch. Written using v1.7.0
- Device Models Applicable: all EdgeSwitch

Table of Contents


Introduction & Topology

Step 1: Enable Routing Mode

Step 2: Enable Routing Interfaces

Step 3: Add Static Route on Upstream Device

Step 4: Connect Ports

Step 5: Test Connectivity

Related Articles


Introduction & Topology


Back to Top

This article provides instructions on how to enable Layer 3 routing functionality for EdgeSwitch. The topology example below allows devices connected to 192.168.2.0/24 to routing interface 10.0.0.2 on the EdgeSwitch, which has a Global Default Gateway of 10.0.0.1. In most cases, routing functions are performed on a router rather than a switch, however it is possible to use the EdgeSwitch for routing such as in this example.


Step 1: Enable Routing Mode


Back to Top

1.1 Enable Routing

On the Routing > IP > Configuration page set Routing Mode to Enable.

1.2 Set Global Default Gateway

Add the Global Default Gateway address of the upstream device. In our example above we will use 10.0.0.1 which is the address on our EdgeRouter LAN port.

Note: The default gateway address can not be in the same range as the management IP address. If this is conflicting, you will need to change the management IP address of the EdgeSwitch or use a different network range for the routing uplink network.


Step 2: Enable Routing Interfaces


Back to Top

In our example we are using 10.0.0.0/30 which gives us 2 usable addresses (10.0.0.1 and 10.0.0.2). One will be on the EdgeSwitch Routing Interface and one will be on the EdgeRouter Interface.

2.1 Set a routing interface to connect to the device at 10.0.0.1.

2.1.1 Navigate to the the Routing > IP > Interface Configuration page

2.1.2 Check the Interface radio button

2.1.3 Choose port 0/1

2.1.4 Enable Routing mode and Admin Mode

2.1.5 Check Manual for IP Address Configuration Method

2.1.6 Enter 10.0.0.2 as the IP Address

2.1.7 Enter 255.255.255.252 as the Subnet Mask

2.1.8 Click Submit

2.2. Set routing VLAN for local network on EdgeSwitch

2.2.1 Add a VLAN on the VLAN wizard page and untag VLAN ID 2 for all ports you need on this local network.

Note: Do not untag the routing uplink port 0/1 in this example for the VLAN you are using for the local network. You will notice that this is marked as “Other” because it is a routing interface.

 

2.2.2 On the Routing > IP > Configuration page choose VLAN2, set a manual address of 192.168.2.1. Make sure routing mode and admin mode are enabled.

Important Note! Use 192.168.2.1 as the router address or gateway address on the devices that are connected to the switch. You can assign these network parameters manually or create a DHCP server on the switch to hand out addresses in the 192.168.2.0/24 range and assign 192.168.2.1 as the default gateway for the devices. See more in our EdgeSwitch - How to Create a DHCP Server article.

Note: It is optional to use a specific interface with a 192.168.2.x address assigned and routing mode enabled rather than a VLAN. In this case a device would need to have the gateway set to the address assigned to that port on the EdgeSwitch.


Step 3: Add Static Route on Upstream Device


Back to Top

Add a static route for 192.168.2.0/24 to next hop 10.0.0.2 on the upstream device. In this example we are using an EdgeRouter.


Step 4: Connect Ports


Back to Top

Connect port 0/1 on the Switch (configured with routing mode enabled and address 10.0.0.2/30) to the EdgeRouter interface (configured with interface with 10.0.0.1/30).


Step 5: Test Connectivity


Back to Top

Now every device connected to the untagged vlan2 on the switch will obtain an 192.168.2.x/24 address with a gateway address of 192.168.2.1 (if using DHCP) or can be manually set to 192.168.2.x / 255.255.255.0 / 192.168.2.1. That device will then be able to ping 192.168.2.1, 10.0.0.2, 10.0.0.1, and other devices as well as the Internet if the EdgeRouter at 10.0.0.1 has a route to the Internet or other Networks.


Related Articles


Back to Top

EdgeSwitch - How to Create DHCP Server

Powered by Zendesk