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, 2020 in OpenStack by akhtar
• 38,260 points

recategorized Mar 13, 2020 by akhtar 969 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, 2020 by MD
• 95,460 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
• 58,020 points
1,610 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, 2020 in OpenStack by MD
• 95,460 points
4,298 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, 2020 in OpenStack by anonymous
• 95,460 points
2,643 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, 2020 in OpenStack by MD
• 95,460 points
1,313 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
1,180 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,268 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
844 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, 2020 in OpenStack by MD
• 95,460 points
2,889 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, 2020 in OpenStack by MD
• 95,460 points
1,202 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP