1.网络管理
(1)查询ip的几种方式:ip,ifconfig,nmcli,nmtui
[root@rhcsa ~]# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
ip [ -force ] -batch filename
where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |
tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
netns | l2tp | macsec | tcp_metrics | token }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
-h[uman-readable] | -iec |
-f[amily] { inet | inet6 | ipx | dnet | bridge | link } |
-4 | -6 | -I | -D | -B | -0 |
-l[oops] { maximum-addr-flush-attempts } |
-o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
-rc[vbuf] [size] | -n[etns] name | -a[ll] }
[root@rhcsa ~]# ifconfig
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.188.128 netmask 255.255.255.0 broadcast 192.168.188.255
inet6 fe80::d856:2d39:81e6:f0d7 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:e8:3c:a0 txqueuelen 1000 (Ethernet)
RX packets 139 bytes 12436 (12.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 118 bytes 12501 (12