mirror of
https://passt.top/passt
synced 2024-11-05 20:31:11 +00:00
doc/demo.sh: Set MTU to 65535 for both veth interfaces
There's no reason to limit the MTU here to any lower value. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
38a4fae186
commit
5ec9ad7e9d
@ -68,6 +68,8 @@ ip netns add "${ns}"
|
|||||||
ip link del "veth_${ns}" 2>/dev/null || :
|
ip link del "veth_${ns}" 2>/dev/null || :
|
||||||
ip link add "veth_${ns}" up netns "${ns}" type veth peer name "veth_${ns}"
|
ip link add "veth_${ns}" up netns "${ns}" type veth peer name "veth_${ns}"
|
||||||
ip link set dev "veth_${ns}" up
|
ip link set dev "veth_${ns}" up
|
||||||
|
ip link set dev "veth_${ns}" mtu 65535
|
||||||
|
ip -n "${ns}" link set dev "veth_${ns}" mtu 65535
|
||||||
ip -n "${ns}" link set dev lo up
|
ip -n "${ns}" link set dev lo up
|
||||||
|
|
||||||
ipv4_main="192.0.2.$(((ns_idx - 1) * 4 + 1))"
|
ipv4_main="192.0.2.$(((ns_idx - 1) * 4 + 1))"
|
||||||
|
Loading…
Reference in New Issue
Block a user