debian:base-debian:networking-debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
debian:base-debian:networking-debian [2021/05/28 15:40] michaeldebian: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 ''ens3'': The command prints a list of all the available network interfaces. In this example, the name of the interface is ''ens3'':
  
-<sxh bashfirst-line1>+<sxh plaingutterfalse;>
 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
Line 31: Line 31:
  
 Netplan configuration files are stored in the ''/etc/netplan'' directory. You’ll probably find one or more YAML files in this directory. The name of the file may differ from setup to setup. Usually, the file is named either ''01-netcfg.yaml'', ''50-cloud-init.yaml'', or ''NN_interfaceName.yaml'', but in your system it may be different. Netplan configuration files are stored in the ''/etc/netplan'' directory. You’ll probably find one or more YAML files in this directory. The name of the file may differ from setup to setup. Usually, the file is named either ''01-netcfg.yaml'', ''50-cloud-init.yaml'', or ''NN_interfaceName.yaml'', but in your system it may be different.
 +
 +----
  
 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:
 </code> </code>
  
 +<sxh bash; first-line: 1>
 network: {config: disabled} network: {config: disabled}
 +</sxh>
  
 +----
  
 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
 </code> </code>
 +
 +----
  
 Verify the changes by typing: Verify the changes by typing:
  
 <code> <code>
-ip addr show dev ens3+ip addr show dev ens3
 </code> </code>
  
-<sxh bashfirst-line1>+<sxh plaingutterfalse;>
 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
     link/ether 08:00:27:6c:13:63 brd ff:ff:ff:ff:ff:ff     link/ether 08:00:27:6c:13:63 brd ff:ff:ff:ff:ff:ff
  • debian/base-debian/networking-debian.txt
  • Last modified: 2021/05/28 15:43
  • by michael