先使用ifconfig查看网卡名称:

snippet.bash
[root@yz219 ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.219  netmask 255.255.252.0  broadcast 192.168.3.255
        inet6 fe80::8e34:17bf:****:****  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:71:**:**  txqueuelen 1000  (Ethernet)
        RX packets 6037559  bytes 6203876517 (5.7 GiB)
        RX errors 0  dropped 65235  overruns 0  frame 0
        TX packets 472193  bytes 60217772 (57.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
……

再使用ethtool查看网卡参数:

snippet.bash
[root@yz219 ~]# ethtool ens33
Settings for ens33:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Advertised pause frame use: No
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: off (auto)
	Supports Wake-on: d
	Wake-on: d
	Current message level: 0x00000007 (7)
			       drv probe link
	Link detected: yes

“1000baseT/Full”说明是千兆网卡。