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:
parent
6fe3dca78a
commit
3bb366d152
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ ip link del veth_passt 2>/dev/null || :
|
||||||
ip netns add passt
|
ip netns add passt
|
||||||
ip link add veth_passt up netns passt type veth peer name veth_passt
|
ip link add veth_passt up netns passt type veth peer name veth_passt
|
||||||
ip link set dev veth_passt up
|
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
|
ip -n passt addr add 192.0.2.2/24 dev veth_passt
|
||||||
|
|
Loading…
Reference in a new issue