Ticket #886 (closed bug: fixed)

Opened 3 years ago

Last modified 9 months ago

DHCP display bug (not always present)

Reported by: calvinturbo@… Owned by: john.crispin@…
Priority: normal Milestone: Firmware 2.3.7.0
Component: fon-network Version: 2.3.6.0 (Gari)
Severity: minor
Cc: simon@…, giuseppeg88@…, schnunz@…, gaddagah@… Hardware: 2.0n (FON2300)

Description

The Fonera 2.0n displays no information about IP/DNS in the DHCP box. Strange, since Internet does work, Torrent (Tranmission) does work and the Fonera apps work.

Attachments

ip-up Download (0.9 KB) - added by matthijs 21 months ago.
Debugging version of /etc/ppp/ip-up
config.sh Download (17.9 KB) - added by matthijs 21 months ago.
Fixed version of /lib/fon/config.sh

Change History

Changed 3 years ago by calvinturbo@…

http://img163.imageshack.us/img163/6808/fonera20ndhcpdisplaybug.png

Changed 3 years ago by matthijs

  • status changed from new to infoneeded

Giueseppe was also seeing this with a pppoe connection. I suspect it is caused by some weirdness in the upgrade process and that a factory reset might fix it.

To confirm this is a similar issue, could you get the output of the following commands?

root@Fonera:~# ifconfig
root@Fonera:~# uci -p /var/state show network

Changed 3 years ago by anonymous

root@Fonera:~# uci -p /var/state show network
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.255.255.0
network.loopback.device=lo
network.loopback.up=1
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ipaddr=192.168.1.34
network.lan.ifname=br-lan
network.lan.up=1
network.lan.device=eth0.1 ra0
network.wan=interface
network.wan.ifname=eth0.2
network.wan.hostname=Fonera-
network.wan.proto=dhcp
network.wan.username=
network.wan.password=
network.wan.auto=0
network.wan.device=eth0.2
network.wan.ipaddr=94.210.21.87
network.wan.netmask=255.255.248.0
network.wan.dnsdomain=
network.wan.dns=212.54.40.25 212.54.35.25
network.wan.gateway=94.210.16.1
network.wan.up=1
network.hotspotwifi=interface
network.hotspotwifi.proto=none
network.hotspot=interface
network.hotspot.ifname=tun0
network.hotspot.proto=none
network.hotspot.device=tun0
network.hotspot.up=1
network.vpn=interface
network.vpn.ifname=tun-ovpn
network.vpn.proto=none
network.vpn.up=1
root@Fonera:~#

Changed 3 years ago by calvinturbo@…

IFCONFIG

Again, with code block

root@Fonera:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:18:84:89:75:DC
          inet addr:192.168.1.34  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:741900 errors:0 dropped:0 overruns:0 frame:0
          TX packets:609709 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:632267310 (602.9 MiB)  TX bytes:715762159 (682.6 MiB)

br-lan:1  Link encap:Ethernet  HWaddr 00:18:84:89:75:DC
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:18:84:89:75:DF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1099472 errors:0 dropped:0 overruns:0 frame:0
          TX packets:876242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1032125034 (984.3 MiB)  TX bytes:721637444 (688.2 MiB)
          Interrupt:3

eth0.1    Link encap:Ethernet  HWaddr 00:18:84:89:75:DF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:667213 errors:0 dropped:0 overruns:0 frame:0
          TX packets:525133 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:622589080 (593.7 MiB)  TX bytes:640141778 (610.4 MiB)

eth0.2    Link encap:Ethernet  HWaddr 00:18:84:89:75:DF
          inet addr:94.210.21.87  Bcast:255.255.255.255  Mask:255.255.248.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:432256 errors:0 dropped:0 overruns:0 frame:0
          TX packets:351109 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:394138834 (375.8 MiB)  TX bytes:80134004 (76.4 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.255.255.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3122 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3122 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:295293 (288.3 KiB)  TX bytes:295293 (288.3 KiB)

ra0       Link encap:Ethernet  HWaddr 00:18:84:89:75:DC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:82383 errors:2 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16723708 (15.9 MiB)  TX bytes:84894541 (80.9 MiB)
          Interrupt:4

ra1       Link encap:Ethernet  HWaddr 00:18:84:89:75:DD
          UP BROADCAST RUNNING 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)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.182.1  P-t-P:192.168.182.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  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:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@Fonera:~#

Changed 3 years ago by matthijs

  • status changed from infoneeded to investigate

Hmm, seems like the network.wan.ifname for Calvin is correct (unlike for Giuseppe), so perhaps these are different issues after all...

Changed 3 years ago by calvinturbo@…

Matthijs, I did these commands after updating to the new Fonera version. I had the error with the old version and not always. When I see no info again, I will try these commands.

Changed 3 years ago by matthijs

Ah, you ran the commands when the address was displayed properly? In that case. please run them again when it's not working, as you suggest.

Changed 2 years ago by calvinturbo@…

It is happening again

root@Fonera:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:18:84:89:75:DC
          inet addr:192.168.1.34  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37544755 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72102004 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2481542104 (2.3 GiB)  TX bytes:1016290518 (969.2 MiB)

br-lan:1  Link encap:Ethernet  HWaddr 00:18:84:89:75:DC
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:18:84:89:75:DF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:141379593 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175052217 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3922048665 (3.6 GiB)  TX bytes:335989987 (320.4 MiB)
          Interrupt:3

eth0.1    Link encap:Ethernet  HWaddr 00:18:84:89:75:DF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37276341 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71640477 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2620458278 (2.4 GiB)  TX bytes:845114883 (805.9 MiB)

eth0.2    Link encap:Ethernet  HWaddr 00:18:84:89:75:DF
          inet addr:94.210.21.87  Bcast:255.255.255.255  Mask:255.255.248.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:104102369 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103411740 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3616994700 (3.3 GiB)  TX bytes:3573470140 (3.3 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.255.255.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:139179 errors:0 dropped:0 overruns:0 frame:0
          TX packets:139179 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17389602 (16.5 MiB)  TX bytes:17389602 (16.5 MiB)

ra0       Link encap:Ethernet  HWaddr 00:18:84:89:75:DC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:311672 errors:3 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30489292 (29.0 MiB)  TX bytes:494528219 (471.6 MiB)
          Interrupt:4

ra1       Link encap:Ethernet  HWaddr 00:18:84:89:75:DD
          UP BROADCAST RUNNING 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)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.182.1  P-t-P:192.168.182.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:59 (59.0 B)  TX bytes:5400 (5.2 KiB)

Changed 2 years ago by calvinturbo@…

Strange error...

root@Fonera:~# uci -p /var/state show network
uci: I/O error

Changed 22 months ago by matthijs

  • cc simon@… added

Simon reported seeing the same issue, with pppoe, on the blog, I'm adding him to the CC.

Simon, could you also run the following commands while no address is shown?

root@Fonera:~# ifconfig
root@Fonera:~# uci -p /var/state show network

Could you also get the logread output and attach it here (it's probably too much to paste inline).

See reportbugs for more info on running commands and capturing output.

Changed 22 months ago by simon@…

is there a way to edit a post? just noticed the formating is bad with the linebreaks and i might want to remove my personal pppoe details... can anyone help? :)

Changed 22 months ago by matthijs

Nope, there's no way to edit comments. I can, however delete them, so I'll do that to prevent your credentials from leaking out. I should have warned you for that, but I didn't realize they would be in the network config. Sorry for that.

As for the formatting, you should have used triple { tags, like it says right under the comment text area :-)

Here's your comment again, with proper formatting and your credentials removed:

 root@Fonera:~# ifconfig
 br-lan    Link encap:Ethernet  HWaddr 00:18:84:88:8E:F8
           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:319860 errors:0 dropped:0 overruns:0 frame:0
           TX packets:229306 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:319039269 (304.2 MiB)  TX bytes:86888736 (82.8 MiB)

 br-lan:1  Link encap:Ethernet  HWaddr 00:18:84:88:8E:F8
           inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 eth0      Link encap:Ethernet  HWaddr 00:18:84:88:8E:FB
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:555909 errors:0 dropped:0 overruns:0 frame:0
           TX packets:540246 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:414272547 (395.0 MiB)  TX bytes:408188622 (389.2 MiB)
           Interrupt:3

 eth0.1    Link encap:Ethernet  HWaddr 00:18:84:88:8E:FB
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:316226 errors:0 dropped:0 overruns:0 frame:0
           TX packets:224405 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:319503484 (304.7 MiB)  TX bytes:82745981 (78.9 MiB)

 eth0.2    Link encap:Ethernet  HWaddr 00:18:84:88:8E:FB
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:238342 errors:0 dropped:0 overruns:0 frame:0
           TX packets:315841 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:86531640 (82.5 MiB)  TX bytes:325178769 (310.1 MiB)

 imq0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  -00
           UP RUNNING NOARP  MTU:1500  Metric:1
           RX packets:412 errors:0 dropped:0 overruns:0 frame:0
           TX packets:409 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:5
           RX bytes:152103 (148.5 KiB)  TX bytes:151712 (148.1 KiB)

 lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.255.255.0
           UP LOOPBACK RUNNING  MTU:16436  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)

 ppp0      Link encap:Point-to-Point Protocol
           inet addr:83.175.84.207  P-t-P:83.175.127.138 Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1488  Metric:1
           RX packets:226196 errors:0 dropped:0 overruns:0 frame:0
           TX packets:310999 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:5
           RX bytes:82255818 (78.4 MiB)  TX bytes:316899298 (302.2 MiB)

 ra0       Link encap:Ethernet  HWaddr 00:18:84:88:8E:F8
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:9581 errors:0 dropped:0 overruns:0 frame:0
           TX packets:16146 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1647274 (1.5 MiB)  TX bytes:7674423 (7.3 MiB)
           Interrupt:4

 ra1       Link encap:Ethernet  HWaddr 00:18:84:88:8E:F9
           UP BROADCAST RUNNING 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)

 root@Fonera:~# uci -p /var/state show network
 network.vpn=interface
 network.vpn.ifname=tun-ovpn
 network.vpn.proto=none
 network.vpn.up=1
 network.vpn.device=tun-ovpn
 network.loopback=interface
 network.loopback.proto=static
 network.loopback.ifname=lo
 network.loopback.ipaddr=127.0.0.1
 network.loopback.netmask=255.255.255.0
 network.lan=interface
 network.lan.type=bridge
 network.lan.proto=static
 network.lan.ifname=eth0.1
 network.lan.ipaddr=192.168.0.1
 network.lan.netmask=255.255.255.0
 network.wan=interface
 network.wan.ifname=eth0.2
 network.wan.proto=pppoe
 network.wan.username=<removed>
 network.wan.password=<removed>
 network.wan.auto=0
 network.hotspot=interface
 network.hotspot.ifname=tun0
 network.hotspot.proto=none
 network.hotspotwifi=interface
 network.hotspotwifi.proto=none

 root@Fonera:~# logread
 Aug 10 07:29:53 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:29:53 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:29:54 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:29:56 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:29:58 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:29:59 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:30:08 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2
 Aug 10 07:30:10 Fonera daemon.warn dnsmasq[3784]: no address range
 available for DHCP request via eth0.2

Changed 22 months ago by matthijs

  • cc giuseppeg88@… added

Now, to respond to your actual messages: It seems that your issue is different from Calvin's, since there's no I/O error involved. For Calvin, I suspect there is some issue with the read-write filesystem, which would be solved by a factory reset.

Simon's issue is probably the same one as Giuseppe's, who was also seeing this for pppoe. This is probably a bug in the pppoe handling somewhere. To further ivestigate, I'll need to dig into the pppoe code a bit (haven't looked at it at all until now).

Giuseppe, are you still seeing this problem?

Calvin, did this problem go a way for you? Perhaps a factory reset would help?

Changed 22 months ago by matthijs

(Comment by schunz, but without his password)

I have the same problem. I ran the two commands. Here's the output.

ifconfig

 br-lan    Link encap:Ethernet  HWaddr 00:18:84:88:94:D8
           inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:9822 errors:0 dropped:0 overruns:0 frame:0
           TX packets:9321 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:943167 (921.0 KiB)  TX bytes:3348645 (3.1 MiB)

 br-lan:1  Link encap:Ethernet  HWaddr 00:18:84:88:94:D8
           inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 eth0      Link encap:Ethernet  HWaddr 00:18:84:88:94:DB
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:5275 errors:0 dropped:0 overruns:0 frame:0
           TX packets:6465 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:2603289 (2.4 MiB)  TX bytes:1097687 (1.0 MiB)
           Interrupt:3

 eth0.1    Link encap:Ethernet  HWaddr 00:18:84:88:94:DB
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1619 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 B)  TX bytes:480495 (469.2 KiB)

 eth0.2    Link encap:Ethernet  HWaddr 00:18:84:88:94:DB
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:4876 errors:0 dropped:0 overruns:0 frame:0
           TX packets:4846 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:2360713 (2.2 MiB)  TX bytes:601042 (586.9 KiB)

 imq0      Link encap:UNSPEC  HWaddr
 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
           UP RUNNING NOARP  MTU:1500  Metric:1
           RX packets:244 errors:0 dropped:0 overruns:0 frame:0
           TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:5
           RX bytes:65771 (64.2 KiB)  TX bytes:65771 (64.2 KiB)

 lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.255.255.0
           UP LOOPBACK RUNNING  MTU:16436  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)

 ppp0      Link encap:Point-to-Point Protocol
           inet addr:92.225.108.249  P-t-P:213.191.64.25
 Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
           RX packets:4406 errors:0 dropped:0 overruns:0 frame:0
           TX packets:4381 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:5
           RX bytes:2284149 (2.1 MiB)  TX bytes:471064 (460.0 KiB)

 ra0       Link encap:Ethernet  HWaddr 00:18:84:88:94:D8
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:10718 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10812 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1521924 (1.4 MiB)  TX bytes:3968506 (3.7 MiB)
           Interrupt:4

uci -p /var/state show network

 network.vpn=interface
 network.vpn.ifname=tun-ovpn
 network.vpn.proto=none
 network.vpn.up=1
 network.vpn.device=tun-ovpn
 network.loopback=interface
 network.loopback.proto=static
 network.loopback.ifname=lo
 network.loopback.ipaddr=127.0.0.1
 network.loopback.netmask=255.255.255.0
 network.lan=interface
 network.lan.type=bridge
 network.lan.proto=static
 network.lan.ifname=eth0.1
 network.lan.ipaddr=192.168.10.1
 network.lan.netmask=255.255.255.0
 network.wan=interface
 network.wan.ifname=eth0.2
 network.wan.proto=pppoe
 network.wan.username=<removed>
 network.wan.password=<removed>
 network.wan.auto=0
 network.hotspot=interface
 network.hotspot.ifname=tun0
 network.hotspot.proto=none
 network.hotspotwifi=interface
 network.hotspotwifi.proto=none

Changed 22 months ago by matthijs

  • cc schnunz@… added
  • milestone set to Firmware 2.3.7.0

Ok, I think I've seen enough of these outputs: All show the same symptoms. I'll have to dive into the pppoe code to see what the cause is, I'll keep you updated.

I'm setting the milestone to 2.3.7.0, for I will _try_ to fix this before then. No promises, though.

Changed 22 months ago by gaddagah@…

Having the same issue here. If it helps, here's my output:

br-lan    Link encap:Ethernet  HWaddr 00:18:84:88:A1:2C  
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5818 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:549997 (537.1 KiB)  TX bytes:1963669 (1.8 MiB)

br-lan:1  Link encap:Ethernet  HWaddr 00:18:84:88:A1:2C  
          inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:18:84:88:A1:2F  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5387 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1724377 (1.6 MiB)  TX bytes:765835 (747.8 KiB)
          Interrupt:3 

eth0.1    Link encap:Ethernet  HWaddr 00:18:84:88:A1:2F  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1073 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:306403 (299.2 KiB)

eth0.2    Link encap:Ethernet  HWaddr 00:18:84:88:A1:2F  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4245 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4314 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1549434 (1.4 MiB)  TX bytes:432220 (422.0 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.255.255.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:24592 (24.0 KiB)  TX bytes:24592 (24.0 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:78.52.174.190  P-t-P:213.191.64.24  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3359 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:1464021 (1.3 MiB)  TX bytes:311744 (304.4 KiB)

ra0       Link encap:Ethernet  HWaddr 00:18:84:88:A1:2C  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7322 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7736 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5697579 (5.4 MiB)  TX bytes:2221952 (2.1 MiB)
          Interrupt:4 

ra1       Link encap:Ethernet  HWaddr 00:18:84:88:A1:2D  
          UP BROADCAST RUNNING 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)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.182.1  P-t-P:192.168.182.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:6819 (6.6 KiB)

network.vpn=interface
network.vpn.ifname=tun-ovpn
network.vpn.proto=none
network.vpn.up=1
network.vpn.device=tun-ovpn
network.loopback=interface
network.loopback.proto=static
network.loopback.ifname=lo
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.255.255.0
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.ifname=eth0.1
network.lan.ipaddr=192.168.10.1
network.lan.netmask=255.255.255.0
network.wan=interface
network.wan.ifname=eth0.2
network.wan.proto=pppoe
network.wan.username=XXX
network.wan.password=XXX
network.wan.auto=0
network.hotspot=interface
network.hotspot.ifname=tun0
network.hotspot.proto=none
network.hotspotwifi=interface
network.hotspotwifi.proto=none

Changed 21 months ago by matthijs

  • cc gaddagah@… added

Changed 21 months ago by matthijs

Debugging version of /etc/ppp/ip-up

Changed 21 months ago by matthijs

  • status changed from investigate to infoneeded

I've just attached a debugging version of the ip-up script to this ticket. Those of you having this problem with pppoe, could you run the following command:

root@Fonera:~# wget http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/886/ip-up -O /etc/ppp/ip-up

Then, reboot your Fonera and after it has booted and your internet connection is working properly, put the content of the "/tmp/ppp.log" file here.

Furthermore, I have two more questions: Does this bug happen all the time, or is the information correct sometimes as well?

Is the DNS server also not displayed, or is it just the IP and gateway that are wrong?

Changed 21 months ago by gaddagah@…

ran the command you posted, here is the /tmp/ppp.log file after the reboot:

ipparam: wan local: 92.231.197.141 remote: 213.191.64.24
network.vpn=interface
network.vpn.ifname=tun-ovpn
network.vpn.proto=none
network.vpn.up=1
network.loopback=interface
network.loopback.proto=static
network.loopback.ifname=lo
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.255.255.0
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.ifname=eth0.1
network.lan.ipaddr=192.168.10.1
network.lan.netmask=255.255.255.0
network.wan=interface
network.wan.ifname=eth0.2
network.wan.proto=pppoe
network.wan.username=
network.wan.password=
network.wan.auto=0
network.hotspot=interface
network.hotspot.ifname=tun0
network.hotspot.proto=none
network.hotspotwifi=interface
network.hotspotwifi.proto=none
network.vpn=interface
network.vpn.ifname=tun-ovpn
network.vpn.proto=none
network.vpn.up=1
network.loopback=interface
network.loopback.proto=static
network.loopback.ifname=lo
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.255.255.0
network.lan=interface
network.lan.type=bridge
network.lan.proto=static
network.lan.ifname=eth0.1
network.lan.ipaddr=192.168.10.1
network.lan.netmask=255.255.255.0
network.wan=interface
network.wan.ifname=eth0.2
network.wan.proto=pppoe
network.wan.username=
network.wan.password=
network.wan.auto=0
network.hotspot=interface
network.hotspot.ifname=tun0
network.hotspot.proto=none
network.hotspotwifi=interface
network.hotspotwifi.proto=none
network.vpn=interface
network.vpn.ifname=tun-ovpn
network.vpn.proto=none
network.vpn.up=1
network.loopback=interface
network.loopback.proto=static
network.loopback.ifname=lo
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.255.255.0
network.lan=interface
network.lan.type=bridge
 } } }

The display on the dashboard still shows  "N/A" for ip address, gateway and DNS server. This appeared first after the update to 2.7.0 beta and has always displayed only "N/A" since then.

Changed 21 months ago by simon@…

i am too stupid to remove my login information ... this is the output of the log and everything seems to be there 5 times? i removed my credentials only 3 times... can a admin please help out again? let me know if i should run any other commands

Changed 21 months ago by matthijs

  • status changed from infoneeded to investigate

I've deleted your comment to hide your login credentials. The output shows a dump of the configs a few times, to check if the ip address and gateway get set correctly but then removed again or something.

Anyway, the output is weird, it looks like the ip address is known, but never set into uci at all. I'll look more closely at the code next week, but I do have a suspicion... I'll post some more debugging instructrions next Monday or Tuesday.

Thanks for providing the requested info, both of you :-)

Changed 21 months ago by matthijs

Fixed version of /lib/fon/config.sh

Changed 21 months ago by matthijs

I think I've diagnosed the issue: The changes made to the network config by /lib/fon/config.sh never get committed. This wouldn't be a problem normally, but it seems that the uncommitted changes take precedence over the "state" uci values in /var/state/. And since config.sh first deletes the various sections from the network config before refilling them, this means the ipaddr and gateway values never show up.

So, the obvious solution is to just commit the network configuration after changing them. I'm not sure if there won't be adverse side-effects of this change, but some quick testing shows no problems. For lack of a PPPoE connection, I can't check if this fixes the actual problem, so would you please be so kind to test this? The fix is simple, just run the following command:

root@Fonera:/# wget -O /lib/fon/config.sh http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/886/config.sh

Please let me know if this fixes your problems?

If you ran the debugging command from 21, you can undo it through the following command:

root@Fonera:~# cp /rom/etc/ppp/ip-up /etc/ppp/ip-up

(This is probably a good idea, since the debugging log might eventually fill up the Fonera's RAM)

Changed 21 months ago by simon@…

i tried it and it works now :) i also disabled the debuging.. thx

Changed 21 months ago by gaddagah@…

Worked for me as well. Everything is displayed correctly again. No negative side-effects so far. Thanks!

Changed 21 months ago by anonymous

For lack of a PPPoE connection, I can't check if this fixes the actualproblem,so would you please be so kindtotest this? ''''''

No wonder the firmware is so buggy if the one Dev doesn't even have a proper testing environment. Way to go fon ...

Changed 21 months ago by matthijs

  • status changed from investigate to confirmed
  • severity changed from unknown to minor

You're making assumptions there: I didn't say I didn't have access to one, I just don't have one in my home. Since most people interested in this ticket have been most helpful in debugging, it made sense to ask them to test the problem.

Anyway, looking at the positive feedback, I'll go ahead and push this commit to trunk somewhere this week.

Changed 21 months ago by matthijs

  • status changed from confirmed to closed
  • resolution set to fixed

(In [1999]) network: Commit network and wireless config in /lib/fon/config.sh.

Before, changes were made, but never commited. This isn't a problem per se, since the networking scripts also pick up uncommitted changes.

However, the uci command processes state variables from /var/state before uncommitted changes from /tmp/.uci. Combined with the fact that config.sh removes the entire wan and lan sections before adding values again, this prevented the state values from /var/state from showing up in uci output.

More specifically, this prevented the current ip address and gateway settings in PPPoE mode (and possibly DHCP mode as well in some cases) from being shown on the dashboard.

This commit should fix that problem. There might be extra side effects, but none have been found so far.

Closes: #886

Changed 19 months ago by chirag.sanghavi@…

I can confirm that it is fixed on 2.7.3.0 beta 2 that I am testing with.

Add/Change #886 (DHCP display bug (not always present))

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.