Dummy is suitable for assigning test addresses to the local machine; veth pairs can forward frames between network namespaces or bridges. First, verify that the corresponding kernel module and iproute2 are supported, then assign an address that does not overlap with the real LAN subnet.
Use two namespaces for a side-by-side comparison
Each client is assigned a pair of veth interfaces, with the external end connected to the designated experiment bridge and the internal end entering the corresponding namespace. Clients individually configure IP addresses, gateways, and DNS settings. The router filters traffic based on experimental zones. Simple controlled HTTP services are started on both sides.
Verify paths from two virtual clients
In an isolated environment, select a dummy as the virtual machine address or use veth pair-named namespaces for connection. Have each client send a request and read the mounted path.
From a client request to the other end, check routing, rules, and byte counts. Change the direction of an allowed flow for retesting. After completion, remove the temporary namespace, veth, and bridge.
Rules can distinguish sources without affecting the host production link. After testing, remove the temporary namespace and rules and verify recovery.
Check the terminal output

Comments