1

I have a set of devices to be deployed on different local networks which have to be configured without DHCP.

Every network has the same subnet mask and the gateway and the device in every network have always the same host portion of the address (e.g. XXX.XXX.XXX.9 for the gateway and XXX.XXX.XXX.11 for the device).

Is it possible to write a single /etc/network/interfaces file without knowing the network portion of the address so that the device will configure a static IP for itself with host portion XXX.XXX.XXX.11 and gateway XXX.XXX.XXX.9?

closed as off-topic by Teun Vink Sep 4 '17 at 9:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "NE is a site for to ask and provide answers about professionally managed networks in a business environment. Your question falls outside the areas our community decided are on topic. Please visit the help center for more details. If you disagree with this closure, please ask on Network Engineering Meta." – Teun Vink
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Questions about host configuration are off topic here. Since you seem to be talking about Linux or UNIX, you can consider asking this question on unix.stackexchange.com – Teun Vink Sep 4 '17 at 9:57
  • 1
    Ok, I apologise for the mistake, thank you for pointing me to the right community :) – Matteo Zaccagnino Sep 4 '17 at 10:41

Browse other questions tagged or ask your own question.