Commit 72f1822e authored by Jondy Zhao's avatar Jondy Zhao

Use 255.255.255.0 as netmask for local network

parent cffcb7cb
No related merge requests found
...@@ -58,11 +58,12 @@ function reset_connection() ...@@ -58,11 +58,12 @@ function reset_connection()
sed -e "s/^\(\w\+\s\+\)\{4\}//") ; do sed -e "s/^\(\w\+\s\+\)\{4\}//") ; do
netsh interface ipv6 del address $ifname $addr netsh interface ipv6 del address $ifname $addr
done done
for addr in $(netsh interface ip show address $ifname | \ netsh interface ip set address $ifname source=dhcp
grep "IP Address:" | \ # for addr in $(netsh interface ip show address $ifname | \
sed -e "s/IP Address://") ; do # grep "IP Address:" | \
netsh interface del address $ifname $addr # sed -e "s/IP Address://") ; do
done # netsh interface del address $ifname $addr
# done
} }
# #
...@@ -152,7 +153,7 @@ elif [[ ! -f $node_key_file ]] ; then ...@@ -152,7 +153,7 @@ elif [[ ! -f $node_key_file ]] ; then
fi fi
# Hope it will not confilct with original network in the local machine # Hope it will not confilct with original network in the local machine
ipv4_local_network=10.201.67.0/8 ipv4_local_network=10.201.67.0/24
# Add ipv4 address # Add ipv4 address
ip -4 addr add $ipv4_local_network dev $slapos_ifname ip -4 addr add $ipv4_local_network dev $slapos_ifname
......
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