Searched +full:route +full:- +full:up (Results 1 – 25 of 617) sorted by relevance
12345678910>>...25
1 # SPDX-License-Identifier: GPL-2.09 local route=$1; shift13 ip -n $ns -j -p -$family route show $route \14 | jq -e '.[]["flags"] | contains(["trap"])' &> /dev/null17 if [[ $ret -ne 0 ]]; then31 local route=$1; shift34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail40 local route=$1; shift43 fib_trap_check $ns 4 "$route" $should_fail49 local route=$1; shift[all …]
2 # SPDX-License-Identifier: GPL-2.010 vrf_create "vrf-h1"11 ip link set dev $h1 master vrf-h113 ip link set dev vrf-h1 up14 ip link set dev $h1 up19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.120 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::125 ip route del 2001:db8:2::/64 vrf vrf-h126 ip route del 198.51.100.0/24 vrf vrf-h132 vrf_destroy "vrf-h1"[all …]
2 # SPDX-License-Identifier: GPL-2.010 vrf_create "vrf-h1"11 ip link set dev $h1 master vrf-h113 ip link set dev vrf-h1 up14 ip link set dev $h1 up18 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.119 ip route add 198.51.200.0/24 vrf vrf-h1 nexthop via 192.0.2.124 ip route del 198.51.200.0/24 vrf vrf-h125 ip route del 198.51.100.0/24 vrf vrf-h130 vrf_destroy "vrf-h1"[all …]
2 # SPDX-License-Identifier: GPL-2.04 # +--------------------------------------------+18 # +----------|-----------|---------------------+20 # +----------|-----------|---------------------+29 # | +------|------------+ +-------|----------+ |36 # | +-------------------+ +------------------+ |49 # +-------|---------|--------------------------+51 # +-------|---------|--------------------------+66 # +--------------------------------------------+124 ip link set dev $h1 up[all …]
2 # SPDX-License-Identifier: GPL-2.04 # +-------------------------+ +-------------------------+9 # +-------------------|-----+ +-------------------|-----+11 # +-------------------|----------------------------|-----+16 # +------------------------------------------------------+29 vrf_create "vrf-h1"30 ip link set dev $h1 master vrf-h132 ip link set dev vrf-h1 up33 ip link set dev $h1 up38 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1[all …]
2 # SPDX-License-Identifier: GPL-2.04 # +-------------------------+9 # +-------------------|-----+11 # +-------------------|----------------------+20 # +--|--------------------|------------------+22 # +--|--------------------|------------------+30 # +-------------------|----------------------+32 # +-------------------|-----+37 # +-------------------------+55 vrf_create "vrf-h1"[all …]
2 # SPDX-License-Identifier: GPL-2.04 # +--------------------+ +----------------------+13 # +------------------|-+ +-|--------------------+15 # +------------------|-------------------------|--------------------+24 # +-----------------------------------------------------------------+35 vrf_create "vrf-h1"36 ip link set dev vrf-h1 up38 ip link set dev $h1 up39 vlan_create $h1 1 vrf-h1 192.0.2.2/24 2001:db8:1::2/6441 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1[all …]
2 # SPDX-License-Identifier: GPL-2.013 ip route add 192.0.2.0/24 vrf v$h1 nexthop via 192.0.1.214 ip route add 192.0.3.0/24 vrf v$h1 nexthop via 192.0.1.219 ip route del 192.0.3.0/24 vrf v$h120 ip route del 192.0.2.0/24 vrf v$h129 ip route add 192.0.1.0/24 vrf v$h2 nexthop via 192.0.2.230 ip route add 192.0.3.0/24 vrf v$h2 nexthop via 192.0.2.235 ip route del 192.0.3.0/24 vrf v$h236 ip route del 192.0.1.0/24 vrf v$h245 ip route add 192.0.1.0/24 vrf v$h3 nexthop via 192.0.3.2[all …]
2 # SPDX-License-Identifier: GPL-2.04 # +---------------------------------------------+ +----------------------+12 # +--------------|------------------------------+ +--|-------------------+14 # +--------------|----------------------------------------|-------------------+21 # | +---|------------------------------+ +---|------------------------------+ |26 # | +----------------------------------+ +----------------------------------+ |27 # +---------------------------------------------------------------------------+44 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.245 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.1846 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2[all …]
2 # SPDX-License-Identifier: GPL-2.04 # +-------------------------+9 # +-------------------|-----+11 # +-------------------|----------------------+20 # +--|--------------------|------------------+22 # +--|--------------------|------------------+30 # +-------------------|----------------------+32 # +-------------------|-----+37 # +-------------------------+53 vrf_create "vrf-h1"[all …]
2 # SPDX-License-Identifier: GPL-2.09 # all tests in this script. Can be overridden with -t option28 if [ ${rc} -eq ${expected} ]; then29 printf " TEST: %-60s [ OK ]\n" "${msg}"34 printf " TEST: %-60s [FAIL]\n" "${msg}"53 set -e55 IP="$(which ip) -netns $ns1"57 ip netns exec $ns1 sysctl -qw net.ipv4.ip_forward=158 ip netns exec $ns1 sysctl -qw net.ipv6.conf.all.forwarding=161 $IP link set dev dummy0 up[all …]
2 # SPDX-License-Identifier: GPL-2.013 # +----+ .253 +----+ .253 +----+14 # | h1 |-------------------| r1 |-------------------| h2 |15 # +----+ .1 +----+ .2 +----+20 # Route from h1 to h2 and back goes through r1, incoming vrf blue has a route21 # to the outgoing vrf red for the n2 network and red has a route back to n1.38 # and VRF route leaking was initialy reported. The MTU test isn't done here39 # because of the lack of a return route in the red VRF.42 # .253 +----+ .25343 # +----| r1 |----+[all …]
2 # SPDX-License-Identifier: GPL-2.0+7 # -------18 # - ila_lwt (output only)19 # - ioam6_iptunnel (output only)20 # - rpl_iptunnel (both input and output)21 # - seg6_iptunnel (both input and output)37 ip -netns $tmp_node link set veth0 up &>/dev/null40 ip -netns $tmp_node link set veth1 up &>/dev/null49 lsmod 2>/dev/null | grep -q "ila"53 ip -netns $tmp_node route add 2001:db8:1::/64 \[all …]
2 # SPDX-License-Identifier: GPL-2.06 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"10 ip -netns "${PEER_NS}" link set dev lo up12 ip link set dev veth0 up15 # Enable route_localnet and delete useless route 127.0.0.0/8.16 sysctl -w net.ipv4.conf.veth0.route_localnet=117 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=118 ip route del 127.0.0.0/8 dev lo table local19 ip netns exec "${PEER_NS}" ip route del 127.0.0.0/8 dev lo table local22 ip link set dev veth0 up[all …]
2 # SPDX-License-Identifier: GPL-2.014 # is assigned an IPv4 and an IPv6 address. A host-route allows a veth to20 # For IPv4 and IPv6 reachability tests, the route simply sets the peer's27 # +-----------------------------------------------------------------------+34 # | * IPv4 route: 192.0.2.103/32 reachable via 192.0.2.11 |35 # | * IPv6 route: 2001:db8::103/128 reachable via 2001:db8::11 |36 # | * IPv6 route: 2001:db8::203/128 reachable via 2001:db8::11 |43 # +---+-------------------------------------------------------------------+47 # +---+-------------------------------------------------------------------+65 # +---+-------------------------------------------------------------------+[all …]
2 # SPDX-License-Identifier: GPL-2.07 # veth1 <---> veth2 veth3 <---> veth4 (the top route)8 # veth5 <---> veth6 veth7 <---> veth8 (the bottom route)18 # IP*_1 <=> IP*_2 <=> IP*_3 <=> IP*_4 (the top route)21 # NS1/NS2 are configured to route packets to IPv*_GRE via IP*_822 # (the bottom route)26 # 1. routes NS2->IPv*_DST are brought down, so the only way a ping30 # that encaps the packets with an IP/GRE header to route to IPv*_GRE32 # ping: SRC->[encap at veth1:egress]->GRE:decap->DST33 # ping replies go DST->SRC directly[all …]
4 # NS1 ---- NS2 ---- NS3 ---- NS4 ---- NS5 ---- NS610 # fd00::1 -> fd00::2 -> fd00::3 -> fd00::413 # - fd00::1 : add a TLV, change the flags and apply a End.X action to fc42::114 # - fd00::2 : remove the TLV, change the flags, add a tag15 # - fd00::3 : apply an End.T action to fd00::4, through routing table 11724 # Kselftest framework requirement - SKIP code is 4.27 readonly NS1="ns1-$(mktemp -u XXXXXX)"28 readonly NS2="ns2-$(mktemp -u XXXXXX)"29 readonly NS3="ns3-$(mktemp -u XXXXXX)"30 readonly NS4="ns4-$(mktemp -u XXXXXX)"[all …]
2 # SPDX-License-Identifier: GPL-2.045 ip link set dev $swp1 up46 ip link set dev $swp2 up91 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \99 log_test "vxlan device - valid configuration"108 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \116 log_test "vxlan device with a vlan-aware bridge"125 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \141 ip link add name dummy1 up type dummy143 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \[all …]
2 # SPDX-License-Identifier: GPL-2.0100 ip -n $ns link add name dummy1 type dummy101 ip -n $ns link set dev dummy1 up103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1105 check_err $? "Local table route not in hardware when should"107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1109 check_err $? "Main table route in hardware when should not"112 check_err $? "Local table route was replaced when should not"115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1117 check_err $? "Main table route not in hardware when should"[all …]
2 # SPDX-License-Identifier: GPL-2.049 ip link set dev $swp1 up50 ip link set dev $swp2 up67 ip link add name vrf-test type vrf table 1068 ip link set dev $swp1 master vrf-test70 ip -4 address add 192.0.2.1/24 dev vrf-test72 ip -6 address add 2001:db8:1::1/64 dev vrf-test75 log_test "RIF - setting IP address on VRF"77 ip link del dev vrf-test91 ip link add name br1 up type bridge vlan_filtering 0[all …]
2 # SPDX-License-Identifier: GPL-2.04 # Test devlink-trap L3 exceptions functionality over mlxsw.8 # +---------------------------------+16 # +----|----------------------------+18 # +----|----------------------------------------------------------------------+28 # +----|----------------------------------------------------------------------+30 # +----|----------------------------+38 # +---------------------------------+65 ip -4 route add default vrf v$h1 nexthop via 192.0.2.266 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2[all …]
1 .. SPDX-License-Identifier: GPL-2.011 routing and forwarding domains (aka VRFs, VRF-lite to be specific) in the12 Linux network stack. One use case is the multi-tenancy problem where each30 ------31 A VRF device is created with an associated route table. Network interfaces34 +-----------------------------+35 | vrf-blue | ===> route table 1036 +-----------------------------+38 +------+ +------+ +-------------+40 +------+ +------+ +-------------+[all …]
2 # SPDX-License-Identifier: GPL-2.034 head -n 1 $outfile | grep -q "rt_offload_failed"35 if [[ $? -eq 0 ]]; then39 head -n 2 $outfile | tail -n 1 | grep -q "rt_offload_failed"49 head -n 1 $outfile | grep -q "rt_trap"50 if [[ $? -eq 0 ]]; then54 head -n 2 $outfile | tail -n 1 | grep -q "rt_trap"61 local offload_failed=${1:-0}; shift64 lines=`wc -l $outfile | cut "-d " -f1`65 test $lines -eq $expected_num_lines[all …]
2 # SPDX-License-Identifier: GPL-2.0111 ip -n testns1 link add name dummy1 type dummy112 ip -n testns1 link set dev dummy1 up114 devlink -N testns1 resource set $DEVLINK_DEV path IPv4/fib size 10115 devlink -N testns1 dev reload $DEVLINK_DEV118 ip -n testns1 route add 192.0.2.${lsb}/32 dev dummy1 \122 log_test "IPv4 error path - add"124 ip -n testns1 link del dev dummy1133 ip -n testns1 link add name dummy1 type dummy134 ip -n testns1 link set dev dummy1 up[all …]
2 # SPDX-License-Identifier: GPL-2.04 [[ -z $TC ]] && TC='tc'5 [[ -z $IP ]] && IP='ip'21 $IP link set dev ve1 up22 $IP link set dev ve2 up28 $IP -n ns1 link set dev lo up29 $IP -n ns1 link set dev vens1 up30 $IP -n ns1 addr add 10.1.1.101/24 dev vens131 $IP -n ns1 addr add 2401:db01::65/64 dev vens1 nodad32 $IP -n ns1 route add default via 10.1.1.1 dev vens1[all …]