I am sorry to ask about this again, but i cannot figure out, even after reading a lot of articles, how to change my network configuration from command line, without having to restart the machine.
I am using a copy of Lubuntu 14.04.2 LTS, which runs in a VirtualBox VM, and boots up without a GUI interface.
When i want to change my network connection settings using terminal, i usually edit
/etc/network/interfaces
and then
/etc/init.d/networking restart
or
service networking restart
But the above steps that used to work in most of the *ubuntu versions, now seem to do nothing.
I also tried ifdown/ifup and ifconfig, but nothing seems to be able to restart the connection and apply the new settings.
The settings are applied only if i restart the machine completely.
Is there something i might be missing, or am i stuck with the restart option? Thanks in advance..
EDIT : Extra info This is how my interfaces file looks like
sudo ifdown eth0 && sudo ifup -v eth0
substituting for eth0 if it is not your relevant interface? – chili555 Mar 10 '15 at 16:47sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a
which works in ubuntu server 14.04 but it didn't work. – ktsangop Mar 11 '15 at 10:25eth0:1
. It has no reachable gateway. Thanks. – chili555 Mar 11 '15 at 12:43eth0:1
virtual adapter. I have been using this setup many years successfully with older versions of ubuntu. – ktsangop Mar 11 '15 at 13:29