PDA

View Full Version : Ipkg Error



MHz
06-05-2007, 16:06
I was just following the IPKG tutorial at macsat.com. Everything went well until

ipkg.sh update
Then i'm getting an error:


[admin@Server02 root]$ ipkg.sh update
Downloading http://wl500g.dyndns.org/ipkg/Packages ...
wget: wl500g.dyndns.org: Unknown host
ipkg_download: ERROR: Failed to retrieve http://wl500g.dyndns.org/ipkg/Packages, returning
ipkg_update: Error downloading http://wl500g.dyndns.org/ipkg/Packages to /opt/lib/ipkg/lists/wl500g


I think I'm getting the error because my internet connection is not on the wl500g but on another computer. How to solve the problem?

MHz
07-05-2007, 07:27
Please, somebody

wengi
07-05-2007, 07:51
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
ipkg.sh install ipkg-opt_0.99.163-9_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-12_mipsel.ipk
ipkg update

MHz
07-05-2007, 15:23
I get the ERROR: "Unknown Host"

(I think thats because my ADSL line is not connected to the wl500G)

wengi
07-05-2007, 15:25
Try to ping any host in internet with name and then with ip.
if ping to ip works and ping to name doesnt you have a dns problem.

If using DHCP: add the ip of your dns server to resolv.conf:
echo "nameserver IP.OF.DNS.SERVER" > /etc/resolv.conf

then it should work.

wengi

MHz
07-05-2007, 15:50
Is it just me, or is macsat.com down? (need the IPKG tutorial to continue)

MacSat.com is back!

MHz
07-05-2007, 15:58
Edited the resolv.conf, but its still the same problem. My internet runs fine on the other computers. DNS and DHCP are working too.

MHz
07-05-2007, 17:10
I can't ping from the router to google.nl :(

Pings from computers to google.nl work fine :)

wengi
07-05-2007, 18:51
my internet connection is not on the wl500g but on another computer
Can you ping your computer?
Can you ping your DNS Server?

What exactly is the setup? firewall? More input :)

MHz
08-05-2007, 09:00
My Firewall has the internet connection, and it has an Network cable attached to the router. The Firewall is DNS and DHCP Server. Users get internet and an IP from the firewall. The firewall is connected to one of the PC ports on the WL500G. NOT ON THE WAN PORT. If I connect it to the WAN port then it goes wrong!

Can't try to ping, because I'm at school right now. When I get home, i'll try. But I can't ping www.google.nl from my router.

wengi
08-05-2007, 09:23
Try to ping your firewall. If this works your firewall blocks the traffic.
This may be ok for ICMP (Ping) but not for http (wget).

wengi

MHz
08-05-2007, 11:23
Thats iT! I think, because I known that the firewall blocks pings. I'll try when I get home. Thanks!

MHz
08-05-2007, 14:55
I just turnede off ping protection, but that didn't seem to be the problem. I can ping my local network from the router, but I cant ping www.google.nl :(


I just pinged www.google.nl from the firewall, and that works fine ofcourse. :)


Whats wrong?

wengi
08-05-2007, 15:09
You can ping the firewall. You can NOT ping anything in the internet.
conclusion: it must be the firewall! I have no other idea.
Could you open all Ports/Protocolls for the asus and test if ping/wget is working?

MHz
08-05-2007, 15:12
I think that the Asus is still trying to connect to the internet through the WAN port, but because internet isn't connected to the wl500g it gives an ERROR. Should that be the reason?

wengi
08-05-2007, 16:36
post the output of ifconfig.
what is the default gateway?

You can also try to use DHCP.

MHz
08-05-2007, 16:50
DHCP is already running on another computer. Output from ifconfig:


[admin@Server02 root]$ ifconfig
br0 Link encap:Ethernet HWaddr 00:13:D4:D1:FA:CE
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:d4ff:fed1:face/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1099 errors:0 dropped:0 overruns:0 frame:0
TX packets:2194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:71509 (69.8 KiB) TX bytes:1454452 (1.3 MiB)

eth0 Link encap:Ethernet HWaddr 00:13:D4:D1:FA:CE
inet6 addr: fe80::213:d4ff:fed1:face/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1378 errors:0 dropped:0 overruns:0 frame:0
TX packets:3051 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:207528 (202.6 KiB) TX bytes:1603318 (1.5 MiB)
Interrupt:4 Base address:0x1000

eth1 Link encap:Ethernet HWaddr 00:13:D4:D1:FA:CE
inet6 addr: fe80::213:d4ff:fed1:face/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:517 errors:0 dropped:0 overruns:0 frame:444
TX packets:1126 errors:1667 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:129926 (126.8 KiB) TX bytes:323936 (316.3 KiB)
Interrupt:2 Base address:0x4000

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 MULTICAST MTU:16436 Metric:1
RX packets:921 errors:0 dropped:0 overruns:0 frame:0
TX packets:921 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:107103 (104.5 KiB) TX bytes:107103 (104.5 KiB)

vlan0 Link encap:Ethernet HWaddr 00:13:D4:D1:FA:CE
inet6 addr: fe80::213:d4ff:fed1:face/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1378 errors:0 dropped:0 overruns:0 frame:0
TX packets:3011 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:182724 (178.4 KiB) TX bytes:1581634 (1.5 MiB)

vlan1 Link encap:Ethernet HWaddr 00:13:D4:D1:FA:CE
inet6 addr: fe80::213:d4ff:fed1:face/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 B) TX bytes:21466 (20.9 KiB)

jimmy_cr
08-05-2007, 16:50
I just turnede off ping protection, but that didn't seem to be the problem. I can ping my local network from the router, but I cant ping www.google.nl :(


I just pinged www.google.nl from the firewall, and that works fine ofcourse. :)


Whats wrong?

try to ping directly IP od google.nl to see if it's DNS error ;)

ping 209.85.135.147

MHz
08-05-2007, 16:53
@jimmy_cr
Same Error

MHz
09-05-2007, 07:20
Everything works now. I just connected the modem temporarly to the WAN port and then it worked (ofcourse). But I'm still interested in the solution.

none
17-05-2007, 15:32
Hi there
I am actually getting the same problem :

[admin@WL500gP ipkg]$ ipkg.sh update
Downloading http://wl500g.dyndns.org/ipkg/Packages ...
wget: wl500g.dyndns.org: Unknown host
ipkg_download: ERROR: Failed to retrieve http://wl500g.dyndns.org/ipkg/Packages, returning
ipkg_update: Error downloading http://wl500g.dyndns.org/ipkg/Packages to /opt/lib/ipkg/lists/wl500g


my asus (192.168.1.2) get internet throught a modem routeur (192.168.1.1)
I dont use the WAN. they are on the same network.

anybody to guide me? cuz I am Stuck ;(

wengi
17-05-2007, 16:24
can you ping google or anything else?

none
18-05-2007, 10:24
thanks for you reply wengi!

">> can you ping google or anything else?"

i can't ping google on my "ssh" session (with putty),
but I can ping the ADLS-router

On a dos command on my computer (windows XP), i ping google, no problem I have internet.

my asus (192.168.1.2) get internet throught a modem routeur (192.168.1.1), same network.

it seems I have internet "through" my wl500gP but not "on" my wl500gP. why that? :confused: :(

thank you very much for your help!

wengi
18-05-2007, 12:06
Try to execute the following on your Asus:

echo "nameserver 192.168.1.1" > /etc/resolv.confThis adds the router/modem as dns server (bug in olegs firmware).

Then try to ping google.
If this works: Add the line to your post-boot.

wengi

none
18-05-2007, 17:18
:(
no, something weird :(

before I had:

[admin@WL500gP root]$ ping www.google.fr
ping: www.google.fr: Unknown host
and if I do what you tell me :




[admin@WL500gP /]$ echo "nameserver 192.168.1.1" > /etc/resolv.conf

[admin@WL500gP /opt]$ ping www.google.fr
PING www.l.google.com (64.233.183.147): 56 data bytes
ping: sendto: Network is unreachable

[admin@WL500gP /]$ ipkg.sh update
Downloading http://wl500g.dyndns.org/ipkg/Packages ...
Connecting to wl500g.dyndns.org[158.250.11.254]:80
wget: Unable to connect to remote host (158.250.11.254): Network is unreachable
ipkg_download: ERROR: Failed to retrieve http://wl500g.dyndns.org/ipkg/Packages, returning
ipkg_update: Error downloading http://wl500g.dyndns.org/ipkg/Packages to /opt/lib/ipkg/lists/wl500g

none
18-05-2007, 17:27
i dont know if it can help you to help me :



[admin@WL500gP /]$ ifconfig
br0 Link encap:Ethernet HWaddr 00:17:31:B4:24:3B
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:feb4:243b/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1387 errors:0 dropped:0 overruns:0 frame:0
TX packets:686 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:109780 (107.2 KiB) TX bytes:85958 (83.9 KiB)

eth0 Link encap:Ethernet HWaddr 00:17:31:B4:24:3B
inet6 addr: fe80::217:31ff:feb4:243b/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1387 errors:0 dropped:0 overruns:0 frame:0
TX packets:1055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:140294 (137.0 KiB) TX bytes:128284 (125.2 KiB)
Interrupt:4 Base address:0x1000

eth1 Link encap:Ethernet HWaddr 00:17:31:B4:24:3B
inet6 addr: fe80::217:31ff:feb4:243b/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:3
TX packets:0 errors:23 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:2 Base address:0x2000

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 MULTICAST MTU:16436 Metric:1
RX packets:1038 errors:0 dropped:0 overruns:0 frame:0
TX packets:1038 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:130822 (127.7 KiB) TX bytes:130822 (127.7 KiB)

vlan0 Link encap:Ethernet HWaddr 00:17:31:B4:24:3B
inet6 addr: fe80::217:31ff:feb4:243b/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1387 errors:0 dropped:0 overruns:0 frame:0
TX packets:1022 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:115328 (112.6 KiB) TX bytes:110234 (107.6 KiB)

vlan1 Link encap:Ethernet HWaddr 00:17:31:B4:24:3B
inet6 addr: fe80::217:31ff:feb4:243b/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:17902 (17.4 KiB)

wengi
18-05-2007, 20:13
Ok. First of all: You need to insert this line to your post-boot.
Your DNS will only work with an active DNS.

Second:
Now your Asus knows the IP of the target but cannot connect.
My guess: Your Router/modem only opens the integrated firewall for known host from dhcp.
Try to allow internet access for your asus (..1.2) on your router (..1.1)

The easier way would be to activate DHCP Client on the asus and give it a reserved IP on your router (if the router supports this...)

none
24-05-2007, 13:00
thank you ! Sorry, did not have much time the last few days...

concerning your points :

1. yes! thank you very much!

2. you are right again! I remember now that the IP of the Asus is not in the list of the "allowed" IP of the Routeur/ADSL. Did not try that yet, but I am sure it is that!
Thanks a LOT!

wengi
24-05-2007, 15:19
You are welcome :D

Pulver
24-11-2007, 15:57
Now your Asus knows the IP of the target but cannot connect.
My guess: Your Router/modem only opens the integrated firewall for known host from dhcp.
Try to allow internet access for your asus (..1.2) on your router (..1.1)

The easier way would be to activate DHCP Client on the asus and give it a reserved IP on your router (if the router supports this...)

I have 2 Asus routers with Oleg firmware (wl500gp and wl500w) in my network - the wl500gp is set as router, and I have the same problem as 'none' and 'MHz' above.

I do not want to use the wan port or the dhcp client on the wl500w (because then I cant access the computers attached to the wl500gp from the computers attached to the wl500w)

Easy question (?): How do I allow internet access for the wl500w on the wl500gp ?

Edit: nevermind - I just had to put the wl500w into "access point" mode and everything worked :)