[neutron] exposing ip address of external Network from within the virtual machine
I have two networks, one internal to openstack " internal_network" 10.10.10.0/24 and an external Network "public" which is connected to an external network 192.168.100.0/24 in order to connect instances to "public" network, I created a router of which the gateway is public network, and also connected to internal_network, and used floating ip to access vm instances from the external network (public), but the problem I have encountered now is that I want to expose the and Ip from the external network inside the vm instance , but when I try to directly attach an interface from the external network to the instance, I don't get and Ip address inside the instance, and even if I assign it manually it still doesn't work, I can't use enable DHCP with public network because it already has its own external dhcp server. How can I solve this problem?
Hi,
I want to expose the and Ip from the external network inside the vm instance , but when I try to directly attach an interface from the external network to the instance, I don't get and Ip address inside the instance, and even if I assign it manually it still doesn't work, I can't use enable DHCP with public network because it already has its own external dhcp server.
when you assign the IP manually, does it match what neutron shows for that port? To get an IP from an external network without DHCP you can use config drive during instance creation, cloud-init is required for that. Or if the instance already exists you can create a port with the fixed IP and assign that port to the instance. Then you still need to configure the IP within the instance, but then it should work. Regards, Eugen Zitat von A Monster <amonster369@gmail.com>:
I have two networks, one internal to openstack " internal_network" 10.10.10.0/24 and an external Network "public" which is connected to an external network 192.168.100.0/24 in order to connect instances to "public" network, I created a router of which the gateway is public network, and also connected to internal_network, and used floating ip to access vm instances from the external network (public), but the problem I have encountered now is that I want to expose the and Ip from the external network inside the vm instance , but when I try to directly attach an interface from the external network to the instance, I don't get and Ip address inside the instance, and even if I assign it manually it still doesn't work, I can't use enable DHCP with public network because it already has its own external dhcp server. How can I solve this problem?
participants (2)
-
A Monster
-
Eugen Block