hi and welcome to this how-to about a
common problem in Ubuntu's network
configuration file a common situation is
that you should switch from dynamic host
configuration or dynamic IP to static IP
on a server and now you do interchange
it to the configuration file with your
editor and now the network configuration
is saved and you should simply restart
the network so log out and log in on the
terminal
and now simply doing a reboot of the
network to the new configuration get in
and there you get an error message about
an invalid configuration file with an
error on line 26 in this case if we now
take a look on the config file again
here is the correct one here is the
fourth one you probably have taken a
look on the manual page for a bundle and
you can see this is more or less and
copy of what we have here
but this config file don't work you
maybe try everything and you stop here
line 26 what is wrong with line 26
actually nothing it is the line below
line 26 which are wrong in this case
if you know try to use comet to test
what is wrong with the config file as
long as you have this Rose active you
will get an error but you can see that
this correct configuration and this
configuration which are incorrect nearly
identical so here we have a very sneaky
problem you have probably caused this
problem yourself by doing as you have
been told and learned in dentate your
file and I now push the arrow key to the
right one step here is the marker now
it's the marker there this part of the
file are indicated with tab that is
wrong in the old config file for older
version of the doctor when you have the
config file in it's a network interfaces
which no longer are used there was tab
allowed but not in the new one which are
stored in it is a net plane don't try to
do what they say in the manual here
create a new file that will not solve
the problem
simply remove the tab and the problem
will go away
I have now inactivate the faulty
configuration and activate the correct
configuration here I have inactivated
this line because I don't have any
domain here so save the file and exit
and logout because if the configuration
work that will kill the secure shell
connection so I need the real terminal
here and I have made some experiment so
I should have the command for applying
the new network configuration here and
if everything all right now nothing will
happen nothing happens and if we know
give IP add Dirar
we should be able to see that now the
address have switched from 76
el to 51 here we have loopback but down
here we have the address and we see that
it is 51 and if we now try to login
again to use the new IP and there we get
in and we should have to connection if
we take a look here and we have to
connection one from the terminal and one
from the secure shell
here is another bonus tips when you're
dealing with the config file you
sometimes make some error so running net
plane in debugging mode can be helpful
and you simply give sudo net play flag
debug and after that apply and you will
get a more longer version and in this
case nothing is wrong and the new
configuration or apply as it should that
was everything I have to show you thank
you to all of you who are watching and
our subscriber have a nice day
in the mini serie about Ubuntu server
18.4 you will be familiarized about how
to install Ubuntu server from cerium and
USB memory thank you for your time