Ubuntu ifconfig查看网卡信息 lo enp2s0 wlp3s0 具体含义
涵义
如何通过命令查看本机IP?
Windows:ipconfig /a
Linux:ifconfig
或iwconfig
我会查看到3个项目:
lo
wlp3s0
enp2s0
挨个解析:
lo
表示local
wl
表示wlan
(Wireless Local Area Network)无线局域网en
表示ethernet
以太网- PCI接口的物理位置的坐标
(bus, slot)
,其中bus表示总线,slot表示插槽。
再看:
wlp3s0
表示,WLAN PCI接口位置:bus=3, slot=0。enp2s0
表示,Etnernet PCI接口位置:bus=2, slot=0。
PCI
外设部件互连标准(Peripheral Component Interconnect)
shell操作
wuyujin@ubuntu18:~$ ifconfig
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500ether [xxx] txqueuelen 1000 (Ethernet)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6 ::1 prefixlen 128 scopeid 0x10<host>loop txqueuelen 1000 (Local Loopback)RX packets 16285 bytes 1914437 (1.9 MB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 16285 bytes 1914437 (1.9 MB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500inet [IP地址] netmask [网关地址] broadcast [子网掩码]inet6 [IPV6] prefixlen 64 scopeid 0x20<link>ether [xxx] txqueuelen 1000 (Ethernet)RX packets 926526 bytes 1261489274 (1.2 GB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 377109 bytes 50598690 (50.5 MB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wuyujin@ubuntu18:~$
Others
wuyujin@ubuntu18:~$ whatis ifconfig
ifconfig (8) - configure a network interface
wuyujin@ubuntu18:~$ whatis iwconfig
iwconfig (8) - configure a wireless network interface
wuyujin@ubuntu18:~$
ifconfig 用于配置网络接口 InterFace config
iwconfig 用于配置无线网络接口 Interface Wlan config
Ubuntu ifconfig查看网卡信息 lo enp2s0 wlp3s0 具体含义相关推荐
- UBUNTU上不了网:IFCONFIG查看只有LO,没有ENS33问题解决参考方法
UBUNTU上不了网:IFCONFIG查看只有LO,没有ENS33问题解决参考方法 1.问题描述: 在Ubuntu系统下,浏览器无法上网,终端输入ifconfig查看,只能看到lo本地回环网卡,没有找 ...
- 【Linux踩坑日记】:ubuntu环境下Linux系统没有网络连接,ifconfig查看发现只有lo,没有以太网eth0连接解决方法
1.问题描述 启动Linux系统后,发现网络无法连接,输入ifconfig命令查看,只有lo本地回环网卡,无法找到eth0网卡,或者是eht0网卡成功激活但是没有显示IP及子网掩码.如下图所示: 输入 ...
- 当ubuntu系统安装好或导入后ifconfig只显示lo的解决方法
当ubuntu系统安装好或导入后ifconfig只显示lo的解决方法 1.先用命令查看网卡信息 ifconfig -a 在这里可以看到启用的和未启用的网卡信息,通过如下命令启用网卡: ifconfig ...
- ubuntu如何查看网卡名称_【Ubuntu】16.04网卡信息配置
①查看操作系统版本信息: ②查看网卡信息 输入ifconfig命令查看网卡信息,下图enp0s25就是网卡名称. ifconfig ③配置网卡文件 注意:不同的linux系统,网卡配置文件是不同的,这 ...
- 查看网卡信息:ifconfig命令及详细介绍
在 实体机上 ifconfig 命令用于 显示或配置网络设备(网络接口卡) 或修改.(以CentOS 7为例) ifconfig -a 所有网卡信息 一.显示内容分析 1.ens33 以太网接口 ...
- Ubuntu查看网卡信息
注意: 使用下面这些命令前需要安装 $sudo apt install net-tools $sudo apt install ifdownup $sudo apt install network-s ...
- ubuntu下查看硬件信息等指令整理,安装并简单运行HotSpot
真惨,想起前几天的没常识的我.因毕设需要现在又来恶补来了.有很多需要学的,包括计算机硬件基础和ubuntu的一些技巧.还要安装HotSpot.三个部分. 我原地升天了.在查芯片参数的时候,怎么也搞不到 ...
- 在Linux系统实现PTP时钟同步,查看网卡信息后发现网卡不支持PTP软硬件时间戳
1.首先,在ubuntu子系统终端输入命令ifconfig,如图 2.继续在终端输入命令sudo ethtool -T eth0,查看网卡是否支持PTP软硬件时间戳,若出现如图所示表示该网卡只支持PT ...
- ubuntu如何查看网卡名称_修改Ubuntu网卡名称
标签:网卡 robin@robin-ThinkPad-X201:/sys/class/net$ ifconfig enp0s25 Link encap:Ethernet HWaddr f0:de ...
最新文章
- 深度学习崛起十年:“开挂”的OpenAI革新者
- 原生js实现Object.assign和Object.create
- 【本站原创】台大林轩田《机器学习基石》系列课程教材的习题解答和实现
- 使用阿里云Python SDK管理ECS安全组
- 发送手机验证码通过调用第三方网易云信API(flask项目)
- FCPX插件mTransition Shade for mac(71组阴影遮挡过渡视频转场)
- 站点信息 统计 内容 概况
- 网络流24题 餐巾计划(DCOJ8008)
- 知更鸟begin主题常见问题
- windows对图片进行标记处理等操作
- 基于python3.5+opencv+windowsAPI图像识别实现的连连看外挂
- poj2142 The Balance
- 小喇叭上面有红叉,显示未插入扬声器或耳机,电脑没声音
- 2014年中国95家企业入围世界500强,超日本
- JavaScript上下文对象详细解析,ES3与ES6
- 英文WM 5.0、6.0 ROM汉化初级教程
- php中文离线手册 chm_XMLHttp中文离线参考手册(CHM版)
- 一起来看流星雨剧情简介/剧情介绍/剧情分集介绍第二十四集
- 针对异常java.lang.IllegalStateException onMeasure() did not set the measured dimension解决方法
- 幕布,为知笔记和 Effie 哪个更适合 up 主呢?