Unable to reach host in the network, although host itself can access internet

Hi Folks,

I have this setup where a wireless device (openelec) is connected to my WiFi network using a static ip address. After some time I am unable to reach the device (ping) and I don't know why. Had the same problem last week but after I upgraded to the latest version of LEDE I was able to reach the device again from my Mac.

Network setup is as follows:

Linksys WRT1900AC with latest version of LEDE (Reboot (17.01.4, r3560-79f57e422d)), it gives out dynamic ip addresses in the range starting from 100 and the PI has .3 and the zotac .2 ending ip addresses)

A raspberry pi connected to the Linksys by cable with static IP
A Zotac running OpenElec with static ip connected to the Linksys via WiFi

A ping from the Linksys to both machines are successfull and I am able to access my zotac via the Linksys.

I am always able to reach the PI but I am now unable to reach my Zotac, but my Zotac can reach internet (do have the latest weather forecast)

If someone has a clue, then please shout!

...are you saying that you gave two devices on the same subnet...the same IP address of xxx.xxx.xxx.3?

This could be the problem.

If that's the case, I'd try correcting that first. Change one of the IPs to another address (i.e xxx.xxx.xxx.4).

1 Like

yeah i agree, with leach, you definitely need a seperate ip address for each device whether on wifi or ethernet, unless you have wifi on another dhcp server and ethernet on another dhcp server, wifi and ethernet are both associating to the same dhcp server which would cause an ip collision.

No that's not the case (sorry for the late reply, they have .3 and .2 ending ip addresses, I was on a short holiday and when I returned it was working normal again... but it doesn't feel right as it happened twice already)

For a start, post your /etc/config/network and /etc/config/wireless.

Make sure to obscure the "option key" value(s) in the wireless config results before posting.

lol no post it all!!!

You first...

yeah did you originally allow the device dynamic dhcp for the the device to associate then set up static ip once it had already established an ip address with a lease? Did you also see hostname as originaly associtiated ip in luci after static address set?

cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option country 'US'
        option hwmode '11a'
        option path 'pci0000:01/0000:01:00.0'
        option htmode 'VHT80'
        option txpower '23'
        option log_level '2'
        option channel '36'
        option legacy_rates '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option hidden '1'
        option encryption 'psk-mixed+tkip+ccmp'
        option wpa_disable_eapol_key_retries '1'
        option ssid 'Syco-5G'
        option key 'lol'
        option wps_pushbutton '0'

config wifi-iface
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option encryption 'psk-mixed+tkip+ccmp'
        option wpa_disable_eapol_key_retries '1'
        option ssid 'Syco'
        option hidden '1'
        option key 'lol'

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/qca955x_wmac'
        option htmode 'HT40'
        option country 'US'

root@Sycohexor:/etc# config wifi-device 'radio0'
        option type 'mac80211'
        option country 'US'
        option hwmode '11a'
        option path 'pci0000:01/0000:01:00.0'
        option htmode 'VHT80'
        option txpower '23'
        option log_level '2'
        option channel '36'
        option legacy_rates '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option hidden '1'
        option encryption 'psk-mixed+tkip+ccmp'
        option wpa_disable_eapol_key_retries '1'
        option ssid 'Syco-5G'
        option key 'lol'
        option wps_pushbutton '0'

config wifi-iface
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option encryption 'psk-mixed+tkip+ccmp'
        option wpa_disable_eapol_key_retries '1'
        option ssid 'Syco'
        option hidden '1'
        option key 'lol'

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/qca955x_wmac'
        option htmode 'HT40'
        option country 'US'

cat /etc/config/network:

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 'fd52:194c:9456::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth1.1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr 'Gateway IP'
        option dns 'dnsip dnsip'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'
        option peerdns '0'
        option dns 'dnsip dnsip'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

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

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

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '1 6t'

Looks like you missed the obscure wireless passwords part...

1 Like

OOOPS pretty obscure passphase though right?

Not anymore...

Still seeing them in that nice scroll box you made.

lol this is how bored i am, so anything you can think of for me to put as an option on performance? i swear i need some kind of draft i can sit there and just save rather than constantly posting something when i make an error like that :frowning:, does it send an email anytime its edited? that would be hilarious to spam people with :stuck_out_tongue:

Anyways:
if its a dhcp lease problem:

rm /var/dhcp.leases
rm /tmp/dhcp.leases
service networking restart
ifconfig eth0.2 down
ifconfig eth0.2 up
ifconfig eth0.2
if no need to change mac address, theres no need to reboot modem.

Will try it the next time when I have the problem, for now everything seems to be fine. Which is ok, but of course doesnt't feel right....