Static ip address

Answered
0
0

Hi all,

could you tell me how to set a static ip address to the Skybotix Vi-sensor?? I need it cause i'm using a switch to connect the stereo rig and a laser scanner to my Intel Nuc.

Thank you

  • You must to post comments
Great Answer
1
0

Hi Antonio,

There are two quick possibilities:

You can ssh the sensor (run the visensor node, the IP of the sensor should be displayed):

ssh [email protected]

Make the sensor filesystem writable:

mount -o remount,rw /

Now you can set your static IP like on every Linux-based system by editing /etc/network/interfaces:
http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/

Be careful when doing this: wrong settings in /etc/network/interfaces will lock you out of the sensor, which can only be reverted by using a serial cable.

Finally, disable the sensor network configuration tool by commenting the line in /etc/init.d/visensor-startup.bash as follows:

#/home/root/scripts/ipconf.bash &

The other possibility is to map a static IP to your sensor using its MAC address. This is done in the DHCP settings of your router.
For getting the MAC address of the sensor you can ssh the sensor and run

ifconfig

  • Dottant

    sorry about about the new answer to my problem

    I think the problem is about the /etc/network/interfaces file, because i've chenged the address to 192.168.0.15 but when i reboot the sensor and try to access using the ssh i have to use the same old address 10.0.0.1 recognized using arp-scan Do you know why???

  • Skybotix

    Does this help?:

    http://askubuntu.com/questions/22835/how-to-network-two-ubuntu-computers-using-ethernet-without-a-router

  • Dottant

    I've fixed it, everything works fine, thanks a lot

  • Skybotix

    Very nice! What was the problem?

  • Dottant

    The vi-sensor doesn't recognize the ip changes in the interfaces file so i've adapted NUC and laser scanner to its addresses vi-sensor 10.0.0.1 :: sub 255.0.0.0 nuc 10.0.0.10 :: sub 255.0.0.0 laser 10.0.0.2 :: sub 255.0.0.0

    Now i can get the data streaming from both at the same time

-1
0

well, I've chaged it to
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
but if i want to connet using ssh the address is alway 10.0.0.1.

I explane better all the things: I have an Intel nuc with its ethernet card, connected to a 4ports switch, a vi-sensor and a laser scanner (both connected to the switch with an ethernet cable). The problem is that i can't get the data streaming from the sensors and i don't know how to setup the entire environment. I'm trying to set the visensor address with the lines i've wrote before, the laser scanner has
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1

After that i create a new ethernet connection with the ubuntu network manager for the nuc with
address 192.168.1.15
netmask 255.255.255.0

If i connect the nuc to this new ethernet connection i can't recognize the sensors. I really don't know what to do..

Do you have any suggests?

thank you

 

  • Skybotix

    Please post your follow up question as comment to the corresponding answer, not as new answer to the problem.

    I suggest to setup a DHCP server on your NUC. Maybe this helps: http://askubuntu.com/questions/140126/how-do-i-configure-a-dhcp-server .

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.