opkg failed, network unreachable ?

TomasCook
 
Posts: 4
Joined: Wed Sep 23, 2015 4:46 pm

opkg failed, network unreachable ?

Wed Sep 23, 2015 4:56 pm

Hi,

I'm having an issue with the following setup:

Computer -> VoCore (AP) -> Internet (ethernet)

From the computer I can browse the web just fine but from the VoCore itself I can't reach the internet opkg update fails (same for ping etc..)

I initially thought it was a forwarding issue so I tried to use iptables to forward wlan0 to eth0.1:
sysctl -w net.ipv4.ip_forward=1
iptables -A FORWARD -i wlan0 -o eth0.1 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0.1 -j MASQUERADE

But it still doesn't work:
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network is unreachable

Is there someone who can guide me ?

Thanks !

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: opkg failed, network unreachable ?

Sat Sep 26, 2015 3:40 pm

Maybe it is opkg config broken. please check /etc/opkg.
Or use command sysupgrade to upgrade your openwrt to 14.07 from http://downloads.openwrt.org/barrier_br ... pgrade.bin

TomasCook
 
Posts: 4
Joined: Wed Sep 23, 2015 4:46 pm

Re: opkg failed, network unreachable ?

Wed Sep 30, 2015 1:13 am

Ok I don't think that's the problem

First of all I can't reach the vocore using it's ipv4 I had to use ssh root@fe80::bad8:12ff:fe60:1%en1

I checked /etc/opkg and it's correct.

I tried updating to the image you provided with no luck:
- scp ./openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin root@[fe80::bad8:12ff:fe60:1%en1]:/tmp/
- had to telnet to set the root password
- root@OpenWrt:~# sysupgrade -v /tmp/openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin
Saving config files...
etc/config/dhcp
etc/config/dropbear
etc/config/firewall
etc/config/luci
etc/config/network
etc/config/openvpn
etc/config/system
etc/config/ucitrack
etc/config/uhttpd
etc/config/wireless
etc/dropbear/dropbear_dss_host_key
etc/dropbear/dropbear_rsa_host_key
etc/group
etc/hosts
etc/inittab
etc/passwd
etc/profile
etc/rc.local
etc/shells
etc/sysctl.conf
killall: watchdog: no process killed
Sending TERM to remaining processes ... ubusd askfirst logd netifd odhcpd uhttpd ntpd dnsmasq
Sending KILL to remaining processes ... askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware...
Writing from <stdin> to firmware ...
Upgrade completed
Rebooting system...

ssh root@fe80::bad8:12ff:fe60:1%en1
root@fe80::bad8:12ff:fe60:1%en1's password:


BusyBox v1.22.1 (2014-09-21 10:15:39 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (14.07, r42625)
-----------------------------------------------------
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr B8:D8:12:60:00:01
inet addr:192.168.61.1 Bcast:192.168.61.255 Mask:255.255.255.0
inet6 addr: fdc4:df4c:3dd2::1/60 Scope:Global
inet6 addr: fe80::bad8:12ff:fe60:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:253 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20432 (19.9 KiB) TX bytes:6816 (6.6 KiB)

eth0 Link encap:Ethernet HWaddr B8:D8:12:66:0E:CB
inet6 addr: fe80::bad8:12ff:fe66:ecb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2742 errors:0 dropped:0 overruns:0 frame:0
TX packets:2753 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:256851 (250.8 KiB) TX bytes:247701 (241.8 KiB)
Interrupt:5

eth0.1 Link encap:Ethernet HWaddr B8:D8:12:66:0E:CB
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20570 (20.0 KiB) TX bytes:6220 (6.0 KiB)

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:3612 errors:0 dropped:0 overruns:0 frame:0
TX packets:3612 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:245508 (239.7 KiB) TX bytes:245508 (239.7 KiB)

wlan0 Link encap:Ethernet HWaddr B8:D8:12:66:0E:CB
inet6 addr: fe80::bad8:12ff:fe66:ecb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:211 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:20542 (20.0 KiB)

root@OpenWrt:~# ping google.com
ping: bad address 'google.com'
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network is unreachable
root@OpenWrt:~# cat /proc/sys/net/ipv4/ip_forward
1
root@OpenWrt:~# iptables -A FORWARD -i wlan0 -o eth0.1 -j ACCEPT
root@OpenWrt:~# iptables -t nat -A POSTROUTING -o eth0.1 -j MASQUERADE
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network is unreachable
root@OpenWrt:~# ping google.com
ping: bad address 'google.com'
root@OpenWrt:~# cat /etc/resolv.conf
search lan
nameserver 127.0.0.1
root@OpenWrt:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
ping: sendto: Network is unreachable
root@OpenWrt:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Network is unreachable
So far no luck ? I can't be the only one having this issue I used it out of the box and no changes at all

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 35 guests