Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Why do I have ipv6 addr?

Featured Replies

Hello everyone,

 

I'm on unraid 6.11.5. I have ipv6 disabled in my network configuration, but when I do ip addr show, I see multiple ipv6 in local-link. Problem is when I want to access samba share \\servername, it return a fe80 addr that I can't access (even when on same switch).

 

ip addr show (part of it)

image.png.ad35c7e6800a1682519627735f0dcbde.png

network configuration

image.thumb.png.61c6236ef846fb5441d1b93cef187dc6.png

 

is there a way to not have ipv6? I tried enabling ipv6, the server received and address but I still receive the fe80 addr when I ping (and I can't find where this address is because I don't have any ipv6 dns).

 

Is there a way to completely disable ipv6?

 

Thank you

Solved by bonienl

When IPv4 only is used all the "regular" interfaces have no IPv6 assignments at all

Example

217: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:36:9f:79:84:ac brd ff:ff:ff:ff:ff:ff
    inet 10.0.101.13/24 scope global br0
       valid_lft forever preferred_lft forever
218: br0.2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:36:9f:79:84:ac brd ff:ff:ff:ff:ff:ff
219: br0.3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:36:9f:79:84:ac brd ff:ff:ff:ff:ff:ff
220: br0.4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:36:9f:79:84:ac brd ff:ff:ff:ff:ff:ff
221: br0.5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:36:9f:79:84:ac brd ff:ff:ff:ff:ff:ff
222: br0.6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
224: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:36:9f:79:84:ad brd ff:ff:ff:ff:ff:ff
    inet 10.0.101.84/24 brd 10.0.101.255 scope global dynamic noprefixroute br1
       valid_lft 85402sec preferred_lft 74602sec

 

In your picture the IPv6 assignments are to virtual interfaces (veth).

Make sure your docker configuration and docker containers are not configured for ipv6.

 

As a test disable the docker and vm services and check again.

 

  • Author

I don't see anything related to ipv6 in this.

 

image.thumb.png.d89808d4d080692f0abe99dec4ab16e4.png

 

Could it be because I've put ipv6 once, it's now stuck with it?

 

I'm also seeing ipv6 on other interface after docker is down

image.thumb.png.8e06b99e6f32148b1cf34559fdcd43aa.png

Edited by Nodiaque

Your "regular" interface is br0, which is ipv4 only

 

Try the following:

- Re-enable IPv6 for br0 (docker and vm services must be stopped to do this)

- Go to docker configuration and if any IPv6 assignment is checked, uncheck it

- Reconfigure br0 back to ipv4 only again

- Start docker and vm services

 

  • Author

No ipv6 in docker:

image.thumb.png.a621ceb81839c22cf0e421885c63366c.png

 

and network setting has ipv4 + 6 enabled

image.thumb.png.87f2b79d16046fe6b20932163c6bc311.png

image.thumb.png.b4f5c1ae7fba2004c169fbb321809197.png

if I try to ping my server, something I get ipv4 other time ipv6 fe80

image.png.f65eedde21374fe5ea3d5594c319e467.png

 

I seems to get ip from br-22a....

image.thumb.png.bc1b969a778e14df388560342e10704b.png

 

If I turn back ipv4 only (I also disabled bonding cause I don't use it anyway)

image.thumb.png.9a696257aa58e08e64242ac79c8215ac.png

 

image.png.56240930765e1b68d3d37cb41fb90761.png

 

still have some int6 ip, docker isn't running nor vm

 

edit: but when I ping, I always get ipv4 now. So, could it be a specific docker guest that's doing that?

Edited by Nodiaque

br-22a634b77f67 is created by a docker container, you need to find out which container

 

  • Author

but docker is disabled

 

edit: Oh! could it be my custom ducker network? But docker is stopped so it shouldn't be there like we see in the network tab?

Edited by Nodiaque

A container created this interface, it won't go away when you stop docker.

 

If you can't find out, reboot your system but don't autostart docker containers, that should clear it.

 

 

  • Author

ok, if I restart unraid and prevent all container from starting up?

1 minute ago, Nodiaque said:

ok, if I restart unraid and prevent all container from starting up?

 

We were typing at the same time....

Yes you should do that.

 

  • Author

ok, so right after restart, I'm like this with docker daemon down

 

image.png.26a5ac59e14f34853eb174f20eebe058.png

image.thumb.png.19d9a38320ab3d8c1a35e1f9f183efe5.png

 

I start the docker daemon, no docker is running

image.thumb.png.dc917922961d133aab1f6c9cd7c7867e.png

image.png.b13bd743f87f76ab9d501fefe5e470ae.png

Here the docker network ls

image.png.1ad45857a2eee8a76507551eea9f4266.png

 

now ping randomly reply either ipv4 or ipv6, but the ipv6 work

image.thumb.png.17ce91c15a937ea6bee5b0cffc7d51c7.png

 

the only one that have ipv6 right now is the shim-br0

 

Edit: I've ran docker network inspect on all docker network, they all have enableipv6: false

 

I didn't start any docker yet

 

Edited by Nodiaque

8 minutes ago, Nodiaque said:

the only one that have ipv6 right now is the shim-br0

 

The shim-br0 interface is created because host access to custom network is enabled.

If you don't need host access, you should disable it under Docker settings

 

I put on my todo list to include shim interfaces as well when not using ipv6. Merci :) 

 

You can manually disable ipv6 for this interface by doing

echo 1 > /proc/sys/net/ipv6/conf/shim-br0/disable_ipv6

 

  • Author

Ah, no I need it, specially since my DNS run on docker (and many db and stuff). When I disable that, it crash many stuff.

 

I tried starting 1 by 1 docker, 2 started and already found a problem.

image.png.5fae0dbc2bdb55a1946209bacfc2dac0.png

 

1rst docker that started was on br0, which changed nothing in the output of the command.

The 2nd docker is on my-bridge, which is the br-22a.... It added a new entry (#12) with ipv6 and it forced br-22... to get ipv6.

 

I'll try with the shim ipv6 off see if it fix

2 minutes ago, Nodiaque said:

The 2nd docker is on my-bridge

 

You need to delete and recreate this network "'my-bridge" without ipv6 settings.

 

  • Author

but it already have enableipv6: false

 

  "Name": "my-bridge",
        "Id": "22a634b77f67e5e8415aecbd20ff05b0c784f4ff29d740bc2b365068745c3eda",
        "Created": "2023-02-10T18:42:56.546787388-05:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "192.168.255.0/24",
                    "Gateway": "192.168.255.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {},
        "Labels": {}

 

3 minutes ago, Nodiaque said:

but it already have enableipv6: false

 

Yes config looks alright, docker apparently doesn't fully disable ipv6 and always create the link-local address

 

I did a quick test,

docker network create my-bridge --subnet=192.168.255.0/24 --gateway=192.168.255.1

 

# docker network inspect my-bridge
[
    {
        "Name": "my-bridge",
        "Id": "a92c67493cc6ae2dc42c23b538c6d2eae3faf0498b456a017edddad091a3d8ed",
        "Created": "2023-05-02T19:30:31.173992897+02:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "192.168.255.0/24",
                    "Gateway": "192.168.255.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {},
        "Labels": {}
    }
]

 

 

268: br-a92c67493cc6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:9a:6e:fa:95 brd ff:ff:ff:ff:ff:ff
    inet 192.168.255.1/24 brd 192.168.255.255 scope global br-a92c67493cc6
       valid_lft forever preferred_lft forever

 

No IPv6 address.

 

I am using Unraid 6.12.0-rc5 with docker version 20.10.23

 

  • Author

I don't have any ipv6 address until a docker start on it, that's the weird thing. I'll see with shim disabled, I'm currently rebooting to erase all trace of it

  • Author

Hmmm... do I need to put the command you gave me un a script for each reboot? Because I still have ipv6 on shim. I also see ipv6 on loopback

 

image.png.417923a35b8804e79772627f9a3eccaf.png

 

This is after restart and starting docker daemon, but no docker. We can see the custom bridge doesn't have IPv6 yet

  • Author

hmmm... I turned off docker and decided to go look in the shim place. Shim isn't there but found br-2.... and:

image.png.c0f0f8110ec8381983a2dd49917e3cd2.png

There's also a all folder, can I simply change this one to 1 (because it's also at 0)?

Edited by Nodiaque

1 minute ago, Nodiaque said:

Hmmm... do I need to put the command you gave me un a script for each reboot?

 

The command I gave is a temporary fixe and does not survive a reboot (you need to run it again)

 

1 minute ago, Nodiaque said:

I also see ipv6 on loopback

 

That is correct, loopback interface is configured for both ipv4 and ipv6. It won't interfere with docker

 

  • Author
1 minute ago, bonienl said:

 

The command I gave is a temporary fixe and does not survive a reboot (you need to run it again)

 

Ok, problem is when I run it before docker, it says path not found cause shim-br0 doesn,t exist. If I create it after docker is ran, it's too late. Then when I turn off docker, it's gone.

 

Also, all other interface (including default and all) have 0 in disable_ipv6. Shouldn't they all have 1 since I disabled ipv6?

2 minutes ago, Nodiaque said:

Shim isn't there

When docker is stopped all the shim interfaces are removed, they only exist when docker is running

 

3 minutes ago, Nodiaque said:

can I simply change this one to 1

You can, but look at my test with Unraid 6.12.0-rc5

 

  • Author

yeah I understand with 6.12, I'm on 6.11. Might be something different in 6.12? Because as you can see, mine doesn't work. When I start docker and put shim 1, it still has a ipv6

 

edit: I put it in all and it worked, shim doesn't have ipv6. Now the problem is how I make this permanent accross reboot because even user script won't be fast enough

 

also, I must test booting these vm and see if it get one

Edited by Nodiaque

  • Author

It worked when I put all disable_ipv6 = 1. Even loopback doesn't have inet6 anymore and I started the vm that "spawned" the inet6 on the br-2 earlier and nothing

 

image.png.255fac77810b573e02c0d15caa5a0c94.png

 

Might be a 6.11.5 bug? Would be good when someone select ipv4 only to really disable it everywhere like in all.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.