ecsimsw / daily-notes

val contents = myDailyNotes.filter { it.isPublic }
5 stars 0 forks source link

Jeff Li - Vagrant Networking Explained #5

Closed ecsimsw closed 1 year ago

ecsimsw commented 1 year ago

https://blog.jeffli.me/blog/2017/04/22/vagrant-networking-explained/

ecsimsw commented 1 year ago

Three types of vagrant network

ref, https://blog.jeffli.me/blog/2017/04/22/vagrant-networking-explained/

Home Networking Topology

We assume that Vagrant is running in the laptop whose IP address is 192.168.1.10.

Public Networking (bridged networking)

The word public does not mean that the IP addresses have to be public routable IP addresses. Hence it is kind of confusing. The doc also states that bridged networkingwould be more accurate. In fact, public networking is called bridged networking in the early days—see the doc of old version. Just keep one simple rule in mind—if the VM’s assigned IP is in the same subnet of the host, then it is a public networking configuration.

image

Private Networking (virtual router)

image

Forwarded Ports

port forwarding without router

image