12 Point-to-point link
Two VMs joined by a cable: no switch, no Mac in the path, every frame passes unchanged.
What you practice
links: a cable with exactly two ends- Comparing a link with a switch path
- Unplugging a cable with
vz link down
Topology
| Node | Image | CPUs / memory | Addresses | Role |
|---|---|---|---|---|
a | debian-13 | 1 / 1GiB | mgmt 10.112.0.11; p2p 172.16.12.1/30 | End A |
b | debian-13 | 1 / 1GiB | mgmt 10.112.0.12; p2p 172.16.12.2/30 | End B |
Before you start
bash
vz image pull disk debian-13Run it
bash
cd examples/12-point-to-point-link
vz validate
vz up
vz node ls
ssh lab@10.112.0.11 # password: labFirst boot installs packages; give it a minute or two after vz up returns.
Try it
bash
ssh lab@10.112.0.12 'iperf3 -s -D'
ssh lab@10.112.0.11 'iperf3 -c 172.16.12.2 -t 5' # over the link
ssh lab@10.112.0.11 'iperf3 -c 10.112.0.12 -t 5' # over the switch
ssh lab@10.112.0.12 'sudo tcpdump -ni p2p -c 5 icmp' &
ssh lab@10.112.0.11 'ping -c 3 172.16.12.2'
vz link down a-b # both ends lose carrier: watch `ip -br link` in a
vz link up a-bNotes
Every node also has a mgmt NIC on a NAT switch: out-of-band access from the Mac and package downloads. The exercise traffic stays on the links.
Clean up
bash
vz down
vz destroy --yes # deletes the overlays and state of this lab