Network Devices and Connections
Manual Configuration
Create file in /etc/sysconfig/network-scripts/ifcfg-ifname
Populate file with:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static [dhcp, none]
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
UUID=sd55sd-sdfss5li-lkjawq
NAME=ens256
ONBOOT=yes
IPADDR=192.168.1.11
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.53
nmcli
Available Commands
Object: c[onnection]
show lists connections
up / down activates/deactivates an interface
add add a connection
edit edit an existing connection or adds a new one
modify modify one or more properties of an existing connection
delete delete a connection
reload re-read all connections profiles
load re-read a specific connection profile
Object: d[evice]
status exhibits device status
show display detailed information about all or the specified interface
Flow
1. check service running systemctl status NetworkManager
2. check presence of device: nmcli d[evice] s[tatus]
3. add (add) a connection (con) profile and attach it to the interface: nmcli con add type Ethernet ifname ens256 con-name ens256 ip4 192.168.1.11/24 gw4 192.168.1.1
Result: Connections ens256 successfully added.
4. confirm status: nmcli c[onnection] s[how]