[opensuse] any significant difference between /etc/sysconfig/network/routes and /etc/sysconfig/network/ifroute-device ?
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked. I'm just being curious, either solution is good. -- Per Jessen, Zürich (12.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 18/04/2019 11.18, Per Jessen wrote:
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked.
I'm just being curious, either solution is good.
I "use" neither. I write it in YaST, then I would look to what file it goes. -- Cheers / Saludos, Carlos E. R. (from openSUSE, Leap 15.1 x86_64 (ssd-test)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Apr 18, 2019 at 12:18 PM Per Jessen <per@computer.org> wrote:
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked.
I'm just being curious, either solution is good.
My understanding is that the only difference is, each line in ifroute-$interface implicitly gets dev argument while lines in global routes are interpreted "as is". Whether it can have described effect I do not know, but if route is link scope address, it must be qualified with interface. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrei Borzenkov wrote:
On Thu, Apr 18, 2019 at 12:18 PM Per Jessen <per@computer.org> wrote:
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked.
I'm just being curious, either solution is good.
My understanding is that the only difference is, each line in ifroute-$interface implicitly gets dev argument while lines in global routes are interpreted "as is". Whether it can have described effect I do not know, but if route is link scope address, it must be qualified with interface.
The route is fe80::1 and the device (wlan0) is specified too, in both. # cat ifroute-wlan0 default fe80::1 - wlan0 /Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Andrei Borzenkov wrote:
On Thu, Apr 18, 2019 at 12:18 PM Per Jessen <per@computer.org> wrote:
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked.
I'm just being curious, either solution is good.
My understanding is that the only difference is, each line in ifroute-$interface implicitly gets dev argument while lines in global routes are interpreted "as is". Whether it can have described effect I do not know, but if route is link scope address, it must be qualified with interface.
The route is fe80::1 and the device (wlan0) is specified too, in both.
# cat ifroute-wlan0 default fe80::1 - wlan0
I found a typo - I had "/etc/sysconfig/network/ifroutes-wlan0" instead of "/etc/sysconfig/network/ifroute-wlan0". I see no difference now - with either config file, I don't get an IPv6 address. This is on the nanopis on wifif that I've written about before. I'll try it out on a 15.1 test system, on wired ethernet. -- Per Jessen, Zürich (19.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
This is on the nanopis on wifif that I've written about before. I'll try it out on a 15.1 test system, on wired ethernet.
See bug#1133011 2019-04-22T19:40:04+02:00 gaston kernel: ICMPv6: RA: ndisc_router_discovery failed to add default route -- Per Jessen, Zürich (17.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/18/2019 04:18 AM, Per Jessen wrote:
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked.
I'm just being curious, either solution is good.
I use NetCtl for fixed IP with systemd. Just a small config file listing the address and then create a line with the file to multi-user-wants and your done. Never have to worry about it again. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin wrote:
On 04/18/2019 04:18 AM, Per Jessen wrote:
I've always used /etc/sysconfig/network/routes for configuring static routes (unless set up by dhcp). Yesterday I added a default ipv6 route to /etc/sysconfig/network/routes, and this seem to prevent the machine from even getting an ipv6 address. I moved the default route to /etc/sysconfig/network/ifroute-wlan0 instead, and then it worked.
I'm just being curious, either solution is good.
I use NetCtl for fixed IP with systemd. Just a small config file listing the address and then create a line with the file to multi-user-wants and your done. Never have to worry about it again.
Just to be clear, there's no fixed IP address involved, as such. Only a fixed route (because it keep dropping of my nanopis). What is netctl and is it related to wicked? -- Per Jessen, Zürich (18.5°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Carlos E. R.
-
David C. Rankin
-
Per Jessen