[opensuse] any reason for not using /etc/sysconfig/network/routes ?
Leap15 - I noticed today that yast prefers writing route configs to 'ifroute-ethx' instead of just 'routes'. I prefer using 'routes' - any reason I shouldn't ? -- Per Jessen, Zürich (18.6°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
On 09/10/2018 03:59 AM, Per Jessen wrote:
Leap15 - I noticed today that yast prefers writing route configs to 'ifroute-ethx' instead of just 'routes'. I prefer using 'routes' - any reason I shouldn't ?
If you want it to *not* work, then using 'ifroute-ethx' would be preferable. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
ken wrote:
On 09/10/2018 03:59 AM, Per Jessen wrote:
Leap15 - I noticed today that yast prefers writing route configs to 'ifroute-ethx' instead of just 'routes'. I prefer using 'routes' - any reason I shouldn't ?
If you want it to *not* work, then using 'ifroute-ethx' would be preferable.
Oh. :-) Well, I've moved my route config to /etc/sysconfig/network/routes and that works, as it always have. I'll stick to that. -- Per Jessen, Zürich (16.5°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/11/2018 02:18 AM, Per Jessen wrote:
ken wrote:
Leap15 - I noticed today that yast prefers writing route configs to 'ifroute-ethx' instead of just 'routes'. I prefer using 'routes' - any reason I shouldn't ? If you want it to *not* work, then using 'ifroute-ethx' would be
On 09/10/2018 03:59 AM, Per Jessen wrote: preferable.
Oh. :-)
Well, I've moved my route config to /etc/sysconfig/network/routes and that works, as it always have. I'll stick to that.
Glad you took my sardonic phrasing with humor. It was intended to point out that, for some reason, using the same code in each of those files, ifroute-[iface] doesn't work and hasn't for a long time... that from my experience. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
ken wrote:
On 09/11/2018 02:18 AM, Per Jessen wrote:
ken wrote:
Leap15 - I noticed today that yast prefers writing route configs to 'ifroute-ethx' instead of just 'routes'. I prefer using 'routes' - any reason I shouldn't ? If you want it to *not* work, then using 'ifroute-ethx' would be
On 09/10/2018 03:59 AM, Per Jessen wrote: preferable.
Oh. :-)
Well, I've moved my route config to /etc/sysconfig/network/routes and that works, as it always have. I'll stick to that.
Glad you took my sardonic phrasing with humor. It was intended to point out that, for some reason, using the same code in each of those files, ifroute-[iface] doesn't work and hasn't for a long time... that from my experience.
I went and looked it up - the syntax should be exactly the same, from "man routes": "Both files use the same syntax". This is what I have in routes: default 185.85.248.1 - eth1 default fe80::1 - eth1 Copied straight from ifroute-eth1. -- Per Jessen, Zürich (25.8°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/12/2018 08:37 AM, Per Jessen wrote:
ken wrote:
ken wrote:
Leap15 - I noticed today that yast prefers writing route configs to 'ifroute-ethx' instead of just 'routes'. I prefer using 'routes' - any reason I shouldn't ? If you want it to *not* work, then using 'ifroute-ethx' would be
On 09/10/2018 03:59 AM, Per Jessen wrote: preferable.
Oh. :-)
Well, I've moved my route config to /etc/sysconfig/network/routes and that works, as it always have. I'll stick to that. Glad you took my sardonic phrasing with humor. It was intended to
On 09/11/2018 02:18 AM, Per Jessen wrote: point out that, for some reason, using the same code in each of those files, ifroute-[iface] doesn't work and hasn't for a long time... that from my experience. I went and looked it up - the syntax should be exactly the same, from "man routes": "Both files use the same syntax".
True.
This is what I have in routes:
default 185.85.248.1 - eth1 default fe80::1 - eth1
Copied straight from ifroute-eth1.
I'm pretty sure you need to specify netmasks in both of those lines... either in CIDR notation in the first field or (old school) in place of your dashes. Also, I looked harder at those configs and the docs, rejiggered things, and got both configs working, i.e., both ifroute-eth0 and routes files. Is "route" (or whatever "ip" command you use) now showing you that you have what you need? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/09/2018 18.45, ken wrote:
On 09/12/2018 08:37 AM, Per Jessen wrote:
ken wrote:
This is what I have in routes:
default 185.85.248.1 - eth1 default fe80::1 - eth1
Copied straight from ifroute-eth1.
I'm pretty sure you need to specify netmasks in both of those lines... either in CIDR notation in the first field or (old school) in place of your dashes.
That's the gateway, the default route: everything "else" goes to that IP, so no mask needed, I understand. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Carlos E. R. <robin.listas@gmx.es> [09-12-18 20:45]:
On 12/09/2018 18.45, ken wrote:
On 09/12/2018 08:37 AM, Per Jessen wrote:
ken wrote:
This is what I have in routes:
default 185.85.248.1 - eth1 default fe80::1 - eth1
Copied straight from ifroute-eth1.
I'm pretty sure you need to specify netmasks in both of those lines... either in CIDR notation in the first field or (old school) in place of your dashes.
That's the gateway, the default route: everything "else" goes to that IP, so no mask needed, I understand.
mine does not even specify the device, default 192.168.1.254 - - -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@gmx.es> [09-12-18 20:45]:
On 12/09/2018 18.45, ken wrote:
On 09/12/2018 08:37 AM, Per Jessen wrote:
ken wrote:
This is what I have in routes:
default 185.85.248.1 - eth1 default fe80::1 - eth1
Copied straight from ifroute-eth1.
I'm pretty sure you need to specify netmasks in both of those lines... either in CIDR notation in the first field or (old school) in place of your dashes.
That's the gateway, the default route: everything "else" goes to that IP, so no mask needed, I understand.
mine does not even specify the device, default 192.168.1.254 - -
Yep, that is really all you need. My ipv4 route does not need the device either, but the ipv6 does (multiple devices). -- Per Jessen, Zürich (18.5°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
ken wrote:
On 09/12/2018 08:37 AM, Per Jessen wrote:
This is what I have in routes:
default 185.85.248.1 - eth1 default fe80::1 - eth1
Copied straight from ifroute-eth1.
I'm pretty sure you need to specify netmasks in both of those lines... either in CIDR notation in the first field or (old school) in place of your dashes.
Those addresses are gateways though, not networks.
Is "route" (or whatever "ip" command you use) now showing you that you have what you need?
Yep, it works fine: # ip -4 route show default via 185.85.248.1 dev eth1 185.85.248.0/27 dev eth1 proto kernel scope link src 185.85.248.5 192.168.0.0/21 dev eth0 proto kernel scope link src 192.168.2.127 # ip -6 route show 2a03:7520:4c68::/64 dev eth1 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev eth1 proto kernel metric 256 pref medium default via fe80::1 dev eth1 metric 1024 pref medium -- Per Jessen, Zürich (18.1°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Carlos E. R.
-
ken
-
Patrick Shanahan
-
Per Jessen