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.

TDA4VM: Assign static IP address to eth0

Part Number: TDA4VM

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

Fullscreen
1
2
3
4
5
6
7
8
9
10
# 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
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

3- reboot

I would have thought that this would be sufficient, but it seems not. What am I missing?

  • Bumping this question

  • 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.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    [Match]
    Name=eth0
    KernelCommandLine=!root=/dev/nfs
    [Network]
    Address=192.168.3.101/24
    Gateway=192.168.3.0
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Regards,
    Tanmay