Struggling with NMCLI - can't ping anything from VM after changing network settings?
Running Centos 7.9 - I have a VM I'm trying to setup.
My local network Gateway address is 192.168.1.254. On the RHCSA - how would you know what to set the gateway to? For networking to work you need 3 things - the IP, gateway and DNS right?
[root@localhost ~]# nmcli con show
NAME UUID TYPE DEVICE
static aa6ea34c-e618-4c7d-8ee4-0f2a50d75d99 ethernet eth0
[root@localhost ~]# nmcli dev show
GENERAL.DEVICE: eth0
GENERAL.TYPE: ethernet
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: static
IP4.ADDRESS[1]: 192.168.1.240/24
IP4.GATEWAY: 192.168.1.254
IP4.DNS[1]: 192.168.1.254
Output of /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.254
Nmtui has the exact same content, same IP address, same gateway, same DNS servers
The VM I'm running is hosted with KVM and has NAT enabled.
Why the heck can't I ping anything? What am I doing wrong...
Also - why does the connection show as deactivated in nmtui when I restart network manager?
Thank you guys soo much for the assistance!!!
|