When restarting UBUNTU SERVER 18 network configuration is lost

0

I recently commented one of my servers with UBUNTU SERVER 18 has presented me with a failure at the level of the motherboard a capacitor and as a more practical solution I have removed the hard drive and I have placed it on another computer, when starting the system all I seem to walk without problems but my network configuration is not activated. When doing ifconfig only gives me results from the network what

$ ifconfig
lo        Link encap:Bucle local
          Direc. inet:127.0.0.1  Másc:255.0.0.0
          Dirección inet6: ::1/128 Alcance:Anfitrión
          ACTIVO BUCLE FUNCIONANDO  MTU:65536  Métrica:1
          Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0
          Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
          colisiones:0 long.colaTX:0
          Bytes RX:0 (0 KB)  TX bytes:0 (0 KB)

By doing ip addr this happens

 $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
4: enp0s18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 00:13:8f:8f:e8:97 brd ff:ff:ff:ff:ff:ff
    inet 186.92.108.80/19 brd 186.92.127.255 scope global enp0s18
       valid_lft forever preferred_lft forever
    inet6 fe80::213:8fff:fe8f:e897/64 scope link
       valid_lft forever preferred_lft forever

I have temporarily requested doing this:

$ sudo ifconfig enp0s18 up
$ sudo dhclient enp0s18

And it works temporarily because when restarting the server everything remains as it was before, that is to say I have to repeat the step that I described previously, I already made update and upgrade motivated to that I am in another pc not where the system was installed. I would like to know how I can make the configuration look like this without the need for me to activate the network manually.

    
asked by Jose M Herrera V 29.10.2018 в 04:10
source

0 answers