Setting up network interfaces
-
So I am trying to find the place where I can setup network interfaces in order to assign a static ip address for eth0. On the rb5 I can do this via modifying the
/etc/dhcpcd.conffile; however, this isn't present on the voxl. I see all the interfaces viaifconfig -aand the correspondingsys/class/netbut there doesn't seem to be .network of ifcfg files there.I would have thought that the interfaces would either be in
/etc/sysconfig/network-scripts/ifcfg-eth*or in/etc/network/interfaceswhere I could modify files that could be brought up viaifconfig eth0 upbut this doesn't seem to be the case.Right now I am doing this via enabling a
systemdserviceset -e ETH_ADD=192.168.2.120 ifconfig eth0 up || (echo " failed to open eth0" && exit 1) ip addr add ${ETH_ADD}/24 dev eth0 || (echo " failed to add ip link eth0" && exit 1)I see that this can be done in the poky_build but any suggestions as to where this can be done on the voxl in a more Linux-esque way?
Thanks,
Ryan Meagher -
@ryan_meagher You should be able to do this using the
/etc/network/interfacesapproach you mentioned.voxl-modemuses that approach in order to set a static IP for Microhard oneth0. This is what the/etc/network/interfacesfile looks like in that case:# This file describes the network interfaces available on your system # The primary network interface auto eth0 iface eth0 inet static address 192.168.168.100 netmask 255.255.255.0 gateway 192.168.168.1 -
@tom Thanks for the info, my voxl didn't have a default
/etc/networkdirectory which is what threw me off.Thanks,
Ryan Meagher -
@ryan_meagher You should be able to do this using the
/etc/network/interfacesapproach you mentioned.voxl-modemuses that approach in order to set a static IP for Microhard oneth0. This is what the/etc/network/interfacesfile looks like in that case:# This file describes the network interfaces available on your system # The primary network interface auto eth0 iface eth0 inet static address 192.168.168.100 netmask 255.255.255.0 gateway 192.168.168.1 -
@tom Originaly configured it station, did not change it when tried to configure it to static.
@Nirge You should use
voxl-wififor wlan0.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login