Enable ip route add commands
This commit is contained in:
parent
5cb2d66d98
commit
50bbc116aa
@ -21,12 +21,12 @@ for int in "${interfaces[@]// /}"; do
|
|||||||
#echo $intipf
|
#echo $intipf
|
||||||
if [[ $int == "enp"* && $intipf =~ "172.16.52." ]]; then
|
if [[ $int == "enp"* && $intipf =~ "172.16.52." ]]; then
|
||||||
#echo lan
|
#echo lan
|
||||||
#ip route add 192.168.1.0/24 via 172.16.52.1 metric $metric
|
ip route add 192.168.1.0/24 via 172.16.52.1 metric $metric
|
||||||
# add 10 for next metric
|
# add 10 for next metric
|
||||||
metric=$(($metric + 10))
|
metric=$(($metric + 10))
|
||||||
elif [[ $int == "wlp"* && $intipf =~ "192.168.86." ]]; then
|
elif [[ $int == "wlp"* && $intipf =~ "192.168.86." ]]; then
|
||||||
#echo wlan
|
#echo wlan
|
||||||
#ip route add 192.168.1.0/24 via 192.168.86.1 metric $metric
|
ip route add 192.168.1.0/24 via 192.168.86.1 metric $metric
|
||||||
# add 10 for next metric
|
# add 10 for next metric
|
||||||
metric=$(($metric + 10))
|
metric=$(($metric + 10))
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user