Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Virtual Router

Direct answer

A Virtual Router is a VM or virtualization-layer function that performs Layer 3 forwarding between virtual networks and/or external networks.

When to use this

Use it when traffic must cross subnets through a virtual appliance or hypervisor-provided routing function rather than remain within one L2 segment.

First 30 seconds

1. A virtual router (VM or host) routes between virtual networks.

2. Enable IP forwarding.

3. Firewall rules decide reachability.

4. Single router = single point of failure.

5. Document routes.

Operational verification

VM subnet → virtual router → other networks

Evidence · next step

Test additional critical prefixes and failure/failover cases.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show every subnet, dynamic routing state, NAT/firewall rule or performance target.

Next check: Test additional critical prefixes and failure/failover cases.

Platform / version applicability
virtualization-network
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-network
Scope / prerequisiteUse it when traffic must cross subnets through a virtual appliance or hypervisor-provided routing function rather than …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

source VM → L2 segment → virtual router ingress → route/policy decision → egress vNIC/segment → destination → return route

Step 2 Common mistakes Narrow the fault
  • Single router VM without HA becomes a single point of failure.
  • Forgetting promiscuous/MAC settings for router VMs bridging traffic.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • A virtual router requires the same core L3 ingredients as a physical router: interfaces, addresses, routes, forwarding and return path.
  • vNIC connectivity on both sides does not prove IP forwarding is enabled or routes are correct.
  • Security policy/NAT can be additional independent boundaries.
  • Routing throughput and failure behavior depend on VM scheduling and underlying virtual/physical network paths.
Key checks
  • ip route — router VM routes
  • virsh net-list --all — libvirt NAT/routed networks
  • sysctl net.ipv4.ip_forward — forwarding enabled
ReferenceImportant terms & boundaries3 sections · depth on demand

What this shows and what it does not

A packet reaching the router ingress shows source-side connectivity, but it does not show route selection, egress connectivity or return routing.

Options

OptionUse
pfSense/OPNsense VMLab/edge routing and firewalling
VyOS / FRR VMRouting, BGP/OSPF
NSX EdgeVMware overlay north-south routing
Proxmox SDN with EVPNDistributed anycast gateway

In depth

A virtual router runs routing in a VM (VyOS, pfSense/OPNsense, MikroTik CHR, Cisco CSR/C8000v) or in the virtualization stack (NSX Tier-0/Tier-1, Proxmox SDN EVPN, OVN logical routers). It connects isolated VM networks, provides NAT/firewalling and can run BGP/OSPF to the physical network.

Design points: give it paravirtual NICs with multiqueue, pin or reserve CPU for high packet rates, place two instances on different hosts with anti-affinity, and use VRRP/CARP or the platform's HA for failover.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-network current

Authoritative/upstream documentation reviewed for bounded claims in Virtual Networking → Virtual Router. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/formatnetwork.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
virtual router vmsoftware router virtualizationrouter appliance vml3 virtual network
Embedded reference data

Quick lookup tables

Virtual Networking → Virtual Router reference map

Fast virtual-network boundaries for Virtual Networking → Virtual Router.

BoundaryMeaningEvidence limit
IngressSource-side vNIC/segmentReach router
RouteL3 next-hop decisionForwarding boundary
EgressDestination-side vNIC/segmentLeave router
ReturnReverse route/policyEnd-to-end requirement
Confirmation

Confirm action

Continue?