Lines Matching refs:ip

429 	run_cmd ${ns_a} ip fou add port 5555 ipproto ${ipproto} || return $ksft_skip
430 …run_cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap…
432 run_cmd ${ns_b} ip fou add port 5556 ipproto ${ipproto}
433 …run_cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap…
436 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ${encap}_a
437 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${encap}_b
439 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ${encap}_a
440 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${encap}_b
443 run_cmd ${ns_a} ip link set ${encap}_a up
444 run_cmd ${ns_b} ip link set ${encap}_b up
504 …run_cmd ${ns_a} ip link add ip_a type ${type} local ${a_addr} remote ${b_addr} mode ${mode} || ret…
505 run_cmd ${ns_b} ip link add ip_b type ${type} local ${b_addr} remote ${a_addr} mode ${mode}
507 run_cmd ${ns_a} ip link set ip_a up
508 run_cmd ${ns_b} ip link set ip_b up
511 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ip_a
512 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ip_b
514 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ip_a
515 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ip_b
540 ip netns exec ${n} sysctl -q net/ipv6/conf/default/accept_dad=0
550 run_cmd ${ns_a} ip link add veth_a type veth peer name veth_b || return 1
551 run_cmd ${ns_a} ip link set veth_b netns ${NS_B}
553 run_cmd ${ns_a} ip addr add ${veth4_a_addr}/${veth4_mask} dev veth_a
554 run_cmd ${ns_b} ip addr add ${veth4_b_addr}/${veth4_mask} dev veth_b
556 run_cmd ${ns_a} ip addr add ${veth6_a_addr}/${veth6_mask} dev veth_a
557 run_cmd ${ns_b} ip addr add ${veth6_b_addr}/${veth6_mask} dev veth_b
559 run_cmd ${ns_a} ip link set veth_a up
560 run_cmd ${ns_b} ip link set veth_b up
573 …run_cmd ${ns_a} ip link add vti${proto}_a type ${vti_type} local ${veth_a_addr} remote ${veth_b_ad…
574 …run_cmd ${ns_b} ip link add vti${proto}_b type ${vti_type} local ${veth_b_addr} remote ${veth_a_ad…
576 run_cmd ${ns_a} ip addr add ${vti_a_addr}/${vti_mask} dev vti${proto}_a
577 run_cmd ${ns_b} ip addr add ${vti_b_addr}/${vti_mask} dev vti${proto}_b
579 run_cmd ${ns_a} ip link set vti${proto}_a up
580 run_cmd ${ns_b} ip link set vti${proto}_b up
615 …run_cmd ${ns_a} ip link add ${type}_a type ${type} id 1 ${opts_a} remote ${b_addr} ${opts} || retu…
616 run_cmd ${ns_b} ip link add ${type}_b type ${type} id 1 ${opts_b} remote ${a_addr} ${opts}
619 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ${br_if_a}
620 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ${br_if_a}
621 run_cmd ${ns_a} ip link set ${type}_a master ${br_if_a}
623 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ${type}_a
624 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ${type}_a
627 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${type}_b
628 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${type}_b
630 run_cmd ${ns_a} ip link set ${type}_a up
631 run_cmd ${ns_b} ip link set ${type}_b up
672 …run_cmd ${ns_a} ip -${proto} xfrm state add src ${veth_a_addr} dst ${veth_b_addr} spi 0x1000 proto…
673 …run_cmd ${ns_a} ip -${proto} xfrm state add src ${veth_b_addr} dst ${veth_a_addr} spi 0x1001 proto…
674 …run_cmd ${ns_a} ip -${proto} xfrm policy add dir out mark 10 tmpl src ${veth_a_addr} dst ${veth_b_…
675 …run_cmd ${ns_a} ip -${proto} xfrm policy add dir in mark 10 tmpl src ${veth_b_addr} dst ${veth_a_a…
677 …run_cmd ${ns_b} ip -${proto} xfrm state add src ${veth_a_addr} dst ${veth_b_addr} spi 0x1000 proto…
678 …run_cmd ${ns_b} ip -${proto} xfrm state add src ${veth_b_addr} dst ${veth_a_addr} spi 0x1001 proto…
679 …run_cmd ${ns_b} ip -${proto} xfrm policy add dir out mark 10 tmpl src ${veth_b_addr} dst ${veth_a_…
680 …run_cmd ${ns_b} ip -${proto} xfrm policy add dir in mark 10 tmpl src ${veth_a_addr} dst ${veth_b_a…
738 ip -n "${ns_name}" route add "${addr}" table "${rt_table}" via "${gw}"
754 ip -n ${ns_name} -${fam} nexthop add id ${nhid} via ${gw} dev ${dev}
768 ip -n "${ns_name}" -"${fam}" route add "${addr}" table "${rt_table}" nhid "${nhid}"
776 ip netns exec ${i} sysctl -q net/ipv4/ip_forward=1
777 ip netns exec ${i} sysctl -q net/ipv6/conf/all/forwarding=1
791 ip link add ${if} up netns ${ns_name} type veth peer name ${ifpeer} netns ${peer_name} || return 1
792 ip -n ${peer_name} link set dev ${ifpeer} up
795 ip -n ${ns_name} addr add ${prefix4}.${segment}.1/24 dev ${if}
796 ip -n ${ns_name} addr add ${prefix6}:${segment}::1/64 dev ${if}
798 ip -n ${peer_name} addr add ${prefix4}.${segment}.2/24 dev ${ifpeer}
799 ip -n ${peer_name} addr add ${prefix6}:${segment}::2/64 dev ${ifpeer}
816 ip -netns "${NS_A}" -4 rule add dsfield "${policy_mark}" \
825 action pedit ex munge ip df set 0x40 pipe csum ip and udp
828 action pedit ex munge ip df set 0x40 pipe csum ip and udp
832 run_cmd ${ns_a} ip link add br0 type bridge || return $ksft_skip
833 run_cmd ${ns_a} ip link set br0 up
835 run_cmd ${ns_c} ip link add veth_C-A type veth peer name veth_A-C
836 run_cmd ${ns_c} ip link set veth_A-C netns ${NS_A}
838 run_cmd ${ns_a} ip link set veth_A-C up
839 run_cmd ${ns_c} ip link set veth_C-A up
840 run_cmd ${ns_c} ip addr add ${veth4_c_addr}/${veth4_mask} dev veth_C-A
841 run_cmd ${ns_c} ip addr add ${veth6_c_addr}/${veth6_mask} dev veth_C-A
842 run_cmd ${ns_a} ip link set veth_A-C master br0
859 …run_cmd ${ns_b} ip link add ${type}_b type ${type} id 1 ${opts_b} remote ${a_addr} ${opts} || retu…
861 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${type}_b
862 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${type}_b
864 run_cmd ${ns_b} ip link set ${type}_b up
885 run_cmd ip link set ovs_br0 up
887 run_cmd ${ns_c} ip link add veth_C-A type veth peer name veth_A-C
888 run_cmd ${ns_c} ip link set veth_A-C netns 1
890 run_cmd ip link set veth_A-C up
891 run_cmd ${ns_c} ip link set veth_C-A up
892 run_cmd ${ns_c} ip addr add ${veth4_c_addr}/${veth4_mask} dev veth_C-A
893 run_cmd ${ns_c} ip addr add ${veth6_c_addr}/${veth6_mask} dev veth_C-A
897 run_cmd ${ns_a} ip link set veth_A-R1 netns 1
898 run_cmd ip addr add ${prefix4}.${a_r1}.1/${veth4_mask} dev veth_A-R1
899 run_cmd ip addr add ${prefix6}:${a_r1}::1/${veth6_mask} dev veth_A-R1
900 run_cmd ip link set veth_A-R1 up
901 run_cmd ip route add ${prefix4}.${b_r1}.1 via ${prefix4}.${a_r1}.2
902 run_cmd ip route add ${prefix6}:${b_r1}::1 via ${prefix6}:${a_r1}::2
943 ip link del veth_A-C 2>/dev/null
944 ip link del veth_A-R1 2>/dev/null
955 ${ns_cmd} ip link set dev ${dev} mtu ${mtu}
974 ${ns_cmd} ip link show dev "${name}"
993 ${ns_cmd} ip route get "${dst}" dsfield "${dsfield}"
1329 run_cmd ${ns_a} ip route flush cached ${dst}
1330 run_cmd ${ns_b} ip route flush cached ${dst}
1331 run_cmd ${ns_c} ip route flush cached ${dst}
1566 setup namespaces routing ip${inner}ip${outer} || return $ksft_skip
1835 run_cmd ${ns_a} ip link add vti4_a type vti local ${veth4_a_addr} remote ${veth4_b_addr} key 10
1837 run_cmd ${ns_a} ip link del vti4_a
1845 …run_cmd ${ns_a} ip link add vti4_a mtu ${v} type vti local ${veth4_a_addr} remote ${veth4_b_addr} …
1853 run_cmd ${ns_a} ip link del vti4_a
1858 …run_cmd ${ns_a} ip link add vti4_a mtu ${v} type vti local ${veth4_a_addr} remote ${veth4_b_addr} …
1860 run_cmd ${ns_a} ip link del vti4_a
1873 run_cmd ${ns_a} ip link add vti6_a type vti6 local ${veth6_a_addr} remote ${veth6_b_addr} key 10
1875 run_cmd ${ns_a} ip link del vti6_a
1883 …run_cmd ${ns_a} ip link add vti6_a mtu ${v} type vti6 local ${veth6_a_addr} remote ${veth6_b_addr}…
1891 run_cmd ${ns_a} ip link del vti6_a
1896 …run_cmd ${ns_a} ip link add vti6_a mtu ${v} type vti6 local ${veth6_a_addr} remote ${veth6_b_addr}…
1898 run_cmd ${ns_a} ip link del vti6_a
1911 run_cmd ${ns_a} ip link add dummy0 mtu 1500 type dummy
1913 run_cmd ${ns_a} ip link add dummy1 mtu 3000 type dummy
1914 run_cmd ${ns_a} ip link set dummy0 up
1915 run_cmd ${ns_a} ip link set dummy1 up
1917 run_cmd ${ns_a} ip addr add ${dummy6_0_prefix}1/${dummy6_mask} dev dummy0
1918 run_cmd ${ns_a} ip addr add ${dummy6_1_prefix}1/${dummy6_mask} dev dummy1
1923 …run_cmd ${ns_a} ip link add vti6_a mtu 1300 type vti6 remote ${dummy6_0_prefix}2 local ${dummy6_0_…
1932 run_cmd ${ns_a} ip link set vti6_a type vti6 remote ${dummy6_1_prefix}2 local ${dummy6_1_prefix}1
1940 …run_cmd ${ns_a} ip link set vti6_a mtu 1280 type vti6 remote ${dummy6_0_prefix}2 local ${dummy6_0_…
1995 ${ns_a} ip link del dev veth_A-R1 &
2101 run_cmd ${ns_b} ip addr add "${dst_prefix1}${i}" dev veth_B-R1
2118 run_cmd ${ns_a} ip route flush cache
2155 run_cmd ${ns_b} ip addr add "${dst_prefix1}${i}" dev veth_B-R1
2168 run_cmd ${ns_a} ip -6 route flush cache
2223 run_cmd ${ns_a} ip route change default via ${gw}
2226 run_cmd ${ns_a} ip link del "veth_A-R1"
2285 ip nexthop ls >/dev/null 2>&1