Not able to find IP address in VM

0 votes

Hi Guys,

I have installed one Redhat virtual machine. But it is not showing any IP address.

How can I find my IP address?

Jul 8, 2020 in Linux Administration by akhtar
• 38,260 points
2,772 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to change your network adapter setting. You can follow the below steps.

  • Open the configuration file.
$ vim /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=8ab587da-e9b8-4a16-864a-8502f4a041a3
DEVICE=enp0s3
ONBOOT=no

You need to change ONBOOT no to yes. Now you will get your IP automatically when you start your VM. After that, restart your VM. It will work.

answered Jul 8, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
2 answers

How to change IP address of an Ubuntu VM?

The easiest method is through network manager: 1- ...READ MORE

answered Aug 25, 2020 in Linux Administration by Pistle
• 300 points
14,502 views
+2 votes
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 69,220 points
8,244 views
0 votes
1 answer

Not able to access /etc/sudoers.d/python file

I think your system is not allowing ...READ MORE

answered Feb 6, 2019 in Linux Administration by Lohit
2,147 views
0 votes
1 answer

Not able to install sublime text editor

Delete the following file: /etc/apt/sources.lits.d/sublime-text.list and then try to ...READ MORE

answered Feb 19, 2019 in Linux Administration by Joe
975 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
1 answer

Capture packets from destination IP in Linux.

Hi@akhtar, To capture packets from destination IP, say you ...READ MORE

answered Oct 4, 2020 in Linux Administration by MD
• 95,460 points
616 views
0 votes
1 answer

How to gather CPU architecture information of a Linux system?

Hi@akhtar, You can use lscpu command to check ...READ MORE

answered Oct 12, 2020 in Linux Administration by MD
• 95,460 points
657 views
0 votes
1 answer

not able to run netstat-tnlp in Linux.

Hi@akhtar, In Linux system netstat-tnlp command comes from ...READ MORE

answered Apr 16, 2020 in Linux Administration by MD
• 95,460 points
1,088 views
0 votes
1 answer

How to block an IP address to connect my webserver?

Hi@akhtar, You can block one IP address using ...READ MORE

answered Jun 10, 2020 in Linux Administration by MD
• 95,460 points
759 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