D
D
Dim Boy2020-04-09 19:29:56
Frontend
Dim Boy, 2020-04-09 19:29:56

Why don't you run /sbin/dhclient -d enp1s0 until you get an ip?

Clean install of ubuntu-18.04.3 server, does not receive IPv4 via DHCP until you run the /sbin/dhclient -d enp1s0 command , what to do, how to treat? rebooted the system several times, same thing.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Denoro55, 2019-10-12
@Denoro55

I think I found the solution jsfiddle.net/azuL1ets/1
The solution is simple. You just need to know svg. Making a gradient for the line.

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="640" height="440">
  <!-- CHARTS GRADIENT -->
  <defs>
    <linearGradient id="grad1" gradientUnits="userSpaceOnUse" x1="50" y1="350" x2="50" y2="220">
      <stop offset="0%" style="stop-color:#00ff43;" />
      <stop offset="50%" style="stop-color:#f9fd27;" />
      <stop offset="100%" style="stop-color:#f20000;" />
    </linearGradient>
  </defs>
  <!-- CHART -->
  <polyline points="
    50,350
    60,340
    70,345
    80,330
    90,320
    100,325
    " style="fill:none;" stroke="url(#grad1)" stroke-width="3" stroke-linecap="round" />
</svg>

D
Dim Boy, 2020-04-09
@twix007

Can someone help if ubuntu server does not receive DHCP IP after installation - you need to:
demolish Netplan:

sudo apt-get install ifupdown bridge-utils
sudo systemctl stop networkd-dispatcher
sudo systemctl disable networkd-dispatcher
sudo systemctl mask networkd-dispatcher
sudo apt-get purge nplan netplan.io

configure ifconfig

sudo nano /etc/network/interfaces
auto enp1s0
iface enp1s0 inet dhcp

reboot

K
Karpion, 2020-04-10
@Karpion

dhclient just gets the IP address. That's the way it should be.
Another thing is that this daemon should start automatically. During installation, you must specify this in the network settings.

V
Valdemar Smorman, 2020-04-10
@smorman

Probably the Netplan file was not created or shoveled into the .bak prefix, which happens when you try to activate the service and the new file was not created, which may be why it didn’t work.
Recently, people also dealt with such a trouble on our forum, so it turned out that the file was not created and the folder was empty and I had to create it using echo:

echo -e '# This file describes the network interfaces available on your system\n# For more information, see netplan(5).\nnetwork:\n  version: 2\n  renderer: networkd'| tee /etc/netplan/01-netcfg.yaml > /dev/null; netplan apply; reboot

or in the Terminal: and everything worked. It was possible to check the presence of this: and see the output of what's in the folder. And if there is a 01-netcfg.yaml file , then look what's in it: By default, it should be like this:
netplan generate; netplan apply; reboot
cd /etc/netplan; ls
cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question