0

I've just installed the Ubuntu-Server-18.04.2 from via my virtual machine. I've added 2 network cards, the 1st adapter is a brigged adapter, the 2nd is configured as internal network with the ip: 172.168.16.1

The 1st network adapter receives the ip configuration from my router. So the problem is that I have no connection to the external network, because if I ping google for example, the ping is coming from my internal network adapter with the 172.... So I have no clue how to change it.

Thank you in advance

2
  • Can you please edit your question to include the output of cat /etc/network/interfaces and any other network configuration files you've set? More specifically, how did you configure your internal network's NIC?
    – Kaz Wolfe
    May 20, 2019 at 16:03
  • Edit your question and show me cat /etc/netplan/*.yaml. Start comments to me with @heynnema or I may miss them. Report back.
    – heynnema
    May 20, 2019 at 16:55

1 Answer 1

0

This sounds like a DNS issue.

Add a header to your resolvconf configuration file. Create or edit the file, "/etc/resolvconf/resolv.conf.d/head". Add your preference to it.

/etc/resolvconf/resolv.conf.d/head:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN


nameserver 8.8.8.8
search [yourpreference.com]

See override dns nameserver for more information.

7
  • The resolv.conf is just in the etc directory. Do I need to create the folder resolvconf and move the .conf file into it?
    – MrDevice
    May 20, 2019 at 16:15
  • You'll need to create it.
    – Sam
    May 20, 2019 at 16:25
  • @Sam how do you figure this is a DNS issue?
    – heynnema
    May 20, 2019 at 16:56
  • I've disconnected the internal adapter and now I can communicate with the external network through my router. I would also claim that this is not a DNS issue, as I've tried your method but it hasn't worked.
    – MrDevice
    May 20, 2019 at 17:28
  • If you try to ping Google, your DNS decides which adapter answers first. Setting your DNS manually to use one or the other will accomplish what you requested.
    – Sam
    May 20, 2019 at 18:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .