Config ipaddr » Historie » Version 3
Jeremias Keihsler, 19.03.2024 12:41
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 | |||
28 | h2. netplan / nmtui (22.04lts Workstation) |
||
29 | |||
30 | 1 | Jeremias Keihsler | |
31 | but when looking into config I did see that the connection is managed by Network-Manager. |
||
32 | So instead of using the .yaml-approach I stuck with @nmtui@ |
||
33 | 2 | Jeremias Keihsler | |
34 | <pre><code class="shell"> |
||
35 | sudo nmtui |
||
36 | </code></pre> |