Last active
January 24, 2019 09:33
-
-
Save coffman21/a8df8d4667de3cb91d5cd86ce3ee0c52 to your computer and use it in GitHub Desktop.
ifcfg-eth0-example
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
# vim /etc/sysconfig/network-scripts/ifcfg-eth0 | |
# For static IP | |
DEVICE=eth0 | |
BOOTPROTO=static | |
IPADDR=192.168.0.2 | |
NETMASK=255.255.255.0 | |
GATEWAY=192.168.0.1 | |
HWADDR=XX:XX:XX:XX:XX:XX | |
# For DHCP | |
DEVICE=eth0 | |
BOOTPROTO=dhcp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment