1
0
mirror of https://passt.top/passt synced 2024-06-30 23:12:39 +00:00

doc/demo: Bring up loopback interface in network namespace

Otherwise, connections to the local host (which becomes the guest,
actually) will fail.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-04-22 17:22:39 +02:00
parent 6fe3dca78a
commit 3bb366d152

View File

@ -47,6 +47,7 @@ ip link del veth_passt 2>/dev/null || :
ip netns add passt
ip link add veth_passt up netns passt type veth peer name veth_passt
ip link set dev veth_passt up
ip -n passt link set dev lo up
ip -n passt addr add 192.0.2.2/24 dev veth_passt