[opensuse] Why no IPv4 link local address?
![](https://seccdn.libravatar.org/avatar/ba86f283d614d2cd9b6116140eaddded.jpg?s=120&d=mm&r=g)
I just tried an experiment to see if a pair of computers, running openSUSE, could connect via IPv4 link local addresses. In Windows, when DHCP fails, it reverts to a link local address in the 169.254.0.0/16 range. This makes it possible to connect two computers with just an Ethernet cable or ad hoc WiFi connection. However, I've found that openSUSE does not do this, though IPv6 link local works. Any idea why reverting to IPv4 link local was not implemented? I'm using the KDE network manager. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
James Knott wrote:
I just tried an experiment to see if a pair of computers, running openSUSE, could connect via IPv4 link local addresses. In Windows, when DHCP fails, it reverts to a link local address in the 169.254.0.0/16 range. This makes it possible to connect two computers with just an Ethernet cable or ad hoc WiFi connection. However, I've found that openSUSE does not do this, though IPv6 link local works. Any idea why reverting to IPv4 link local was not implemented?
It was and is. On 13.2, the LINKLOCAL_INTERFACES setting in /etc/sysconfig/network/config seems to be gone - in previous versions it looked like this: ## Type: string ## Default: "eth*[0-9]|tr*[0-9]|wlan[0-9]|ath[0-9]" # # Automatically add a linklocal route to the matching interfaces. # This string is used in a bash "case" statement, so it may contain # '*', '[', ']' and '|' meta-characters. # LINKLOCAL_INTERFACES="eth*[0-9]|tr*[0-9]|wlan[0-9]|ath[0-9]" For one thing, it would need updating to work with the bizarro interface names, but the equivalent must be present in wicked somewhere. -- Per Jessen, Zürich (5.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
В Fri, 27 Mar 2015 08:11:31 +0100
Per Jessen
James Knott wrote:
I just tried an experiment to see if a pair of computers, running openSUSE, could connect via IPv4 link local addresses. In Windows, when DHCP fails, it reverts to a link local address in the 169.254.0.0/16 range. This makes it possible to connect two computers with just an Ethernet cable or ad hoc WiFi connection. However, I've found that openSUSE does not do this, though IPv6 link local works. Any idea why reverting to IPv4 link local was not implemented?
It was and is.
Not to my knowledge. It was possible to unconditionally configure link local addresses, but I do not think we ever had the same logic "try DHCP and fall back to linklocal if no address is received", unless it was implemented by DHCP clients themselves.
On 13.2, the LINKLOCAL_INTERFACES setting in /etc/sysconfig/network/config seems to be gone - in previous versions it looked like this:
## Type: string ## Default: "eth*[0-9]|tr*[0-9]|wlan[0-9]|ath[0-9]" # # Automatically add a linklocal route to the matching interfaces. # This string is used in a bash "case" statement, so it may contain # '*', '[', ']' and '|' meta-characters. # LINKLOCAL_INTERFACES="eth*[0-9]|tr*[0-9]|wlan[0-9]|ath[0-9]"
This adds route to 169.254.0.0 network. Not linklocal address itself.
It executes
bor@opensuse:~> sudo ip -4 route add to 169.254.0.0/16 dev wlan0
with the effect
bor@opensuse:~> ip r
default via 192.168.1.1 dev wlan0 proto static metric 1024
169.254.0.0/16 dev wlan0 scope link
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.46
bor@opensuse:~> ip a l
1: lo:
For one thing, it would need updating to work with the bizarro
interface
names, but the equivalent must be present in wicked somewhere.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
Andrei Borzenkov wrote:
В Fri, 27 Mar 2015 08:11:31 +0100 Per Jessen
пишет: James Knott wrote:
I just tried an experiment to see if a pair of computers, running openSUSE, could connect via IPv4 link local addresses. In Windows, when DHCP fails, it reverts to a link local address in the 169.254.0.0/16 range. This makes it possible to connect two computers with just an Ethernet cable or ad hoc WiFi connection. However, I've found that openSUSE does not do this, though IPv6 link local works. Any idea why reverting to IPv4 link local was not implemented?
It was and is.
Not to my knowledge.
You're right, my fault, I misread the config.
Link local addresses were added by avahi as far as I remember.
Hmm, I remember seeing avahi running, yes. I guess that's what James need to look at. -- Per Jessen, Zürich (10.2°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
James Knott
-
Per Jessen