Lines Matching +full:route +full:- +full:up
1 # $NetBSD: t_flags.sh,v 1.15 2016/12/21 02:46:08 ozaki-r Exp $
34 DEBUG=${DEBUG:-false}
43 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 10.0.0.2/24
44 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
45 atf_check -s exit:0 -o ignore rump.ifconfig -w 10
48 $DEBUG && rump.netstat -rn -f inet
58 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 10.0.0.1/24
59 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
60 atf_check -s exit:0 -o ignore rump.ifconfig -w 10
63 $DEBUG && rump.netstat -rn -f inet
74 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 10.0.0.254/24
75 atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
77 atf_check -s exit:0 -o ignore rump.ifconfig shmif1 10.0.2.1/24
78 atf_check -s exit:0 -o ignore rump.ifconfig shmif1 alias 10.0.2.2/24
79 atf_check -s exit:0 -o ignore rump.ifconfig shmif1 up
82 atf_check -s exit:0 -o ignore rump.ifconfig -w 10
83 atf_check -s not-exit:0 -x "rump.ifconfig shmif1 |grep -q tentative"
86 $DEBUG && rump.netstat -rn -f inet
94 # Up, Host, local
103 # Up, Host, LLINFO, local
106 # Up, Cloning
115 atf_check -s exit:0 -o ignore rump.route add default 10.0.0.1
116 $DEBUG && rump.netstat -rn -f inet
118 # Up, Gateway, Static
127 # Static route to host
128 atf_check -s exit:0 -o ignore rump.route add 10.0.1.1 10.0.0.1
129 $DEBUG && rump.netstat -rn -f inet
131 # Up, Gateway, Host, Static
134 # Static route to network
135 atf_check -s exit:0 -o ignore rump.route add -net 10.0.2.0/24 10.0.0.1
136 $DEBUG && rump.netstat -rn -f inet
138 # Up, Gateway, Static
147 atf_check -s exit:0 -o ignore rump.ping -n -w 1 -c 1 10.0.0.1
149 # Delete an existing route first
150 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
153 atf_check -s exit:0 -o ignore \
154 rump.route add -net 10.0.0.0/24 127.0.0.1 -blackhole
155 $DEBUG && rump.netstat -rn -f inet
157 # Up, Gateway, Blackhole, Static
160 atf_check -s not-exit:0 -o match:'100.0% packet loss' \
161 rump.ping -n -w 1 -c 1 10.0.0.1
162 $DEBUG && rump.netstat -rn -f inet
173 # Delete an existing route first
174 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
176 atf_check -s exit:0 -o ignore rump.route add -net 10.0.0.0/24 10.0.0.1 -reject
177 $DEBUG && rump.netstat -rn -f inet
179 # Up, Gateway, Reject, Static
182 atf_check -s not-exit:0 -o ignore -e match:'No route to host' \
183 rump.ping -n -w 1 -c 1 10.0.0.1
184 $DEBUG && rump.netstat -rn -f inet
191 # Delete an existing route first
192 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
194 atf_check -s exit:0 -o ignore \
195 rump.route add -net 10.0.0.0/24 127.0.0.1 -reject
196 $DEBUG && rump.netstat -rn -f inet
198 # Up, Gateway, Reject, Static
201 atf_check -s not-exit:0 -o ignore -e match:'Network is unreachable' \
202 rump.ping -n -w 1 -c 1 10.0.0.1
203 $DEBUG && rump.netstat -rn -f inet
210 # Delete an existing route first
211 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
213 atf_check -s exit:0 -o ignore \
214 rump.route add -host 10.0.0.1/24 127.0.0.1 -iface -reject
215 $DEBUG && rump.netstat -rn -f inet
217 # Up, Host, Reject, Static
220 atf_check -s not-exit:0 -o ignore -e match:'No route to host' \
221 rump.ping -n -w 1 -c 1 10.0.0.1
222 $DEBUG && rump.netstat -rn -f inet
241 atf_check -s exit:0 -o ignore rump.route add -net 10.0.2.0/24 10.0.0.254
242 # Up, Gateway, Static
249 atf_check -s exit:0 -o ignore rump.route add default 10.0.0.1
250 # Up, Gateway, Static
254 atf_check -s exit:0 -o ignore rump.ping -n -w 1 -c 1 10.0.2.1
255 $DEBUG && rump.netstat -rn -f inet
257 # Up, Gateway, Host, Dynamic
262 $DEBUG && rump.netstat -rn -f inet
267 # Teach a wrong route to 10.0.2.2
270 atf_check -s exit:0 -o ignore rump.route add 10.0.2.2 10.0.0.1
271 # Up, Gateway, Host, Static
276 atf_check -s exit:0 -o ignore rump.ping -n -w 1 -c 1 10.0.2.2
277 $DEBUG && rump.netstat -rn -f inet
279 # Up, Gateway, Host, Modified, Static
288 # Delete an existing route first
289 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
291 atf_check -s exit:0 -o ignore rump.route add -net 10.0.0.0/24 10.0.0.1 -proxy
292 $DEBUG && rump.netstat -rn -f inet
294 # Up, Gateway, Static, proxy
326 add_test lo "Tests route flags: loop back interface"
327 add_test connected "Tests route flags: connected route"
328 add_test default_gateway "Tests route flags: default gateway"
329 add_test static "Tests route flags: static route"
330 add_test blackhole "Tests route flags: blackhole route"
331 add_test reject "Tests route flags: reject route"
332 add_test icmp_redirect "Tests route flags: icmp redirect"
333 add_test announce "Tests route flags: announce flag"