このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。
- What's New
- Function Overview
- Service Overview
- Billing
- Getting Started
-
User Guide
- Common Operations
- Instance
- Image
-
Disk
- Disk Types
- Attaching Data Disks
-
Initializing Data Disks
- Introduction to Data Disk Initialization Scenarios and Partition Styles
- Initializing a Windows Data Disk (Windows Server 2016)
- Initializing a Linux Data Disk (fdisk)
- Initializing a Linux Data Disk (parted)
- Initializing a Windows Data Disk Greater Than 2 TB (Windows Server 2012)
- Initializing a Linux Data Disk Greater Than 2 TB (parted)
- Detaching a Disk
- Expanding Disk Capacity
- Key Pair and Password
-
Network
- EIP
- VPC
- High-Speed Network
-
Enhanced High-Speed Network
- Overview
- Adding an Enhanced High-Speed NIC
- Deleting an Enhanced High-Speed NIC
- Configuring an Enhanced High-Speed NIC (SUSE Linux Enterprise Server 12)
- Configuring an Enhanced High-Speed NIC (SUSE Linux Enterprise Server 11)
- Configuring an Enhanced High-Speed NIC (Red Hat, CentOS, Oracle Linux, and EulerOS)
- Configuring an Enhanced High-Speed NIC (Ubuntu)
- Configuring an Enhanced High-Speed NIC (Windows Server)
-
User-defined VLAN
- Overview
- Configuring a User-defined VLAN (SUSE Linux Enterprise Server 12)
- Configuring a User-defined VLAN (SUSE Linux Enterprise Server 11)
- Configuring a User-defined VLAN (Red Hat, CentOS, Oracle Linux, and EulerOS)
- Configuring a User-defined VLAN (Ubuntu)
- Configuring a User-defined VLAN (Windows Server)
- IB Network
- Security
- Permissions Management
- Resources and Tags
- Server Monitoring
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- BMS APIs
- Examples
- Public Parameters
- Permissions and Supported Actions
-
Historical APIs
- API Instructions (OpenStack Nova APIs)
- API Version Query (OpenStack Nova APIs)
- BMS Lifecycle Management (OpenStack Nova APIs)
- BMS Status Management (OpenStack Nova APIs)
- BMS Metadata Management (OpenStack Nova APIs)
- BMS IP Address Query (OpenStack Nova APIs)
- BMS Flavor Query (OpenStack Nova APIs)
- BMS NIC Management (OpenStack Nova APIs)
- BMS Disk Management (OpenStack Nova APIs)
- BMS 1D Tag Management (OpenStack Nova APIs)
- Appendix
- Change History
- SDK Reference
-
Private Image Creation Guide
- Overview
- Preparing the Environment
-
Linux
- Software
- Tools
- Creating a Linux VM
- Installing a Linux OS on the VM
- Modifying the Boot File (UEFI Boot Mode)
-
Configuring the VM Environment
- Overview
- (Optional) Installing Basic Components
- Configuring the Network
- Configuring systemd Timeout Parameters
- Disabling the Firewall
- (Optional) Upgrading Wicked Components
- (Optional) Disabling NetworkManager
- (Optional) Deleting the Network Management Tool Plug-in
- (Optional) Deleting the Local User
- (Optional) Modifying DHCP Configuration Items
- (Optional) Configuring the GRUB Timeout
- Setting the Maximum Number of Handles to 65535.
- Upload Required Software Packages
- Installing Cloud-Init
- Configuring Cloud-Init
- Checking the Cloud-Init Status
- Modifying the Hardware Device Drivers That Boot the OS
- Installing bms-network-config
- Installing the Network Service
- Installing the SDI Driver
- Installing the Hi1822 Driver
- (Optional) Installing the IB driver
- Installing FusionServer/TaiShanServer iDrivers
- (Optional) Installing the Multipath Software
- Installing the One-Click Password Reset Plug-in
-
Performing Security Configuration
- Modifying SSH Configuration Items
- (Optional) Modifying the Network Script Permission
- (Optional) Modifying the /etc/motd Configuration Item
- Modifying Historical Record Configuration Items
- Optimizing the udev Configuration
- Optimizing SELinux
- Uninstalling denyhosts
- (Optional) Setting Automatic Hostname Update
- (Optional) Installing Common O&M Tools
- (Optional) Setting the Password Validity Period
-
Configuring Remote Login to a BMS
- x86: Oracle Linux 7.3/Oracle Linux 7.4/Red Hat 7/CentOS 7.2/CentOS 7.4/CentOS 7.5/CentOS 7.6
- x86: Oracle Linux 6 series/Red Hat 6 series/CentOS 6
- x86: SUSE 11 SP4
- ARM: CentOS 7
- x86: SUSE 12/SUSE 15/CentOS 7.3/EulerOS/OpenEuler/Oracle Linux 7.2
- ARM: EulerOS/OpenEuler
- x86: Ubuntu 16.04/Ubuntu 18.04
- Arm: Ubuntu 16.04/Ubuntu 18.04
- x86: Ubuntu 14.04/Debian
- Configuring the Root Partition to Be Automatically Extended
- Installing and Upgrading Drivers and Firmware for Ascend BMSs
- Deleting Files
-
Windows
- Preparing Hardware and Software
- (Optional) Installing x86 V5 Server Drivers
- Using Dism++ to Install the VMTools Driver for an ISO File
- Generating a New ISO File
- Creating a Windows VM
- Configuring the VM Environment
- Installing Cloudbase-Init
- (Optional) Installing bms-network-config
- (Optional) Installing the SDI Driver
- (Optional) Installing One-Click Password Reset Plug-in
- Setting the Windows Time Zone
- Setting the Windows Virtual Memory
- (Optional) Configuring Automatic Windows Update
- Configuring the SID
- Stopping the VM and Obtaining the Image
- Converting the Image Format
-
FAQ
- What Can I Do If Packets from the VLAN Subinterface of bond0 of a Linux BMS Use the MAC Address of bond0 as the Source MAC Address?
- What Can I Do If IP Links Are Disconnected Due to the Incorrect Bond Port Mode Configured by the Wicked Module of SUSE 12 SP1?
- How Do I Set the BMS CPU Frequency Governor?
- What Do I Do If Cloudbase-Init Is Stopped on a Provisioned Windows BMS?
- What Can I Do If Data Cannot Be Injected into BMSs Due to cloud-init-local Failures?
- How Do I Activate a Windows BMS?
- How Do I Improve the UDP Packet Performance for x86 EulerOS 2.3?
- How Do I Verify Software Package Integrity?
- Appendix
- Change History
-
FAQs
-
General FAQ
- What Restrictions Are There on BMS Use?
- How Are BMSs Different from ECSs?
- What Are the Differences Between BMSs and Traditional Physical Servers?
- What Are the Differences Between BMS and Dedicated Host (DeH)?
- How Do BMSs Ensure Data Security?
- Can I Use APIs to Access BMSs?
- What OS Images Does BMS Support?
- Will Services Be Affected If Hyper-Threading Is Configured for BMS?
- How Do I View and Increase the BMS Quota?
- How Do I Synchronize the Time of a BMS?
-
Instance FAQ
- How Long Does It Take to Create a BMS?
- What Do I Do If I Can't Find My BMS on the Management Console?
- How Can I Obtain board_type of a BMS Flavor?
- Why Is the BMS Creation Task Displayed as Failed But the BMS List Shows the BMS?
- How Do I Create a BMS That Can be Quickly Provisioned?
- What Are the Advanced Features of BMSs Using EVS Disks?
- Can I Transfer a BMS to Another Account?
- Is the BMS Host Name with Suffix novalocal Normal?
- Why Does the System Display a Message Indicating That the BMS Cannot Be Deleted?
- How Do I Monitor BMS Metrics?
- How Do I Create an Agency for Server Monitoring of the BMS?
-
Billing FAQ
- Where Can I Query the BMS Price?
- What Are Pre-payment and Post-payment? How Do I Choose Between Them?
- What Is the Impact on Billing if I Unsubscribe from a BMS?
- How Do I Set Automatic Renewal for BMSs Billed on a Yearly/Monthly Basis?
- When Will a BMS Be Released After It Expires?
- How Do I Unfreeze a BMS?
- Key Pair and Password FAQ
-
Login FAQ
- How Do I Prepare to Log In to a BMS?
- What Can I Do If I Selected the Key Pair Authentication When I Created a BMS But Want to Log In to the BMS Using a Password?
- What Do I Do If I Can't Log In to a Windows BMS?
- What Do I Do If I Can't Log In to a Linux BMS?
- What Browser Versions Can Be Used to Remotely Log In to a BMS?
- What Do I Do If the Login Page Does Not Respond?
- What Do I Do If the BMS Console Is Displayed Improperly After I Remotely Log In to a BMS?
- What Do I Do If the Numeric Keypad Does Not Work During Remote Login?
- What Do I Do If the SSH Login or Data Transmission Is Slow?
-
Network and Security FAQ
- Can BMSs of Different Accounts Communicate with Each Other over an Internal Network?
- How Do Two BMSs in the Same Region But in Different AZs Communicate with Each Other?
- Are My BMSs in the Same Subnet?
- Can I Associate a BMS with Multiple Security Groups?
- Can BMSs Communicate with ECSs in the Same VPC?
- What Are the Differences Between the Primary and Extension NICs of BMSs?
- Can I Bind Multiple EIPs to a BMS?
- Can I Configure an EIP?
- Will I Obtain an EIP That Has Been Released?
- What Are the Differences Between EIPs, Private IP Addresses, and Virtual IP Addresses?
- How Can I Modify the Network Configuration or Restart the Network If I Can Log In to a BMS Using Only SSH?
- How Do I Handle the Failure to Ping a CentOS 7 Extension NIC?
- What Do I Do If a Service Port Is Used by a One-Click Password Reset Plug-in?
- What Do I Do If the Communication Between the Primary NIC and Extension NIC of the BMS is Abnormal?
- How Can I Configure a Static IP Address for a BMS?
- What Do I Do If the Network Performance Is Poor When 128 Ethernet Network Devices Are Bound to a BMS?
-
Disk FAQ
- Can EVS Disks Be Attached to BMSs? How Many Data Disks Can Be Attached to a BMS?
- What Are the Restrictions for Attaching a Disk to a BMS?
- How Do I Know Whether EVS Disks Are Available in a Flavor?
- How Do I Change the Disk Identifier in the fstab file to UUID?
- How Do I Obtain the Drive Letter of an EVS Disk?
- Are the EVS Disk Device Names on the Console and the Device Names in BMS OSs Consistent?
- Why Is the EVS Disk Size Not Updated in the BMS OS After the EVS Disk Capacity Has Been Expanded?
- How Can I Restore System Disk Data Using the Snapshot?
- What Do I Do to Prevent Risks of Attaching or Detaching the System Disk?
- How Do I Select Storage?
- Why Is the Disk Capacity Displayed in the BMS OS Less Than That Displayed on the Official Website?
-
OS FAQ
- Can I Install or Upgrade BMS OSs by Myself?
- Can I Change the OS of a BMS?
- Is a GUI Provided for BMS OSs?
- Is an Upload Tool Delivered with BMS OSs?
- Does the Public Image Used to Create a BMS Have a Swap Partition?
- How Do I Configure the Static Host Name of a BMS?
- How Do I Set the Password Validity Period?
- How Do I Set SSH Configuration Items?
- How Can I Handle the Eight-Hour Difference Between the Windows BMS and Local Time
- How Do I Change the SID of a Windows Server 2012 BMS?
- How Do I Change the Kernel Version of CentOS 7 BMSs?
- How Do I Reserve Log Space If the Root Partition Automatically Expands Disks?
- How Do I Roll Back the Kernel Version If I Mistakenly Upgrade the Kernel?
- How Do I Increase the Swap Partition Size?
- How Do I Increase the Size of the Root Partition of a BMS Which Is Quickly Provisioned?
- Common Linux Commands
- How Do I Update the Disk Metadata After the LVM Volume Is Remounted?
- How Do I Handle a Network Failure After Services Are Switched from a Windows BMS Booted from an EVS Disk to an HA BMS?
-
General FAQ
-
Troubleshooting
- What Do I Do If I Cannot Log In to My BMS or the BMS EVS Disk Is Lost After the BMS Is Started or Restarted?
- What Do I Do If a Key Pair Created Using PuTTYgen Cannot Be Imported to the Management Console?
- What Do I Do If Disks Cannot Be Attached to a BMS That Restarts Abnormally?
- What Do I Do If an EVS Disk Attached to a Windows BMS Is in Offline State?
- Video
-
More Documents
-
User Guide (Paris Region)
- Overview
- Getting Started
- Instance
- Image
-
Disk
- Attaching Data Disks
-
Initializing Data Disks
- Introduction to Data Disk Initialization Scenarios and Partition Styles
- Initializing a Windows Data Disk (Windows Server 2016)
- Initializing a Linux Data Disk (fdisk)
- Initializing a Linux Data Disk (parted)
- Initializing a Windows Data Disk Greater Than 2 TB (Windows Server 2012)
- Initializing a Linux Data Disk Greater Than 2 TB (parted)
- Detaching a Disk
- Expanding Disk Capacity
- Key Pair and Password
-
Network
- EIP
- VPC
- High-Speed Network
-
User-defined VLAN
- Overview
- Configuring a User-defined VLAN (SUSE Linux Enterprise Server 12)
- Configuring a User-defined VLAN (SUSE Linux Enterprise Server 11)
- Configuring a User-defined VLAN (Red Hat, CentOS, Oracle Linux, and EulerOS)
- Configuring a User-defined VLAN (Ubuntu)
- Configuring a User-defined VLAN (Windows Server)
- IB Network
- Security
- Server Monitoring
-
Troubleshooting
- What Do I Do If I Cannot Log In to My BMS or the BMS EVS Disk Is Lost After the BMS Is Started or Restarted?
- What Do I Do If a Key Pair Created Using PuTTYgen Cannot Be Imported to the Management Console?
- What Do I Do If Disks Cannot Be Attached to a BMS That Restarts Abnormally?
- What Do I Do If an EVS Disk Attached to a Windows BMS Is in Offline State?
-
FAQs
- General FAQs
-
Instance FAQs
- How Long Does It Take to Create a BMS?
- Why Is Failed Displayed for a BMS Application Task But the BMS List Shows the Obtained BMS?
- How Can I Quickly Provision BMSs Using EVS Disks?
- What Are the Advanced Features of BMSs Using EVS Disks?
- Is the BMS Host Name with Suffix novalocal Normal?
- How Can I Check the BMS Monitoring Status?
- How Do I Create an Agency for Server Monitoring of the BMS?
- Login FAQs
-
Network and Security FAQs
- Can BMSs of Different Accounts Communicate with Each Other over an Internal Network?
- How Do Two BMSs in the Same Region But Different AZs Communicate with Each Other?
- Are My BMSs in the Same Subnet?
- Can BMSs Communicate with ECSs in the Same VPC?
- Can Multiple EIPs Be Bound to a BMS?
- Can I Configure the EIP?
- How Can I Modify the Network Configuration or Restart the Network If I Can Log In to a BMS Using Only SSH?
- What Do I Do If the Communication Between the Primary NIC and Extension NIC of the BMS is Abnormal?
- How Can I Configure a Static IP Address for a BMS?
- How Do I Configure the DNS Server?
-
Disk FAQs
- Can EVS Disks Be Attached to BMSs?
- What Are the Restrictions for Attaching a Disk to a BMS?
- How Do I Change the Disk Identifier in the fstab file to UUID?
- How Do I Obtain the Drive Letter of an EVS Disk?
- Are the EVS Disk Device Names on the Console and the Device Names in BMS OSs Consistent?
- Why Is the EVS Disk Size Not Updated in the BMS OS After the EVS Disk Capacity Has Been Expanded?
- How Can I Restore System Disk Data Using the Snapshot?
- What Do I Do to Prevent Risks of Attaching or Detaching the System Disk?
- How Should I Select Storage?
- Why Is the Disk Capacity Displayed in the BMS OS Less Than That Displayed on the Official Website?
-
OS FAQs
- Can I Install or Upgrade BMS OSs by Myself?
- Can the BMS OS Be Replaced?
- Is a GUI Provided for BMS OSs?
- Is an Upload Tool Delivered with BMS OSs?
- How Do I Configure the Static Host Name of a BMS?
- How Do I Set the Password Validity Period?
- How Do I Set SSH Configuration Items?
- How Can I Handle the Eight-Hour Difference Between the Windows BMS and Local Time
- How Can I Activate a Windows BMS?
- How Do I Change the SID of a Windows Server 2012 BMS?
- How Do I Reserve Log Space If the Root Partition Automatically Expands Disks?
- How Do I Roll Back the Kernel Version If I Mistakenly Upgrade the Kernel?
- How Do I Increase the Swap Partition Size?
- Change History
-
API Reference (Paris Region)
- Before You Start
- API Overview
- Calling APIs
- BMS APIs
- Native OpenStack Nova V2.1 APIs
- Public Parameters
- Permissions Policies and Supported Actions
- Appendix
- Change History
-
User Guide (Paris Region)
- General Reference
Show all
Copied.
Configuring an Enhanced High-Speed NIC (Ubuntu)
This section uses Ubuntu 16.04 LTS (Xenial Xerus x86_64) as an example to describe how to bond enhanced high-speed NICs of a BMS.
The configuration methods of other Ubuntu OSs are similar to that of Ubuntu 16.04 LTS (Xenial Xerus x86_64).
Add a NIC
- Use a key or password to log in to the BMS as user root.
- On the BMS CLI, run the following command to check the NIC information:
ip link
Information similar to the following is displayed:
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:9b:91:c3 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:9b:91:c3 brd ff:ff:ff:ff:ff:ff 4: p5p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 40:7d:0f:52:e4:1d brd ff:ff:ff:ff:ff:ff 5: p5p2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 40:7d:0f:52:e4:1e brd ff:ff:ff:ff:ff:ff 6: p4p1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 40:7d:0f:52:e3:a9 brd ff:ff:ff:ff:ff:ff 7: p4p2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 40:7d:0f:52:e3:aa brd ff:ff:ff:ff:ff:ff 8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 8888 qdisc noqueue state UP group default qlen 1000 link/ether fa:16:00:9b:91:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.254.85/24 brd 192.168.254.255 scope global bond0 valid_lft forever preferred_lft forever inet6 fe80::f816:ff:fe9b:91c3/64 scope link valid_lft forever preferred_lft forever 9: bond0.3157@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8888 qdisc noqueue state UP group default qlen 1000 link/ether fa:16:00:9c:1e:79 brd ff:ff:ff:ff:ff:ff inet 192.168.100.14/24 brd 192.168.100.255 scope global bond0.3157 valid_lft forever preferred_lft forever inet6 fe80::f816:ff:fe9c:1e79/64 scope link valid_lft forever preferred_lft forever 10: bond0.3159@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8888 qdisc noqueue state UP group default qlen 1000 link/ether fa:16:00:0a:2e:8e brd ff:ff:ff:ff:ff:ff inet 192.168.101.153/24 brd 192.168.101.255 scope global bond0.3159 valid_lft forever preferred_lft forever inet6 fe80::f816:ff:fe0a:2e8e/64 scope link valid_lft forever preferred_lft forever
NOTE:eth0 and eth1 bear the VPC, and p5p1, p5p2, p4p1, and p4p2 bear the enhanced high-speed network. The following operations describe how to bond enhanced high-speed NICs p4p1 and p4p2.
- Run the following command to check whether the /etc/udev/rules.d/ directory contains the 80-persistent-net.rules file:
ll /etc/udev/rules.d/ | grep 80-persistent-net.rules
- Run the following command to copy the /etc/udev/rules.d/70-persistent-net.rules file and name the copy as /etc/udev/rules.d/80-persistent-net.rules.
cp -p /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-persistent-net.rules
- Configure the udev rules:
Add the NICs and their MAC addresses obtained in step 2, except lo, eth0, eth1, and bond0, to the /etc/udev/rules.d/80-persistent-net.rules file. This ensures that the names and sequence of NICs will not change after the BMS is restarted.
NOTE:Ensure that NIC MAC address and name are lowercase letters.
vim /etc/udev/rules.d/80-persistent-net.rules
The modification result is as follows:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:4c:7f:5d:b6:fc", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:4c:7f:5d:b6:fd", NAME="eth1" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:7d:0f:52:e4:1d", NAME="p5p1" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:7d:0f:52:e4:1e", NAME="p5p2" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:7d:0f:52:e3:a9", NAME="p4p1" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:7d:0f:52:e3:aa", NAME="p4p2"
After the modification, press Esc, enter :wq, save the configuration, and exit.
- Run the following command to copy the /etc/network/interfaces.d/50-cloud-init.cfg file to generate the /etc/network/interfaces.d/60-cloud-init.cfg file:
cp -p /etc/network/interfaces.d/50-cloud-init.cfg /etc/network/interfaces.d/60-cloud-init.cfg
NOTE:If the /etc/network/interfaces.d/50-cloud-init.cfg file does not exist, copy the /etc/network/interfaces file and run the following commands:
mkdir /etc/network/interfaces.d
cp -p /etc/network/interfaces /etc/network/interfaces.d/60-cloud-init.cfg
- Run the following command to edit the /etc/network/interfaces.d/60-cloud-init.cfg file of devices p4p1 and p4p2:
vim /etc/network/interfaces.d/60-cloud-init.cfg
Edit the file as follows:
auto p4p1 iface p4p1 inet manual bond_mode 1 bond-master bond1 bond_miimon 100 mtu 8888 auto p4p2 iface p4p2 inet manual bond_mode 1 bond-master bond1 bond_miimon 100 mtu 8888 auto bond1 iface bond1 inet static bond_miimon 100 bond-slaves none bond_mode 1 address 10.10.10.103 netmask 255.255.255.0 hwaddress 40:7d:0f:52:e3:a9 mtu 8888
Parameters are as follows:
- p4p1 and p4p2 are the names of the NICs that carry the enhanced high-speed network.
- hwaddress is the MAC address of p4p1.
- Change the value of address to the IP address allocated to enhanced high-speed network bond1. If the IP address planned for the enhanced high-speed network does not conflict with the VPC network segment, you can plan the IP address as needed, only to ensure that BMSs communicating through the enhanced high-speed network are in the same network segment as the enhanced high-speed network.
- Set the value of netmask to the subnet mask of the IP address configured for enhanced high-speed network bond1.
Set values of other parameters. For example, set mtu to 8888, bond_miimon to 100, and bond_mode to 1.
After the modification, press Esc, enter :wq, save the configuration, and exit.
- Run the following command to enable the bond NIC:
ifup p4p1
ifup p4p2
NOTE:p4p1 and p4p2 are the NICs bearing the enhanced high-speed network.
- Run the following commands to check the NIC device status and whether the bond1 configuration file takes effect:
ip link
ifconfig
- Perform the preceding operations to configure other BMSs.
- After all BMSs are configured, ping the IP address in the same network segment as the enhanced high-speed network of other BMSs from each BMS.
For example, run the ping 10.10.10.102 command. The command output is as follows:
[root@bms-ubuntu ~]# ping 10.10.10.102 -I bond1 PING 10.10.10.102 (10.10.10.102) from 10.10.10.103 bond1: 56(84) bytes of data. 64 bytes from 10.10.10.102: icmp_seq=1 ttl=64 time=0.681 ms 64 bytes from 10.10.10.102: icmp_seq=2 ttl=64 time=0.035 ms 64 bytes from 10.10.10.102: icmp_seq=3 ttl=64 time=0.031 ms 64 bytes from 10.10.10.102: icmp_seq=4 ttl=64 time=0.030 ms ^C --- 10.10.10.102 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3342ms
To configure a VLAN, perform the following steps:
- Configure the corresponding VLAN sub-interfaces based on the VLAN to be configured. Assuming that the VLAN ID is 316, run the following command to edit the /etc/network/interfaces.d/60-cloud-init.cfg file:
vim /etc/network/interfaces.d/60-cloud-init.cfg
Edit the file as follows:
auto p4p1 iface p4p1 inet manual bond_mode 1 bond-master bond1 bond_miimon 100 mtu 8888 auto p4p2 iface p4p2 inet manual bond_mode 1 bond-master bond1 bond_miimon 100 mtu 8888 auto bond1 iface bond1 inet static bond_miimon 100 bond-slaves none bond_mode 1 address 10.10.10.103 netmask 255.255.255.0 hwaddress 40:7d:0f:52:e3:a9 mtu 8888 auto bond1.316 iface bond1.316 inet static bond_miimon 100 bond-slaves none bond_mode 1 address 10.10.0.103 netmask 255.255.255.0 hwaddress 40:7d:0f:52:e3:a9 mtu 8888
- Run the following command to enable the VLAN sub-interface of the bond NIC:
ifup bond1.316
- After all BMSs are configured, ping the IP address in the same network segment as the enhanced high-speed network VLAN sub-interface of other BMSs from each BMS.
Delete a NIC
- Obtain the IP address of the bonded enhanced high-speed NIC to be deleted.
- Use a key or password to log in to the BMS as user root.
- Locate the bond network device and run the following command to stop and delete the device: If the bond has VLAN sub-interfaces, they will be automatically deleted.
[root@bms-ubuntu ~]# ifdown p4p1 [root@bms-ubuntu ~]# ifdown p4p2 [root@bms-ubuntu ~]# ifdown bond1
- Run the following command to delete network configuration file /etc/network/interfaces.d/60-cloud-init.cfg:
rm -f /etc/network/interfaces.d/60-cloud-init.cfg
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot