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.

PROCESSOR-SDK-AM335X: Static IP Address Settings

Part Number: PROCESSOR-SDK-AM335X


Hi,

There is a questions about Static IP Settings, steps are as below,

1. $ vi /etc/systemd/network/10-eth.network

[Match]
Name=eth0
KernelCommandLine=!root=/dev/nfs

[Network]
#DHCP=yes
Address=192.168.1.5/24
Broadcast=192.168.1.255
Netmask=255.255.255.0
Gateway=192.168.1.1

2. Modify IP address manually

    $ifconfig eth0 192.168.1.10

3. re-plug ethernet cable

4. The IP address is shown 192.168.1.5, but what I expect is 192.168.1.10

Could you tell me how to fix this?

SDK: ti-processor-sdk-linux-rt-am335x-evm-08.02.00.24

Hardware : TI AM335x EVM-SK

  • Sorry for the delayed response on this.

    re-plug ethernet cable

    At what point did you unplug the cable? When you unplug the cable the static address you gave from command line is dropped. When you plug it back in the configuration file is used.

    If you set the 192.168.1.10 address (I'm not sure did you intend to do 192.168.1.10/24, if you don't set the subnet it will default to /32) when the cable is unplugged, on connecting the 192.168.1.5/24 address will also be added.

    If this is still not clear can you add the detail on where the cable was unplugged, and also perhaps the printout of "ip addr" before and after the steps. The older ifconfig I'm less familiar with to see how to get the same amount of information out.

      Pekka

  • Hi,

    I am not sure which version of the SDK that you are using but I will assume it is a later one. 

    I will assume that you are trying to set a static ip address. The script file that you are editing is not really used in a SystemD environment.

    Here is a link that shows how to set a static ip address.

    Best Regards,

    Schuyler