How to Display and List All Network Interfaces and Devices in Linux Làm thế nào để hiển thị và Danh sách Tất cả các giao diện mạng và Thiết bị trong Linux

In Linux, network interfaces are software-based configuration which can be activated or deactivated, while network devices are physical networking card or adapter connected to the system. Trong Linux, giao diện mạng được phần mềm dựa trên cấu hình này có thể được kích hoạt hay vô hiệu hoá, trong khi mạng thiết bị vật lý thẻ hay adapter mạng kết nối với hệ thống. All network communications occur between configured network interfaces and physical network devices before the data packets are sent or transmitted. Mọi giao tiếp mạng xảy ra giữa giao diện mạng được cấu hình và các thiết bị mạng vật lý trước khi các gói dữ liệu được gửi hoặc truyền đi.

System administrators may occasionally want to display or get a list of all network interfaces and/or network devices in Linux operating system. Hệ thống quản trị đôi khi có thể muốn hiển thị hoặc có được một danh sách tất cả các giao diện mạng và / hoặc thiết bị mạng trong hệ điều hành Linux. There are plenty of ways to retrieve network interfaces and network devices information in Linux or Unix system, the most common of it is “ifconfig”. Có rất nhiều cách để lấy giao diện mạng và mạng thông tin thiết bị trong hệ thống Linux / Unix, chung nhất của nó là "ifconfig".

ifconfig command is useful for administrator who only want to know which network interfaces, eg eth0, eth1, lo, wlan0, venet0, venet1 or rausb0, that are currently configured. ifconfig lệnh là hữu ích cho quản trị viên, người chỉ muốn biết giao diện mạng đó, ví dụ như eth0, eth1, lo, wlan0, venet0, venet1 hoặc rausb0, hiện đang cấu hình. To use ifconfig command to display network interfaces, just type ifconfig into the console or command-line shell. Để sử dụng lệnh ifconfig để hiển thị giao diện mạng, chỉ cần gõ ifconfig vào giao diện hay dòng lệnh trình bao.

An output that similar to format below with configuration details, IP address, MAC address and other information, including ip-aliasing. Sản lượng đó tương tự như định dạng dưới đây với các chi tiết cấu hình, địa chỉ IP, địa chỉ MAC và các thông tin khác, bao gồm cả ip răng cưa.

eth0      Link encap:Ethernet  HWaddr 00:1E:FF:FF:FF:FF inet addr:10.1.1.1  Bcast:10.1.1.254  Mask:255.255.255.0 inet6 addr: fe80::21e:2aff:8888:8888/64 Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:105 errors:0 dropped:0 overruns:0 frame:0 TX packets:3817 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6318 (6.1 KiB)  TX bytes:234216 (228.7 KiB) Interrupt:177 Base address:0xe000 eth1      Link encap:Ethernet  HWaddr 00:1C:FF:FF:FF:FF inet addr:188.8.8.1  Bcast:188.8.8.254  Mask:255.255.255.0 inet6 addr: fe80::21c:c0ff:8888:8888/64 Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:747061040 errors:0 dropped:0 overruns:0 frame:0 TX packets:947783149 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:3475826459 (3.2 GiB)  TX bytes:2684871507 (2.5 GiB) Memory:e0400000-e0420000 eth0 Link encap: Ethernet HWaddr 00:01 E: FF: FF: FF: FF inet addr: 10.1.1.1 Bcast: 10.1.1.254 Mask: 255.255.255.0 inet6 addr: fe80:: 21e: 2aff: 8888:8888 / 64 Lĩnh vực: Link UP BROADCAST RUNNING multicast MTU: 1500 Metric: 1 RX packets: 105 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 3.817 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000 RX bytes: 6318 (6,1 KiB) TX bytes: 234216 (228,7 KiB) Interrupt: 177 Base address: 0xe000 eth1 Link encap: Ethernet HWaddr 00:01 C: FF: FF: FF: FF inet addr: 188.8.8.1 Bcast: 188.8.8.254 Mask: 255.255.255.0 inet6 addr: fe80:: 21c: c0ff: 8888:8888 / 64 Lĩnh vực: Link UP BROADCAST RUNNING multicast MTU: 1500 Metric: 1 RX packets: 747.061.040 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 947783149 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 100 RX bytes: 3475826459 (3,2 GiB) TX bytes: 2684871507 (2,5 GiB) Memory: e0400000-e0420000 

Linux can support multiple physical network devices, compounding multiple network interfaces that can be configured for each network cards. Linux có thể hỗ trợ nhiều thiết bị mạng vật lý, gộp nhiều giao diện mạng có thể được cấu hình cho mỗi card mạng. For user who wants to view information about physical network devices, a tool named “lshw” can be used. Đối với người dùng muốn xem thông tin về các thiết bị mạng vật lý, một công cụ có tên "lshw" có thể được sử dụng. lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine. lshw (Phần cứng Lister) là một công cụ nhỏ để cung cấp thông tin chi tiết về cấu hình phần cứng của máy. On some flavors or distributions of Linux, lshw is installed by default, or can be downloaded or installed easily with command such as “yum install lshw”. Trên một số hương vị hoặc phân phối Linux, lshw được cài đặt mặc định, hoặc có thể được tải về hay cài đặt dễ dàng với các lệnh như "yum cài đặt lshw".

Once lshw is enabled on the system, just enter the following command into the console to get a list of all attached physical network devices on the system. Một khi lshw được kích hoạt trên hệ thống, chỉ cần nhập vào lệnh sau đây vào giao diện điều khiển để có được một danh sách tất cả các thiết bị mạng thuộc thể chất trên hệ thống.

lshw -class network

Example of output are: Ví dụ về đầu ra là:

*-network *- mạng
       description: Ethernet interface Mô tả: giao diện Ethernet
       product: VT6105 [Rhine-III] sản phẩm: VT6105 [Rhine-III]
       vendor: VIA Technologies, Inc. nhà bán: VIA Technologies, Inc
       physical id: 7 vật lý id: 7
       bus info: pci@03:07.0 xe buýt thông tin: pci @ 03:07.0
       logical name: eth0 hợp lý hiệu: eth0
       version: 9a Phiên bản: 9a
       serial: 00:88:88 nối tiếp: 00:88:88
       width: 32 bits width: 32 bit
       clock: 33MHz clock: 33MHz
       capabilities: bus_master cap_list ethernet physical khả năng: bus_master cap_list ethernet vật lý
       configuration: broadcast=yes driver=via-rhine driverversion=2.6.22-14-generic latency=32 maxlatency=8 mingnt=3 multicast=yes cấu hình: broadcast = yes driver = qua-rhine driverversion = 2.6.22-14-generic độ trễ = 32 maxlatency = 8 mingnt = 3 multicast = yes
       resources: ioport=d300-d3ff iomemory:d8883888-d88838ff nguồn: ioport = D300-d3ff iomemory: d8883888-d88838ff

IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.


Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với My Digital Life Comments RSS feed My Digital Life kiến RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm đến các Điều khoản Điều

linux show network interfaces Linux hiển thị giao diện mạng - -- linux find network devices linux tìm thấy các thiết bị mạng - -- linux how to show errors linux làm thế nào để hiển thị lỗi - -- linux show all interfaces Linux hiển thị tất cả các giao diện - -- linux list network interfaces linux danh sách giao diện mạng - -- show network devices linux hiển thị các thiết bị mạng linux - -- display netwrok devices on mac netwrok thiết bị hiển thị trên mac - -- linux list devices on network linux danh sách thiết bị trên mạng - -- linux list network linux danh sách mạng - -- list a network devices in linux danh sách một mạng lưới thiết bị trong Linux - -- d300-d3ff D300-d3ff - -- find all network interfaces tìm tất cả các giao diện mạng - -- get all networking devices linux nhận được tất cả các thiết bị mạng linux - -- how-to listing network interface làm thế nào để giao diện mạng danh sách - -- linux list all network interfaces linux danh sách tất cả các giao diện mạng - -- linux network interfaces linux giao diện mạng - -- mac list devices command mac danh sách các thiết bị lệnh - -- show all devices on network hiển thị tất cả các thiết bị trên mạng - -- show network interfaces linux hiển thị giao diện mạng linux - -- windows vista show network interfaces mạng lưới các cửa sổ hiển thị giao diện vista - -- display interfaces linux hiển thị giao diện linux - -- how to get network interfaces list in windows làm thế nào để có giao diện mạng trong danh sách của cửa sổ - -- linux list network devices linux danh sách các thiết bị mạng - -- linux show interfaces Linux hiển thị giao diện - -- linux list network interface linux danh sách mạng lưới giao diện - -- linux list interfaces linux danh sách các giao diện - -- linuX LIST OF NETWORK INTERFACE linux DANH MỤC MẠNG Interface - -- linux network devices list linux danh sách các thiết bị mạng - -- linux find network interfaces linux thấy giao diện mạng - -- linux list interface linux danh sách giao diện - -- list network devices danh sách các thiết bị mạng - -- list interfaces windows xp danh sách các giao diện cửa sổ xp - -- list all net interfaces windows xp net danh sách tất cả các giao diện cửa sổ xp - -- windows list interfaces Danh sách các cửa sổ giao diện - -- how to display information about network interface linux làm thế nào để hiển thị thông tin về linux giao diện mạng - -- linux display mac interfaces linux mac hiển thị giao diện - -- linux network list linux mạng danh sách - -- linux list physical interfaces linux danh sách các giao diện vật lý - -- linux listing network interfaces linux danh sách giao diện mạng - -- linux show attached devices linux gắn các thiết bị hiển thị - -- list network devices linux danh sách các thiết bị mạng linux - -- list windows network interfaces mạng danh sách các cửa sổ giao diện - -- list all devices on system danh sách tất cả các thiết bị trên hệ thống - -- retrieve ethernet interface in linux lấy giao diện Ethernet trong linux - --