Lines Matching full:route
92 echo "Single path route test"
97 $IP route get fibmatch 198.51.100.2 &> /dev/null
99 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
107 $IP route get fibmatch 198.51.100.2 &> /dev/null
108 log_test $? 2 "IPv4 fibmatch - no route"
109 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
110 log_test $? 2 "IPv6 fibmatch - no route"
119 echo "Multipath route test"
129 $IP route add 203.0.113.0/24 \
132 $IP -6 route add 2001:db8:3::/64 \
138 $IP route get fibmatch 203.0.113.1 &> /dev/null
140 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
148 $IP route get fibmatch 203.0.113.1 &> /dev/null
149 log_test $? 2 "IPv4 - multipath route removed on delete"
151 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
152 # In IPv6 we do not flush the entire multipath route.
160 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
161 log_test $? 2 "IPv6 - no route"
180 $IP route get fibmatch 198.51.100.2 &> /dev/null
182 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
189 echo " Route deleted on down"
190 $IP route get fibmatch 198.51.100.2 &> /dev/null
192 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
203 $IP route get fibmatch 203.0.113.1 \
206 $IP -6 route get fibmatch 2001:db8:3::1 \
210 $IP route get fibmatch 203.0.113.1 \
213 $IP -6 route get fibmatch 2001:db8:3::1 \
217 $IP route get fibmatch 203.0.113.1 | \
220 $IP -6 route get fibmatch 2001:db8:3::1 | \
224 $IP route get fibmatch 203.0.113.1 | \
227 $IP -6 route get fibmatch 2001:db8:3::1 | \
246 $IP route add 203.0.113.0/24 \
249 $IP -6 route add 2001:db8:3::/64 \
255 $IP route get fibmatch 203.0.113.1 &> /dev/null
258 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
281 $IP route get fibmatch 203.0.113.1 &> /dev/null
283 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
309 $IP route get fibmatch 198.51.100.1 &> /dev/null
311 $IP -6 route get fibmatch 2001:db8:1::1 &> /dev/null
314 $IP route get fibmatch 198.51.100.1 | \
317 $IP -6 route get fibmatch 2001:db8:1::1 | \
327 $IP route get fibmatch 198.51.100.1 &> /dev/null
329 $IP -6 route get fibmatch 2001:db8:1::1 &> /dev/null
332 $IP route get fibmatch 198.51.100.1 | \
335 $IP -6 route get fibmatch 2001:db8:1::1 | \
344 echo " Route to local address with carrier down"
345 $IP route get fibmatch 192.0.2.1 &> /dev/null
347 $IP -6 route get fibmatch 2001:db8:2::1 &> /dev/null
350 $IP route get fibmatch 192.0.2.1 | \
353 $IP -6 route get fibmatch 2001:db8:2::1 | \
365 echo "Single path route carrier test"
374 $IP route get fibmatch 198.51.100.2 &> /dev/null
376 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
379 $IP route get fibmatch 198.51.100.2 | \
382 $IP -6 route get fibmatch 2001:db8:1::2 | \
392 $IP route get fibmatch 198.51.100.2 &> /dev/null
394 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
397 $IP route get fibmatch 198.51.100.2 | \
400 $IP -6 route get fibmatch 2001:db8:1::2 | \
410 $IP route get fibmatch 192.0.2.2 &> /dev/null
412 $IP -6 route get fibmatch 2001:db8:2::2 &> /dev/null
415 $IP route get fibmatch 192.0.2.2 | \
418 $IP -6 route get fibmatch 2001:db8:2::2 | \
434 # run 'ip route add' with given spec
449 cmd="$IP route add vrf $vrf $pfx $gw $dev"
517 add_rt "VRF route, gateway can be local address in default VRF" 0 \
521 add_rt "VRF route, gateway can not be a local address" 2 \
523 add_rt "VRF route, gateway can not be a local addr with device" 2 \
550 $IP -4 route add vrf red unreachable default metric 4278198272
551 $IP -6 route add vrf red unreachable default metric 4278198272
581 # Tests on route add and replace
615 printf "\nNo route entry found\n"
628 printf " Unexpected route entry. Have:\n"
638 # add route for a prefix, flushing any existing routes first
663 echo "Failed to add initial route for test."
668 # add initial route - used in replace route tests
729 # assumption is that basic add of a single path route works
736 echo "IPv6 route add / append tests"
738 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
741 log_test $? 2 "Attempt to add duplicate route - gw"
743 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
746 log_test $? 2 "Attempt to add duplicate route - dev only"
748 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
751 log_test $? 2 "Attempt to add duplicate route - reject route"
753 # route append with same prefix adds a new route
758 log_test $? 0 "Append nexthop to existing route - gw"
763 log_test $? 0 "Add multipath route"
767 log_test $? 2 "Attempt to add duplicate multipath route"
769 # insert of a second route without append but different metric
777 log_test $rc 0 "Route add with different metrics"
785 log_test $rc 0 "Route delete with metric"
811 # route replace fails - invalid nexthop
823 # replace non-existent route
828 log_test $? 2 "Single path - replace of non-existent route"
857 # route replace fails - invalid nexthop 1
863 # route replace fails - invalid nexthop 2
869 # multipath non-existent route
872 log_test $? 2 "Multipath - replace of non-existent route"
878 echo "IPv6 route replace tests"
910 echo "IPv6 prefix route tests"
962 # verify prefix route removed on down
971 log_test $rc 0 "Prefix route removed on link down"
973 # verify prefix route re-inserted with assigned metric
980 log_test $rc 0 "Prefix route with metric on link up"
989 log_test $? 0 "Set metric with peer route on local side"
992 log_test $? 0 "Set metric with peer route on peer side"
1008 # add route for a prefix, flushing any existing routes first
1033 echo "Failed to add initial route for test."
1038 # add initial route - used in replace route tests
1054 # assumption is that basic add of a single path route works
1061 echo "IPv4 route add / append tests"
1063 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
1066 log_test $? 2 "Attempt to add duplicate route - gw"
1068 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
1071 log_test $? 2 "Attempt to add duplicate route - dev only"
1073 # route add same prefix - fails with EEXISTS b/c ip adds NLM_F_EXCL
1076 log_test $? 2 "Attempt to add duplicate route - reject route"
1079 # - adds a new route; does NOT convert existing route to ECMP
1085 # route append with same prefix adds a new route
1090 log_test $? 0 "Append nexthop to existing route - gw"
1095 log_test $? 0 "Append nexthop to existing route - dev only"
1100 log_test $? 0 "Append nexthop to existing route - reject route"
1106 log_test $? 0 "Append nexthop to existing reject route - gw"
1112 log_test $? 0 "Append nexthop to existing reject route - dev only"
1117 log_test $? 0 "add multipath route"
1121 log_test $? 2 "Attempt to add duplicate multipath route"
1123 # insert of a second route without append but different metric
1131 log_test $rc 0 "Route add with different metrics"
1139 log_test $rc 0 "Route delete with metric"
1163 log_test $? 0 "Single path with reject route"
1172 # route replace fails - invalid nexthop
1184 # replace non-existent route
1189 log_test $? 2 "Single path - replace of non-existent route"
1216 log_test $? 0 "Multipath with reject route"
1218 # route replace fails - invalid nexthop 1
1224 # route replace fails - invalid nexthop 2
1230 # multipath non-existent route
1233 log_test $? 2 "Multipath - replace of non-existent route"
1239 echo "IPv4 route replace tests"
1260 echo "IPv4 prefix route tests"
1312 # verify prefix route removed on down
1320 log_test $rc 0 "Prefix route removed on link down"
1322 # verify prefix route re-inserted with assigned metric
1329 log_test $rc 0 "Prefix route with metric on link up"
1349 log_test $rc 0 "Set metric of address with peer route"
1357 log_test $rc 0 "Modify metric and peer address for peer route"
1410 ip route help 2>&1 | grep -q fibmatch