#11774: wrong wan interface displayed on luci overview page
------------------------------+-----------------------------------
  Reporter:  finas            |      Owner:  developers
      Type:  defect           |     Status:  reopened
  Priority:  response-needed  |  Milestone:  Barrier Breaker 14.07
 Component:  packages         |    Version:  Trunk
Resolution:                   |   Keywords:
------------------------------+-----------------------------------
Changes (by kalethis@…):

 * status:  closed => reopened
 * resolution:  no_response =>


Comment:

 I am experiencing the same issue. Luci status page displays br-lan (vlan1,
 eth0.2) as IPv4 WAN status. Router is Netgear WNDR3700v1 ar71xx running
 current release public build Chaos Calmer (version number available
 below). My configuration is 2 VLANs (port 0 and 1, and port 2 and 3), with
 a wifi ssid (2.4ghz ap is on lan, 5ghz is on lin) on each VLAN. Each are
 configured with own dhcp/dns server (dnsmasq). It might be pertinent to
 point out that this router has 2 physical interfaces: eth0 (port 0 1 2 3 4
 5, 0-3 are physical lan ports, 4 is not usable, 5 is cpu) and eth1 (wan
 port). From the little info posted by a couple other people, there seems
 to be a common thing: multiple VLANs. I will provide the output of
 ifstatus for each of my interfaces, and my /etc/config/network. If you
 need anything additional, let me know. One more thing... May or may not be
 related, but having installed the adblock package, it fails to start
 stating that my wan port is on a lan (it's not. The ip shown below from
 ifstatus of wan is my public facing ip, direct from my isp's dhcp server,
 as seen below). I will provide that error message as well, since its a
 simultaneous issue of the router's belied that interface wan is not my wan
 connection. It may or may not be related, but it might be useful to know.
 Anyways, I'm not currently able to test any vlan configuration changes,
 but I can say for sure that I only noticed the incorrect wan status on
 luci overview page, after I had split the lan into 2 vlans.


 {{{


 BusyBox v1.23.2 (2015-07-25 15:09:46 CEST) built-in shell (ash)

   _______                     ________        __
  |       |.-----.-----.-----.|  |  |  |.----.|  |_
  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  |_______||   __|_____|__|__||________||__|  |____|
           |__| W I R E L E S S   F R E E D O M
  -----------------------------------------------------
  CHAOS CALMER (15.05, r46767)
  -----------------------------------------------------
   * 1 1/2 oz Gin            Shake with a glassful
   * 1/4 oz Triple Sec       of broken ice and pour
   * 3/4 oz Lime Juice       unstrained into a goblet.
   * 1 1/2 oz Orange Juice
   * 1 tsp. Grenadine Syrup
  -----------------------------------------------------
 root@faszgate:~# ifstatus wan
 {
         "up": true,
         "pending": false,
         "available": true,
         "autostart": true,
         "uptime": 640,
         "l3_device": "eth1",
         "proto": "dhcp",
         "device": "eth1",
         "updated": [
                 "addresses",
                 "routes",
                 "data"
         ],
         "metric": 0,
         "delegation": true,
         "ipv4-address": [
                 {
                         "address": "71.93.187.241",
                         "mask": 22
                 }
         ],
         "ipv6-address": [

         ],
         "ipv6-prefix": [

         ],
         "ipv6-prefix-assignment": [

         ],
         "route": [
                 {
                         "target": "71.93.184.1",
                         "mask": 32,
                         "nexthop": "0.0.0.0",
                         "source": "71.93.187.241\/32"
                 },
                 {
                         "target": "0.0.0.0",
 "mask": 0,
                         "nexthop": "71.93.184.1",
                         "source": "71.93.187.241\/32"
                 }
         ],
         "dns-server": [
                 "71.10.216.1",
                 "71.10.216.2"
         ],
         "dns-search": [

         ],
         "inactive": {
                 "ipv4-address": [

                 ],
                 "ipv6-address": [

                 ],
                 "route": [

                 ],
                 "dns-server": [

                 ],
                 "dns-search": [

                 ]
         },
         "data": {
                 "leasetime": 20452
         }
 }
 root@faszgate:~# ifstatus lan
 {
         "up": true,
         "pending": false,
         "available": true,
         "autostart": true,
         "uptime": 717,
         "l3_device": "br-lan",
         "proto": "static",
         "device": "br-lan",
         "updated": [
                 "addresses",
                 "routes"
         ],
         "metric": 0,
         "delegation": true,
         "ipv4-address": [
                 {
                         "address": "172.20.1.1",
                         "mask": 24
                 }
         ],
         "ipv6-address": [

         ],
         "ipv6-prefix": [

         ],
         "ipv6-prefix-assignment": [

         ],
         "route": [
                 {
                         "target": "0.0.0.0",
 "mask": 0,
                         "nexthop": "172.20.1.1",
                         "source": "0.0.0.0\/0"
                 }
         ],
         "dns-server": [
                 "172.20.1.1"
         ],
         "dns-search": [

         ],
         "inactive": {
                 "ipv4-address": [

                 ],
                 "ipv6-address": [

                 ],
                 "route": [

                 ],
                 "dns-server": [

                 ],
                 "dns-search": [

                 ]
         },
         "data": {

         }
 }
 root@faszgate:~# ifstatus lin
 {
         "up": true,
         "pending": false,
         "available": true,
         "autostart": true,
         "uptime": 742,
         "l3_device": "br-lin",
         "proto": "static",
         "device": "br-lin",
         "updated": [
                 "addresses",
                 "routes"
         ],
         "metric": 0,
         "delegation": true,
         "ipv4-address": [
                 {
                         "address": "172.20.2.1",
                         "mask": 24
                 }
         ],
         "ipv6-address": [

         ],
         "ipv6-prefix": [

         ],
         "ipv6-prefix-assignment": [

         ],
         "route": [
                 {
                         "target": "0.0.0.0",
 "mask": 0,
                         "nexthop": "172.20.2.1",
                         "source": "0.0.0.0\/0"
                 }
         ],
         "dns-server": [
                 "172.20.2.1"
         ],
         "dns-search": [

         ],
         "inactive": {
                 "ipv4-address": [

                 ],
                 "ipv6-address": [

                 ],
                 "route": [

                 ],
                 "dns-server": [

                 ],
                 "dns-search": [

                 ]
         },
         "data": {

         }
 }
 root@faszgate:~#
 }}}

 {{{
 root@faszgate:~# 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 switch
         option device 'eth0'
         option name 'switch0'
         option reset '1'
         option enable_vlan '1'
         option blinkrate '2'
         option enable_vlan4k '1'

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

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

 config switch_port
         option device 'switch0'
         option port '1'
         option led '6'

 config switch_port
         option device 'switch0'
         option port '2'
         option led '9'

 config switch_port
         option device 'switch0'
         option port '5'
         option led '2'

 config interface 'wan'
         option ifname 'eth1'
         option proto 'dhcp'
         option broadcast '1'
         option peerdns '1'
 #       option type 'bridge'

 config interface 'lan'
         option ifname 'eth0.1'
         option type 'bridge'
         option proto 'static'
         option ipaddr '172.20.1.1'
         option netmask '255.255.255.0'
         option gateway '172.20.1.1'
         option dns '172.20.1.1'
         option broadcast '172.20.1.255'
         option force_link '1'

 config interface 'lin'
         option ifname 'eth0.2'
         option type 'bridge'
         option proto 'static'
         option ipaddr '172.20.2.1'
         option netmask '255.255.255.0'
         option gateway '172.20.2.1'
         option dns '172.20.2.1'
         option broadcast '172.20.2.255'
         option stp '1'
         option force_link '1'
 root@faszgate:~# ip route
 default via 71.93.184.1 dev eth1  proto static  src 71.93.187.241
 71.93.184.0/22 dev eth1  proto kernel  scope link  src 71.93.187.241
 71.93.184.1 dev eth1  proto static  scope link  src 71.93.187.241
 172.20.1.0/24 dev br-lan  proto kernel  scope link  src 172.20.1.1
 172.20.2.0/24 dev br-lin  proto kernel  scope link  src 172.20.2.1
 root@faszgate:~#
 }}}
 {{{
 root@faszgate:~# /etc/init.d/adblock restartadblock[2448] info : domain
 adblock processing started (1.0.3, 15.05, 12.04.2016 05:11:16)
 adblock[2448] error: LAN only (lan) network, no valid IPv4/IPv6 wan update
 interface found, rc: 125
 adblock[2448] info : domain adblock processing failed (1.0.3, 15.05,
 12.04.2016 05:11:16)
 root@faszgate:~#
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/11774#comment:15>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to