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

Multiple interfaces create invalid IP config #7

Closed
peterhoeg opened this issue Oct 17, 2016 · 2 comments
Closed

Multiple interfaces create invalid IP config #7

peterhoeg opened this issue Oct 17, 2016 · 2 comments

Comments

@peterhoeg
Copy link

If you create a digital ocean VM with 2 interfaces (one public and one private), the configuration by nixos-infect is as follows:

interfaces = {
  eth0 = {
    ip4 = [
      { address="1.2.3.4"; prefixLength=18; }
      { address="10.15.0.8"; prefixLength=16; }
    ];
  };
  # eth1 is for private networking or something?
  eth1.useDHCP = false;
};

It should instead be:

interfaces = {
  eth0 = {
    ip4 = [
      { address="1.2.3.4"; prefixLength=18; }
    ];
  };
  eth1 = {
    ip4 = [
      { address="10.15.0.8"; prefixLength=16; }
    ];
  };
};
@elitak elitak closed this as completed in c6e0edb Oct 18, 2016
@elitak
Copy link
Owner

elitak commented Oct 18, 2016

I created a droplet with private networking to test this, but in my case, I ended up with 1 10.x address for each interface. Can you verify the issue's been resolved?

@peterhoeg
Copy link
Author

@elitak, I haven't had the time to test it out, but I will over the weekend and then let you know.

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

2 participants