Pcornel
Virtualization · Virtual Networking

Virtual Router

Cheat sheet · https://pcornel.dk/topic.php?topic=3534

Back to the Topic

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 routes
  • virsh net-list --all — libvirt NAT/routed networks
  • sysctl 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

BoundaryMeaningEvidence limit
IngressSource-side vNIC/segmentReach router
RouteL3 next-hop decisionForwarding boundary
EgressDestination-side vNIC/segmentLeave router
ReturnReverse route/policyEnd-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

Confirmation

Confirm action

Continue?