Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
682 B
5
Indexable
Never
sh -x vrack4.sh
++ ip route
++ awk '/default / {print $3}y'
+ gateway='0.0.0.1
0.0.0.1'
++ ip route
++ awk 'NR==2 {print $1}'
+ broadcast=default
+ readarray -t interfaces
++ awk '/eth/{print $1}'
++ basename -a /sys/class/net/eth0 /sys/class/net/eth1 /sys/class/net/lo
+ for x in $interfaces
+ ip rule add from default table vrack
+ ip route add default dev eth0 eth1 table vrack
Error: either "to" is duplicate, or "eth1" is a garbage.
+ ip route add default via '0.0.0.1
0.0.0.1' dev eth0 eth1 table vrack
Error: any valid address is expected rather than "0.0.0.1
0.0.0.1".
+ ip route add default dev eth0 eth1 table vrack
Error: either "to" is duplicate, or "eth1" is a garbage.
Leave a Comment