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

Conflict adding devices using same IP #283

Open
adrianodsb opened this issue Jan 9, 2024 · 6 comments
Open

Conflict adding devices using same IP #283

adrianodsb opened this issue Jan 9, 2024 · 6 comments

Comments

@adrianodsb
Copy link

Hello,

I have a few devices sitting behing a NAT and due to this they share the same public IP address but using different ports to be reachable though SSH.

When I try do add them, Netshot throws the error below:

Error: The device '<DEVICE NAME>' already exists with this IP address.

Is there any possibility to allow this so I can backup those devices?

Thank you!

@TLigniere
Copy link

As a temporary solution you could try to use a dynamic NAT for those devices.
It's just a suggestion though.

@SCadilhac
Copy link
Contributor

You can declare your device under its private IP address, but use the Override connection settings option in Add device dialog to define the effective IP address (and TCP port) to connect to.

@adrianodsb
Copy link
Author

adrianodsb commented Jan 9, 2024

Done as @SCadilhac suggested and it worked just fine!

Thank you!

I also have some devices that use dynamic DNS and I noticed that Netshot always translates FQDNs to IPs when it adds the device. Is there a way to force Netshot to stick with the FQDN instead?

@SCadilhac
Copy link
Contributor

I also have some devices that use dynamic DNS and I noticed that Netshot always translates FQDNs to IPs when it adds the device. Is there a way to force Netshot to stick with the FQDN instead?

Not supported at the moment but this is definitively something that we should add soon.

@adrianodsb
Copy link
Author

I also have some devices that use dynamic DNS and I noticed that Netshot always translates FQDNs to IPs when it adds the device. Is there a way to force Netshot to stick with the FQDN instead?

Not supported at the moment but this is definitively something that we should add soon.

I'm gonna work on something to bypass this limitation in the mean time.

@adrianodsb
Copy link
Author

You can declare your device under its private IP address, but use the Override connection settings option in Add device dialog to define the effective IP address (and TCP port) to connect to.

About this, It works, however, with a high number of devices, quite often some of them happen to use the same network segments for internal interfaces and Netshot throws the same error I mentioned in the first comment.

For those cases I thought about setting fake addresses or using an IP from another interface, not sure if it's the best approach, sounds a little dirty.

I accept other suggestions.

Thanks @SCadilhac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants