admin管理员组

文章数量:1439688

2024年7月16日发(作者:)

网络配置

Ubuntu 提供了许多图形化工具来配制您的网络设备。本文适用于服务器管理员并聚

焦在命令行中管理您的网络。

1. Ethernet Interfaces

2. IP Addressing

3. Name Resolution

4. Bridging

5. 资源

Ethernet Interfaces

Ethernet interfaces are identified by the system using the naming convention

of

ethX

, where

X

represents a numeric value. The first Ethernet interface is

typically identified as

eth0

, the second as

eth1

, and all others should move up in

numerical order.

Identify Ethernet Interfaces

To quickly identify all available Ethernet interfaces, you can use

the

ifconfig

command as shown below.

ifconfig -a | grep eth

eth0 Link encap:Ethernet HWaddr 00:15:c5:4a:16:5a

Another application that can help identify all network interfaces available to

your system is the

lshw

command. In the example below,

lshw

shows a single

Ethernet interface with the logical name of

eth0

along with bus information,

driver details and all supported capabilities.

sudo lshw -class network

*-network

description: Ethernet interface

product: BCM4401-B0 100Base-TX

vendor: Broadcom Corporation

physical id: 0

bus info: pci@0000:03:00.0

logical name: eth0

本文标签: 网络适用配制工具图形化