Projekt

Allgemein

Profil

Config ipaddr » Historie » Version 4

Jeremias Keihsler, 19.03.2024 12:44

1 1 Jeremias Keihsler
h1. Config IP adr
2
3 3 Jeremias Keihsler
h2. netplan
4 1 Jeremias Keihsler
5
https://www.linuxtechi.com/static-ip-address-on-ubuntu-server/
6 3 Jeremias Keihsler
7
<pre><code class="shell">
8
sudo vim /etc/netplan/00-installer-config.yaml
9
</code></pre>
10
11
<pre>
12
# This is the network config written by 'subiquity'
13
network:
14
  renderer: networkd
15
  ethernets:
16
    ens33:
17
      addresses:
18
        - 192.168.1.247/24
19
      nameservers:
20
        addresses: [4.2.2.2, 8.8.8.8]
21
      routes:
22
        - to: default
23
          via: 192.168.1.1
24
  version: 2
25
</pre>
26
27 4 Jeremias Keihsler
<pre><code class="shell">
28
sudo netplan apply
29
</code></pre>
30 3 Jeremias Keihsler
31
h2. netplan / nmtui (22.04lts Workstation)
32
33 1 Jeremias Keihsler
34
but when looking into config I did see that the connection is managed by Network-Manager.
35
So instead of using the .yaml-approach I stuck with @nmtui@
36 2 Jeremias Keihsler
37
<pre><code class="shell">
38
sudo nmtui
39
</code></pre>