IP address while booting

  • Dear F&S Team,


    in the UBootEnv there are some ethernet settings for booting via nfs (ipaddr, serverip, gatewayip, netmask). My question: are these values used when booting from flash (bootubi)? The reason of this questions is: if the device is booting with these ip address set - this may cause an address conflict if another device in the network has the same address. Even if the boot sequence is very short. In my /etc/network/interfaces I use the 127.0.0.1 IP for loop back and set the device IP (user settings) later in my firmware.


    Thanks for answering.

  • The MAC address, i.e. the value of ethaddr, is stored in the Ethernet controller and will therefore be used in Linux by default. All other values are only used in Linux if they are passed via the command line, e.g. bootargs variable. So for example if you want IP address 192.168.1.5 in Linux, you can start your ethernet interface with


    Code
    1. ifconfig eth0 192.168.1.5 up


    or similar commands.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.