cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1709
Views
0
Helpful
1
Replies

Persistent IP change in CML | Alpine , Ubuntu, Desktop

networkinggeek
Level 1
Level 1

I have been trying to configure the interface IP on host (Alpine , Ubuntu, Desktop) but they disappear after reboot. How I make a persistent change? Also which of these images are the simplest-- if I want to mimic laptop/ computer machine. I tried all of them either I am unable to install default route or the changes dont go as expected.

 

In Alpine I have added this after following another post

 

"interfaces" in /etc/network/interfaces

inserthostname_here:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.253
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1

 

and restarted> sudo /etc/init.d/networking restart

 

I still dont see IP getting reflected

 

 

inserthostname_here:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:00:00:08 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe00:8/64 scope link tentative
valid_lft forever preferred_lft forever


inserthostname_here:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

 

1 Reply 1

niklastheiler
Level 1
Level 1

Hey,

In order to make your configuration for Alpine/Ubuntu Desktop persistent, you have to edit the configuration.

1. Create a new Alpine/Ubuntu desktop or wipe your current one (->Node, ->Simulate, ->Wipe Node).

2. Click on "Edit Config"

3. Here you can insert your configuration you want to be persistent (One command per line).

4. After inserting, click on "Save".

If you follow these steps your configuration will be persistent and remain after restart.

Hope this helps!