CentOS8 connect to the Internet to run on the VBox and updated

1. Set up a virtual machine

1. Select to set bridge mode virtual machine

Click to select the target virtual machine
Select the virtual machine to be set

2. Open the Settings menu

VBox Settings button

3. Set network mode

Set network mode

  1. Open the Network Settings menu
  2. In connection selection bridge card
  3. Click OK

2. Run CentOS8 virtual machine

  1. Click Start
  2. Move the cursor to the CentOS screen, click, enter the virtual machine

3. Log CentOS8

  1. Enter your user name, enter
  2. Enter the password, enter
    Note: For security, enter the password when not displayed. (I thought it was not the first time the operation input) Enter your username and password
    Note: do not usually use the root user to log CentOS directly, here just do presentations.
    Prompt appears, log on success!

4. Get ip address

  1. Use dhclient command to get the address ip
    (dhc input after pressing Tab to completion)
dhclient
  1. Check to get ip address
ip addr

Here Insert Picture Description

  1. Use the ping command to test whether the Unicom network
ping bilibili.com

ping (space) ip address
here is a website I ping, ping time will be automatically converted to the ip address of the destination host
Use the ping command to test whether the network connectivity
when there is return information, the network is connected!

5. CentOS8 update

  • Enter the command in root user
yum update

Enter
Update command

  1. Encounters asked yse or no?
    Encountered inquiry
    Ask to download the update?
    Enter: y
    Enter
询问:Yes or No?
输入:y
回车
下一步

Encountered ask?
I believe the screen in front of a small partner know how to do
Encountered inquiry
4. Update complete!

update completed

Released four original articles · won praise 2 · Views 152

Guess you like

Origin blog.csdn.net/shangcode/article/details/104907715