ubuntu:networking:netplan:configure_networking_with_netplan
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:networking:netplan:configure_networking_with_netplan [2020/12/22 02:22] – created peter | ubuntu:networking:netplan:configure_networking_with_netplan [2021/07/15 08:29] (current) – [Find the name of the active network interfaces that you want to configure] peter | ||
---|---|---|---|
Line 27: | Line 27: | ||
<code bash> | <code bash> | ||
ip a | ip a | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | ... | ||
+ | enp3s0 | ||
+ | ... | ||
</ | </ | ||
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
+ | |||
+ | * In this case, **enp3s0**. | ||
</ | </ | ||
Line 39: | Line 49: | ||
<file yaml / | <file yaml / | ||
+ | # Let NetworkManager manage all devices on this system | ||
+ | #network: | ||
+ | # version: 2 | ||
+ | # renderer: NetworkManager | ||
+ | |||
network: | network: | ||
- | Version: 2 | + | version: 2 |
- | | + | # |
- | ethernets: | + | renderer: |
- | DEVICE_NAME: | + | ethernets: |
- | Dhcp4: yes/no | + | |
- | | + | dhcp4: no |
- | | + | # disable existing configuration for ethernet |
- | | + | #addresses: [192.168.1.69/24] |
- | Addresses: [NAMESERVER_1, NAMESERVER_2] | + | #gateway4: 192.168.1.1 |
+ | # | ||
+ | #addresses: [192.168.1.1] | ||
+ | dhcp6: | ||
+ | |||
+ | # add configuration for bridge interface | ||
+ | bridges: | ||
+ | br0: | ||
+ | interfaces: [enp3s0] | ||
+ | dhcp4: no | ||
+ | addresses: [192.168.1.69/24] | ||
+ | | ||
+ | | ||
+ | | ||
+ | #addresses: [192.168.1.26,192.168.1.2, | ||
+ | parameters: | ||
+ | # stp: false | ||
+ | stp: true | ||
+ | forward-delay: | ||
+ | dhcp6: no | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** | ||
+ | |||
+ | * **renderer**: | ||
+ | * **networkd** uses the settings in the Netplan config file. This is preferred. | ||
+ | * **NetworkManager** uses the settings in the Ubuntu Network GUI settings. | ||
+ | |||
+ | * **stp**: | ||
+ | * **forward-delay**: | ||
+ | |||
+ | </ | ||
---- | ---- |
ubuntu/networking/netplan/configure_networking_with_netplan.1608603728.txt.gz · Last modified: 2020/12/22 02:22 by peter