Skip to content
Contents
GuidesOpenWrt

Choose dummy or veth devices to simulate clients on one OpenWrt host

Dummy is suitable for assigning test addresses to the local machine; veth pairs can forward frames between network namespaces or bridges.

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.

Create a real veth pair and network namespace inside OpenWrt, then verify an ICMP round trip. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Create a real veth pair and network namespace inside OpenWrt, then verify an ICMP round trip. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Create a real veth pair and network namespace inside OpenWrt, then verify an ICMP round trip. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments