Unpacking machine
Check the integrity of express delivery, and check the internal hardware of the server and other relevant accessories according to the list, including memory, hard disk, network card, guide rail, etc.
Installing the machine
Before entering the machine room to install the machine, first perform anti-static operation, including touching grounded metal objects or wearing anti-static bracelets.
- First, install the guide rail. When installing the guide rail, align the middle position of the guide rail with the number according to the details of the upper and lower points of the guide rail buckle, and install the upper and lower clamping positions symmetrically along the track number.
- When the machine is put on the rack, check whether the snap positions on both sides are installed in place. After installation, check whether it can be pushed into the cabinet normally.
Installing the operating system and configuring the network
Installing the operating system
After the server is installed on the rack, connect the network cable (optical module), power cable, VGA video cable, mouse and keyboard cable at the rear of the server, and then start the machine.
-
After the system self-test is completed, first enter BIOS to check the system configuration information, including hard disk format, power mode, CPU information, memory information, system boot mode, etc.
-
After all inspections are completed, insert the USB flash disk and enter the USB flash disk system for installation. Generally, the installation is in full-automatic mode.
-
After the system installation is completed, enter the system and use the nmcli tool to configure the network
configure network
The tool used in the process of configuring the network is nmcli. Compared with the common method of modifying the /etc/sysconfig/network-scripts/if-enxxxxx configuration file, the nmcli tool can be used to interactively configure the network, so as to avoid some syntax errors and other problems.
Generally, you need to confirm the operation of NetworkManager before starting network configuration,
## Check NetworkManager status systemctl status NetworkManager
When systemctl status reports that NetworkManager is in active: activate (running), it indicates that it is currently executing.
[external link image transfer failed. The source station may have an anti-theft chain mechanism. It is recommended to save the image and upload it directly (img-qxsgc5ew-1593777708961) (d:\work\learnnot\ server shelf operation.assets\image-20200630142534418.png)]
After restarting NetworkManager, you can use the nmcli tool to configure it. Generally, the parameters to be configured include:
-
IP address: ipv4 addresses
-
Gateway: ipv4 gateway
-
IP access method: ipv4 method
-
Network card startup mode: autoconnect
The nmcli instruction format is as follows:
[root@localhost ~]# nmcli connection --help Usage: nmcli connection { COMMAND | help }
COMMAND common operations are:
- show: displays the current network card information
- up/down: start / disable the network card
- Add: add network card information
- modify: configure network card information
- Edit: edit network card information
- Help: view help
The instruction format following common operations can be queried through help.
View network card
After using the connection parameter to connect to the system network, the show parameter can view the current network card. The network card with information in the Device column is the network card currently working.
[root@localhost /]# nmcli connection show NAME UUID TYPE DEVICE br-e76e2febfb2e 64094eb6-95ba-4c60-a5d5-e0429ac5b028 bridge br-e76e2febfb2e docker0 d5c4d1ff-b29b-4385-8569-83e0c814c5d4 bridge docker0 ens33 b2cee65c-860b-4850-9bc6-e37dea5c0f06 ethernet ens33 ens34 769818ba-0653-4cbe-a661-4d9160a38145 ethernet --
Configure IP address
You can configure the network adapter by adding the Name of the corresponding network adapter to the modify parameter.
## Configure IP address, network management, startup mode and operation mode [root@localhost ~]# nmcli connection modify ens33 ipv4.addresses 192.168.60.203 ipv4.gateway 192.168.60.130 ipv4.method manual autoconnect yes
boot adapter
After the configuration is completed, the network card needs to be started.
[root@localhost ~]# nmcli connection up ens34 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/396)
After the DEVICE is started, check again to see that the network card is displayed in the DEVICE in the play.
[root@localhost ~]# nmcli connection show NAME UUID TYPE DEVICE br-e76e2febfb2e 64094eb6-95ba-4c60-a5d5-e0429ac5b028 bridge br-e76e2febfb2e docker0 d5c4d1ff-b29b-4385-8569-83e0c814c5d4 bridge docker0 ens33 b2cee65c-860b-4850-9bc6-e37dea5c0f06 ethernet ens33 ens34 769818ba-0653-4cbe-a661-4d9160a38145 ethernet ens34