Last active
June 30, 2017 06:40
-
-
Save vnkdj5/8d3d47ead5dbf4994383b137bbf4b0fd to your computer and use it in GitHub Desktop.
DHCP Configuration Assignment [CN]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
#Install DHCP Package | |
os.system("yum install dhcp") | |
os.system("dhclient -r") | |
os.system("dhclient -r -v") | |
os.system("dhclient -v")" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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