Need some work done? Post a Project Today
i need a bash script that can detect an environments network setup and return a valid ip address, gateway, subnet etc that a new machine connected to the network can use to gain a WAN connection.
The environment in question will have a router with DHCP disabled, the router providing the wan access. The new machine will be connected to this router and the script ( running on the new machine) should return a valid set of network settings that the new machine can use.
The script in question does not need to "perform" the network configuration on the newly connected machine. I simply need it to return the valid settings as a delimited string. My application will then present this data to the user after which he can confirm if he wishes to accept these settings.