How to map host ip and port to Hyper-V

1.1       Add an port proxy

netsh interface portproxy add v4tov4 listenport=hostport listenaddres=hostip connectaddress=hypervip connectport=hypervport

 

example:

C:\Windows\system32>netsh interface portproxy add v4tov4 listenport=22 listenaddres=192.168.0.103 connectaddress=192.168.137.52 connectport=22

 

1.2       Check the port proxy

netsh interface portproxy show v4tov4

 

1.3       Delete a port proxy

netsh interface portproxy delete v4tov4 listenaddress=hostip  listenport=hostport

posted on 2015-08-30 10:48  devcfei  阅读(202)  评论(0编辑  收藏  举报