Command for manually setting gateway IP address.

Me again,

Hello guys, is there a command for manually setting the IP address for a gateway? Tumbleweed is stuck on an old gateway. While using IFTOP, the client seems to be looking for the old gateway and not allowing connection to the new gateway. I have configured the network settings using NetworkManager to DHCP the NIC card hopefully reaching out to the new gateway for an address, but that is not happening. Then configuring the network connection from KDE for a manual address, but that is not allowing a connection either. Every time I start the browser(Firefox) the system tries to lookup the old gateway for an address.

Any ideas?

Many thanks,

Jet Driver

The ‘ip’ command, specifically ‘ip route add’, is what you’re after.
Examples aplenty:
https://www.cyberciti.biz/faq/howto-linux-configuring-default-route-with-ipcommand/


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

Thanks AB,

Is’n the command “ip” a characteristic or function of microsoft? No offense or disrespect meant, but I was thinking “if” would be part of the command string. Nevertheless, I will follow your suggestion with some apprehension or hesitancy considering the slight regurgitation of stomach contents when a mere whisper of microsoft is mentioned. Although, I use microsoft and its products occasionally while repairing a client’s system or network. My aversion is well defined by a loathing even to touch a microsoft keyboard, being equivalent to a betrayal of the sacred, purist OS of Opensuse and SUSE Linux.

Please accept my sincerest apology if I have offended you. My harsh words and attitude toward a certain OS, sometimes, cannot be restrained. I’m still in therapy over a foul microsoft experience. Joking, of course.

Thank you, AB.

Jet Driver

About 3 years ago, the “ip” command was implemented in the Linux kernel to replace legacy network tools like ifconfig (IIRC there were about 3 other tools as well). I expect it’s documented somewhere, probably even at wikipedia.

Verifying the configuration and functionality of your Default Gateway is a 2 step process.

First, print your routing table, which should list all known routers including the Default Gateway

ip route

Then, you can test functionality using ping and traceroute, or any other similar tools.

TSU

Actually ip is almost 20 years old.

ifconfig has been deprecated ages ago but since it’s been kept in Linux for compatibility sake people haven’t learned “the right way” and are stuck in the old ways.

Thank you, Tsu2, for your response. Sharing your expertise is highly valued and very much appreciated. I accept your thoughts and suggestions with eagerness. I learn so much from you guys. A treasure trove of intellectual wealth.

Many thanks,

Jet Driver

Thank you for your input, Miuku. All thoughts are welcomed.

J. Driver

‘ip’, the command, is not in the Linux kernel at all, and is also much
older than three years. The following is in the ifocnfig manpage:


WARNING: Ifconfig is obsolete on system with Linux kernel newer than 2.0.
On this system you should use ip. See the ip manual page for details

As you may know, he 2.0 kernel itself is ancient, from the 1990’s, so
that’s at least seventeen years right there.

Regarding atpmel’s original question of ‘ip’ being a function o microsoft,
I do not understand that conclusion; I do not think microsoft products
have an ‘ip’ command, and IP itself is a product of RFC 791 which, while
not predating microsoft entirely, certainly predates anything they did
useful in terms of networking.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

AB,

I used the prefix “ip” to denote the difference from “if”. I have used ipconfig on a microsoft platform for diagnostic purposes, while using ifconfig in a Linux environment. Learning from this forum the changes in newer kernels incorporate either of the two usage prompting further research. Your contribution to the conversation is valuable and appreciated. I continue to learn from you guys.

Many thanks,

Jet Driver

On 07/06/2017 06:26 PM, atpmel wrote:
>
> I used the prefix “ip” to denote the difference from “if”. I have used

Ah, I understand now; I haven’t had to ask a windows box its IP in a
blissfully long time, so didn’t quite make that little hop in my mind;
thanks for clarifying.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.