I have a Linux box, I used WinSCP to change the configuration (there was no default-gateway and I added one) on one of the Ethernet ports (eth0). Is there a command I can run to restart the interface to have the changes take effect without restarting the machine?
That actually worked perfect.
I just have a question, If there was no default gateway on one of the ethernet ports and I added one, and then ran the above commands, Will it have taken effect? I assume yes.
Autogard
I'm actually not sure. I seem to remember running this command to take an ip address change into effect and from what I remember it may not have taken the change.
What distribution are you using? Is there a way to go into the network card settings after making the change and then running that command and checking what the gateway is (to see if it really changed or not)?
samjud
ASKER
I'm not sure to either questions, any suggestions would be very helpful.
The first way is just to notice any splash screens that show up when you are booting into your system. Most distributions will have some kind of screen or logo that lets you know what distro it is.
Another thing to try is to run "cat /proc/version". Somewhere in the string that is returned, you should find what type of Linux you are running.
Depending on what distribution you are running, there should be some graphical configuration utility (on SuSE it is called YaST). Look in your "startup" menu to see if you can find anywhere to configure a network card.
You also mentioned WinSCP to configure your network card. Will that program let you know what the current settings are as well?
I just have a question, If there was no default gateway on one of the ethernet ports and I added one, and then ran the above commands, Will it have taken effect? I assume yes.