/etc/network/interfaces not changing server IP
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
My interfaces file which used to govern the IP configuration of my Ubuntu server is no longer having any affect over the interface settings on my ethernet int. On an identical hardware machine I have:
auto lo eth0
iface eth0 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
On a newly installed 16.04.3 Ubuntu Server I have:
auto lo enp0s25
iface enp0s25 inet static
address 192.168.0.59
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
Regardless of whether I ifdown
and then ifup
or flush the interface or even reboot the machine it won't take the configuration. On another machine with identical hardware, I installed Ubuntu 16.04.3 Desktop and was able to configure it from the GUI but not from the CLI using the same method I tried above. Can someone please hint at my error?
The ifconfig
output on the first quote says eth0
, the ifconfig
output of the second device says enp0s25
for it's interface that it why I specified them as such. The desktop Ubuntu that had the same problem had the same ifconfig
output of enp0s25
.
networking server ethernet static-ip
add a comment |Â
up vote
0
down vote
favorite
My interfaces file which used to govern the IP configuration of my Ubuntu server is no longer having any affect over the interface settings on my ethernet int. On an identical hardware machine I have:
auto lo eth0
iface eth0 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
On a newly installed 16.04.3 Ubuntu Server I have:
auto lo enp0s25
iface enp0s25 inet static
address 192.168.0.59
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
Regardless of whether I ifdown
and then ifup
or flush the interface or even reboot the machine it won't take the configuration. On another machine with identical hardware, I installed Ubuntu 16.04.3 Desktop and was able to configure it from the GUI but not from the CLI using the same method I tried above. Can someone please hint at my error?
The ifconfig
output on the first quote says eth0
, the ifconfig
output of the second device says enp0s25
for it's interface that it why I specified them as such. The desktop Ubuntu that had the same problem had the same ifconfig
output of enp0s25
.
networking server ethernet static-ip
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My interfaces file which used to govern the IP configuration of my Ubuntu server is no longer having any affect over the interface settings on my ethernet int. On an identical hardware machine I have:
auto lo eth0
iface eth0 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
On a newly installed 16.04.3 Ubuntu Server I have:
auto lo enp0s25
iface enp0s25 inet static
address 192.168.0.59
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
Regardless of whether I ifdown
and then ifup
or flush the interface or even reboot the machine it won't take the configuration. On another machine with identical hardware, I installed Ubuntu 16.04.3 Desktop and was able to configure it from the GUI but not from the CLI using the same method I tried above. Can someone please hint at my error?
The ifconfig
output on the first quote says eth0
, the ifconfig
output of the second device says enp0s25
for it's interface that it why I specified them as such. The desktop Ubuntu that had the same problem had the same ifconfig
output of enp0s25
.
networking server ethernet static-ip
My interfaces file which used to govern the IP configuration of my Ubuntu server is no longer having any affect over the interface settings on my ethernet int. On an identical hardware machine I have:
auto lo eth0
iface eth0 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
On a newly installed 16.04.3 Ubuntu Server I have:
auto lo enp0s25
iface enp0s25 inet static
address 192.168.0.59
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
Regardless of whether I ifdown
and then ifup
or flush the interface or even reboot the machine it won't take the configuration. On another machine with identical hardware, I installed Ubuntu 16.04.3 Desktop and was able to configure it from the GUI but not from the CLI using the same method I tried above. Can someone please hint at my error?
The ifconfig
output on the first quote says eth0
, the ifconfig
output of the second device says enp0s25
for it's interface that it why I specified them as such. The desktop Ubuntu that had the same problem had the same ifconfig
output of enp0s25
.
networking server ethernet static-ip
networking server ethernet static-ip
edited Feb 15 at 5:32
muru
130k19275470
130k19275470
asked Feb 15 at 4:51
![](https://lh5.googleusercontent.com/-AcLjF-k24rI/AAAAAAAAAAI/AAAAAAAAADQ/zeOnAIUr2Ms/photo.jpg?sz=32)
![](https://lh5.googleusercontent.com/-AcLjF-k24rI/AAAAAAAAAAI/AAAAAAAAADQ/zeOnAIUr2Ms/photo.jpg?sz=32)
Tmanok
155
155
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
The NetworkManager service controls just about everything related to networking on most modern Linux systems UNLESS you disable it. There is a "TUI" that you can use to set the network settings on specific connections using "nmtui". (NetworkManager Text User Interface).
From the command line just type "sudo nmtui" and it will launch the interface. It may ask you to install it if it is not installed. After making the changes to your connection, exit the program and type "systemctl restart NetworkManager". If that doesn't work then try "systemctl stop NetworkManager" and edit the file /etc/network/interfaces the same way that you did with the nmtui. Finally reboot with NetworkManager still "stopped" and you should see the changes take effect when you type ifconfig on your next reboot.
Of course, all of what I just said does not apply if you have disabled NetworkManager. With NetworkManager disabled you should be able to edit the ifcfg networking scripts to edit the connection. Let me know if you have any questions.
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The NetworkManager service controls just about everything related to networking on most modern Linux systems UNLESS you disable it. There is a "TUI" that you can use to set the network settings on specific connections using "nmtui". (NetworkManager Text User Interface).
From the command line just type "sudo nmtui" and it will launch the interface. It may ask you to install it if it is not installed. After making the changes to your connection, exit the program and type "systemctl restart NetworkManager". If that doesn't work then try "systemctl stop NetworkManager" and edit the file /etc/network/interfaces the same way that you did with the nmtui. Finally reboot with NetworkManager still "stopped" and you should see the changes take effect when you type ifconfig on your next reboot.
Of course, all of what I just said does not apply if you have disabled NetworkManager. With NetworkManager disabled you should be able to edit the ifcfg networking scripts to edit the connection. Let me know if you have any questions.
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
add a comment |Â
up vote
1
down vote
accepted
The NetworkManager service controls just about everything related to networking on most modern Linux systems UNLESS you disable it. There is a "TUI" that you can use to set the network settings on specific connections using "nmtui". (NetworkManager Text User Interface).
From the command line just type "sudo nmtui" and it will launch the interface. It may ask you to install it if it is not installed. After making the changes to your connection, exit the program and type "systemctl restart NetworkManager". If that doesn't work then try "systemctl stop NetworkManager" and edit the file /etc/network/interfaces the same way that you did with the nmtui. Finally reboot with NetworkManager still "stopped" and you should see the changes take effect when you type ifconfig on your next reboot.
Of course, all of what I just said does not apply if you have disabled NetworkManager. With NetworkManager disabled you should be able to edit the ifcfg networking scripts to edit the connection. Let me know if you have any questions.
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The NetworkManager service controls just about everything related to networking on most modern Linux systems UNLESS you disable it. There is a "TUI" that you can use to set the network settings on specific connections using "nmtui". (NetworkManager Text User Interface).
From the command line just type "sudo nmtui" and it will launch the interface. It may ask you to install it if it is not installed. After making the changes to your connection, exit the program and type "systemctl restart NetworkManager". If that doesn't work then try "systemctl stop NetworkManager" and edit the file /etc/network/interfaces the same way that you did with the nmtui. Finally reboot with NetworkManager still "stopped" and you should see the changes take effect when you type ifconfig on your next reboot.
Of course, all of what I just said does not apply if you have disabled NetworkManager. With NetworkManager disabled you should be able to edit the ifcfg networking scripts to edit the connection. Let me know if you have any questions.
The NetworkManager service controls just about everything related to networking on most modern Linux systems UNLESS you disable it. There is a "TUI" that you can use to set the network settings on specific connections using "nmtui". (NetworkManager Text User Interface).
From the command line just type "sudo nmtui" and it will launch the interface. It may ask you to install it if it is not installed. After making the changes to your connection, exit the program and type "systemctl restart NetworkManager". If that doesn't work then try "systemctl stop NetworkManager" and edit the file /etc/network/interfaces the same way that you did with the nmtui. Finally reboot with NetworkManager still "stopped" and you should see the changes take effect when you type ifconfig on your next reboot.
Of course, all of what I just said does not apply if you have disabled NetworkManager. With NetworkManager disabled you should be able to edit the ifcfg networking scripts to edit the connection. Let me know if you have any questions.
edited Feb 15 at 6:13
answered Feb 15 at 5:25
![](https://lh5.googleusercontent.com/-suR8hs9xCuM/AAAAAAAAAAI/AAAAAAAAADo/9pE1I_TKTh8/photo.jpg?sz=32)
![](https://lh5.googleusercontent.com/-suR8hs9xCuM/AAAAAAAAAAI/AAAAAAAAADo/9pE1I_TKTh8/photo.jpg?sz=32)
Gordster
614
614
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
add a comment |Â
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
be sure to run nmtui and select enp0s25. Make your edits to this connection/interface, and then run the systemctl command.
â Gordster
Feb 15 at 5:40
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Try to completely disable NetworkManager, and then try editing the network interface using the command line (original way you were trying)
â Gordster
Feb 15 at 5:46
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
Alright a bit of caps lock fury, a tuna sandwich and several reboots later and we have ourselves a winner.
â Tmanok
Feb 15 at 6:03
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006330%2fetc-network-interfaces-not-changing-server-ip%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password