Ask Your Question
0

Access a server with floating ip through another project

asked 2018-11-01 13:46:39 -0500

sivadmp gravatar image

Hello, I have two PA and PB projects with their respective network

proy PA 
net: netPA 
subnet: subnet-pa:  192.168.12.0/24

Proy PB 
net: netPB 
subnet: subnet-pb:  192.168.12.0/24

Within each project I have 1 VM created with its floating IP

VM1(PA)
IP int: 192.168.12.20
floating IP: 172.29.0.30
open ports: 22,80,443

VM2(PB)
IP int: 192.168.12.100
floating IP: 172.29.0.57
open ports: 22,80,443

When I want to access the VM2 website from VM1 using the floating IP 172.29.0.57 it does not allow me

I execute the traceroute

$ traceroute 172.29.0.157
traceroute to 172.29.0.157 (172.29.0.157), 30 hops max, 60 byte packets
 1  192.168.12.1 (192.168.12.1)  0.470 ms  0.449 ms  0.437 ms
 2  vm2 (172.29.0.157)  0.525 ms  0.503 ms  0.498 ms

I think I have a problem with the 192.168.12.0/24 subnet???

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-11-14 12:50:42 -0500

reynoni gravatar image

Do you have static routes set up between the subnets? I think it will be very difficult for your subnets to communicate especially if they share IP addresses.

For example, if VM1 IP was 192.168.12.50 in it's subnet, and VM2 was the same however in it's own subnet, how would the router ever know which one you are trying to route to?

So first off, I'd change one of the subnets to a slightly different value, 192.168.13.0/24 if it's available.

Through the openstack network interface, share the 192.168.12.0/24 network and create a port on the 192.168.13.0/24 subnet. After the port has been created, find the IP of the port and add a static route to the 192.168.12.0/24 that signals for the traffic intended for the .12. network goes through the port created and found above.

This is how we allow inter-project access through openstack. You will also probably have to set up security groups to allow access unless you have your instances wide open.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-11-01 13:46:39 -0500

Seen: 55 times

Last updated: Nov 14 '18