Lines Matching full:bar
61 # foo --- bar
64 # Caller must set up foo-ns and bar-ns namespaces
65 # containing linked veth devices foo and bar,
70 ip -n bar-ns address add $2/$3 dev bar || return 1
71 ip -n bar-ns link set bar up || return 1
74 ip netns exec bar-ns timeout 2 ping -c 1 $1 || return 1
76 nettest -B -N bar-ns -O foo-ns -r $1 || return 1
77 nettest -B -N foo-ns -O bar-ns -r $2 || return 1
85 # [foo] <---> [foo1]-[bar1] <---> [bar] /prefix
91 # Caller must set up foo-ns, bar-ns, and router-ns
92 # containing linked veth devices foo-foo1, bar1-bar
94 # bar in bar-ns).
99 ip -n bar-ns address add $4/$5 dev bar || return 1
100 ip -n bar-ns link set bar up || return 1
101 ip -n bar-ns route add default via $3 || return 1
111 ip netns exec bar-ns timeout 2 ping -c 1 $3 || return 1
112 ip netns exec bar-ns timeout 2 ping -c 1 $1 || return 1
114 nettest -B -N bar-ns -O foo-ns -r $1 || return 1
115 nettest -B -N foo-ns -O bar-ns -r $4 || return 1
125 ip netns add bar-ns
126 ip link add foo netns foo-ns type veth peer name bar netns bar-ns
132 ip netns pids bar-ns | xargs -r kill -9
134 ip netns del bar-ns
145 # [foo] <---> [foo1]-[bar1] <---> [bar] /prefix
151 ip netns add bar-ns
154 ip link add bar netns bar-ns type veth peer name bar1 netns router-ns
160 ip netns pids bar-ns | xargs -r kill -9
163 ip netns del bar-ns