Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theoneoh1/autodhcp
Automating DHCP Server configuration with Bash
https://github.com/theoneoh1/autodhcp
automation bash bash-script dhcp dhcp-server dhcpd network networking
Last synced: about 1 month ago
JSON representation
Automating DHCP Server configuration with Bash
- Host: GitHub
- URL: https://github.com/theoneoh1/autodhcp
- Owner: TheOneOh1
- Created: 2022-11-11T09:59:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T06:18:31.000Z (about 2 years ago)
- Last Synced: 2023-10-05T14:36:03.823Z (over 1 year ago)
- Topics: automation, bash, bash-script, dhcp, dhcp-server, dhcpd, network, networking
- Language: Shell
- Homepage:
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoDHCP
- Automating DHCP Server configuration with Bash
- Client Configuration is not mentioned here as it has to be done manually
- As of now you have to manually install the DHCP package with
`sudo apt install isc-dhcp-server`### How to use?
- You can directly use the code or clone the repo
``bash AutoDHCPilot.sh``
- It will ask for details to that to be filled out by user and configuration will be automated
> - Provide Domain Name
> - Provide Subnet (eg. 192.168.80.0)
> - Provide Option Routers (eg. 192.168.80.1)
> - Provide IP Pool with Starting and Ending IP address- At the end it will show which IP has been assigned yet.
### Output
![](https://github.com/TheOneOh1/AutoDHCP/blob/main/carbon%20(1).png)
### Client Side
- First check the network interface of client machine (eg. ens33, eth0)
- Open the Interfaces file
`sudo nano /etc/network/interfaces`
And enter the following details
```
auto
iface inet dhcp
```
- Once done restart the network or reboot the system
`systemctl restart networking`
`dhclient -4`