1

How do you get arch linux on a virtual machine using internal network with a static ip to connect outside of the network?

I am having trouble connecting it outside of the internal network. I am able to connect to the other network machines and ping them and drill/dig command outside machines.

update:

added ip address add 192.168.1.106 broadcast 255.255.255.0 dev enp0s3

added ip route add default via 192.168.1.1 dev enp0s3

added to /etc/resolv.conf:

[Resolve]

nameserver 192.168.1.1

Able to get a static ip and it appears on arp table on router. Able to ping outside network and pacman works.

Update Solved: The problem was the nameserver and [Resolve] had a typo. Had to put [Resolve] and then nameserver.

closed as unclear what you're asking by jasonwryan, G-Man, Romeo Ninov, ilkkachu, Timothy Martin May 22 '18 at 16:56

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What's the output of ip route? – Torin May 22 '18 at 7:45
  • Thank you for adding the information to your question. When you add it, please consider: if it's code (i.e. output from a terminal) please select it and use the {} button to format it. Otherwise you lose line breaks and it's harder to read. – roaima May 22 '18 at 11:21
  • If your question wouldn't be closed, you could now create a self-answered post. More luck next time! – peterh May 23 '18 at 22:13