How to set static IP in Linux RedHat?

0 votes

Hi,

How can I create a static IP in RedHat. So that It will not change after rebooting my system?

Thank You

Feb 12 in OpenStack by akhtar
• 10,150 points

recategorized Mar 13 by akhtar 128 views

1 answer to this question.

0 votes

Hi@akhtar,

To set a static ip in Red Hat linux, follow the below steps.

  • Start NetworkManager first

   $ systemctl start NetworkManager
  • Set ip that you want to make static.

   $ nmcli connection add con-name name ifname enp0s3 type ethernet ip4 ip/24 gw4 “getway ip” ipv4.dns    “dns ip” connection.autoconnect yes
  • To check the network cards 

   $ nmcli connection show

   $ nmcli connection up name 

Hope it will help you.

Thank You

answered Feb 24 by MD
• 22,060 points

Related Questions In OpenStack

0 votes
1 answer

How to assign public IP to OpenStack instances?

You can have a look at this ...READ MORE

answered Feb 25, 2019 in OpenStack by Priyaj
• 57,530 points
90 views
0 votes
1 answer

How to delete image in OpenStack?

Hi@akhtar, There are two ways to delete an ...READ MORE

answered Mar 16 in OpenStack by MD
• 22,060 points
38 views
0 votes
1 answer

How to create an instance in OpenStack?

Hi@akhtar, When we try to launch an instance ...READ MORE

answered Mar 17 in OpenStack by anonymous
• 22,060 points
52 views
0 votes
1 answer

How to execute command inside network namespace in OpenStack?

Hi@akhtar, Let’s assume you want to execute “ifconfig” command ...READ MORE

answered Mar 17 in OpenStack by MD
• 22,060 points
49 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
141 views
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
114 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
77 views
0 votes
1 answer

How to create an image in OpenStack?

Hi@akhtar, Actually this is the fun in OpenStack. ...READ MORE

answered Mar 16 in OpenStack by MD
• 22,060 points
66 views
0 votes
1 answer

How to update an image properties in OpenStack?

Hi@akhtar, You can update your image properties. Follow ...READ MORE

answered Mar 16 in OpenStack by MD
• 22,060 points
29 views