Hi,
I would like to set up a Raspberry Pi with Network (eth0) and a virtual interface on this device. The reason is two applications running on port 80 and this would be the easiest way to solve this.
I searched around but can´t find a solution to set it up via HOST (NetworkManager) or via container . Is there an easy solution to do this or am I simply wrong and there is no way to do this with balena at the moment?
In this simple example, service1 will have port 80 on the host OS open, and service2 will have port 8080 in the host OS forwarded to port 80 within the container.
Thanks for those information. I am aware of those features but in my case it’s required to run in different up ranges.
What I managed now is to create a virtual interface with ifconfig via host os. But if I wand to deploy devices it would be great to automate this.
So from what I understand, you are creating an alias with ifconfig or ip that is called eth0:0. This is an obsolete way for doing this, since you may assign multiple IP addresses on a single interface now. You can do that with NetworkManager. If you search for NetworkManager multiple IP addresses you will come across a lot of answers. If you have any difficulties please let us know.