Difference between revisions of "Network Devices and Connections"
(Created page with "= Manual Configuration = Create file in /etc/sysconfig/network-scripts/ifcfg-ifname</br> Populate file with:</br> <code>TYPE=Ethernet</br> PROXY_METHOD=none</br> BROWSER_ONLY=no</br> BOOTPROTO=static [dhcp, none]</br> DEFROUTE=yes</br> IPV4_FAILURE_FATAL=no</br> UUID=sd55sd-sdfss5li-lkjawq</br> NAME=ens256</br> ONBOOT=yes</br> IPADDR=192.168.1.11</br> NETMASK=255.255.255.0</br> GATEWAY=192.168.1.1</br> DNS1=192.168.1.53</code> = nmcli = == Available Commands == === O...") |
|||
| Line 43: | Line 43: | ||
2. check presence of device: <code>nmcli d[evice] s[tatus]</code> | 2. check presence of device: <code>nmcli d[evice] s[tatus]</code> | ||
3. add (add) a connection (con) profile and attach it to the interface: <code>nmcli con add type Ethernet ifname ens256 con-name ens256 ip4 192.168.1.11/24 gw4 192.168.1.1</code></br> | 3. add (add) a connection (con) profile and attach it to the interface: <code>nmcli con add type Ethernet ifname ens256 con-name ens256 [ip4 192.168.1.11/24 gw4 192.168.1.1]</code></br> | ||
Result: Connections ens256 successfully added. | Result: Connections ens256 successfully added. | ||
4. confirm status: <code>nmcli c[onnection] s[how]</code> | 4. confirm status: <code>nmcli c[onnection] s[how]</code> | ||
Latest revision as of 15:34, 22 February 2023
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]