Virtualization · Virtual Networking
Virtual Router
Cheat sheet · https://pcornel.dk/topic.php?topic=3534
Answer
A Virtual Router is a VM or virtualization-layer function that performs Layer 3 forwarding between virtual networks and/or external networks.
Remember
- 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.
First checks
ip route— router VM routesvirsh net-list --all— libvirt NAT/routed networkssysctl net.ipv4.ip_forward— forwarding enabled
Verify in this order
VM subnet → virtual router → other networks
Where it usually breaks
First mismatch in guest NIC → virtual switch/bridge → VLAN/port group/security policy → physical uplink → routed path → peer/workload; preserve identity/native error/pre-state before mutation.
Virtual Networking → Virtual Router reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3534