Lines Matching refs:ip

7 # Description:  Test basic functionality of ip command in route2 package
28 ROD ip link add $iface type dummy
31 ROD ip addr add ${ip4_addr}/24 dev $iface
49 [ -n "$iface" -a -d /sys/class/net/$iface ] && ip link del $iface
54 [ "$ip4_addr" ] && ip route show | grep -q $ip4_addr && ip route del $ip4_addr
59 tst_res TINFO "test 'ip link set' command"
63 ip link set ${iface} mtu 1281
65 tst_res TFAIL "ip command failed"
72 ip link set $iface mtu $MTUSZ_BAK
80 tst_res TINFO "test 'ip link show' command (list device attributes)"
82 ip link show $iface | grep $iface > /dev/null
84 tst_res TFAIL "'ip link show $iface' command failed"
93 tst_res TINFO "test 'ip addr' command with loopback dev"
96 ip addr add 127.6.6.6/24 dev lo
98 tst_res TFAIL "'ip addr add' command failed"
103 ip addr show dev lo | grep 127.6.6.6 > /dev/null
105 tst_res TFAIL "'ip addr show' command failed"
110 ip addr del 127.6.6.6/24 dev lo
112 tst_res TFAIL "'ip addr del' command failed"
116 ip addr show dev lo | grep 127.6.6.6 > /dev/null
118 tst_res TFAIL "ip addr del command failed"
122 tst_res TPASS "'ip addr' command successfully tested"
129 tst_res TINFO "test 'ip neigh' command"
131 ip neigh replace $taddr lladdr 00:00:00:00:00:00 dev $tdev nud reachable
133 tst_res TFAIL "'ip neigh replace' command failed"
140 ip neigh show $taddr | head -n1 > tst_ip.out 2>&1
142 tst_res TFAIL "'ip neigh show' command failed"
154 ip neigh del $taddr dev $tdev
156 tst_res TFAIL "'ip neigh del' command failed"
160 ip neigh show | grep $taddr | grep -v ' FAILED$' > /dev/null
166 tst_res TPASS "'ip neigh' command successfully tested"
171 tst_res TINFO "test 'ip route add/del' commands"
173 ROD ip route add $ip4_addr via 127.0.0.1
182 ip route show | grep "$ip4_addr via 127.0.0.1 dev lo" > tst_ip.out 2>&1
184 tst_res TFAIL "'ip route show' command failed"
190 tst_res TFAIL "'ip route show' did not list new route"
196 ROD ip route del $ip4_addr via 127.0.0.1
198 ip route show | grep 127.0.0.1 > /dev/null
204 tst_res TPASS "'ip route' command successfully tested"
209 tst_res TINFO "test 'ip maddr add/del' commands"
212 ip maddr add 66:66:00:00:00:66 dev $iface
214 tst_res TFAIL "ip maddr add command failed"
224 ip maddr show | grep "66:66:00:00:00:66" > tst_ip.out 2>&1
226 tst_res TFAIL "'ip maddr show' command failed"
238 ip maddr del 66:66:00:00:00:66 dev $iface
240 tst_res TFAIL "'ip maddr del' command failed"
244 ip maddr show | grep "66:66:00:00:00:66" > /dev/null
250 tst_res TPASS "'ip maddr' command successfully tested"