Change docker-sys interface settings

Hello,
I would like to change the docker-sys ip address range because our company uses, among others, this range. So networking is nearly impossible to use.
For example If I want to SSH into the system, it thinks I am in the same network and sends the answer packets directly out instead of it’s default gateway.
My IP: 172.18.10.52/24
docker-sys IP: 172.18.42.2/16

The IP 172.18.10.52 is included in the range 172.18.42.2/16 so the system, correctly from his perspective, doesn’t use it’s default gateway.

Kind Regards,
Michael

Hmm not sure if this is the answer you seek, as your wording conflates different things as the same thing.

It seems like you want to set the RancherOS User Docker’s bridge ip range to something other than the default.

So I ended up on this page: https://docs.docker.com/engine/userguide/networking/default_network/custom-docker0/

Then applying that to RancherOS, looks like this is the correct docs page: https://docs.rancher.com/os/configuration/docker/

Once interpreted should yield this command:

sudo ros config set rancher.docker.extra_args ['--bip=CIDR','--fixed-cidr=CIDR']

or perhaps this cloud-config:

#cloud-config
rancher:
  docker:
    extra_args: ['--bip=CIDR','--fixed-cidr=CIDR']

Hope this gets things going in the correct direction for you there Michael :slight_smile:

2 Likes

Hey,

sorry for the very very late reply. I totaly forgot about the topic. After re-evaluating RancherOS I stumbled accross the same problem and found this topic via google, later realizing that I wrote the question.
Your answer led to my desired change:

#cloud-config
rancher:
  system_docker:
    extra_args: ['--bip=172.19.42.1/24']

Thank you for your help, even if it’s 2 years to late :slight_smile: