Eth0 config on BBB (default Angstrom image 2013.09.04)

Hi all,

I searched without success for an explanation on how to configure eth0 on the BBB Angstrom for a static IP (ultimately from a python script - but that’s later).

Could somebody share a link on how to do this?

I hope to configure eth0 for something like:
IP: 192.168.0.50
mask: 255.255.255.0

…while preserving the USB-eth configuration (which has the default settings).

If this is difficult, is this a good reason to switch to Debian?

Regards,

Chris

This may help
http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html

Cody,

From your linked page I followed:
root@beaglebone:~# ifconfig eth0 192.168.0.50 netmask 255.255.255.0 up
and it seems to work fine.

root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr 1C:BA:8C:98:51:96
inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::1eba:8cff:fe98:5196/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:440 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:194321 (189.7 KiB) TX bytes:13314 (13.0 KiB)
Interrupt:56

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:716 errors:0 dropped:0 overruns:0 frame:0
TX packets:716 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50064 (48.8 KiB) TX bytes:50064 (48.8 KiB)

usb0 Link encap:Ethernet HWaddr EE:50:BC:2B:38:79
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:365684 errors:0 dropped:0 overruns:0 frame:0
TX packets:29997 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:177609506 (169.3 MiB) TX bytes:5316659 (5.0 MiB)

I can now now ssh via eth0 and usb.

Thanks!

-Chris