[opensuse] What to use for determining a "route"
Hello to everyone reading this. Provided i wish to determine my route(s) on my network. which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g. arp but I have read it is deprecated. Netstat too. Thanks in advance for updating me on what to use and..why the older package were "deprecated". Especially the latter would help my understanding.
Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
ip -[46] route show
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated).
iproute2 is all you need.
The first two I do not know. Have they all been superseded by "ss"?
iproute2 is a package, which contains e.g. "ip" and "ss". -- Per Jessen, Zürich (8.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.
On 2020-11-11 11:59 a.m., Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g. arp but I have read it is deprecated. Netstat too.
Thanks in advance for updating me on what to use and..why the older package were "deprecated". Especially the latter would help my understanding.
These days, the ip command is used for much of that and replaces ifconfig and a couple of others. I suspect the reason they were depricated was to rationalize things with IPv6. Arp is still around, but is IPv4 only. IPv6 uses neighbour discovery and advertisement, both of which are part of ICMP6. Arp isn't even part of IPv4, as it predates it.
In data mercoledì 11 novembre 2020 18:10:37 CET, James Knott ha scritto:
On 2020-11-11 11:59 a.m., Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g. arp but I have read it is deprecated. Netstat too.
Thanks in advance for updating me on what to use and..why the older package were "deprecated". Especially the latter would help my understanding.>
These days, the ip command is used for much of that and replaces ifconfig and a couple of others. I suspect the reason they were depricated was to rationalize things with IPv6. Arp is still around, but is IPv4 only. IPv6 uses neighbour discovery and advertisement, both of which are part of ICMP6. Arp isn't even part of IPv4, as it predates it. _______________________________________________ openSUSE Users mailing list -- users@lists.opensuse.org To unsubscribe, email users-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/users@lists.opensuse.org
Thank you to both of you for your answers.
Stakanov wrote:
In data mercoledì 11 novembre 2020 18:10:37 CET, James Knott ha scritto:
On 2020-11-11 11:59 a.m., Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g.
arp but I have read it is deprecated. Netstat too.
Yes, they are both deprecated. use 'ip neigh' instead of arp. -- Per Jessen, Zürich (7.9°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.
In data mercoledì 11 novembre 2020 18:25:29 CET, Per Jessen ha scritto:
Stakanov wrote:
In data mercoledì 11 novembre 2020 18:10:37 CET, James Knott ha scritto:
On 2020-11-11 11:59 a.m., Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g.
arp but I have read it is deprecated. Netstat too.
Yes, they are both deprecated. use 'ip neigh' instead of arp.
-- Per Jessen, Zürich (7.9°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. _______________________________________________ openSUSE Users mailing list -- users@lists.opensuse.org To unsubscribe, email users-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/users@lists.opensuse.org
Wow, that was a very useful suggestion, i did never read about the command. Great. I am afraid I am going to do another stupid question now, but I am doing it in a new thread.
On 11/11/2020 18.30, Stakanov wrote:
In data mercoledì 11 novembre 2020 18:25:29 CET, Per Jessen ha scritto:
arp but I have read it is deprecated. Netstat too.
Yes, they are both deprecated. use 'ip neigh' instead of arp.
Wow, that was a very useful suggestion, i did never read about the command. Great. I am afraid I am going to do another stupid question now, but I am doing it in a new thread.
Not stupid question, I learnt somethings this afternoon :-) -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On 11/11/2020 17.59, Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g. arp but I have read it is deprecated. Netstat too.
cer@Telcontar:~> rpm -qa | grep -i deprecated net-tools-deprecated-2.0+git20170221.479bb4a-lp151.4.3.x86_64 cer@Telcontar:~> rpm -qa | grep -i obsolete cer@Telcontar:~> cer@Telcontar:~> rpm -ql net-tools-deprecated | grep /bin /bin/ifconfig /bin/netstat /bin/route /usr/bin/ifconfig /usr/bin/netstat /usr/bin/route cer@Telcontar:~> About ifconfig, I found this post the other day: <https://linux.slashdot.org/story/18/05/27/1448211/there-are-real-reasons-for-linux-to-replace-ifconfig-netstat-and-other-classic-tools> which talks about this other one: <https://utcc.utoronto.ca/~cks/space/blog/linux/ReplacingNetstatNotBad> I also found these two: <https://www.reddit.com/r/linux/comments/fld6uy/linux_maintains_bugs_the_real_reason_ifconfig_on/> It talks about a blog at <https://blog.farhan.codes/2018/06/25/linux-maintains-bugs-the-real-reason-ifconfig-on-linux-is-deprecated/> which is dead. And <https://ubuntu.com/blog/if-youre-still-using-ifconfig-youre-living-in-the-past>
Thanks in advance for updating me on what to use and..why the older package were "deprecated". Especially the latter would help my understanding.
The links above tell at least part of the history. The second one at utoronto, seems to be good, and the one at ubuntu. Apparently the tools get the information from /proc, while newer tools use netlink sockets. This limits what they can do. And they don't present all the information. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
participants (4)
-
Carlos E. R.
-
James Knott
-
Per Jessen
-
Stakanov