Lines Matching refs:ip1
41 ip1() { pretty 1 "ip $*"; ip -n $netns1 "$@"; } function
54 ip1 link del dev wg0
55 ip1 link del dev wg1
94 ip1 addr add 192.168.241.1/24 dev wg0
95 ip1 addr add fd00::1/112 dev wg0
113 ip1 link set up dev wg0
159 [[ $(ip1 link show dev wg0) =~ mtu\ ([0-9]+) ]] && orig_mtu="${BASH_REMATCH[1]}"
169 { read _; read _; read _; read rx_bytes _; read _; read tx_bytes _; } < <(ip1 -stats link show dev …
179 ip1 link set wg0 mtu $big_mtu
183 ip1 link set wg0 mtu $orig_mtu
190 ip1 link set wg0 mtu $big_mtu
195 ip1 link set wg0 mtu 1300
207 ip1 link set wg0 mtu $orig_mtu
254 ip1 addr flush dev wg0
256 ip1 addr add fd00::5:1/112 dev wg0
260 ip1 link add wg1 type wireguard
262 ip1 addr add 192.168.241.1/24 dev wg1
263 ip1 addr add fd00::1/112 dev wg1
266 ip1 link set mtu 1340 up dev wg1
272 ip1 link set netns $netns0 dev wg1
298 ip1 link del wg0
312 ip1 link add dev wg0 type wireguard
324 ip1 addr add 192.168.1.100/24 dev vethc
325 ip1 link set vethc up
326 ip1 route add default via 192.168.1.1
358 ip1 addr add 192.168.242.1/24 dev wg0
368 ip1 addr del 192.168.242.1/24 dev wg0
371 ip1 -6 addr add fc00::9/96 dev vethc
372 ip1 -6 route add default via fc00::1
376 ip1 -6 route add default dev wg0 table 51820
377 ip1 -6 rule add not fwmark 51820 table 51820
378 ip1 -6 rule add table main suppress_prefixlength 0
379 ip1 -4 route add default dev wg0 table 51820
380 ip1 -4 rule add not fwmark 51820 table 51820
381 ip1 -4 rule add table main suppress_prefixlength 0
400 ip1 link del wg0
415 ip1 link add dev wg0 type wireguard
418 ip1 link add veth1 type veth peer name veth2
419 ip1 link set veth2 netns $netns2
427 ip1 addr add 10.0.0.1/24 dev veth1
428 ip1 addr add fd00:aa::1/96 dev veth1
431 ip1 link set veth1 up
437 ip1 addr add 10.0.0.10/24 dev veth1
438 ip1 addr del 10.0.0.1/24 dev veth1
442 ip1 addr add fd00:aa::10/96 dev veth1
443 ip1 addr del fd00:aa::1/96 dev veth1
447 ip1 link set veth1 down
449 ip1 addr flush dev veth1
451 ip1 addr add 10.0.0.1/24 dev veth1
452 ip1 addr add 10.0.0.2/24 dev veth1
453 ip1 addr add fd00:aa::1/96 dev veth1
454 ip1 addr add fd00:aa::2/96 dev veth1
457 ip1 link set veth1 up
475 ip1 link add dummy0 type dummy
476 ip1 addr add 10.50.0.1/24 dev dummy0
477 ip1 link set dummy0 up
483 ip1 link del dummy0
484 ip1 addr flush dev veth1
486 ip1 route flush dev veth1
490 ip1 link add veth3 type veth peer name veth4
491 ip1 link set veth4 netns $netns2
492 ip1 addr add 10.0.0.1/24 dev veth1
494 ip1 addr add 10.0.0.3/24 dev veth3
495 ip1 link set veth1 up
497 ip1 link set veth3 up
503 ip1 route flush dev veth1
504 ip1 route flush dev veth3
505 ip1 route add 10.0.0.0/24 dev veth1 src 10.0.0.1 metric 2
509 ip1 route add 10.0.0.0/24 dev veth3 src 10.0.0.3 metric 1
517 ip1 link del veth1
518 ip1 link del veth3
519 ip1 link del wg0
629 ip1 link add dev wg0 type wireguard
632 ip1 link add veth1 type veth peer name veth2
633 ip1 link set veth2 netns $netns2
634 ip1 addr add fd00:aa::1/64 dev veth1
636 ip1 link set veth1 up
640 ip1 -6 route add default dev veth1 via fd00:aa::2
651 ip1 link add wg1 type wireguard
653 ip1 link set wg1 netns $netns2