Skip to content

Conversation

@weideng1
Copy link
Collaborator

No description provided.

@joao-r-reis
Copy link
Contributor

@adutra do you want to give this a go on your Mac just as a simple check before we merge this?

Copy link
Contributor

@adutra adutra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we shouldn't redesign the example scripts a bit. Opening 255 addresses on 4 subnets is too much and will definitely incur in the mdns responder issue described in the text (it does on my machine).

I'd suggest to change the snippets and:

  1. Only open aliases in 2 subnets;
  2. Only open 50 aliases in each subnet.

That's more than enough for most usages of Simulacron imo.

#!/bin/bash
for sub in {0..4}; do
echo "Opening for 127.0.$sub"
for i in {0..255}; do sudo ifconfig lo0 -alias 127.0.$sub.$i; done
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for i in {0..255}; do sudo ifconfig lo0 -alias 127.0.$sub.$i; done
for i in {0..255}; do sudo ifconfig lo0 -alias 127.0.$sub.$i down; done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also note: this is bringing 127.0.0.0 and 127.0.0.1 down. I don't know if that's safe, even if 127.0.0.1 is being brought up again later in the same script.

@adutra
Copy link
Contributor

adutra commented Sep 5, 2022

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

Successfully merging this pull request may close these issues.

3 participants