A Layer 3 switch, such as a NETGEAR AV M4250, M4300, or M4350, already knows how to reach every VLAN it has an IP address on, but it knows nothing about networks beyond them. Two static routes close that gap: a default route on the switch pointing up to the upstream router, and return routes on the router pointing back down to the switch.
The link between the two devices is a dedicated transit VLAN, VLAN 999 in this article. VLAN 999 carries only routed traffic between the switch and the upstream network, so no endpoint lives in VLAN 999 and the switch shares no broadcast domain with the upstream side.
This article explains how the routing table makes its decisions, follows a packet from an AV VLAN to the upstream network and back, and shows how to configure and verify the routes in the AV UI and Main UI.
Example topology
The switch routes three AV VLANs and connects to the upstream router through VLAN 999, a /24 subnet used only for the two routing addresses.
Traffic to the upstream network leaves on the switch's default route; replies come back on the router's return route. Both paths cross VLAN 999.
| VLAN | Purpose | Subnet | Switch Address (Gateway) |
|---|---|---|---|
| 10 | Control | 10.10.10.0/24 | 10.10.10.1 |
| 20 | Dante audio | 10.10.20.0/24 | 10.10.20.1 |
| 30 | Video | 10.10.30.0/24 | 10.10.30.1 |
| 999 | Transit to upstream router | 10.99.99.0/24 | 10.99.99.2 (router: 10.99.99.1) |
All addresses are examples; replace them with the site's own plan.
How routing works on the switch
The switch forwards every packet that leaves a VLAN based on one lookup in its routing table: the most specific entry that matches the destination wins. That rule, longest-prefix match, is all a static route relies on.
Connected routes
When a VLAN gets an IP address on the switch (a VLAN routing interface, often called a switched virtual interface or SVI), the switch adds a connected route for that subnet automatically. You never configure connected routes manually. Connected routes make inter-VLAN routing work: a host in VLAN 10 can reach VLAN 20 because both subnets are connected routes on the same switch. In the AV UI, the switch adds the connected route as soon as a profile has its VLAN IP address and is applied.
Static routes
A static route is an entry that you add manually: to reach network X, send the packet to next hop Y. The next hop must be in a subnet that the switch is already connected to. Otherwise, the switch cannot resolve the next hop with ARP and the route stays unusable. In this design, every next hop is in VLAN 999.
The default route, 0.0.0.0/0, is a static route that matches every destination. Because the default route has a prefix length of zero, it is always the least specific match, so the switch uses the default route only when no more specific route matches.
You add the default route once, either in the AV UI through the management interface settings, or in the Main UI. For both methods, see Configure static routing with a transit VLAN.
The resulting routing table
| Destination | Type | Next Hop or Interface |
|---|---|---|
| 10.10.10.0/24 | Connected | VLAN 10 |
| 10.10.20.0/24 | Connected | VLAN 20 |
| 10.10.30.0/24 | Connected | VLAN 30 |
| 10.99.99.0/24 | Connected | VLAN 999 |
| 0.0.0.0/0 | Static (default) | 10.99.99.1 via VLAN 999 |
A packet's round trip
In this example, the upstream destination is a server, but traffic to the internet follows the same path.
- A Dante controller at 10.10.20.50 sends a packet to 172.16.5.20, a server on the upstream network. The destination is not in VLAN 20, so the controller sends the packet to its default gateway, the switch at 10.10.20.1.
- The switch looks up 172.16.5.20. No connected route matches, so the default route does. The switch rewrites the destination MAC to the upstream router's MAC (learned through ARP for 10.99.99.1) and sends the packet out VLAN 999. The IP addresses do not change.
- The upstream router delivers the packet to 172.16.5.20.
- The server replies to 10.10.20.50. The upstream router looks up 10.10.20.0/24 and finds the return route that points to 10.99.99.2, the switch's address in VLAN 999, and forwards the reply there.
- The switch matches 10.10.20.0/24 as a connected route and delivers the reply into VLAN 20.
Packet round trip · 5 steps, 2 static routes
Important: Steps 2 and 4 are the two static routes. If either route is missing, traffic goes out but never comes back, which is the most common static routing fault.
The default route on the switch
The switch needs one route upstream: a default route with the router's VLAN 999 address, 10.99.99.1, as next hop. With a single router at the top and the switch as a stub, the switch has only one way out, so one default route is the correct configuration.
The endpoints in each VLAN need nothing special. Their default gateway is the switch's address in their own VLAN (10.10.10.1, 10.10.20.1, 10.10.30.1), never the upstream router.
The return routes on the upstream router
The upstream router only knows VLAN 999 as a connected network; the AV subnets behind the switch are invisible to the router until you add return routes. Each route points to 10.99.99.2, the switch's address in VLAN 999.
| Destination | Next Hop | Purpose |
|---|---|---|
| 10.10.10.0/24 | 10.99.99.2 | Control VLAN 10 |
| 10.10.20.0/24 | 10.99.99.2 | Dante VLAN 20 |
| 10.10.30.0/24 | 10.99.99.2 | Video VLAN 30 |
Summary route as an alternative to individual return routes
When all VLAN subnets on the switch come from one contiguous block, a single summary route replaces the individual entries. Here, 10.10.0.0/16 via 10.99.99.2 covers VLANs 10, 20, and 30, and any VLAN added later in the same block, with no change on the router.
Summarize only a block that is entirely behind the switch. If part of 10.10.0.0/16 exists elsewhere, the summary sends that traffic to the switch, which forwards it back up its default route and creates a routing loop until the TTL expires.
Configure static routing with a transit VLAN
This section assumes that the AV VLANs are already set up in the AV UI, each with a profile and a VLAN IP address. Three tasks remain: the transit VLAN, the default route on the switch, and the return routes on the IT network.
If the upstream router already sits in one of the AV VLANs, skip Step 1 and use the router address in that VLAN as the default gateway in Step 2. We still recommend a dedicated transit VLAN. For more information, see Recommendations.
If you manage your switch through the Main UI only, see How to configure routing VLANs with shared Internet access on a NETGEAR fully managed switch.
Step 1: Create the transit VLAN in the AV UI
To create the transit VLAN:
- Log in to the AV UI.
- In the Profile Templates table, click the three-dot (More) icon next to the Data profile template and select Configure.
- Click the port that connects to the upstream router once to add the port as an untagged port (green icon), and leave all other ports excluded.
- Turn on the Edit VLAN Routing / DHCP Server toggle.
- From the VLAN IP Settings menu, select Static and enter 10.99.99.2 in the VLAN IP Address field and 255.255.255.0 in the Subnet Mask field, or select DHCP client to let the upstream router assign the address.
- Make sure that the DHCP server is not enabled on this profile.
- Click the Apply button and then click the Save button at the top of the page.
Step 2: Set the default route to the transit VLAN gateway
Set the default route to the upstream router in VLAN 999, 10.99.99.1. You can set the default route in either the AV UI or the Main UI.
To set the default route in the AV UI:
- On the Overview page, in the Device Details section, click the pencil (Edit) icon below the Management IP Address field.
The Edit Management IP Address window displays. - If the Management IP Settings menu is set to DHCP client, select Static.
- In the Default Gateway field, enter 10.99.99.1.
- Click the Apply button and then click the Save button at the top of the page.
To set the default route in the Main UI:
- On the switch login page, click the Main UI Login button and log in.
- Select Routing > Routing Table > Basic > Route Configuration, and from the Route Type menu, select Default.
- In the Next Hop IP Address field, enter 10.99.99.1.
- Click the Add button and then click the Save icon.
Step 3: Add the return routes on the IT network
The upstream router or firewall belongs to the IT network, so the exact steps depend on the hardware that the IT team uses. The method is always the same. Give the IT team the following settings:
- An interface or port in VLAN 999 (untagged) with the address 10.99.99.1/24.
- Static routes to 10.10.10.0/24, 10.10.20.0/24, and 10.10.30.0/24 with next hop 10.99.99.2, or one 10.10.0.0/16 summary route.
- NAT (outbound) rules that include the AV subnets, if the router also provides internet access. Many routers only translate their own directly connected networks by default, so the switch reaches the internet but the endpoints behind the switch do not.
Verification and troubleshooting
Work from the switch outward: confirm the routing table, then the next hop, then the return path. Each step isolates one half of the round trip.
- Routing table: In the Main UI, select Routing > Routing Table > Basic > Route Configuration. Check that the learned routes list shows the connected routes and the default route via 10.99.99.1. A missing default route means that IP routing is off, VLAN 999 has no IP address, or the uplink port is down.
- Routing interfaces: In the AV UI, check that every profile, including Transit, shows its VLAN IP address. In the Main UI, select Routing > IP > Advanced > IP Interface Configuration, select the VLANS view, and check that each VLAN shows a Routing Interface Status of Up.
- Ping from the switch: In the AV UI, select Diagnostics > Troubleshoot, enter 10.99.99.1, turn on the Ping toggle, and click the Run Tests button. Then ping a host on the upstream network. To test the return path for one VLAN, use Maintenance > Troubleshooting > Ping IPv4 in the Main UI and set Source to that VLAN's interface. Success from VLAN 999 but failure from a VLAN source points to a missing return route.
- Ping from an endpoint: Ping the upstream host from an endpoint in each VLAN. If the ping fails, check the endpoint's gateway first, then the router's return route and NAT for that subnet.
- Traceroute: Run a traceroute from an endpoint, or from the switch with the Traceroute toggle in Diagnostics > Troubleshoot (AV UI) or Maintenance > Troubleshooting > Traceroute IPv4 (Main UI). From an endpoint, the first hop is the switch's VLAN address and the second hop is 10.99.99.1. A trace that bounces between the two addresses indicates a routing loop, usually caused by an overlapping summary route.
| Symptom | Likely Cause |
|---|---|
| Switch reaches upstream, endpoints don't | Missing return route, or NAT excludes the AV subnets |
| Default route not in the table | IP routing disabled, or VLAN 999 interface down |
| Only one VLAN works | Return route missing for the other subnets |
| Traceroute loops between switch and router | Summary route covers a subnet that is not behind the switch |
Recommendations
We recommend a dedicated transit VLAN. A transit VLAN gives the AV and IT teams a clear handoff point, keeps the router out of the broadcast and multicast traffic in the AV VLANs, keeps firewall and NAT rules on the IT side simple because all AV traffic arrives from one next hop, and matches what many IT departments already require.
Keep VLAN 999 for routed traffic only. The following practices keep the transit VLAN small, predictable, and isolated from the AV side.
- No endpoints in VLAN 999: Only the switch and the router have addresses in VLAN 999. An endpoint in the transit VLAN bypasses the separation that the design provides.
- Keep the addressing simple: This article uses /24 subnets throughout for readability. A smaller transit subnet such as a /30 also works, because the transit VLAN uses only two addresses.
- Port type: Use an untagged access port for a single router link. Use a tagged trunk only if the router needs several VLANs on one cable, and then allow only VLAN 999 for routing.