0

I tried to install a new Ubuntu Server, but after the installation when I want to configure the network it didn't work using the Interface file. so i tried as per duplicate to set up the network with netplanbut thqt fqils too.

netplan file:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      addresses:
        - 193.171.201.236/27
      gateway4: 193.171.201.225
      nameservers:
          search: [pro2future.at, pro2future.eu]
          addresses: [140.78.2.62, 140.78.3.62]

How should I proceed?

Fabby
  • 35,017
freshd
  • 13

1 Answers1

0

I'm assuming you have already checkout out: https://help.ubuntu.com/community/NetworkManager

I have found it more friendly if you use 'renderer: NetworkManager'. Place the following into /etc/netplan/01-netcfg.yaml

network:
  version: 2
  renderer: NetworkManager
  ethernets:
    enp3s0:
      addresses: [ 193.171.201.236/27 ]
      gateway4: 193.171.201.225

Build /etc/NetworkManager/NetworkManager.conf something like this:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no

[device-enp3s0]
match-device=interface-name:enp3s0
ignore-carrier=true
managed=true

[device-other]
match-device=type:ethernet
managed=false

Try a simple configuration first, then use 'ifconfig -a' to verify the configuration worked.

After you change the above netplan configuration file, restart the network:

netplan apply
systemctl restart network-manager

You may need to install the network-manager package, too.

apt-get install network-manager

You can also check the status with:

systemctl status network-manager
Cruz
  • 11