如何配置vagrant为不同IP上的不同节点使用相同的转发端口?

如何配置vagrant为不同IP上的不同节点使用相同的转发端口?,vagrant,virtual-machine,Vagrant,Virtual Machine,我希望10.211.11.100:8080转发到ip为10.211.11.100的机器上的端口4399 我希望10.211.11.101:8080转发到ip为10.211.11.101的机器上的端口4399 如果我尝试这样的方法: config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.100 config.vm.network :forwarded_port, guest: 4369, hos

我希望10.211.11.100:8080转发到ip为10.211.11.100的机器上的端口4399

我希望10.211.11.101:8080转发到ip为10.211.11.101的机器上的端口4399

如果我尝试这样的方法:

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.
我收到如下错误消息:

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上指定相同的端口号。我将非常感谢您的帮助。

您使用的是哪个流浪汉版本


通常情况下,这个问题在vagrant 1.9.2版之后已经解决了,不过,感谢您参考这个版本。我发现:显然我需要降级?现在就试试看。。。