查看自己的网卡,一般情况ifconfig就能出来,但有些命令不全,所以我又试了ip -address,就出来了网卡信息ens33。
ipconfig是在Windows系统使用的。
[root@localhost /]# ifconfig
-bash: ifconfig: 未找到命令
[root@localhost /]# ipconfig
-bash: ipconfig: 未找到命令
[root@localhost /]# ip -a
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 | fou | macsec | tcp_metrics | token | netconf | ila |
vrf }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
-h[uman-readable] | -iec |
-f[amily] { inet | inet6 | ipx | dnet | mpls | bridge | link } |
-4 | -6 | -I | -D | -B | -0 |
-l[oops] { maximum-addr-flush-attempts } | -br[ief] |
-o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
-rc[vbuf] [size] | -n[etns] name | -a[ll] | -c[olor]}
[root@localhost /]# ip address
1: lo:
2: ens33:
[root@localhost /]#
en:ethernet
eno开头,表示主板bios内置的网卡。
ens开头,表示有主板bios内置的PCI-E网卡。
enp开头,表示PCI-E独立网卡。
eth开头,表示除以上的情况。