Use it when traffic must cross subnets through a virtual appliance or hypervisor-provided routing function rather than remain within one L2 segment.
Virtual Router
A Virtual Router is a VM or virtualization-layer function that performs Layer 3 forwarding between virtual networks and/or external networks.
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.
VM subnet → virtual router → other networks
Test additional critical prefixes and failure/failover cases.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
ip route— router VM routesvirsh net-list --all— libvirt NAT/routed networkssysctl 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
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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
Virtual Networking → Virtual Router reference map
Fast virtual-network boundaries for Virtual Networking → Virtual Router.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Ingress | Source-side vNIC/segment | Reach router |
| Route | L3 next-hop decision | Forwarding boundary |
| Egress | Destination-side vNIC/segment | Leave router |
| Return | Reverse route/policy | End-to-end requirement |