Skip to content

lime-hwd-openwrt-wan improve documentation on how to disable it #741

Description

@spiccinini

I tried to configure a static config in the interface eth0.1 as follows:

        config net 'ethstatic'
            option linux_name 'eth0.1' # the WAN ifc of the librerouer
            list protocols 'static'
            option static_ipv4 '10.62.99.99/16'
            option static_gateway_ipv4 '10.62.0.2'

But this does not work (it does not generate a static config). I tracked the problem down to lime-hwd-openwrt-wan. This configures the same interface and marks the 'wan' protocol.

This is beacause the interface is "preconfigured" twice here:

function network.configure()
	local specificIfaces = {}

	config.foreach("net", function(iface)
		if iface["linux_name"] then
			specificIfaces[iface["linux_name"]] = iface
		end
	end)

and the last (openwrt-wan) wins.

I don't know what to do to fix this.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions