S
S
Sieghardt Meisner2015-11-27 10:26:17
linux
Sieghardt Meisner, 2015-11-27 10:26:17

How to set up networking for CentOS 7 on VMWare?

In general, the problem is this: I installed CentOS 7 minimal on VMWare. I'm trying to install the ipconfig utility, it says that the repository was not found. I'm trying to ping google. Writes host unknown.
Put in the VMWare settings 2 network cards one Host-Only, the second NAT.
Here are the screenshots. How to be?
5fd271db692046b3a08f8d23918ff63c.jpg874acf722f984c7faeed9090e752efcd.jpg

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
lapin_av, 2017-03-06
@lapin_av

Responding advisers to snatch their hands. you need to edit the vmx file of your virtual machine (after creation), right-click on the vmx file and open, for example, in notepad or Notepad ++. at the bottom add the line
ethernet0.virtualDev = "e1000"
and everything will work by itself

L
Leks, 2015-11-27
@Leksnsk

Set the bridge mode. Then the virtual machine will receive settings via dhcp from your router and immediately Google will ping and the repositories will be available.

S
Sieghardt Meisner, 2015-11-27
@S1egh4rdt

Now I tried again to put the bridge and nothing (
8e551a344cea41d3bb0feef8fc4585d8.jpg

M
Max, 2015-11-27
@MaxDukov

start from the beginning - turn off the "host-only" network card, put the only remaining one in Bridge, reboot the VM
, check that the network card is configured for DHCP

#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
PEERDNS=no

try setting up static DNS
# vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

A
aleksxx, 2020-04-02
@aleksxx

Here I painted the solution https://keepcloud.ru/blog/vmware-centos-7-nastrojk...
Initially, when installing centos, I set the network settings, static IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question