and the container with name myrouted had 192.168.2.200 as an ip
Edit : It seems that when i am using a custom image ( imported from a tar.gz ) my container does not take 192.168.2.200 as an IP ( either doing this localy or remotely ).
Yes the problem is that i create a container with a custom image which has been imported from a tarball and i use these profile settings for getting a subnet ip.
As @stgraber suggested you should ensure your container image doesn’t have any network config inside it that tries to get its IP configuration via DHCP. Often this causes the static IP added by the routed NIC to be removed as it tries to allocate one via DHCP (which will fail).
Thanks Thomas. I am inside the container which i have created from this custom image.
I am at /etc/network and i have found the file interfaces along with if-pre-up.d and if-up.d.
What am i suppose to doing know ? i did
cat interfaces
but i took a message which says that ifupdown has been replaced by netplan(5)
I found this file. So if i understand correctly i must delete this file from the container and then export the image as a tar.gz and after that doing the above procedure will have as a result tha wlan ip from the local subnet , right ?
has a result to create a container with image CustomImage and ip 192.168.2.200 which can ping everything in the same wlan subnet and www.google.com for example.