Manual Network Config
configuration files are located at /etc/sysconfig/network-scripts/ifcfg-\
- ex: /etc/sysconfig/network-scripts/ifcfg-enp0s3
- device name should be in the file as well and they should match
Static configuration file
DEVICE=enp0s3
BOOTPROTO=none
ONBOOT=yes
PREFIX=\
IPADDR=\
(prefix can be substituted with NETMASK=\
DHCP configuration file
DEVICE=enp0s3
BOOTPROTO=dhcp
ONBOOT=yes
Breakdown:
DEVICE=name
IPADDR=address
IPV6ADDR=address
HWADDR=MAC-address
MACADDR=MAC-address (overwrites MAC address on the card??)
BOOTPROTO=protocol (none, bootp, dhcp)
ONBOOT=answer (yes, no)
IPV6INIT=answer (yes, no) - should IPV6 be enabled
DNS Configuration Options
DNS{1,2}=address
PEERDNS=answer (yes, no) - if no DNS is saved globally, if yes it would be adapter specific (Enterprise Linux)
/etc/resolv.conf - DNS config stored here
Netmask Config
PREFIX=CIDR bits
NETMASK=mask in dotted notation
Control Config
NM_CONTROLLED=answer (yes, no) - network manager controlled??
USERCTL=answer (yes, no) - non-root users control??
$ sudo nmcli c reload - inform network manager of network config changes, reloads the config
Notes:
bootp - older dynamic networks
Enterprise Linux allows for DNS addresses to be port specific