This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I want to assign a static IP address to my device. Here's my process:
1- vi /etc/network/interfaces
2- Change the following
# Wired or wireless interfaces auto eth0 #iface eth0 inet dhcp # pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null # udhcpc_opts -R -b iface eth0 inet static address aa.bb.cc.dd # not actual netmask aa.bb.cc.dd # not actual network aa.bb.cc.dd # not actual broadcast aa.bb.cc.dd # not actual
3- reboot
I would have thought that this would be sufficient, but it seems not. What am I missing?
Hi,
Sorry for the delay.
Please make the changes in /etc/systemd/network/10-eth.network
This is the file I am using for setting up the interface.
[Match] Name=eth0 KernelCommandLine=!root=/dev/nfs [Network] Address=192.168.3.101/24 Gateway=192.168.3.0
Regards,
Tanmay