Estos contenidos se han traducido de forma automática para su comodidad, pero Huawei Cloud no garantiza la exactitud de estos. Para consultar los contenidos originales, acceda a la versión en inglés.
Cómputo
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Redes
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Gestión y gobernanza
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
Cloud Operations Center
Resource Governance Center
Migración
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Análisis
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
IoT
IoT Device Access
Otros
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Seguridad y cumplimiento
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Blockchain
Blockchain Service
Servicios multimedia
Media Processing Center
Video On Demand
Live
SparkRTC
Almacenamiento
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Contenedores
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Bases de datos
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Aplicaciones empresariales
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Data Lake Factory
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Distribución de contenido y cómputo de borde
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Soluciones
SAP Cloud
High Performance Computing
Servicios para desarrolladores
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
Cloud Application Engine
aPaaS MacroVerse
KooPhone
KooDrive
En esta página
Centro de ayuda/ Bare Metal Server/ Guía del usuario/ Red/ Red de alta velocidad mejorada/ Configuración de una NIC de alta velocidad mejorada (SUSE Linux Enterprise Server 11)

Configuración de una NIC de alta velocidad mejorada (SUSE Linux Enterprise Server 11)

Actualización más reciente 2025-02-18 GMT+08:00

En esta sección se utiliza SUSE Linux Enterprise Server 11 SP4 como ejemplo para describir cómo configurar una NIC de alta velocidad mejorada de un BMS.

Agregar una NIC

  1. Utilice una clave o contraseña para iniciar sesión en el BMS como usuario root.
  2. En CLI de BMS, ejecute el siguiente comando para comprobar la información de la NIC:

    ip link

    Se muestra la información similar a la siguiente.

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 8888 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
        link/ether fa:16:00:57:90:c9 brd ff:ff:ff:ff:ff:ff
    3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 8888 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
        link/ether fa:16:00:57:90:c9 brd ff:ff:ff:ff:ff:ff
    4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
        link/ether 40:7d:0f:52:e3:a5 brd ff:ff:ff:ff:ff:ff
    5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
        link/ether 40:7d:0f:52:e3:a6 brd ff:ff:ff:ff:ff:ff
    6: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 8888 qdisc noqueue state UP mode DEFAULT group default qlen 1000
        link/ether fa:16:00:57:90:c9 brd ff:ff:ff:ff:ff:ff
    NOTA:

    Entre los dispositivos, eth0 y eth1 llevan la VPC, y eth2 y eth3 llevan la VLAN definida por el usuario.

  3. Configure las reglas udev:

    Ejecute el siguiente comando para crear el archivo 80-persistent-net.rules:

    cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-persistent-net.rules

    Escriba en el archivo la dirección y el nombre MAC de NIC que se consultan en el 2 y que no se muestran en el 80-persistent-net.rules. De esta manera, después de reiniciar el BMS, el nombre y la secuencia de la NIC no cambiarán.

    NOTA:

    Asegúrese de que la dirección MAC y el nombre de la NIC sean letras minúsculas.

    vim /etc/udev/rules.d/80-persistent-net.rules

    El resultado de la modificación es el siguiente:

    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:4c:7f:5d:b7:2a", NAME="eth0"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:4c:7f:5d:b7:2b", NAME="eth1"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:7d:0f:52:e3:a5", NAME="eth2"
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:7d:0f:52:e3:a6", NAME="eth3"
  4. Cree los archivos de configuración de las NIC eth2 y eth3:

    Puede copiar un archivo de configuración de NIC existente y modificarlo para mejorar la eficiencia de la creación.

    cd /etc/sysconfig/network

    cp ifcfg-eth0 ifcfg-eth2

    cp ifcfg-eth1 ifcfg-eth3

    Ejecute los siguientes comandos para modificar los archivos de configuración de las NIC eth2 y eth3:

    vi ifcfg-eth2

    El archivo de configuración modificado de la NIC eth2 es el siguiente.

    STARTMODE=auto
    MTU=8888
    NM_CONTROLLED=no
    BOOTPROTO=STATIC
    DEVICE=eth2
    USERCONTRL=no
    LLADDR=40:7d:0f:52:e3:a5
    TYPE=Ethernet 
    NOTA:

    En este archivo de configuración, establezca MTU en 8888, BOOTPROTO en STATIC y configure DEVICE y LLADDR según sea necesario.

    vi ifcfg-eth3

    El archivo de configuración modificado de la NIC eth3 es el siguiente:

    STARTMODE=auto
    MTU=8888
    NM_CONTROLLED=no
    BOOTPROTO=STATIC
    DEVICE=eth3
    USERCONTRL=no
    LLADDR=40:7d:0f:52:e3:a6
    TYPE=Ethernet

    Después de la modificación, guarde el cambio y salga.

  5. Ejecute el siguiente comando para vincular las NIC eth2 y eth3 a una NIC, por ejemplo, bond1:

    Ejecute los siguientes comandos para crear el archivo ifcfg-bond1 y modificar el archivo de configuración:

    cp ifcfg-bond0 ifcfg-bond1

    vi ifcfg-bond1

    El archivo de configuración modificado de la NIC bond1 es el siguiente.

    BONDING_MASTER=yes
    TYPE=Bond
    MTU=8888
    STARTMODE=auto
    BONDING_MODULE_OPTS="mode=1 miimon=100"
    NM_CONTROLLED=no
    BOOTPROTO=STATIC
    DEVICE=bond1
    USERCONTRL=no
    LLADDR=40:7d:0f:52:e3:a5
    BONDING_SLAVE1=eth2
    BONDING_SLAVE0=eth3
    IPADDR=10.10.10.104
    NETMASK=255.255.255.0
    NETWORK=10.10.10.0
    NOTA:

    En este archivo de configuración, MTU se establece en 8888, BONDING_MODULE_OPTS se establece en mode=1 miimon=100, BOOTPROTO se establece en STATIC. DEVICE, BONDING_SLAVE1, BONDING_SLAVE0, IPADDR, NETMASK y NETWORK se configuran según sea necesario. LLADDR se establece en el valor LLADDR de la NIC BONDING_SLAVE1.

    Después de la modificación, guarde el cambio y salga.

  6. Ejecute el siguiente comando para iniciar la NIC bond1 agregada:

    ifup bond1

  7. Ejecute el siguiente comando para consultar las direcciones IP:

    ip addr show

    Un ejemplo es el siguiente:

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 8888 qdisc mq master bond0 state UP group default qlen 1000
        link/ether fa:16:00:57:90:c9 brd ff:ff:ff:ff:ff:ff
    3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 8888 qdisc mq master bond0 state UP group default qlen 1000
        link/ether fa:16:00:57:90:c9 brd ff:ff:ff:ff:ff:ff
    4: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
        link/ether 40:7d:0f:52:e3:a5 brd ff:ff:ff:ff:ff:ff
    5: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
        link/ether 40:7d:0f:52:e3:a5 brd ff:ff:ff:ff:ff:ff
    6: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 8888 qdisc noqueue state UP group default qlen 1000
        link/ether fa:16:00:57:90:c9 brd ff:ff:ff:ff:ff:ff
        inet 172.16.2.44/24 brd 172.16.2.255 scope global bond0
           valid_lft forever preferred_lft forever
        inet6 fe80::f816:ff:fe57:90c9/64 scope link 
           valid_lft forever preferred_lft forever
    7: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether 40:7d:0f:52:e3:a5 brd ff:ff:ff:ff:ff:ff
        inet 10.10.10.104/24 brd 10.10.10.255 scope global bond1
           valid_lft forever preferred_lft forever
        inet6 fe80::427d:fff:fe52:e3a5/64 scope link 
           valid_lft forever preferred_lft forever
  8. Repita las operaciones anteriores para configurar otros BMS.

Eliminar una NIC

  1. Obtenga la dirección IP de la NIC de alta velocidad mejorada vinculada que se eliminará.
  2. Utilice una clave o contraseña para iniciar sesión en el BMS como usuario root.
  3. Busque el dispositivo de red de enlace y ejecute el siguiente comando para detener y eliminar el dispositivo:

    ifdown bond1

  4. Ejecute los siguientes comandos para eliminar los archivos de configuración de red /etc/sysconfig/network-scripts/ifcfg-eth2, /etc/sysconfig/network-scripts/ifcfg-eth3 y /etc/sysconfig/network-scripts/ifcfg-bond1:

    rm -f /etc/sysconfig/network-scripts/ifcfg-eth2

    rm -f /etc/sysconfig/network-scripts/ifcfg-eth3

    rm /etc/sysconfig/network/ifcfg-bond1

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Comentarios

Comentarios

Comentarios

0/500

Seleccionar contenido

Enviar el contenido seleccionado con los comentarios