Commit fede6dd9 authored by Vadim Kochan's avatar Vadim Kochan Committed by Stephen Hemminger

tests: Add test for 'ip route add default'

Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
parent 64dedc47
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment