[opensuse] adding a static route
My recent install figured out the basic networking: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0 But I also need a static route to another (local) network. I can do this (old school) with: route add -net 10.10.0.0/16 gw 192.168.0.98 eth0 and then I have: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 10.10.0.0 192.168.0.98 255.255.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0 But how do I do this in 24.3? I searched duck-duck, tried what the links there suggested... none of that worked. Also went into yast -> Network Services -> Network Settings, turned on Wicked, went to Routes, typed in the data, but was given a long error message: it didn't like my data. Is there a config file I can enter data into instead? (Screenshot of error at http://paste.opensuse.org/51414648) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
07.04.2018 06:01, ken пишет:
My recent install figured out the basic networking:
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
But I also need a static route to another (local) network. I can do this (old school) with:
route add -net 10.10.0.0/16 gw 192.168.0.98 eth0
and then I have:
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 10.10.0.0 192.168.0.98 255.255.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
But how do I do this in 24.3? I searched duck-duck, tried what the links there suggested... none of that worked. Also went into yast -> Network Services -> Network Settings, turned on Wicked, went to Routes, typed in the data, but was given a long error message: it didn't like my data. Is there a config file I can enter data into instead?
(Screenshot of error at http://paste.opensuse.org/51414648)
You do not need to enter existing routes (in particular, default gateway) there. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/07/2018 01:28 AM, Andrei Borzenkov wrote:
07.04.2018 06:01, ken пишет:
My recent install figured out the basic networking:
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
But I also need a static route to another (local) network. I can do this (old school) with:
route add -net 10.10.0.0/16 gw 192.168.0.98 eth0
and then I have:
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 10.10.0.0 192.168.0.98 255.255.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
But how do I do this in 24.3? I searched duck-duck, tried what the links there suggested... none of that worked. Also went into yast -> Network Services -> Network Settings, turned on Wicked, went to Routes, typed in the data, but was given a long error message: it didn't like my data. Is there a config file I can enter data into instead?
(Screenshot of error at http://paste.opensuse.org/51414648)
You do not need to enter existing routes (in particular, default gateway) there.
That was it. Thanks. I wish Yast would mention that on that page. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
ken wrote:
But I also need a static route to another (local) network. I can do this (old school) with:
route add -net 10.10.0.0/16 gw 192.168.0.98 eth0
and then I have:
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0 10.10.0.0 192.168.0.98 255.255.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
But how do I do this in 24.3?
The same way as always - with 'route add' or 'ip route add'. and YaST.
Also went into yast -> Network Services -> Network Settings, turned on Wicked, went to Routes, typed in the data, but was given a long error message: it didn't like my data.
Netmask = 0.0.0.0 ?
Is there a config file I can enter data into> instead?
/etc/sysconfig/network/routes -- Per Jessen, Zürich (15.0°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
On 04/07/2018 06:52 AM, Per Jessen wrote:
Is there a config file I can enter data into> instead? /etc/sysconfig/network/routes
That file didn't exist. Yast created it (after I didn't need it any longer), but it was empty. I didn't need it any longer because Yast also created this file: $ cat ifroute-eth0 10.10.0.0/16 192.168.0.98 - eth0 UG I don't know what terms and syntax to use in /etc/sysconfig/network/routes, but I guess I don't need now (but will later). But Yast also wiped my /etc/resolv.conf, was able to fix it and get the Internet back by editing config, then running netconfig. The manpage on netconfig suggested some things which might help later on in creating /etc/sysconfig/network/routes (with a yet to be configured interface). I'll wrestle with that later, but anyone with know-how on that, info would be much appreciated. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
ken wrote:
On 04/07/2018 06:52 AM, Per Jessen wrote:
Is there a config file I can enter data into> instead? /etc/sysconfig/network/routes
That file didn't exist. Yast created it (after I didn't need it any longer), but it was empty. I didn't need it any longer because Yast also created this file:
$ cat ifroute-eth0 10.10.0.0/16 192.168.0.98 - eth0 UG
I don't think I have seen that one before, but we have only a few static routes.
I don't know what terms and syntax to use in /etc/sysconfig/network/routes, but I guess I don't need now (but will later).
"man routes".
But Yast also wiped my /etc/resolv.conf,
if you choose dynamic config, it's automatically populated, if you have static, you need to supply the details in YaST. -- Per Jessen, Zürich (17.2°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
participants (3)
-
Andrei Borzenkov
-
ken
-
Per Jessen