Linux Features-View network card information

Source: Internet
Author: User
Tags uuid

NMCLI is a convenient tool to configure the network, can easily view network card information or network status:

Example 1: Viewing network card information

[[Email protected] ~]# nmcli Connection show name         UUID                                  type            device virbr0-nic   7f3a7bb5-a7ab-440c-b87f-d94e6f4dd96b  802-3- Ethernet  virbr0-nicvirbr0       ff7c93dd-05ae-4794-9030-77218B2AD5DD  Bridge          virbr0eno16777736  ce2fa92b-adf1-4323-84c2-988f2ffcd07d  802 -3-ethernet  eno16777736

Example 2: Viewing the connection status of a network card

[Email protected] ~]# nmcli Device status equipment         type      status    CONNECTIONvirbr0       bridge    Connection  virbr0eno16777736  Ethernet  connected  eno16777736virbr0-nic   Ethernet  connected  virbr0-  Niclo           loopback  not managed   --

Example 3: Viewing the details of a network card

[[Email protected] ~]# nmcli Connection show Eno16777736connection.id:eno16777736connection.uuid: ce2fa92b-adf1-4323-84c2-988f2ffcd07dconnection.Interface-Name:eno16777736connection.type:802-3-Ethernetconnection.autoconnect:yesconnection.autoconnect-priority:0Connection.timestamp:1473736348Connection.read-Only:noconnection.permissions:connection.zone:--Connection.master:--Connection.slave-type:--Connection.autoconnect-slaves:-1(default) Connection.secondaries:connection.gateway-ping-timeout:0connection.metered: Unknown802-3-ethernet.port:--802-3-ethernet.speed:0802-3-ethernet.duplex:--802-3-ethernet.auto-Negotiate:yes802-3-ethernet.mac-address:--802-3-ethernet.cloned-mac-address:--802-3-ethernet.mac-address-blacklist:802-3-ETHERNET.MTU: Automatic802-3-ethernet.s390-subchannels:802-3-ethernet.s390-nettype:--802-3-ethernet.s390-Options:802-3-ethernet.wake-on-lan:1(default)802-3-ethernet.wake-on-lan-password:--Ipv4.method:autoipv4.dns:ipv4.dns-Search:ipv4.addresses:ipv4.gateway:--Ipv4.routes:ipv4.route-metric:-1Ipv4.ignore-auto-Routes:noipv4.ignore-auto-dns:noipv4.dhcp-client-id:--ipv4.dhcp-send-hostname:yesipv4.dhcp-hostname:--Ipv4.never-default: Noipv4.may-Fail:yesipv6.method:autoipv6.dns:ipv6.dns-Search:ipv6.addresses:ipv6.gateway:--Ipv6.routes:ipv6.route-metric:-1Ipv6.ignore-auto-Routes:noipv6.ignore-auto-Dns:noipv6.never-default: Noipv6.may-FAIL:YESIPV6.IP6-privacy:-1(unknown) ipv6.dhcp-send-hostname:yesipv6.dhcp-hostname:--General . Name: eno16777736GENERAL.UUID:ce2fa92b-adf1-4323-84c2-988f2ffcd07dgeneral. Device: Eno16777736general. Status: General is activated. Default:                           Yes General.default6: no general.vpn: no general.zone: --General . DBUS-path:/org/freedesktop/networkmanager/activeconnection/0General . CON-path:/org/freedesktop/networkmanager/settings/0General . SPEC object:/General . MASTER-path:--IP4. Address [1]:192.168.157.135/ -IP4. Gateway:192.168.157.2IP4. dns[1]:192.168.157.2IP4. Domain [1]: localdomainDHCP4. options [1]: Requested_domain_search =1DHCP4. Options [2]: Requested_nis_domain =1DHCP4. Options [3]: Requested_time_offset =1DHCP4. Options [4]: requested_broadcast_address =1DHCP4. Options [5]: Requested_rfc3442_classless_static_routes =1DHCP4. Options [6]: Requested_classless_static_routes =1DHCP4. Options [7]: Requested_domain_name =1DHCP4. Options [8]: expiry =1473738337DHCP4. Options [9]: domain_name =localdomainDHCP4. Options [Ten]: Next_server =192.168.157.254DHCP4. Options [ One]: broadcast_address =192.168.157.255DHCP4. Options [ A]: Dhcp_message_type =5DHCP4. Options [ -]: Requested_subnet_mask =1DHCP4. Options [ -]: Dhcp_lease_time =1800DHCP4. Options [ the]: Routers =192.168.157.2DHCP4. Options [ -]: IP_Address =192.168.157.135DHCP4. Options [ -]: Requested_static_routes =1DHCP4. Options [ -]: REQUESTED_INTERFACE_MTU =1DHCP4. Options [ +]: Requested_nis_servers =1DHCP4. Options [ -]: Requested_wpad =1DHCP4. Options [ +]: Requested_ntp_servers =1DHCP4. Options [ A]: Requested_domain_name_servers =1DHCP4. Options [ at]: Domain_name_servers =192.168.157.2DHCP4. Options [ -]: Requested_ms_classless_static_routes =1DHCP4. Options [ -]: Requested_routers =1DHCP4. Options [ -]: Subnet_mask =255.255.255.0DHCP4. Options [ -]: Network_number =192.168.157.0DHCP4. Options [ -]: Requested_host_name =1DHCP4. Options [ in]: Dhcp_server_identifier =192.168.157.254IP6. Address [1]: fe80::20c:29ff:fe74:71c9/ -IP6. Gateway:

Linux Features-View network card information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.