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
Carlos Ramos Carreño
slapos.package
Commits
72f1822e
Commit
72f1822e
authored
11 years ago
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
No related merge requests found
Changes
1
Hide 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()
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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