2023-07-01-配置信息

2023-12-21  本文已影响0人  watermountain

cat /proc/cpuinfo | grep "processor" | wc -l

Acer: Fn + F3 开启 WiFi

rfkill - tool for enabling and disabling wireless devices
[root@acer ~]# rfkill list all
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

mount/umount

开启无线网卡
ip link set wlp3s0 up

lspci - list all PCI devices

设置NetworkManager 自启动
systemctl enable NetworkManager.service
nmcli - command-line tool for controlling NetworkManager
https://zhuanlan.zhihu.com/p/563292295?utm_id=0
grep
-i, --ignore-case
Ignore case distinctions in both the PATTERN and the input files. (-i is specified by
POSIX.)

nmcli 配置 DNS

  1. 显示当前网络连接
    nmcli connection show
  2. 修改当前网络连接对应的 DNS 服务器。
    nmcli con mod ens192 ipv4.dns "114.114.114.114 8.8.8.8"
  3. 使 DNS 生效
    nmcli con up en01(ens192)

nmtui
https://www.cnblogs.com/aozhejin/p/16043030.html

虚拟机网络配置
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.181
NETMASK=
GATEWAY=
DNS1=

上一篇 下一篇

猜你喜欢

热点阅读