Skip to content

Instantly share code, notes, and snippets.

@vnkdj5
Last active June 30, 2017 06:40
Show Gist options
  • Save vnkdj5/8d3d47ead5dbf4994383b137bbf4b0fd to your computer and use it in GitHub Desktop.
Save vnkdj5/8d3d47ead5dbf4994383b137bbf4b0fd to your computer and use it in GitHub Desktop.
DHCP Configuration Assignment [CN]
import os
#Install DHCP Package
os.system("yum install dhcp")
os.system("dhclient -r")
os.system("dhclient -r -v")
os.system("dhclient -v")"
import os
#Install DHCP Package
os.system("yum install dhcp")
#Change Subnet mask ip address to 192.168.5.0
os.system("gedit /etc/dhcp/dhcpd.conf")
#Starting DHCP Service
os.system("systemctl start dhcpd.service")
os.system("systemctl enable dhcpd.service")
os.system("systemctl status dhcpd.service")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment