Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17815

How to setup your galileo to have a static IP on a LAN

$
0
0

Hi Guys,

 

I was having a bit of trouble setting up a LAN so I could network my PC to multiple galileos. I managed to figure it out with my own method and wanted to post my method to help others who might be trying to do the same thing. Hope it helps.

-------------------------------------------

How to setup your Galileo with a Static IP in a LAN:

 

1) create a backup of your /etc/network/interfaces file

cp /etc/network/interfaces  /etc/network/interfaces.backup

 

2) vi /etc/network/interfaces

Change dhcp in the "iface wlan0 inet dhcp" line to static

Comment out all the lines below and add the following lines.

 

Your file will look like this:

------

# Wireless interfaces

auto wlan0

iface wlan0 inet static

        address 192.168.1.10

        netmask 255.255.255.0

        network 192.168.1.1

        broadcast 192.168.1.255

        gateway 192.168.1.1

        #wireless_mode managed

        #wireless_essid any

        #wpa-driver wext

        #wpa-conf /etc/wpa_supplicant.conf

-------

 

My routers IP address is 192.168.1.1 (standard linksys router).

Choose a unique IP for the address line that is not 1 or 0 ( > 10)

 

3) Save the file, and restart the wlan0

ifdown wlan0

ifup wlan0

 

4) join the same network with your PC and ifconfig or ipconfig to get your IP address.

 

5) ping 192.168.1.10  (or your unique IP) from your computer to test.

 

6) If ping fails, unplug your galileo and let it go through the boot sequence as it may need to reset the network/interfaces configuration from dhcp to static

7) try pinging again - at this point it worked for me. If you power down your router you may also need to restart the galileos to obtain a new lease, but it will have the same IP address.

---------------------------


Viewing all articles
Browse latest Browse all 17815

Trending Articles