SCP 1.2 static IP does not work in my environment.
Compute Node IP : 192.168.4.154
VM Private IP : 192.168.4.167
VM Static IP : 172.16.0.10
When i login to the VM via private IP with keypairs, it works.
but when using static IP, it ssh into the hosted compute node, not into the VM.
The iptables and IP configuration of compute node are in the attachment.
Is there anything special I need to config?
Pinned topic SCP 1.2 Static IP not working
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-06-29T07:23:04Z at 2012-06-29T07:23:04Z by JesseVini
JesseVini 270005AJGY14 Posts
Re: SCP 1.2 Static IP not working2012-06-29T07:23:04ZThis is the accepted answer. This is the accepted answer.So I chose a unused static IP and made the following rules applied by myself, and I can ssh into the VM via the StaticIP on the local compute node, So at least 2 rules are left undone in SCP 1.2?
Is this a bug or you guys have some patch or I had not correctly config the SCP?
iptables -t nat -A POSTROUTING -s Private -j SNAT --to-source StaticIP
iptables -t nat -A PREROUTING -d StaticIP -j DNAT --to-destination Private
iptables -t nat -A OUTPUT -d StaticIP -j DNAT --to-destination Private