Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
debian:base-debian:networking-debian [2021/05/28 15:40] – michael | debian:base-debian:networking-debian [2021/05/28 15:43] (current) – [Netzkonfiguration ab Ubuntu 18.04 / Debian X] michael | ||
---|---|---|---|
Line 23: | Line 23: | ||
The command prints a list of all the available network interfaces. In this example, the name of the interface is '' | The command prints a list of all the available network interfaces. In this example, the name of the interface is '' | ||
- | < | + | < |
1: lo: < | 1: lo: < | ||
link/ | link/ | ||
Line 31: | Line 31: | ||
Netplan configuration files are stored in the ''/ | Netplan configuration files are stored in the ''/ | ||
+ | |||
+ | ---- | ||
If your Ubuntu cloud instance is provisioned with cloud-init, you’ll need to disable it. To do so create the following file: | If your Ubuntu cloud instance is provisioned with cloud-init, you’ll need to disable it. To do so create the following file: | ||
Line 38: | Line 40: | ||
</ | </ | ||
+ | <sxh bash; first-line: 1> | ||
network: {config: disabled} | network: {config: disabled} | ||
+ | </ | ||
+ | ---- | ||
To assign a static IP address on the network interface, open the YAML configuration file with your text editor : | To assign a static IP address on the network interface, open the YAML configuration file with your text editor : | ||
Line 85: | Line 90: | ||
When editing Yaml files, make sure you follow the YAML code indent standards. If the syntax is not correct, the changes will not be applied. | When editing Yaml files, make sure you follow the YAML code indent standards. If the syntax is not correct, the changes will not be applied. | ||
+ | |||
+ | ---- | ||
+ | |||
Once done, save the file and apply the changes by running the following command: | Once done, save the file and apply the changes by running the following command: | ||
Line 90: | Line 98: | ||
# netplan apply | # netplan apply | ||
</ | </ | ||
+ | |||
+ | ---- | ||
Verify the changes by typing: | Verify the changes by typing: | ||
< | < | ||
- | ip addr show dev ens3 | + | # ip addr show dev ens3 |
</ | </ | ||
- | < | + | < |
2: ens3: < | 2: ens3: < | ||
link/ether 08: | link/ether 08: |