Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
Emerging Member
Posts: 92
Registered: ‎11-08-2015
Kudos: 11
Solutions: 4

Unable to change UNMS Docker IP (172.17.0.1/30)

Anyone have advice on how to accomplish this? I've tried the directions in the Install page on GitHub, that is:

 

$ curl -fsSL https://raw.githubusercontent.com/Ubiquiti-App/UNMS/master/install.sh > /tmp/unms_install.sh 
$ sudo bash /tmp/unms_install.sh --subnet 172.21.0.1/24

It worked a few days ago, but I had to rebuild from scratch and now it doesn't seem to be changing the IP, as evidenced from ifconfig, where I've managed to change docker0 to the range I prefer, but not br-foobar.

 

 

br-9e120f62110f Link encap:Ethernet  HWaddr 02:42:d2:4a:b0:53  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::42:d2ff:fe4a:b053/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1273 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1222 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:102023 (102.0 KB)  TX bytes:1798746 (1.7 MB)

br-d73931991b9d Link encap:Ethernet  HWaddr 02:42:c8:36:7f:b8  
          inet addr:172.18.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          inet6 addr: fe80::42:c8ff:fe36:7fb8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:112 (112.0 B)  TX bytes:648 (648.0 B)

docker0   Link encap:Ethernet  HWaddr 02:42:54:07:ea:53  
          inet addr:172.20.0.2  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::42:54ff:fe07:ea53/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:588 (588.0 B)  TX bytes:648 (648.0 B)

 

Your thoughts are appreciated!

Emerging Member
Posts: 92
Registered: ‎11-08-2015
Kudos: 11
Solutions: 4

Re: Unable to change UNMS Docker IP (172.17.0.1/30)

Found a workaround in the other thread on this:

 

sudo chmod -R 755 /home/unms/app
cd /home/unms/app
sudo docker-compose -p unms down
sudo docker network create unms_default --subnet 192.168.31.1/24
sudo docker network create unms_internal --subnet 192.168.32.1/24
sudo docker-compose -p unms up -d

Just be aware that this only fixes the issue until you bring down the container and bring it back up. Then you have to run these commands again. :/ Posted in the other thread asking about a way to make this sticky.

Highlighted
Ubiquiti Employee
Posts: 316
Registered: ‎01-26-2017
Kudos: 82
Solutions: 32

Re: Unable to change UNMS Docker IP (172.17.0.1/30)

@jamesb2147 The --subnet parameter will not work until the next version. It should not have been included on the wiki yet. I've removed that section and will add it again after the release. The release is planned for next week. 

Reply