Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Complete steps for configuring static IP addresses for linux virtual machines

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

preface

In many cases we will use virtual machines, such as some tests did not detect, practice things can be in the virtual machine, do not worry about what will be bad, this article mainly introduces the linux virtual machine configuration static IP address related content, the following words do not say much, let's take a look at the detailed introduction

The procedure is as follows:

1. command line call

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Command line.png

2. The red content above needs to be modified. You need to enter i to enter edit mode.

ipconfig corresponds to the ip address you need to generate

DNS1 and GATEWAY correspond to their own gateway addresses

GATEWAY corresponds to subnet mask

Get address of place.png

Then esc rolls out edit mode, type: wq save

3. Verify successful connection to external network

Verify extranet.png

summary

The above is the whole content of this article, I hope the content of this article has a certain reference value for everyone's study or work, if you have questions, you can leave a message to exchange, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report