From cf1211078e09722424a54e065c24738b67369443 Mon Sep 17 00:00:00 2001 From: "Jon \"The Nice Guy\" Spriggs" Date: Mon, 24 May 2021 14:36:32 +0100 Subject: [PATCH] Update public_network.mdx --- .../content/docs/networking/public_network.mdx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/website/content/docs/networking/public_network.mdx b/website/content/docs/networking/public_network.mdx index dcee68a31..e658b934f 100644 --- a/website/content/docs/networking/public_network.mdx +++ b/website/content/docs/networking/public_network.mdx @@ -152,5 +152,18 @@ Vagrant.configure("2") do |config| end ``` -Note the above is fairly complex and may be guest OS specific, but we +Or, an alternative, simpler version, assuming you get DHCP from your public network: + +```ruby +Vagrant.configure("2") do |config| + config.vm.network "public_network" + + # default router + config.vm.provision "shell", + run: "always", + inline: "ip route del default via 10.0.2.2 || true" +end +``` + +Note the above are fairly complex and will be guest OS specific, but we document the rough idea of how to do it because it is a common question.