VLAN Configuration without Inter-VLAN Routing for Internet Access on Cisco Catalyst 3850 Switch with TP-Link AX20 and Asus RT-N12 Routers

Abstract: Isolate VLANs on Cisco Catalyst 3850 to prevent inter-VLAN routing while providing internet access via separate TP-Link and Asus routers.

Created: 2026-09-19 by

To isolate multiple VLANs on a Cisco Catalyst 3850 while providing internet access via separate routers, configure each switch port as an access port in its respective VLAN and disable Layer 3 routing on the switch. Connect each router’s WAN interface to the internet and its LAN interface to a distinct switch port assigned to that VLAN. This ensures traffic remains segmented at Layer 2, preventing inter-VLAN communication while allowing outbound connectivity through independent default gateways.

Network Topology and Design Strategy

The primary goal here is network segmentation without internal routing. By keeping the Cisco Catalyst 3850 operating strictly as a Layer 2 switching device for these specific segments, we eliminate the complexity of managing subnets and routes within the switch itself. This approach leverages the hardware capabilities of the TP-Link AX20 and Asus RT-N12 routers to handle NAT and internet forwarding independently. Each VLAN represents a distinct broadcast domain, ensuring that devices in one VLAN cannot directly communicate with devices in another, which is crucial for security and bandwidth management. For this configuration, we assume three distinct networks: VLAN 10 for the TP-Link AX20, VLAN 20 for the Asus RT-N12, and potentially VLAN 30 for other isolated devices. The Cisco switch will act as the central distribution point, tagging frames only if necessary, but in this pure access model, untagged frames are typical for end-user devices. It is important to note that while the switch does not route between these VLANs, it must still have a management IP address if remote administration is required, though this should be placed in a dedicated management VLAN not connected to the user-facing ports. This setup aligns with best practices discussed in Multiple VLANs Single Interface Isolation: Switching Between Locations, where segmenting traffic is prioritized over centralized routing for simplicity and security.

Cisco Catalyst 3850 Configuration Steps

Begin by accessing the CLI of your Cisco Catalyst 3850. First, create the VLANs that will correspond to your router networks. Use the following commands to define VLAN 10 and VLAN 20:
configure terminal
vlan 10
name TP-Link-Network
exit
vlan 20
name Asus-Network
exit
Next, configure the physical interfaces connecting to the routers. Since the routers typically expect untagged Ethernet frames on their LAN ports for local traffic, you must set these switch ports as access ports. For example, if Gi0/1 connects to the TP-Link AX20 and Gi0/2 to the Asus RT-N12:
interface GigabitEthernet0/1
description TP-Link-AX20-LAN
switchport mode access
switchport access vlan 10
no shutdown
exit

interface GigabitEthernet0/2
description Asus-RT-N12-LAN
switchport mode access
switchport access vlan 20
no shutdown
exit
Ensure that no SVI (Switch Virtual Interface) is created for VLAN 10 or 20. If an SVI exists and is active, the switch might attempt to route traffic between them if IP routing is enabled globally. To guarantee isolation, verify that ip routing is disabled or simply ensure no interface Vlan10 or interface Vlan20 configurations exist. This step is critical; any active L3 interface on these VLANs could inadvertently enable routing, defeating the purpose of isolation.

Router Configuration Details

On the TP-Link AX20, log into the web interface. Set the connection type to Dynamic IP (DHCP) if the upstream ISP provides an IP, or PPPoE if required. In the LAN settings, assign a static IP address to the router, such as 192.168.10.1/24. Ensure the DHCP server is enabled for clients in VLAN 10. Repeat this process for the Asus RT-N12, assigning it an IP like 192.168.20.1/24 in VLAN 20. It is vital that both routers operate on different subnets. If both use 192.168.1.0/24, conflicts may arise if any cross-connection occurs accidentally. Using unique subnets reinforces the logical separation. Additionally, check the firewall settings on both routers to ensure they block incoming unsolicited connections from the internet, adding a layer of security to the isolated networks.

Verification and Troubleshooting

After configuration, verify connectivity by pinging the router’s LAN IP from a device in each VLAN. A device in VLAN 10 should reach 192.168.10.1 but fail to reach 192.168.20.1. If ping succeeds between VLANs, re-check the switch port configurations to ensure they are correctly assigned to their respective VLANs and that no trunk links are unintentionally carrying both VLANs to a single endpoint. Also, confirm internet access works for both networks. If one fails, check the router’s WAN status and cable connections. For deeper insights into network behavior, refer to Analyzing Unusual Behavior in Router Logs: Virus or Attack? to monitor for any unexpected traffic patterns that might indicate misconfiguration or security threats.

Frequently Asked Questions

Can I connect both routers to the same switch port?

No, each router requires a dedicated switch port assigned to its specific VLAN. Connecting both to the same port would place them in the same broadcast domain, breaking the isolation.

What happens if I enable ip routing on the Cisco switch?

Enabling ip routing allows the switch to forward packets between VLANs if SVIs are configured. To maintain isolation, either keep ip routing disabled or ensure no SVIs exist for the user VLANs.

How do I manage the switch remotely?

Create a separate management VLAN (e.g., VLAN 99), assign an SVI to it, and connect a management PC to a port in that VLAN. Do not mix management traffic with user VLANs.

Can I use a trunk link to the routers?

Typically, no. Consumer routers like the TP-Link AX20 and Asus RT-N12 do not support 802.1Q tagging on their LAN ports. Use access ports on the switch to send untagged frames.

Why are my devices unable to get an IP address?

Check that the router’s DHCP server is enabled and that the switch port is correctly assigned to the VLAN associated with that router. Also, verify cable integrity and port status.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More