Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running windows 2019 with hyper-v, and have 2 instances of Centos 7 Minimal (7.9 2009), I have installed windows 10 with them all three are using external IP address, NO DHCP, NO Internal ip address.
The windows machine works fine with the static IP, so the Windows 2019 and hyper-v are setup correct, but the 2 Centos 7.9 instances will not ping 8.8.8.8
So my question, what is the setup for a centos 7.9 machine is to talk to an outside website on the internet please.
Remember this is a minimal setup so commands like ifconfig and netstat don't exisist
I am running windows 2019 with hyper-v, and have 2 instances of Centos 7 Minimal (7.9 2009), I have installed windows 10 with them all three are using external IP address, NO DHCP, NO Internal ip address.
The windows machine works fine with the static IP, so the Windows 2019 and hyper-v are setup correct, but the 2 Centos 7.9 instances will not ping 8.8.8.8
So my question, what is the setup for a centos 7.9 machine is to talk to an outside website on the internet please.
Remember this is a minimal setup so commands like ifconfig and netstat don't exisist
Thank in advance from Alan
Is NetworkManager setup for this machine? If so, perhaps double-check the interface with
Code:
nmcli connection show <interface name>
If nmcli is not available, then check under /etc/NetworkManager/system-connections/
If NetworkManager is not being used, then perhaps doublecheck files in network-scripts directory and resolv.conf
---
And, also, if everything looks good; wonder if there is anything at Network layer? Perhaps assign the IP address you have for Linux machine to one of the Windows servers, and to make sure nothing at Network layer is the issue?
Network Manager is installed by default and while the ifconfig is not (it is actually deprecated) there is the ip command. How did you configure the CentOS instances?
Is NetworkManager setup for this machine? If so, perhaps double-check the interface with
Code:
nmcli connection show <interface name>
If nmcli is not available, then check under /etc/NetworkManager/system-connections/
If NetworkManager is not being used, then perhaps doublecheck files in network-scripts directory and resolv.conf
---
And, also, if everything looks good; wonder if there is anything at Network layer? Perhaps assign the IP address you have for Linux machine to one of the Windows servers, and to make sure nothing at Network layer is the issue?
Thank you for the reply, Networkmanager is installed, not sure if that works through a GUI interface, which I don't have
there is no named.conf as no bind or bind-utils are loaded as a minimal install
That leaves /etc/sysconfig/Network-scripts/ifcfg-eth0 nd I think that is correct
hence I asked what is expected, so I have something to check from.
Network Manager is installed by default and while the ifconfig is not (it is actually deprecated) there is the ip command. How did you configure the CentOS instances?
I think the only point you are interested in is, I did not setup external , private, or internal, because they generate dhcp, and I want to use
public ip addresses, so I just used the virtual broadcomm interface, 10 processers 8192 for memory, then installed Centos 7.9 and configured the ethernet
with ip address, gateway, and google dns 8.8.8.8, 8.8.4.4
For NetworkManager, it does not look at /etc/sysconfig/Network-scripts/
Rather, it goes by what's in: /etc/NetworkManager/system-connections/
And, "nmcli" is not a GUI tool, it is command-line tool for controlling/configuring NetworkManager.
Well, when you can't believe the impossible, then start to believe, I found the problem, the broadband provider changed my block of IP addresses
Now everything works...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.