Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static IP migration for 1.x->2.x #99

Closed
imrehg opened this issue Oct 19, 2017 · 5 comments
Closed

Static IP migration for 1.x->2.x #99

imrehg opened this issue Oct 19, 2017 · 5 comments

Comments

@imrehg
Copy link
Contributor

imrehg commented Oct 19, 2017

Need to be able to translate between https://docs.resin.io/deployment/network/1.x.x/#set-static-ip

[service_home_ethernet]
Type = ethernet
IPv4 = <static IP>/<netmask>/<gateway>
Nameservers = <nameserver1>,8.8.8.8

and this format https://docs.resin.io/deployment/network/2.0.0/#setting-a-static-ip

...
[ipv4]
address1=<static IP>/<prefix>,<gateway>
dns=<nameserver1>,8.8.8.8;
...

The main tricky part is converting the <netmask> into a <prefix>. Fortunately there's StackOverflow for a bash version: https://stackoverflow.com/questions/20762575/explanation-of-convertor-of-cidr-to-netmask-in-linux-shell-netmask2cdir-and-cdir

The second tricky part setting the right interface for this: static ethernet, static wifi, or something else.... This can get pretty hairy, and need some thought...

Front logo Front conversations

@imrehg imrehg added this to the selfservice v2 milestone Oct 19, 2017
@imrehg
Copy link
Contributor Author

imrehg commented Oct 23, 2017

This would be probably just "nice to have" but not a must have for the selfservice release...

@imrehg
Copy link
Contributor Author

imrehg commented Nov 8, 2017

That was wishful thinking, this is very much a must-have, and also better documentation in the meantime...

https://forums.resin.io/t/problem-up-resinos-update-lost-static-ip/2154

imrehg added a commit that referenced this issue Nov 20, 2017
Connects-to: #99
Change-type: patch
@imrehg
Copy link
Contributor Author

imrehg commented Dec 8, 2017

Should be covered by #114

@imrehg imrehg closed this as completed Dec 8, 2017
@imrehg
Copy link
Contributor Author

imrehg commented Dec 8, 2017

Not deployed in production yet.

@imrehg imrehg reopened this Dec 8, 2017
@imrehg
Copy link
Contributor Author

imrehg commented Jan 23, 2018

Deployed.

@imrehg imrehg closed this as completed Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant