Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd 7.1.1-r1 always assigns IPv6 address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mortonP
n00b
n00b


Joined: 22 Dec 2015
Posts: 34

PostPosted: Fri Apr 19, 2019 12:46 pm    Post subject: dhcpcd 7.1.1-r1 always assigns IPv6 address Reply with quote

Hello forum!
I have in

/etc/dhcpcd.conf
Code:
noipv6
noipv6rs


and in /etc/conf.d/net
Code:
config_eth0="dhcpcd"
enable_ipv6_eth0="false"


so eth0 only was assigned an IPv4 address.

This worked up until and including dhcpcd 7.0.1, with the upgrade now to dhcpcd 7.1.1-r1 my eth0 is also assigned an inet6 address, which I do not want.

The configs did not change, this is a plain OpenRC system, no networkmanager or similar stuff.

Downgrading to dhcpcd 7.0.1 and all is fine again.
I would appreciate help in what has changed - or should I file a bug in the bugtracker?

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6476

PostPosted: Fri Apr 19, 2019 2:20 pm    Post subject: Reply with quote

You need to disable ipv6ra_autoconf too, or just set ipv4only.
Back to top
View user's profile Send private message
mortonP
n00b
n00b


Joined: 22 Dec 2015
Posts: 34

PostPosted: Fri Apr 19, 2019 7:25 pm    Post subject: Reply with quote

I didn't know this options.... thanks for hints, but...

With 7.0.1 everything is ok.
With 7.1.1 I always get an inet6 address.

So I set all flags for dhcpcd to not use ipv6.
I compile dhcpcd with -ipv6 use flag.
I even kill the running dhcpcd process(!)

...and now - I know how insane this sounds - but eth0 still shows upon "ifconfig eth0 up":
Code:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 .............. prefixlen 64  scopeid 0x20<link>
        inet6 .............. prefixlen 64  scopeid 0x0<global>
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)

...who is setting this inet6 addresses for eth0?
Why do I DON'T get them when dhcpcd 7.0.1 is running?

There is nothing running on this box, not even X, not docker, nothing....
wtf?!?

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2563

PostPosted: Fri Apr 19, 2019 8:13 pm    Post subject: Reply with quote

What's wrong with ipv6? Pretty much all my systems use it, for years now.

By default, the system comes up with ipv6. If your router supports ipv6 then you'll get a global address too.

It takes a little more attention on the firewall config, but otherwise I don't know what the problem is. If your home router supports ipv6 it probably also has a 'deny everything ipv6' firewall setting too.

If your router/isp does NOT support ipv6 then it's literally just noise in the system, nothing except your network can reach it. If you don't use it deliberately in that case then it probably won't be used.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6476

PostPosted: Sat Apr 20, 2019 3:16 am    Post subject: Reply with quote

mortonP wrote:
...who is setting this inet6 addresses for eth0?

The kernel does, unless you disable it entirely.

dhcpcd 7.0.1 was probably deleting the existing address, which would be a bug when it's configured to not touch it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum