CentOS 7 method to modify the gateway and configure the IP example

CentOS 7 method to modify the gateway and configure the IP example

When installing the centos7 version, choose to connect to the external network, then you can directly access the external network, just need to set a static IP.


Modify the configuration file

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


Set the solid IP and gateway, just add it yourself, but the gateway needs to be reset if it changes to another location. You can add multiple ones. After the modification is completed: wq save and exit


Restart the network


The network of the virtual machine can be turned on, and win and the virtual machine can ping each other, and the setting is successful

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to configure a static IP address for CentOS 7 (2 ways)
  • How to configure IP address whitelist using iptables under centOS7
  • Detailed explanation of three methods to configure IP address in CentOS 6.5 under virtual machine
  • Detailed explanation of how to configure static IP with dual network cards in centos7
  • How to configure ip forward (virtual router) under CentOS7
  • One-click configuration of CentOS iptables firewall Shell script sharing
  • Detailed explanation of configuring IPv6 address for Alibaba Cloud ECS (CentOS7) in Linux
  • Alibaba Cloud CentOS iptables firewall configuration tutorial
  • How to configure IP address for Centos virtual machine Internet access
  • How to configure static IP in Centos7
  • CentOS server iptables configuration simple tutorial

<<:  How to modify the length limit of group_concat in Mysql

>>:  Detailed explanation of key uniqueness of v-for in Vue

Recommend

Vue3 based on script setup syntax $refs usage

Table of contents 1. Vue2 syntax 2. Use of Vue3 1...

js realizes 3D sound effects through audioContext

This article shares the specific code of js to ac...

MySQL database implements MMM high availability cluster architecture

concept MMM (Master-Master replication manager fo...

Use momentJs to make a countdown component (example code)

Today I'd like to introduce a countdown made ...

A brief talk about MySQL pivot tables

I have a product parts table like this: part part...

Solution to forgetting MySQL root password in MACOS

MySQL is a relational database management system ...

Detailed explanation of how to use WeChat mini program map

This article example shares the specific implemen...

Solution - BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: Insufficient permissions

1) Enter the folder path where the jdk file is st...

Web form creation skills

In fact, the three tables above all have three ro...

How to install and configure GitLab on Ubuntu 20.04

introduce GitLab CE or Community Edition is an op...

Introduction and tips for using the interactive visualization JS library gojs

Table of contents 1. Introduction to gojs 2. Gojs...

Vue implements countdown function

This article example shares the specific code of ...

HTML table_Powernode Java Academy

To draw a table in HTML, use the table tag tr me...