View Issue Details

IDProjectCategoryView StatusLast Update
0007470CentOS-7yumpublic2014-08-09 18:15
Reporterdmaziuk Assigned To 
PrioritylowSeverityminorReproducibilityrandom
Status newResolutionopen 
Product Version7.0-1406 
Summary0007470: don't use ipv6 if not enabled
DescriptionThis is from yum-cron, actually:

/etc/cron.hourly/0yum-hourly.cron:

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os error was
14: curl#7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"

/etc/sysconfig/network-scripts/ifcfg-enp2s0f0 has IPV6INIT="no" and ip reports "inet6 fe80::225:90ff:fe2d:600a/64 scope link"

So basically if dns gives you AAAA record, that's only useful when ipv6 is on.
TagsNo tags attached.
abrt_hash
URL

Activities

dmaziuk

dmaziuk

2014-08-06 19:50

reporter   ~0020602

PS. one option is to add something like postfix's "protocols = [ipv4|ipv6|all]" to yum.conf and let sysadmin fix it.
Evolution

Evolution

2014-08-07 10:44

reporter   ~0020604

That option exists.

ip_resolve={4|6]

see man yum.conf for more detail and the other new options.
dmaziuk

dmaziuk

2014-08-07 23:39

reporter   ~0020617

Great. When all else fails I'll read man yum.conf...

Seriously, though, thank you and apologies for the noise.
gm.outside

gm.outside

2014-08-09 15:20

reporter   ~0020639

Also, if you really don't need IPv6 on that machine, it's much better to disable it at the kernel level with ipv6.disable=1 on the kernel command-line (e.g. by adding it to /etc/default/grub and running grub2-mkconfig afterwards). This way the whole IPv6 stack is disabled, you get more memory for your applications and your networking activities a bit faster since there is no dual network stack -- a total win for an IPv4 system, in my opinion :).

Oh, and you don't need to touch configs to instruct yum to use IPv4 only in this case :)))
dmaziuk

dmaziuk

2014-08-09 18:15

reporter   ~0020643

True, but that happens after you got used to systemd, grub2, nmtui, unfsck'ed the network after removing avahi, and dust has settled in general. ;-)

Thx

Issue History

Date Modified Username Field Change
2014-08-06 19:47 dmaziuk New Issue
2014-08-06 19:50 dmaziuk Note Added: 0020602
2014-08-07 10:44 Evolution Note Added: 0020604
2014-08-07 23:39 dmaziuk Note Added: 0020617
2014-08-09 15:20 gm.outside Note Added: 0020639
2014-08-09 18:15 dmaziuk Note Added: 0020643