Welcome Guest ( Log In | Register )

Bump Topic Topic Closed RSS Feed

Outline · [ Standard ] · Linear+

 Ubuntu, 24 LTS

views
     
TSUbuntuClient
post Aug 21 2024, 09:59 AM, updated 2y ago

Regular
******
Senior Member
1,417 posts

Joined: Jun 2007
From: /puchong/cyberjaya/klang



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-4a35d6662083

I think tutorial is missing somewhere. confused.gif

Please guide me.

Thanks.

This post has been edited by UbuntuClient: Aug 21 2024, 10:00 AM


Attached thumbnail(s)
Attached Image
arundas
post Aug 21 2024, 10:38 AM

New Member
*
Newbie
22 posts

Joined: Apr 2018
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
post Aug 21 2024, 01:59 PM

Regular
******
Senior Member
1,417 posts

Joined: Jun 2007
From: /puchong/cyberjaya/klang



The correct path is /etc/cloud/cloud.cfg.d/ and i manage to use static ip.

Topic ClosedOptions
 

Change to:
| Lo-Fi Version
0.0124sec    0.62    6 queries    GZIP Disabled
Time is now: 21st December 2025 - 09:00 PM