Skip to content

Instantly share code, notes, and snippets.

@deviousway
Last active January 27, 2018 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviousway/8600d3f2fff4cbd7aea069ed9f7bb89b to your computer and use it in GitHub Desktop.
Save deviousway/8600d3f2fff4cbd7aea069ed9f7bb89b to your computer and use it in GitHub Desktop.
centos network innterface setup static ip
/etc/sysconfig/network-scripts/ifcfg-enp2s0
IPV6INIT=no
BOOTPROTO=static
DEVICE=enp2s0
ONBOOT=yes
UUID="ccea7d4f-855b-496e-945b-da7fe543b725"
IPADDR=104.193.150.10
NETMASK=255.255.255.248
GATEWAY=104.193.150.9
/etc/sysconfig/network-scripts/ifcfg-enp2s0-range0
IPADDR_START=104.193.150.11
IPADDR_END=104.193.150.14
CLONENUM_START=1
NETMASK=255.255.255.248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment