Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#17605 closed defect (not_a_bug)

Incorrect display wan status in luci

Reported by: levshinovsky@… Owned by:
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: luci Version: Barrier Breaker 14.07
Keywords: wrong WAN status display Cc:

Description

TP-Link TL-WR1043ND Ver. 2.1
LuCI Trunk (svn-r10467) OpenWrt Barrier Breaker 14.07-rc3

Wan interface is installed to DHCP (addr:10.86.41.16), but luci-> /admin/status/overview shows:
Interface icon: br-lan
Type: static
Address: 192.168.51.1
Mask: 255.255.255.0
...
and other parameters from LAN interface.

(LuCI Trunk (svn-r9961) OpenWrt Barrier Breaker r39930 operates correctly )

Attachments (1)

ubus-output.txt (3.3 KB) - added by levshinovsky@… 3 years ago.
Output of "ubus call network.interface dump"

Download all attachments as: .zip

Change History (8)

comment:1 Changed 3 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

LuCI simply deisplays the first interface having a default route as as wan interface. You probably incorrectly set a gateway on your lan iface.

comment:2 Changed 3 years ago by levshinovsky@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Defaulf interface is eth0:

console protocol start

root@router51:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.86.41.5 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.1 255.255.255.0 UG 0 0 0 tun0
10.8.0.1 * 255.255.255.255 UH 0 0 0 tun0
10.86.41.0 * 255.255.255.0 U 0 0 0 eth0
192.168.50.0 10.8.0.1 255.255.255.0 UG 0 0 0 tun0
192.168.51.0 * 255.255.255.0 U 0 0 0 br-lan
root@router51:~#

console protocol end

comment:3 follow-up: Changed 3 years ago by jow

  • Priority changed from high to response-needed

Attach the output of "ubus call network.interface dump" here.

Changed 3 years ago by levshinovsky@…

Output of "ubus call network.interface dump"

comment:4 in reply to: ↑ 3 Changed 3 years ago by levshinovsky@…

Replying to jow:

Attach the output of "ubus call network.interface dump" here.

Output of "ubus call network.interface dump" added to attachments

comment:5 Changed 3 years ago by jow

  • Resolution set to not_a_bug
  • Status changed from reopened to closed

As I already expected, your lan interface has a default route declared:

"route": [
        {
                "target": "0.0.0.0",
                "mask": 0,
                "nexthop": "192.168.51.1",
                "source": "0.0.0.0\/0"
        }
],

This is likely due to a wrong "option gateway 192.168.51.1" in "config interface lan" of /etc/config/network.

comment:6 Changed 3 years ago by levshinovsky@…

I found a problem:
In Luci->network->interfaces->LAN

IF SET ONLY: prot=static, IPv4=192.168.51.1, mask=255.255.255.0
THEN OK. (Luci->status: wan interface = eth0 and ubus output is right too)

BUT IF SET: prot=static, IPv4=192.168.51.1, mask=255.255.255.0 + GATEWAY= 192.168.51.1
THEN Luci->status: wan interface = lan-br (with attached ubus output)

Is it right?

comment:7 Changed 3 years ago by jow

Yes it is right. It makes no sense to set a gateway for lan pointing to itself. If at all you only need to set a gateway if the wan interface would be configured statically.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.