Results 1 to 1 of 1
Hi, as a relative newbie to linux programming, i need to create a bash script that can detect an environments network setup and return a valid ip address, gateway, subnet ...
- 09-24-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 1
Script to detect and return network settings
Hi, as a relative newbie to linux programming, i need to create a bash script that can detect an environments network setup and return a valid ip address, gateway, subnet etc for a new machine connected to the network.
The environment in question will have a router with DHCP disabled, the router providing the wan connection. The new machine will be connected to this router and the script should return a valid list of network settings that the new machine can use.
The script in question does not need to necessarily perform the configuration on the newly connected machine. I simply need it to return the valid settings as a delimited string which will then be presented to the user after which he can confirm if he wishes to accept these settings. Configuration can take place thereafter.
Appreciate any pointers anyone can provide.
Thanks


Reply With Quote