mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 22:15:13 +08:00
tests: Add test for 'ip route add default'
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
parent
64dedc4739
commit
fede6dd9b3
12
testsuite/tests/ip/route/add_default_route.t
Executable file
12
testsuite/tests/ip/route/add_default_route.t
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
source lib/generic.sh
|
||||
|
||||
ts_log "[Testing add default route]"
|
||||
|
||||
DEV=dummy0
|
||||
|
||||
ts_ip "$0" "Add new interface $DEV" link add $DEV type dummy
|
||||
ts_ip "$0" "Set $DEV into UP state" link set up dev $DEV
|
||||
ts_ip "$0" "Add 1.1.1.1/24 addr on $DEV" addr add 1.1.1.1/24 dev $DEV
|
||||
ts_ip "$0" "Add default route via 1.1.1.1" route add default via 1.1.1.1
|
Loading…
Reference in New Issue
Block a user