April-10th-2019, 09:35 AM
Hey Armin,
I will try to make it clearer:
With the "standard-configuration" I meant the ip-adress and subnetmask that are used when non are specified by the user.
I have the same behaviour using the "old"-Image version and setting the network configuration in the file "/etc/network/interfaces.d/cifx0", as if using the "new" Version and declaring the network-parameters using the environment variables.
My "/etc/network/interfaces.d/cifx0"-File of the "new"-Image-Version with network-params specified through environment variables looks like this:
But the network configuration is as followed:
And the "Network"->"Lan"-Section of the Control Panel shows a subnet-mask of "255.0.0.0" for the "cifx0"-adapter.
Thanks!
BR,
Andi
I will try to make it clearer:
Quote:And what do you mean with the standard one? In case you don't specify anything the container falls back to 192.168.253.1. Is it this address you mean as standard one?
With the "standard-configuration" I meant the ip-adress and subnetmask that are used when non are specified by the user.
Quote:Do you mean the new implemented function to set those values across environment variables during container's start now?
I have the same behaviour using the "old"-Image version and setting the network configuration in the file "/etc/network/interfaces.d/cifx0", as if using the "new" Version and declaring the network-parameters using the environment variables.
Quote:The settings of what is configured is stored in the file /etc/network/interfaces.d/cifx0 dynamically during container's start. So in your case to make sure the file has the correct values use the embedded console of portainer.io web GUI to jump into the container and print out what's in the file.
My "/etc/network/interfaces.d/cifx0"-File of the "new"-Image-Version with network-params specified through environment variables looks like this:
Code:
auto cifx0
iface cifx0 inet static
address 10.7.1.115
network 255.255.255.0
gateway 10.7.1.1
But the network configuration is as followed:
Code:
5: cifx0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 00:02:a2:49:bc:f0 brd ff:ff:ff:ff:ff:ff
inet 10.7.1.115/8 brd 10.255.255.255 scope global cifx0
valid_lft forever preferred_lft forever
And the "Network"->"Lan"-Section of the Control Panel shows a subnet-mask of "255.0.0.0" for the "cifx0"-adapter.
Thanks!
BR,
Andi