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ể.
Related Articles Bài viết liên quan
- Free The Definitive Guide to Linux Network Programming PDF eBook Download Việt The Definitive Guide to Linux Network Programming eBook PDF Download
- How to Show and Display IP Routing Table in Windows or Linux Làm thế nào để hiển thị và hiển thị IP Routing Table trong Windows hoặc Linux
- D-Link (DLink) Routers, Switches, Modems and Network Devices Default Factory Admin Password D-Link (Dlink) Routers, Switches, Modems và Network Thiết bị mặc định mật khẩu quản trị Nhà máy
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Mở, Extract và Convert DAA, ISO và BIN tập tin trong Linux miễn phí với PowerISO cho Linux
- Wi-Fi Direct Enabling Wi-Fi Devices Connect To One Another In “Wi-Fi Network” Wi-Fi trực tiếp Kích hoạt Wi-Fi Thiết bị kết nối Để Một Một Trong "Wi-Fi mạng"
- Display USB Devices Detailed Information with USBDeview USB Thiết bị hiển thị chi tiết với USBDeview
- Use ScrollLock and NumLock Keyboard LED As Network Traffic Indicators with Network Lights Sử dụng ScrollLock và NumLock Bàn phím LED Theo mạng giao thông chỉ với mạng Lights
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Làm thế nào để thay đổi hoặc Spoof địa chỉ MAC trong Windows XP, Vista, Server 2003/2008, Mac OS X, Unix và Linux
- Retrieve, View or Display Wireless (WEP or WPA WiFi) Network Security Key or Password in Windows 7 Lấy lại, xem hoặc hiển thị không dây (WEP hoặc WPA WiFi) mạng chìa khóa an toàn hoặc mật khẩu trong Windows 7
- Spy and Sniff Passwords and Private Information beside Analyse Network with Microsoft Eavesdropping Tool Network Monitor 3.0 plus Reviews Spy và Sniff mật khẩu và thông tin cá nhân bên cạnh Phân tích mạng với Microsoft Chuyện Bốn Phương Công cụ mạng Màn hình 3,0 cộng xét









































