Okay I've searched and searched, the internet and these forums. And the documentation.
The problem is, and I know it's not meant to be used, but I'm trying to use 169.254.0.0/23 in a lab environment.
This has worked fine in all other flavors of linux, and other versions of CentOS, even works fine in Windows (bleh), but in 7 it's not working.
First off, I've disabled "predictable names" ... because they seem to be anything but, in favor of the old eth# naming.
Second, I do have NOZEROCONF=YES in /etc/sysconfig/network to prevent the 169.254.0.0/16 null route from being added.
When I set the ifcfg-eth0 file as follows:
DEVICE=eth0
ONBOOT=yes
IPADDR =169.254.0.42
PREFIX=23
and even if I add
SCOPE=global
then I execute 'ip a' to see what the scope is, it shows as scope link!
2: eth0: <blahblah>
link/ether (MAC)
inet 169.254.0.42/23 scope link eth0
valid_lft forever preferred_lft forever
No matter what I do at this stage, adding default routes, static routes, etc, I can ping anything else on the 169.254.0.0/23 network, but I can't get out.
if I execute these commands, everything works:
ip addr del 169.254.0.42/23 dev eth0
ip addr add 169.254.0.42/23 scope global dev eth0
How can I force the scope to be global without having to manually (or through cron) run these commands in the event of an interface flap, reboot, or power outage and recovery?
Thanks much!
Scope being set to Link on 169.254.0.0
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Scope being set to Link on 169.254.0.0
Have you tried 'nmcli' or 'nmtui'?
In RHEL7/CentOS7 the recommended way is to use NetworkManager.service .
In RHEL7/CentOS7 the recommended way is to use NetworkManager.service .
Re: Scope being set to Link on 169.254.0.0
Why did you turn off NOZEROCONF= when it's the very thing you're trying to do?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Scope being set to Link on 169.254.0.0
Why do you want to use that range even though you know that it is subset of 169.254.0.0/16?Merlin75 wrote:The problem is, and I know it's not meant to be used, but I'm trying to use 169.254.0.0/23 in a lab environment.
If I had a lab, I would choose a subrange from the three private IPv4 ranges and set dnsmasq on some 24/7 machine to DHCP settings for all others.
Re: Scope being set to Link on 169.254.0.0
That's link local see https://en.wikipedia.org/wiki/Link-local_address