LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ubuntu is not pinging/communicating to external LAN (https://www.linuxquestions.org/questions/linux-server-73/ubuntu-is-not-pinging-communicating-to-external-lan-4175628504/)

rohits 04-26-2018 11:41 PM

Ubuntu is not pinging/communicating to external LAN
 
Hello Guru's,

I have an issue with my newly installed ubuntu 4.8.2-19ubuntu1 in virtual box. The setup was pre-installed .OVA file imported to Virtual Box.
After defining static IP Address, Subnet Mask and Gateways I am able to ping the internal network but not the external networks.
I tried disabling firewall of Ubuntu, but nothing helped.
I have one observation: When I reboot the Ubuntu machine, during booting up ping comes in the external LAN as well but after the machine is up, ping stops.
I am also not able to take SSH, RDP or send any request to the machine.
Please help!

michaelk 04-27-2018 04:22 AM

How is the VirtualBox network configured? Without knowing how networking is configured it is difficult to help. When pinging are you using IP addresses or hosts naes?

By default Ubuntu uses NetworkManager to configure networking and by not disabling it when using a static IP address you might have conflicts. When using a static IP address you also need to configure the DNS servers or you will not be able to resolves URLs.

rohits 04-27-2018 05:56 AM

Hi Michaelk,
How is the VirtualBox network configured?
Ans: Virtual box networked is configured as Bridge Network.
Without knowing how networking is configured it is difficult to help.
When pinging are you using IP addresses or hosts names?
Ans: I am pining the IP Address of the external LAN machines.

michaelk 04-27-2018 06:39 AM

Is NetworkManager running? How did you configure a static IP address?

rohits 04-27-2018 06:46 AM

[QUOTE=michaelk;5847908]Is NetworkManager running?
Ans: Yes, Network Manager is running.
How did you configure a static IP address?
Ans: I have configured the IP address in Network Connection's Ethernet connection.
And also configured the settings in /etc/network/interfaces.

michaelk 04-27-2018 08:22 AM

You can not do both.

frankbell 04-27-2018 08:46 PM

To build on what michaelk said, do you use network manager if you are setting the ip address in /etc/network/interfaces.

What are you using as a DNS server in the interfaces file? Is the external LAN registered with a DNS server (that is, is it registered with a domain registrar)? If not, you may have to use a hosts file.


All times are GMT -5. The time now is 02:01 PM.