nmcli是一款能够方便我们配置网络的工具,能够轻松的查看网卡信息或网络状态:

实例1:查看网卡信息

[root@localhost ~]# nmcli connection show
名称 UUID 类型 设备
virbr0-nic 7f3a7bb5-a7ab-440c-b87f-d94e6f4dd96b --ethernet virbr0-nic
virbr0 ff7c93dd-05ae---77218b2ad5dd bridge virbr0
eno16777736 ce2fa92b-adf1--84c2-988f2ffcd07d --ethernet eno16777736

实例2:查看网卡的连接状态

[root@localhost ~]# nmcli device status
设备 类型 状态 CONNECTION
virbr0 bridge 连接的 virbr0
eno16777736 ethernet 连接的 eno16777736
virbr0-nic ethernet 连接的 virbr0-nic
lo loopback 未管理 --

实例3:查看网卡的详细信息

[root@localhost ~]# nmcli connection show eno16777736
connection.id: eno16777736
connection.uuid: ce2fa92b-adf1--84c2-988f2ffcd07d
connection.interface-name: eno16777736
connection.type: --ethernet
connection.autoconnect: yes
connection.autoconnect-priority:
connection.timestamp:
connection.read-only: no
connection.permissions:
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: - (default)
connection.secondaries:
connection.gateway-ping-timeout:
connection.metered: 未知
--ethernet.port: --
--ethernet.speed:
--ethernet.duplex: --
--ethernet.auto-negotiate: yes
--ethernet.mac-address: --
--ethernet.cloned-mac-address: --
--ethernet.mac-address-blacklist:
--ethernet.mtu: 自动
--ethernet.s390-subchannels:
--ethernet.s390-nettype: --
--ethernet.s390-options:
--ethernet.wake-on-lan: (default)
--ethernet.wake-on-lan-password: --
ipv4.method: auto
ipv4.dns:
ipv4.dns-search:
ipv4.addresses:
ipv4.gateway: --
ipv4.routes:
ipv4.route-metric: -
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv6.method: auto
ipv6.dns:
ipv6.dns-search:
ipv6.addresses:
ipv6.gateway: --
ipv6.routes:
ipv6.route-metric: -
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: - (未知)
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
GENERAL.名称: eno16777736
GENERAL.UUID: ce2fa92b-adf1--84c2-988f2ffcd07d
GENERAL.设备: eno16777736
GENERAL.状态: 已激活
GENERAL.默认: 是
GENERAL.DEFAULT6: 否
GENERAL.VPN: 否
GENERAL.ZONE: --
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/
GENERAL.SPEC 对象: /
GENERAL.MASTER-PATH: --
IP4.地址[]: 192.168.157.135/
IP4.网关: 192.168.157.2
IP4.DNS[]: 192.168.157.2
IP4.域[]: localdomain
DHCP4.选项[]: requested_domain_search =
DHCP4.选项[]: requested_nis_domain =
DHCP4.选项[]: requested_time_offset =
DHCP4.选项[]: requested_broadcast_address =
DHCP4.选项[]: requested_rfc3442_classless_static_routes =
DHCP4.选项[]: requested_classless_static_routes =
DHCP4.选项[]: requested_domain_name =
DHCP4.选项[]: expiry =
DHCP4.选项[]: domain_name = localdomain
DHCP4.选项[]: next_server = 192.168.157.254
DHCP4.选项[]: broadcast_address = 192.168.157.255
DHCP4.选项[]: dhcp_message_type =
DHCP4.选项[]: requested_subnet_mask =
DHCP4.选项[]: dhcp_lease_time =
DHCP4.选项[]: routers = 192.168.157.2
DHCP4.选项[]: ip_address = 192.168.157.135
DHCP4.选项[]: requested_static_routes =
DHCP4.选项[]: requested_interface_mtu =
DHCP4.选项[]: requested_nis_servers =
DHCP4.选项[]: requested_wpad =
DHCP4.选项[]: requested_ntp_servers =
DHCP4.选项[]: requested_domain_name_servers =
DHCP4.选项[]: domain_name_servers = 192.168.157.2
DHCP4.选项[]: requested_ms_classless_static_routes =
DHCP4.选项[]: requested_routers =
DHCP4.选项[]: subnet_mask = 255.255.255.0
DHCP4.选项[]: network_number = 192.168.157.0
DHCP4.选项[]: requested_host_name =
DHCP4.选项[]: dhcp_server_identifier = 192.168.157.254
IP6.地址[]: fe80::20c:29ff:fe74:71c9/
IP6.网关:

查看Linux系统网卡信息的更多相关文章

  1. 查看linux系统版本命令 (转)

    查看linux系统版本命令 分类: Linux 知识小结2011-10-10 15:26 240162人阅读 评论(9) 收藏 举报 linuxredhatdebianx86susesun 一.查看内 ...

  2. 查看Linux系统版本信息

    一.查看Linux内核版本命令(两种方法): 1.cat /proc/version [root@S-CentOS home]# cat /proc/versionLinux version 2.6. ...

  3. 查看linux系统常用的命令,Linux查看系统配置常用命令

    一.linux CPU大小  cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep &qu ...

  4. 查看Linux系统架构类型的5条常用命令

    导读 很多时候我们都需要查看当前 Linux 系统是 32 位还是 64 位系统架构类型,本文中我将向大家推荐 5 条常用命令.无论你使用的是桌面版或是只装了文本界面的 Linux 环境,以下命令几乎 ...

  5. 查看linux系统的开机时间/重启历史记录

    查看linux系统的开机时间/重启历史记录1.who -b命令[root@rusky opt]# who -b ---查看最后一次(上次)系统启动的时间 system boot Dec 27 05:0 ...

  6. Shell脚本查看linux系统性能瓶颈(转)

    Shell脚本查看linux系统性能瓶颈(转自:http://blog.51cto.com/lizhenliang/1687612) [root@test ~]# cat show_sys_info. ...

  7. 查看Linux系统软硬件信息

    查看Linux系统软硬件信息 查看计算机CPU信息 cat /proc/cpuinfo 查看文件系统信息 cat /proc/filesystems 查看主机中断信息 cat /proc/interr ...

  8. 【LInux】查看Linux系统版本信息

    一.查看Linux内核版本命令(两种方法): 1.cat /proc/version [root@S-CentOS home]# cat /proc/versionLinux version 2.6. ...

  9. 【linux基础】如何查看Linux系统是64位还是32位

    如何查看Linux系统是64位还是32位 $getconf LONG_BIT or $file /bin/ls or #查看linux版本 $lsb_release -a or $uname -a 参 ...

随机推荐

  1. 搬瓦工VPS搭建PPTP VPN

    之前一直在用神器Lantern和Nydus(20元一个月),感觉还不错,但是各有各的不足! 于是开始自己动手折腾用VPS搭建VPN... 上网逛了一圈,最后选择了搬瓦工的VPS:512RAM,10G ...

  2. fwrite ,fprintf的作用与区别

    1.概念和作用 fwrite是C语言函数,指向文件写入一个数据块,写入的是 fprintf是C/C++中的一个格式化写-库函数,其作用是格式输出到一个流/文件中:原型是int fprintf( FIL ...

  3. Spring MVC 环境搭建(二)

    在Spring MVC 环境搭建(一)中我们知道 spring 的配置是通过 urlmapping 映射到控制器,然后通过实现Controller接口的handlerequest方法转向页面. 但这存 ...

  4. c++ ip地址相关

    #include <stdio.h> #include <string.h> #include <arpa/inet.h> #include <sys/typ ...

  5. hdu 4046 Panda 树状数组

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4046 When I wrote down this letter, you may have been ...

  6. 【HDOJ】【3415】Max Sum of Max-K-sub-sequence

    DP/单调队列优化 呃……环形链求最大k子段和. 首先拆环为链求前缀和…… 然后单调队列吧<_<,裸题没啥好说的…… WA:为毛手写队列就会挂,必须用STL的deque?(写挂自己弱……s ...

  7. Leetcode#140 Word Break II

    原题地址 动态规划题 令s[i..j]表示下标从i到j的子串,它的所有分割情况用words[i]表示 假设s[0..i]的所有分割情况words[i]已知.则s[0..i+1]的分割情况words[i ...

  8. wrap device

    刚刚看见了,wrap device && reference device 区别在这里 https://msdn.microsoft.com/en-us/library/windows ...

  9. 通过spring.net中的spring.caching CacheResult实现memcached缓存

    通过spring.net中的spring.caching CacheResult实现memcached缓存1.SpringMemcachedCache.cs2.APP.config3.Program. ...

  10. 在C语言中嵌入汇编语言

    TMS320C28x编译器允许在C程序中嵌入汇编指令,通过下面声明实现: asm(“assembler text”); 其中assembler text指汇编代码.asm指令一般用来处理C/C++语句 ...