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.

Set IP Permanently for AM335x

Hi All,

         I am trying to set the IP permanently so that after booting it should be already reconfigured;

 I have read the documentation of Matrix Gui -->

You can find the target's ip address by using local Matrix and clicking on the Settings icon and then on the Network
Settings icon. Or using a terminal logged in to the target system enter the below command:

ifconfig

I can able to set IP address from Ifconfig and after entering ping command it is responding. No Issue But as The system restart its IP got lost.

Pls suggest !!

Regards

Praveen

  • if your rootfs is debian/ubuntu based, edit /etc/network/interfaces

  • Hi ,

    I have made changes in interfaces file ;

    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
     
    # The loopback interface
    auto lo
    iface lo inet loopback

    # Wireless interfaces
    iface wlan0 inet dhcp
        wireless_mode managed
        wireless_essid any
        wpa-driver wext
        wpa-conf /etc/wpa_supplicant.conf

    iface tiwlan0 inet dhcp
        wireless_mode managed
        wireless_essid any

    iface atml0 inet dhcp

    # Wired or wireless interfaces
    auto eth0
    iface eth0 inet dhcp

    address 192.168.xxx.xx
    netmask 255.255.255.0

            pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null

    iface eth1 inet dhcp

    # Ethernet/RNDIS gadget (g_ether)
    # ... or on host side, usbnet and random hwaddr
    iface usb0 inet dhcp

    # Bluetooth networking
    iface bnep0 inet dhcp

    /////////////////////////////////////////////////////////

    but got any changes when i tried  to access through console from command Ifconfig not showing any update

    Regards

    Praveen

  •  I have modified as follows:

    iface eth0 inet static

    address 192.168.xxx.xx
    netmask 255.255.255.0

    after doing the same it runs well.IP is set permanently.

    Regards

    Praveen

  • Hi,

    I'm trying to use static IP with ti-sdk-am335x-evm-06.00.00.00 using BeagleBone White and it does not seem to work. Can any one tell me what I'm doing wrong? Below is my /etc/network file. I'm mounting the files system over NFS, if that matters...

    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)


    # The loopback interface
    auto lo
    iface lo inet loopback

    # Wireless interfaces
    iface wlan0 inet dhcp
    wireless_mode managed
    wireless_essid any
    wpa-driver wext
    wpa-conf /etc/wpa_supplicant.conf

    iface tiwlan0 inet dhcp
    wireless_mode managed
    wireless_essid any

    iface atml0 inet dhcp

    # Wired or wireless interfaces
    auto eth0
    iface eth0 inet static

    address 192.168.1.146
    netmask 255.255.255.0

    pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null

    iface eth1 inet dhcp

    # Ethernet/RNDIS gadget (g_ether)
    # ... or on host side, usbnet and random hwaddr
    iface usb0 inet dhcp

    # Bluetooth networking
    iface bnep0 inet dhcp

  • I fixed my problem by using kernel command parameter. Passing ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off as part of boot parameter worked for me. I got that information from AM335x PSP User's Guide. I still don't understand why changing  /etc/network/interfaces file did not work for me though...

    Brian