Merge pull request #12388 from JonTheNiceGuy/patch-1
Update "Default Router" shell script in publc_network.mdx documentation
This commit is contained in:
commit
7528cdc235
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user