Why am I doing this so complicated??? Damn!

I have been trying to learn about configuring my access point but I just can’t

look my /etc/network/interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

#auto eth0
#iface eth0 inet dhcp

Example to keep MAC address between reboots

#hwaddress ether DE:AD:BE:EF:CA:FE

The secondary network interface

#auto eth1
#iface eth1 inet dhcp

WiFi Example

#auto wlan0
#iface wlan0 inet dhcp

wpa-ssid “essid”

wpa-psk “password”

auto wlan0
iface wlan0 inet dhcp
wpa-ssid “AXTEL-2162”
wpa-psk “0804D82162”

Ethernet/RNDIS gadget (g_ether)

… or on host side, usbnet and random hwaddr

Note on some boards, usb0 is automaticly setup with an init script

iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1

and with this, I got this

ra0 Link encap:Ethernet HWaddr 7c:dd:90:57:f8:d3
inet6 addr: fe80::7edd:90ff:fe57:f8d3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:230 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23448 (22.8 KiB) TX bytes:10192 (9.9 KiB)

Why does my beaglebone black does not recognize the ipv4 address?
I can’t access internet with my wifi adapter
Help me please! I beg!!

If your adapater called ra0
You should replace wlan0 with ra0 in your config file

Thank you liyaoshi!

It’s true, ra0 is the device,

Now I’ve modified it:

auto lo

iface lo inet loopback

auto ra0

iface ra0 inet dhcp

wpa-ssid “AXTEL-2162”

wpa-psk “0804D82162”

iface usb0 inet static

address 192.168.7.2

netmask 255.255.255.0

network 192.168.7.0

gateway 192.168.7.1

and I get this with ifconfig:

eth0 Link encap:Ethernet HWaddr 7c:66:9d:5a:56:57

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Interrupt:40

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:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ra0 Link encap:Ethernet HWaddr 7c:dd:90:57:f8:d3

inet6 addr: fe80::7edd:90ff:fe57:f8d3/64 Scope:Link

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:369 errors:0 dropped:0 overruns:0 frame:0

TX packets:994 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:33678 (32.8 KiB) TX bytes:103376 (100.9 KiB)

usb0 Link encap:Ethernet HWaddr c2:c3:e1:78:a5:12

inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252

inet6 addr: fe80::c0c3:e1ff:fe78:a512/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:872 errors:0 dropped:0 overruns:0 frame:0

TX packets:481 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:76339 (74.5 KiB) TX bytes:94973 (92.7 KiB)

but when I do ping to www.google.com it does not work.