Outline ·
[ Standard ] ·
Linear+
Ubuntu, 24 LTS
|
TSUbuntuClient
|
Aug 21 2024, 09:59 AM, updated 2y ago
|
|
Hi, I want to set static ip via cli. I'm follow tutorial below. But getting error as image attach. > https://krishnendubhowmick.medium.com/how-t...ep-4a35d6662083I think tutorial is missing somewhere. Please guide me. Thanks. This post has been edited by UbuntuClient: Aug 21 2024, 10:00 AM Attached thumbnail(s)
|
|
|
|
|
|
arundas
|
Aug 21 2024, 10:38 AM
|
New Member
|
your routes seems empty. have you setup this? CODE network: ethernets: eth0: dhcp4: false addresses: - 172.26.137.116/20 routes: - to: 0.0.0.0/0 via: 172.26.128.1 version: 2 or you can use nmcli to configure using an interface
|
|
|
|
|
|
TSUbuntuClient
|
Aug 21 2024, 01:59 PM
|
|
The correct path is /etc/cloud/cloud.cfg.d/ and i manage to use static ip.
|
|
|
|
|