Difference between revisions of "IT-OS-Config-CentOS"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) |
Samerhijazi (talk | contribs) |
||
| Line 1: | Line 1: | ||
<pre class="code"> | <pre class="code"> | ||
| + | $ yum search epel-release | ||
| + | $ yum info epel-release | ||
| + | $ yum install epel-release | ||
| + | ... | ||
$ ls /etc/network/interfaces | $ ls /etc/network/interfaces | ||
$ ls /etc/NetworkManager/NetworkManager.conf | $ ls /etc/NetworkManager/NetworkManager.conf | ||
$ ls /etc/sysconfig/network-scripts/ | $ ls /etc/sysconfig/network-scripts/ | ||
$ yum --disablerepo=\* install /path/to/dvd/Packages/NetworkManager-wifi* | $ yum --disablerepo=\* install /path/to/dvd/Packages/NetworkManager-wifi* | ||
| − | + | ... | |
$ nmtui | $ nmtui | ||
$ nmcli general status | $ nmcli general status | ||
| Line 14: | Line 18: | ||
$ nmcli con add type ethernet con-name Myhome1 ifname enp0s3 | $ nmcli con add type ethernet con-name Myhome1 ifname enp0s3 | ||
$ nmcli dev wifi list | $ nmcli dev wifi list | ||
| − | + | ... | |
$ ip a | $ ip a | ||
$ ip link set enp12345 down | $ ip link set enp12345 down | ||
$ ip link set enp12345 name eth0 | $ ip link set enp12345 name eth0 | ||
$ ip link set eth0 up | $ ip link set eth0 up | ||
| − | + | ... | |
$ nmcli d | $ nmcli d | ||
$ nmcli r wifi on | $ nmcli r wifi on | ||
Revision as of 13:33, 2 November 2019
$ yum search epel-release $ yum info epel-release $ yum install epel-release ... $ ls /etc/network/interfaces $ ls /etc/NetworkManager/NetworkManager.conf $ ls /etc/sysconfig/network-scripts/ $ yum --disablerepo=\* install /path/to/dvd/Packages/NetworkManager-wifi* ... $ 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 a $ ip link set enp12345 down $ ip link set enp12345 name eth0 $ ip link set eth0 up ... $ nmcli d $ nmcli r wifi on $ nmcli d wifi list $ nmcli d wifi connect MazayaNetwork password <password> $ nmcli c up <name>