2017-05-28 70 views
0

我希望10.211.11.100:8080轉發到帶有ip 10.211.11.100的機器上的端口4369。如何配置vagrant以使用相同的轉發端口用於不同ips上的不同節點?

我想10.211.11.101:8080轉發到與ip 10.211.11.101機器上的端口4369。

如果我嘗試這樣:

config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.100 
config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.101 

我得到一個錯誤信息是這樣的:

Vagrant cannot forward the specified ports on this VM, since they 
would collide with some other application that is already listening 
on these ports. The forwarded port to 4369 is already in use 
on the host machine. 

必須有指定不同的IP地址相同的端口號的方式。我將不勝感激任何幫助。

回答

0

你使用的是哪一個流浪版本?

正常Support for port forwarding in an IP aliased environment問題一直以來流浪漢1.9.2

+0

流浪漢 - 版本 流浪1.9.5 – chaimp

+0

固定雖然,謝謝你引用這一點。我發現這個: https://github.com/mitchellh/vagrant/issues/8423#issuecomment-296209638 顯然我需要降級?試着現在... – chaimp

+0

這沒有奏效 – chaimp

相關問題