顯示具有 wifi 標籤的文章。 顯示所有文章
顯示具有 wifi 標籤的文章。 顯示所有文章

2014年11月13日 星期四

CentOS 7最小安裝後網路設定

CentOS 7最小安裝後網路設定

CentOS 7預設為NetworkManager,要使用nmcli指令。


Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }

OPTIONS
  -t[erse]                                   terse output
  -p[retty]                                  pretty output
  -m[ode] tabular|multiline                  output mode
  -f[ields] <field1,field2,...>|all|common   specify fields to output
  -e[scape] yes|no                           escape columns separators in values
  -n[ocheck]                                 don't check nmcli and NetworkManager versions
  -a[sk]                                     ask for missing parameters
  -w[ait] <seconds>                          set timeout waiting for finishing operations
  -v[ersion]                                 show program version
  -h[elp]                                    print this help

OBJECT
  g[eneral]       NetworkManager's general status and operations
  n[etworking]    overall networking control
  r[adio]         NetworkManager radio switches
  c[onnection]    NetworkManager's connections
  d[evice]        devices managed by NetworkManager

連線wifi

$ nmcli d wifi connect <SSID> password <password>

查詢IP

$ ip a