You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the script coulnd get all the ip addresses of the server interfaces when running xen dom0.
ifconfig does not show aliases for the bridge interface xenbr0 so server blocks his own ip-s.
i changed the line
SERVER_IP_LIST=ifconfig | grep "inet " | awk '{print $2}' | sed "s/addr://g" | xargs | sed -e 's/ /|/g'
to
SERVER_IP_LIST=( hostname -I ; echo 127.0.0.1 ) | cat | sed ':a;N;$!ba;s/\n/ /g' | sed 's/[[:space:]]\{1,\}/|/g' | sed s'/.$//'
Now everything works as expected.
Keep up the good work.
The text was updated successfully, but these errors were encountered:
the script coulnd get all the ip addresses of the server interfaces when running xen dom0.
ifconfig does not show aliases for the bridge interface xenbr0 so server blocks his own ip-s.
i changed the line
SERVER_IP_LIST=
ifconfig | grep "inet " | awk '{print $2}' | sed "s/addr://g" | xargs | sed -e 's/ /|/g'
to
SERVER_IP_LIST=
( hostname -I ; echo 127.0.0.1 ) | cat | sed ':a;N;$!ba;s/\n/ /g' | sed 's/[[:space:]]\{1,\}/|/g' | sed s'/.$//'
Now everything works as expected.
Keep up the good work.
The text was updated successfully, but these errors were encountered: