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

How to configure static ip for Linux

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you "how to configure static ip in Linux", the content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn this article "how to configure static ip in Linux".

Ensuring the correctness of the network configuration and the smooth flow of network connections is the foundation of Linux system as a server application. Viewing and testing the network configuration is the first step in managing Linux network services.

$ vi /etc/sysconfig/network-scripts/ifcfg-ens33

BOOTPROTO="dhcp" Dynamic/static static must be changed to static

ONBOOT=yes Activate the NIC

IPADDR=192.168.203.129 Static IP must be the same segment as your local IP

NETMASK=255.255.255.0 subnet mask

GATEWAY=192.168.203.2 Gateway

DNS1=199.29.29.29 DNS

: WQ quit

$service network restart Restart network services

The above is "Linux how to configure static ip" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

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

Development

Wechat

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

12
Report