Set the interface MTU
Set a jumbo MTU and bring the link up. Note: the MTU must match along the whole path
ip link set dev <name> mtu 9000 && ip link set dev <name> up
- tool
- iproute212 commands
More iproute2 commands
-
ip -j a | jq -r '.[] | select(.operstate=="UP") | .ifname + " " + (.addr_info[]?.local // "-")'Get interfaces as JSON and list UP links with their local IPs
-
ip route get <ip>Show the route, source IP and outgoing interface that the kernel picks for a destination
-
ip rule add from <ip> table 100 && ip route add default via 192.168.1.1 dev <name> table 100Route traffic from a source IP through a separate table. Check it with ip rule show
-
ip netns add test && ip netns exec test ip -br aCreate an isolated network namespace and run commands inside it
-
tc qdisc add dev <name> root netem delay 100ms loss 1% && tc -s qdisc show dev <name>Simulate WAN latency and packet loss for tests. Remove it with tc qdisc del