server gets a new ip-address every time I reboot on Ubuntue 20.04
0
votes
0
answers
832
views
I have a Ubuntu 20.04.6 LTS using dhcp. Everytime I reboot the ip-address gets changed but not DNS. I'd like to keep the same ip-address. I have changed my /etc/netplan/01-netcfg.yaml as :
network:
version: 2
renderer: networkd
ethernets:
enp6s0:
dhcp4: true
critical: true
# dhcp4: no
addresses: [10.3.XXX.XXX/24]
nameservers:
search: [mydomain.org]
addresses: [10.3.XXX.XXX,130.221.XXX.XXX]
I have not run the "netplan apply" since I am not confident of my changes.
Any help would be great.
Thanks in advance.
Asked by user2037551
(1 rep)
Sep 3, 2024, 08:14 PM
Last activity: Sep 4, 2024, 02:35 AM
Last activity: Sep 4, 2024, 02:35 AM