Difference between revisions of "IT-OS-Config-CentOS"

From wiki.samerhijazi.net
Jump to navigation Jump to search
Line 1: Line 1:
 
<pre class="code">
 
<pre class="code">
$ ls /etc/sysconfig/network-scripts
+
$ ls /etc/network/interfaces
 +
$ ls /etc/NetworkManager/NetworkManager.conf
 +
$ ls /etc/sysconfig/network-scripts/
 
$ nmtui
 
$ nmtui
 
$ nmcli general status
 
$ nmcli general status
Line 7: Line 9:
 
$ nmcli r wifi on
 
$ nmcli r wifi on
 
$ nmcli d wifi list
 
$ nmcli d wifi list
 +
$ nmcli connection add type ethernet con-name connection-name ifname interface-name
 +
$ nmcli con add type ethernet con-name Myhome1 ifname enp0s3
 +
$ nmcli dev wifi list
 +
 +
ip link set enp12345 down
 +
ip link set enp12345 name eth0
 +
ip link set eth0 up
 
</pre>
 
</pre>

Revision as of 15:26, 18 August 2019

$ ls /etc/network/interfaces
$ ls /etc/NetworkManager/NetworkManager.conf
$ ls /etc/sysconfig/network-scripts/
$ nmtui
$ nmcli general status
$ nmcli general hostname geeklab.example.com
$ nmcli d
$ nmcli r wifi on
$ nmcli d wifi list
$ nmcli connection add type ethernet con-name connection-name ifname interface-name
$ nmcli con add type ethernet con-name Myhome1 ifname enp0s3
$ nmcli dev wifi list

ip link set enp12345 down
ip link set enp12345 name eth0
ip link set eth0 up