Jump to content

Need help setting up docker IP's in 6.4


wgstarks

Recommended Posts

Two corrections to make:

1. The interface address can not end on .0. Use for example 10.0.90.2

2. The gateway address must be in the same subnet as the interface. For example 10.0.90.1 (your router must use this IP address)

 

Docker will not create br1 because of the wrong assignments.

 

Link to comment
6 minutes ago, bonienl said:

How is your eth0 configured, can you post a screenshot?

2870yl3.jpg

 

Looks like maybe it worked? I was able to select br1 for binhex-deluge and set static IP 10.0.1.200, but now Radarr can't connect to Deluge after entering the new IP in the settings. Both are on br1.

Link to comment

Can you ping inside one container to the other container or gateway.

Eg. From my Tonido container I ping the gateway.

docker exec -it Tonido /bin/bash
root@9366a668ea9e:/# ping 10.0.105.1
PING 10.0.105.1 (10.0.105.1) 56(84) bytes of data.
64 bytes from 10.0.105.1: icmp_seq=1 ttl=64 time=0.421 ms
64 bytes from 10.0.105.1: icmp_seq=2 ttl=64 time=0.380 ms
^C
--- 10.0.105.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1027ms
rtt min/avg/max/mdev = 0.380/0.400/0.421/0.028 ms

 

Link to comment
Last login: Mon Jan 15 18:31:06 2018 from 10.0.1.10
Linux 4.14.13-unRAID.
root@Brunnhilde:~# docker exec -it binhex-delugevpn /bin/bash
[root@4017a32f33fd /]# ping 10.0.1.2
PING 10.0.1.2 (10.0.1.2) 56(84) bytes of data.
64 bytes from 10.0.1.2: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 10.0.1.2: icmp_seq=2 ttl=64 time=0.020 ms
64 bytes from 10.0.1.2: icmp_seq=3 ttl=64 time=0.021 ms
64 bytes from 10.0.1.2: icmp_seq=4 ttl=64 time=0.022 ms
^C
--- 10.0.1.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3079ms
rtt min/avg/max/mdev = 0.020/0.021/0.024/0.005 ms
[root@4017a32f33fd /]# exit
exit
root@Brunnhilde:~# docker exec -it binhex-radarr /bin/bash
[root@25a7af7cd5fd /]# ping 10.0.1.200
PING 10.0.1.200 (10.0.1.200) 56(84) bytes of data.
64 bytes from 10.0.1.200: icmp_seq=1 ttl=64 time=0.022 ms
64 bytes from 10.0.1.200: icmp_seq=2 ttl=64 time=0.021 ms
64 bytes from 10.0.1.200: icmp_seq=3 ttl=64 time=0.018 ms
^C
--- 10.0.1.200 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2062ms
rtt min/avg/max/mdev = 0.018/0.020/0.022/0.004 ms
[root@25a7af7cd5fd /]# exit
exit
root@Brunnhilde:~# docker network inspect br1
[
    {
        "Name": "br1",
        "Id": "45a1955d466afeae1a73fd05e9a79c8cda334b736b6bbb5b9b13578849c12078",
        "Created": "2018-01-15T17:56:31.380096309-05:00",
        "Scope": "local",
        "Driver": "macvlan",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "10.0.1.0/24",
                    "AuxiliaryAddresses": {
                        "server": "10.0.1.21"
                    }
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "25a7af7cd5fdc1307a73b03e0fc1dd1d7bb25953061c880dda538def0b5ba164": {
                "Name": "binhex-radarr",
                "EndpointID": "701ac0e610fc0ab09a686e4f90560b51af09d92eb7ff760c6c40992b1d3cb3ee",
                "MacAddress": "02:42:0a:00:01:02",
                "IPv4Address": "10.0.1.2/24",
                "IPv6Address": ""
            },
            "4017a32f33fd545ef54bc79e2c2b15cf99961aaf74e0bf71afb50c7bdce81a9d": {
                "Name": "binhex-delugevpn",
                "EndpointID": "92c8dd4a949387faea8740878788c46d6972698797760a9918ca132abb4787d7",
                "MacAddress": "02:42:0a:00:01:c8",
                "IPv4Address": "10.0.1.200/24",
                "IPv6Address": ""
            },
            "67d3959e78a196f780448f6119a7b580cfd2db464485fd3083a45687f88644f0": {
                "Name": "binhex-sonarr",
                "EndpointID": "6e8c0cc0800e513d4c3dce429304d0b29abdac1064c8b5a013e2af2082bb20c5",
                "MacAddress": "02:42:0a:00:01:03",
                "IPv4Address": "10.0.1.3/24",
                "IPv6Address": ""
            }
        },
        "Options": {
            "parent": "br1"
        },
        "Labels": {}
    }
]
root@Brunnhilde:~# 

No problems with the pings in both directions.

Link to comment
1 minute ago, wgstarks said:

No problems with the pings in both directions.

 

I don't use these containers myself, but your network connectivity is in place.

Double-check if there no duplicate IP addresses (10.0.1.2, 10.0.1.3 and 10.0.1.200 not accidentally used by another device in your network)

If the above is okay, it has to be something in the settings of the applications.

 

Link to comment

I disabled bridging last night and now can't get it back. I believe everything is set as before.

 

5bbmfl.jpg

 

network.cfg-

# Generated settings:
IFNAME[0]="eth0"
DHCP_KEEPRESOLV="no"
DNS_SERVER1="10.0.1.1"
DHCP6_KEEPRESOLV="no"
DESCRIPTION[0]=""
PROTOCOL[0]=""
USE_DHCP[0]="yes"
IPADDR[0]="10.0.1.20"
NETMASK[0]="255.255.255.0"
GATEWAY[0]="10.0.1.1"
METRIC[0]="211"
USE_DHCP6[0]=""
IPADDR6[0]=""
NETMASK6[0]=""
GATEWAY6[0]=""
PRIVACY6[0]=""
MTU[0]=""
IFNAME[1]="br1"
BRNAME[1]="br1"
BRSTP[1]="no"
BRFD[1]="0"
BRNICS[1]="eth1"
DESCRIPTION[1]=""
PROTOCOL[1]="ipv4"
USE_DHCP[1]="yes"
METRIC[1]=""
USE_DHCP6[1]=""
MTU[1]=""
SYSNICS="2"

Checking br1 I get this-

Linux 4.14.13-unRAID.
root@Brunnhilde:~# docker network inspect br1
[]
Error: No such network: br1
root@Brunnhilde:~#

I even tried rebooting. Did I miss something?

 

brunnhilde-diagnostics-20180116-1908.zip

Link to comment
20 hours ago, bonienl said:

Sounds like Docker got out of sync. Use the below to let Docker rebuild all networks


rm /var/lib/docker/network/files/local-kv.db
/etc/rc.d/rc.docker restart

 

No luck there-

Linux 4.14.13-unRAID.
Last login: Thu Jan 18 10:52:53 -0500 2018 on /dev/pts/0.
root@Brunnhilde:~# rm /var/lib/docker/network/files/local-kv.db
rm: cannot remove '/var/lib/docker/network/files/local-kv.db': No such file or directory
root@Brunnhilde:~#

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...