OpenWrt Forum Archive

Topic: Huawei HG556a running openwrt 15.05.1 cannot connect.

The content of this topic has been archived on 10 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I have a Huawei HG556a. I have been running openwrt 14.07 in it for a long time. but 14.07 is not a stable release for HG556a.
So recently I started to try 15.05.1 on it, but I got a very weird problem. I use Netgear WNDR3800 (factory firmware) as my home router, HG556a (running openwrt 15.05.1) as my second router. When I tried to connect HG556a to WNDR3800, I can see HG556a got an IP and good signal, but I just cannot visit any websites.

I couldn't figure out what the problem is here, several days already, really desperate, could someone point out a direction for me?

You posted in the wrong section so I moved the thread where it belongs.

nitroshift

Can you post your configuration files here,  please?
Can you resolve domain names? Can you ping sites by address?

eduperez wrote:

Can you post your configuration files here,  please?
Can you resolve domain names? Can you ping sites by address?

which configuration file i should post here?
no, i cannot resolve domain names at all. nor cannot ping any sites.

Post /etc/config/network here, please.

eduperez wrote:

Post /etc/config/network here, please.

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd1d:7b7e:9aa7::/48'

config interface 'lan'
    option ifname 'eth0.1'
    option force_link '1'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'

config switch
    option name 'eth0'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'eth0'
    option vlan '1'
    option ports '0 1 2 3 4 5t'

config interface 'wwan'
    option proto 'dhcp'

I see you have configured this device as a wireless client. When you say you cannot resolve domain names or ping external addresses, did you try both from the router and the machines connected to it?

yes, i have tried both.

should i provide any other informations?

Please, execute the following commands, and post the results here:

ip addr
ip route
root@OpenWrt:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 4c:54:99:d8:bc:cf brd ff:ff:ff:ff:ff:ff
    inet6 fe80::4e54:99ff:fed8:bccf/64 scope link 
       valid_lft forever preferred_lft forever
3: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
    link/ether ca:52:73:1f:54:80 brd ff:ff:ff:ff:ff:ff
4: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
    link/ether 1a:36:69:72:12:bc brd ff:ff:ff:ff:ff:ff
5: teql0: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 100
    link/void 
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 4c:54:99:d8:bc:cf brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd1d:7b7e:9aa7::1/60 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::4e54:99ff:fed8:bccf/64 scope link 
       valid_lft forever preferred_lft forever
8: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default 
    link/ether 4c:54:99:d8:bc:cf brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 4c:54:99:d8:bc:d0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.141/24 brd 192.168.1.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::4e54:99ff:fed8:bcd0/64 scope link 
       valid_lft forever preferred_lft forever
root@OpenWrt:~# ip route
default via 192.168.1.1 dev wlan0  proto static  src 192.168.1.141 
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1 
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.141 
192.168.1.1 dev wlan0  proto static  scope link  src 192.168.1.141 

The router's LAN IP is in the same subnet as the WAN IP given out by your 3800.  This will not work. 

Suggest changing lan option ipaddr to '192.168.2.1' (or anything outside of 192.168.1.X)

mk24 wrote:

The router's LAN IP is in the same subnet as the WAN IP given out by your 3800.  This will not work. 

Suggest changing lan option ipaddr to '192.168.2.1' (or anything outside of 192.168.1.X)

Thanks, it finally solved my problem!  Thank you so much!

but out of curiosity,
1. I only have this problem when I use 15.05.1 (15.05 also), 14.07 doesn't have it. what changed?
2. before i started to using netgear wndr3800, I used an old model of TPLink, so can I avoid this problem by altering something in my wndr3800?

Yes another solution would have been to set your main router to something other than 192.168.1.x, and the problem would be resolved.  I think that TP-Link stock firmware uses 0.x by default.

(Last edited by mk24 on 27 Nov 2016, 18:26)

mk24 wrote:

Yes another solution would have been to set your main router to something other than 192.168.1.x, and the problem would be resolved.  I think that TP-Link stock firmware uses 0.x by default.

Nope, all the TPlink models (sold in China) use 192.168.1.1 by default, that is why I am so confused.

The discussion might have continued from here.