Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
slapos.package
Commits
72f1822e
Commit
72f1822e
authored
May 06, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 255.255.255.0 as netmask for local network
parent
cffcb7cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
windows/scripts/slapos-node-config.sh
windows/scripts/slapos-node-config.sh
+7
-6
No files found.
windows/scripts/slapos-node-config.sh
View file @
72f1822e
...
...
@@ -58,11 +58,12 @@ function reset_connection()
sed
-e
"s/^
\(\w\+\s\+\)\{
4
\}
//"
)
;
do
netsh interface ipv6 del address
$ifname
$addr
done
for
addr
in
$(
netsh interface ip show address
$ifname
|
\
grep
"IP Address:"
|
\
sed
-e
"s/IP Address://"
)
;
do
netsh interface del address
$ifname
$addr
done
netsh interface ip
set
address
$ifname
source
=
dhcp
# for addr in $(netsh interface ip show address $ifname | \
# grep "IP Address:" | \
# sed -e "s/IP Address://") ; do
# netsh interface del address $ifname $addr
# done
}
#
...
...
@@ -152,7 +153,7 @@ elif [[ ! -f $node_key_file ]] ; then
fi
# 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
ip
-4
addr add
$ipv4_local_network
dev
$slapos_ifname
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment