• Home
  • Raw
  • Download

Lines Matching refs:IP

17 IP="ip -netns ns1"
56 $IP link set dev lo up
60 $IP link add dummy0 type dummy
61 $IP link set dev dummy0 up
62 $IP address add 198.51.100.1/24 dev dummy0
63 $IP -6 address add 2001:db8:1::1/64 dev dummy0
70 $IP link del dev dummy0 &> /dev/null
80 addr=$($IP -6 -br addr show dev ${dev} | \
105 $IP route get fibmatch 198.51.100.2 &> /dev/null
107 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
111 $IP link del dev dummy0
115 $IP route get fibmatch 198.51.100.2 &> /dev/null
117 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
132 $IP link add dummy1 type dummy
133 $IP link set dev dummy1 up
134 $IP address add 192.0.2.1/24 dev dummy1
135 $IP -6 address add 2001:db8:2::1/64 dev dummy1
137 $IP route add 203.0.113.0/24 \
140 $IP -6 route add 2001:db8:3::/64 \
146 $IP route get fibmatch 203.0.113.1 &> /dev/null
148 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
152 $IP link del dev dummy0
156 $IP route get fibmatch 203.0.113.1 &> /dev/null
159 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
164 $IP link del dev dummy1
168 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
188 $IP route get fibmatch 198.51.100.2 &> /dev/null
190 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
194 $IP link set dev dummy0 down
198 $IP route get fibmatch 198.51.100.2 &> /dev/null
200 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
211 $IP route get fibmatch 203.0.113.1 \
214 $IP -6 route get fibmatch 2001:db8:3::1 \
218 $IP route get fibmatch 203.0.113.1 \
221 $IP -6 route get fibmatch 2001:db8:3::1 \
225 $IP route get fibmatch 203.0.113.1 | \
228 $IP -6 route get fibmatch 2001:db8:3::1 | \
232 $IP route get fibmatch 203.0.113.1 | \
235 $IP -6 route get fibmatch 2001:db8:3::1 | \
248 $IP link add dummy1 type dummy
249 $IP link set dev dummy1 up
251 $IP address add 192.0.2.1/24 dev dummy1
252 $IP -6 address add 2001:db8:2::1/64 dev dummy1
254 $IP route add 203.0.113.0/24 \
257 $IP -6 route add 2001:db8:3::/64 \
263 $IP route get fibmatch 203.0.113.1 &> /dev/null
266 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
270 $IP link set dev dummy0 down
277 $IP link set dev dummy0 up
278 $IP link set dev dummy1 down
285 $IP link set dev dummy0 down
289 $IP route get fibmatch 203.0.113.1 &> /dev/null
291 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
294 $IP link del dev dummy1
313 $IP link set dev dummy0 carrier on
317 $IP route get fibmatch 198.51.100.1 &> /dev/null
319 $IP -6 route get fibmatch 2001:db8:1::1 &> /dev/null
322 $IP route get fibmatch 198.51.100.1 | \
325 $IP -6 route get fibmatch 2001:db8:1::1 | \
330 $IP link set dev dummy0 carrier off
335 $IP route get fibmatch 198.51.100.1 &> /dev/null
337 $IP -6 route get fibmatch 2001:db8:1::1 &> /dev/null
340 $IP route get fibmatch 198.51.100.1 | \
343 $IP -6 route get fibmatch 2001:db8:1::1 | \
348 $IP address add 192.0.2.1/24 dev dummy0
349 $IP -6 address add 2001:db8:2::1/64 dev dummy0
353 $IP route get fibmatch 192.0.2.1 &> /dev/null
355 $IP -6 route get fibmatch 2001:db8:2::1 &> /dev/null
358 $IP route get fibmatch 192.0.2.1 | \
361 $IP -6 route get fibmatch 2001:db8:2::1 | \
378 $IP link set dev dummy0 carrier on
382 $IP route get fibmatch 198.51.100.2 &> /dev/null
384 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
387 $IP route get fibmatch 198.51.100.2 | \
390 $IP -6 route get fibmatch 2001:db8:1::2 | \
395 $IP link set dev dummy0 carrier off
400 $IP route get fibmatch 198.51.100.2 &> /dev/null
402 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
405 $IP route get fibmatch 198.51.100.2 | \
408 $IP -6 route get fibmatch 2001:db8:1::2 | \
413 $IP address add 192.0.2.1/24 dev dummy0
414 $IP -6 address add 2001:db8:2::1/64 dev dummy0
418 $IP route get fibmatch 192.0.2.2 &> /dev/null
420 $IP -6 route get fibmatch 2001:db8:2::2 &> /dev/null
423 $IP route get fibmatch 192.0.2.2 | \
426 $IP -6 route get fibmatch 2001:db8:2::2 | \
447 $IP link set dev lo address 52:54:00:6a:c7:5e
448 $IP link set dummy0 address 52:54:00:6a:c7:5e
449 $IP link add dummy1 type dummy
450 $IP link set dummy1 address 52:54:00:6a:c7:5e
451 $IP link set dev dummy1 up
488 cmd="$IP route add vrf $vrf $pfx $gw $dev"
582 $IP -4 rule add pref 32765 table local
583 $IP -4 rule del pref 0
584 $IP -6 rule add pref 32765 table local
585 $IP -6 rule del pref 0
587 $IP link add red type vrf table 1
588 $IP link set red up
589 $IP -4 route add vrf red unreachable default metric 4278198272
590 $IP -6 route add vrf red unreachable default metric 4278198272
592 $IP link add veth0 type veth peer name veth1
593 $IP link set dev veth0 up
594 $IP address add 192.0.2.1/24 dev veth0
595 $IP -6 address add 2001:db8:51::1/64 dev veth0
597 $IP link set dev veth1 vrf red up
598 $IP address add 192.0.2.2/24 dev veth1
599 $IP -6 address add 2001:db8:51::2/64 dev veth1
601 $IP link add dummy1 type dummy
602 $IP link set dev dummy1 vrf red up
603 $IP address add 192.168.2.1/24 dev dummy1
604 $IP -6 address add 2001:db8:2::1/64 dev dummy1
612 $IP link del dev dummy1
613 $IP link del veth0
614 $IP link del red
621 $IP link add dummy1 type dummy
622 $IP link set dummy1 up
623 $IP -6 route add default dev dummy1
624 $IP -6 rule add table main suppress_prefixlength 0
626 $IP -6 rule del table main suppress_prefixlength 0
627 $IP link del dummy1
705 run_cmd "$IP -6 ro flush ${pfx}"
708 out=$($IP -6 ro ls match ${pfx})
714 run_cmd "$IP -6 ro add ${pfx} ${nh}"
737 out=$($IP -6 ro ls match ${pfx} | sed -e 's/ pref medium//')
743 $IP li del red 2>/dev/null
744 $IP li del dummy1 2>/dev/null
745 $IP li del veth1 2>/dev/null
746 $IP li del veth3 2>/dev/null
765 $IP li add veth1 type veth peer name veth2
766 $IP li add veth3 type veth peer name veth4
768 $IP li set veth1 up
769 $IP li set veth3 up
770 $IP li set veth2 netns ns2 up
771 $IP li set veth4 netns ns2 up
775 $IP -6 addr add 2001:db8:101::1/64 dev veth1 nodad
776 $IP -6 addr add 2001:db8:103::1/64 dev veth3 nodad
777 $IP addr add 172.16.101.1/24 dev veth1
778 $IP addr add 172.16.103.1/24 dev veth3
802 run_cmd "$IP -6 ro add 2001:db8:104::/64 via 2001:db8:103::2"
807 run_cmd "$IP -6 ro add 2001:db8:104::/64 dev veth3"
812 run_cmd "$IP -6 ro add unreachable 2001:db8:104::/64"
818 run_cmd "$IP -6 ro append 2001:db8:104::/64 via 2001:db8:103::2"
828 run_cmd "$IP -6 ro add 2001:db8:104::/64 nexthop via 2001:db8:101::2 nexthop via 2001:db8:103::2"
833 run_cmd "$IP -6 ro add 2001:db8:104::/64 via 2001:db8:103::2 metric 512"
836 run_cmd "$IP -6 ro add 2001:db8:104::/64 via 2001:db8:103::3 metric 256"
841 run_cmd "$IP -6 ro del 2001:db8:104::/64 metric 512"
855 run_cmd "$IP -6 ro replace 2001:db8:104::/64 via 2001:db8:103::2"
862 …run_cmd "$IP -6 ro replace 2001:db8:104::/64 nexthop via 2001:db8:101::3 nexthop via 2001:db8:103:…
869 run_cmd "$IP -6 ro replace 2001:db8:104::/64 nexthop via 2001:db8:103::2"
875 run_cmd "$IP -6 ro replace 2001:db8:104::/64 via 2001:db8:104::2"
889 run_cmd "$IP -6 ro change 2001:db8:105::/64 via 2001:db8:101::2"
897 …run_cmd "$IP -6 ro replace 2001:db8:104::/64 nexthop via 2001:db8:101::3 nexthop via 2001:db8:103:…
903 run_cmd "$IP -6 ro replace 2001:db8:104::/64 via 2001:db8:101::3"
909 run_cmd "$IP -6 ro replace 2001:db8:104::/64 nexthop via 2001:db8:101::3"
915 …run_cmd "$IP -6 ro replace 2001:db8:104::/64 nexthop via 2001:db8:111::3 nexthop via 2001:db8:103:…
921 …run_cmd "$IP -6 ro replace 2001:db8:104::/64 nexthop via 2001:db8:101::3 nexthop via 2001:db8:113:…
927 …run_cmd "$IP -6 ro change 2001:db8:105::/64 nexthop via 2001:db8:101::3 nexthop via 2001:db8:103::…
973 $IP li add dummy1 type dummy
974 $IP li add dummy2 type dummy
975 $IP li set dummy1 up
976 $IP li set dummy2 up
979 run_cmd "$IP -6 addr add dev dummy1 2001:db8:104::1/64"
980 run_cmd "$IP -6 addr add dev dummy2 2001:db8:104::2/64"
987 run_cmd "$IP -6 addr flush dev dummy1"
988 run_cmd "$IP -6 addr add dev dummy1 2001:db8:104::1/64 metric 257"
995 run_cmd "$IP -6 addr flush dev dummy2"
996 run_cmd "$IP -6 addr add dev dummy2 2001:db8:104::2/64 metric 258"
1002 run_cmd "$IP -6 addr del dev dummy1 2001:db8:104::1/64 metric 257"
1010 run_cmd "$IP -6 addr change dev dummy2 2001:db8:104::2/64 metric 259"
1020 run_cmd "$IP li set dev dummy2 down"
1023 out=$($IP -6 ro ls match 2001:db8:104::/64)
1030 run_cmd "$IP li set dev dummy2 up"
1038 $IP li del dummy1
1039 $IP li del dummy2
1055 run_cmd "$IP -6 ro add 2001:db8:111::/64 via 2001:db8:101::2 mtu 1400"
1067 run_cmd "$IP -6 ro add 2001:db8:112::/64 via 2001:db8:101::2 mtu 1400"
1068 run_cmd "$IP -6 ro append 2001:db8:112::/64 via 2001:db8:103::2"
1078 run_cmd "$IP -6 ro add 2001:db8:113::/64 via 2001:db8:101::2"
1079 run_cmd "$IP -6 ro append 2001:db8:113::/64 via 2001:db8:103::2 mtu 1400"
1087 run_cmd "$IP -6 ro del 2001:db8:113::/64 via 2001:db8:101::2"
1096 …run_cmd "$IP -6 ro add 2001:db8:115::/64 mtu 1400 nexthop via 2001:db8:101::2 nexthop via 2001:db8…
1104 $IP -6 ro add 2001:db8:104::/64 via 2001:db8:101::2 mtu 1300
1108 run_cmd "$IP -6 ro add 2001:db8:114::/64 via 2001:db8:101::2 congctl lock foo"
1128 run_cmd "$IP ro flush ${pfx}"
1131 out=$($IP ro ls match ${pfx})
1137 run_cmd "$IP ro add ${pfx} ${nh}"
1160 out=$($IP ro ls match ${pfx})
1175 run_cmd "$IP ro add 172.16.104.0/24 via 172.16.103.2"
1180 run_cmd "$IP ro add 172.16.104.0/24 dev veth3"
1185 run_cmd "$IP ro add unreachable 172.16.104.0/24"
1191 run_cmd "$IP ro prepend 172.16.104.0/24 via 172.16.103.2"
1198 run_cmd "$IP ro append 172.16.104.0/24 via 172.16.103.2"
1203 run_cmd "$IP ro append 172.16.104.0/24 dev veth3"
1208 run_cmd "$IP ro append unreachable 172.16.104.0/24"
1212 run_cmd "$IP ro flush 172.16.104.0/24"
1213 run_cmd "$IP ro add unreachable 172.16.104.0/24"
1214 run_cmd "$IP ro append 172.16.104.0/24 via 172.16.103.2"
1218 run_cmd "$IP ro flush 172.16.104.0/24"
1219 run_cmd "$IP ro add unreachable 172.16.104.0/24"
1220 run_cmd "$IP ro append 172.16.104.0/24 dev veth3"
1230 run_cmd "$IP ro add 172.16.104.0/24 nexthop via 172.16.101.2 nexthop via 172.16.103.2"
1235 run_cmd "$IP ro add 172.16.104.0/24 via 172.16.103.2 metric 512"
1238 run_cmd "$IP ro add 172.16.104.0/24 via 172.16.103.3 metric 256"
1243 run_cmd "$IP ro del 172.16.104.0/24 metric 512"
1257 run_cmd "$IP ro replace 172.16.104.0/24 via 172.16.103.2"
1264 run_cmd "$IP ro replace 172.16.104.0/24 nexthop via 172.16.101.3 nexthop via 172.16.103.2"
1271 run_cmd "$IP ro replace unreachable 172.16.104.0/24"
1278 run_cmd "$IP ro replace 172.16.104.0/24 nexthop via 172.16.103.2"
1284 run_cmd "$IP ro replace 172.16.104.0/24 via 2001:db8:104::2"
1298 run_cmd "$IP ro change 172.16.105.0/24 via 172.16.101.2"
1306 run_cmd "$IP ro replace 172.16.104.0/24 nexthop via 172.16.101.3 nexthop via 172.16.103.3"
1312 run_cmd "$IP ro replace 172.16.104.0/24 via 172.16.101.3"
1318 run_cmd "$IP ro replace 172.16.104.0/24 nexthop via 172.16.101.3"
1324 run_cmd "$IP ro replace unreachable 172.16.104.0/24"
1330 run_cmd "$IP ro replace 172.16.104.0/24 nexthop via 172.16.111.3 nexthop via 172.16.103.3"
1336 run_cmd "$IP ro replace 172.16.104.0/24 nexthop via 172.16.101.3 nexthop via 172.16.113.3"
1342 run_cmd "$IP ro change 172.16.105.0/24 nexthop via 172.16.101.3 nexthop via 172.16.103.3"
1377 $IP li add dummy1 type dummy
1378 $IP li add dummy2 type dummy
1379 $IP li set dummy1 up
1380 $IP li set dummy2 up
1383 run_cmd "$IP addr add dev dummy1 172.16.104.1/24"
1384 run_cmd "$IP addr add dev dummy2 172.16.104.2/24"
1391 run_cmd "$IP addr flush dev dummy1"
1392 run_cmd "$IP addr add dev dummy1 172.16.104.1/24 metric 257"
1399 run_cmd "$IP addr flush dev dummy2"
1400 run_cmd "$IP addr add dev dummy2 172.16.104.2/24 metric 258"
1406 run_cmd "$IP addr del dev dummy1 172.16.104.1/24 metric 257"
1414 run_cmd "$IP addr change dev dummy2 172.16.104.2/24 metric 259"
1423 run_cmd "$IP li set dev dummy2 down"
1426 out=$($IP ro ls match 172.16.104.0/24)
1433 run_cmd "$IP li set dev dummy2 up"
1442 run_cmd "$IP addr flush dev dummy2"
1443 run_cmd "$IP addr add dev dummy2 172.16.104.0/24 metric 259"
1444 run_cmd "$IP addr change dev dummy2 172.16.104.0/24 metric 260"
1452 run_cmd "$IP addr flush dev dummy2"
1453 run_cmd "$IP addr add dev dummy2 172.16.104.1/32 peer 172.16.104.2 metric 260"
1454 run_cmd "$IP addr change dev dummy2 172.16.104.1/32 peer 172.16.104.2 metric 261"
1462 $IP li del dummy1
1463 $IP li del dummy2
1476 run_cmd "$IP ro add 172.16.111.0/24 via 172.16.101.2 mtu 1400"
1485 run_cmd "$IP ro add 172.16.112.0/24 mtu 1400 nexthop via 172.16.101.2 nexthop via 172.16.103.2"
1493 $IP ro add 172.16.104.0/24 via 172.16.101.2 mtu 1300
1497 run_cmd "$IP ro add 172.16.111.0/24 via 172.16.101.2 congctl lock foo"
1511 $IP li add dummy1 type dummy
1512 $IP li set dummy1 up
1513 $IP li add dummy2 type dummy
1514 $IP li set dummy2 up
1515 $IP li add red type vrf table 1111
1516 $IP li set red up
1517 $IP ro add vrf red unreachable default
1518 $IP li set dummy2 vrf red
1520 $IP addr add dev dummy1 172.16.104.1/24
1521 $IP addr add dev dummy1 172.16.104.11/24
1522 $IP addr add dev dummy2 172.16.104.1/24
1523 $IP addr add dev dummy2 172.16.104.11/24
1524 $IP route add 172.16.105.0/24 via 172.16.104.2 src 172.16.104.11
1525 $IP route add vrf red 172.16.105.0/24 via 172.16.104.2 src 172.16.104.11
1529 $IP addr del dev dummy2 172.16.104.11/24
1530 $IP ro ls vrf red | grep -q 172.16.105.0/24
1533 $IP ro ls | grep -q 172.16.105.0/24
1536 $IP addr add dev dummy2 172.16.104.11/24
1537 $IP route add vrf red 172.16.105.0/24 via 172.16.104.2 src 172.16.104.11
1539 $IP addr del dev dummy1 172.16.104.11/24
1540 $IP ro ls | grep -q 172.16.105.0/24
1543 $IP ro ls vrf red | grep -q 172.16.105.0/24
1546 $IP li del dummy1
1547 $IP li del dummy2
1565 run_cmd "$IP ro add 172.16.104.0/24 via inet6 2001:db8:101::2"
1575 run_cmd "$IP ro del 172.16.104.0/24 via inet6 2001:db8:101::2"
1585 …run_cmd "$IP ro add 172.16.104.0/24 nexthop via inet6 2001:db8:101::2 dev veth1 nexthop via 172.16…
1592 …run_cmd "$IP ro del 172.16.104.0/24 nexthop via 172.16.103.2 dev veth3 nexthop via inet6 2001:db8:…
1595 …run_cmd "$IP ro del 172.16.104.0/24 nexthop via inet6 2001:db8:101::2 dev veth1 nexthop via 172.16…
1601 …run_cmd "$IP ro add 172.16.104.0/24 nexthop via 172.16.103.2 dev veth3 nexthop via inet6 2001:db8:…
1608 …run_cmd "$IP ro del 172.16.104.0/24 nexthop via inet6 2001:db8:101::2 dev veth1 nexthop via 172.16…
1611 …run_cmd "$IP ro del 172.16.104.0/24 nexthop via 172.16.103.2 dev veth3 nexthop via inet6 2001:db8:…