<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Hi,</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On czwartek, 7 kwietnia 2022 17:04:26 CEST A Monster wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> When I attach an interface to an external network, openstack gives an ip</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> address of 192.168.10.13 to the instance,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Inside the instance, I can see a new network interface, but it doesn't get</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> an ip address automatically, and when I configure it to have 192.169.10.13</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> manually, I still cannot ping the other ips on this network, and I cannot</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> ping 192.168.10.13 from the outside</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I think it's not feasible to attach instances to external networks.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">External network in Neutron is the same L2 network as any other. The only difference is that such network is marked as "external" so neutron knows that can use floating Ips from it and use that network as router's gateway. </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Plugging instance into such network is totally valid and should works.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Maybe Your external network have disabled dhcp and that's why VM don't get IP address automatically.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Please check first if You configured proper netmask manually. Then please check step by step where Your packets are dropped. Maybe <a href="http://kaplonski.pl/blog/neutron-where-is-my-packet-2/">http://kaplonski.pl/blog/neutron-where-is-my-packet-2/</a> will be somehow helpful for You. This is mostly about vxlan (tenant) network but there is flat network used for router gateway there and traffic from your vm should go the same path as traffic from the router's gateway in that post.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Slawek Kaplonski</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Principal Software Engineer</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Red Hat</p>
</body>
</html>