When I try to setup my network through Yast’s ifup method, DNS doesn’t work. When I use network manager instead, it works perfectly!
The only difference I can see is “link-local” in the route output -
output from route (network manager)
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 * 255.255.255.0 U 2 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default router 0.0.0.0 UG 0 0 0 eth1
output from route (ifup method)
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default router 0.0.0.0 UG 0 0 0 eth1
This is while using 11.2 milestone8 (which I’m about to dump anyway), so I know it night be a bit moot. But I would like to know what creates/controls that “link-local” entry, just in case I’m doing something wrong, or something has changed and I come across the problem again.
It’s very odd behaviour, I’ve always been able to use ifup a lot easier than network manager!
> When I try to setup my network through Yast’s ifup method, DNS doesn’t
> work. When I use network manager instead, it works perfectly!
You will need a bit investigation on this.
Are you using a fixed IP address? Give us the output of “rcnetwork status”
and “cat /etc/resolv.conf”
> The only difference I can see is “link-local” in the route output -
“link-local” route is o.k.
Is the route automatically created to provide “Avahi-zeroconf” services
(169.254..). Nothing wrong here. This route can be disabled or enabled,
both settings will be okay.
> I edited resolv.conf manually and added my router, and it works, so
> it’s not a router problem.
>
> I think there’s something amiss in Yast2’s DNS window :(.
When switching between “networkmanager” and “ifup”, better review in yast
that all settings (ip, netmask, dns and gateway) are properly filled.
How do I get rid of it? No need to do so. It is just an entry in your routing table. When there is not traffic for it, it will not be used. Switching of the possibility to use it means switching of Avahi, which can be done in YaST > system > System services (runlevel). I am running without Avahi for a considarable time now without any nefative effects.
When you realy do not want to see the routing table entry, there is away, but as I have do do some more research in how I found out aboutr it (forgotten!) I only want to try to find if you realy want it (it has no use to remove it as I stated above)
In any case, it has nothing to do with DNS whatsoever. (but that was not your question, your question was about link-local).
> How do I get rid of it? No need to do so. It is just an entry in your
> routing table. When there is not traffic for it, it will not be used.
> Switching of the possibility to use it means switching of Avahi, which
> can be done in YaST > system > System services (runlevel). I am running
> without Avahi for a considarable time now without any nefative
> effects.
I’ve also disabled avahi services because dmesg was plenty of useless avahi
rejections.
> When you realy do not want to see the routing table entry, there is
> away, but as I have do do some more research in how I found out aboutr
> it (forgotten!) I only want to try to find if you realy want it (it has
> no use to remove it as I stated above)
If you want get rid of the avahi route, just
edit “/etc/sysconfig/network/config” file and “comment” (disable) the
value:
#LINKLOCAL_INTERFACES=
That way no route for avahi services will be created when using “ifup”
method.
That is the one I forgot about. Thanks Camaleón.
Nevertheless I did not do this because it gives no increased security imho. And you have to remember to check it (and be prepared to redo it) at every install (or maybe even update). I think it is easier to take a note of: do not start avahi, then of this change.
> That is the one I forgot about. Thanks Camaleón.
You’re welcome.
> Nevertheless I did not do this because it gives no increased security
> imho.
Having that route in the routing table may not harm, but you can get
compaints and alerts from security devices in the network (IPS).
> And you have to remember to check it (and be prepared to redo it)
> at every install (or maybe even update). I think it is easier to take a
> note of: do not start avahi, then of this change.
I left the route on but disabled the services.
They are two separate things: disabling the avahi services will not prevent
the route coming up on every system start-up, and vice-versa.
By “get rid of it” I really meant more like “fix the DNS problem”, although I didn’t really express that as clearly as I should have!
It seemed to my uneducated eye that the presence of “link-local” was either the problem, or a symptom of the problem.
I’m quite sure that I entered all the correct information in the DNS page, as I did it 3 times and it’s something I do regularly and get right. Although I have been known to type stuff in backwards and inside out sometimes for no apparent reason :(.
But on the up-side, the DNS info I entered manually stuck there, so the problem is (in a manner of speaking) now solved.