Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static IP config error #1110

Closed
ilario opened this issue May 13, 2024 · 1 comment
Closed

Static IP config error #1110

ilario opened this issue May 13, 2024 · 1 comment

Comments

@ilario
Copy link
Member

ilario commented May 13, 2024

With @pedro-nonfree we tried using the static IP config, as you can see here:

https://github.com/libremesh/network-profiles/blob/640ea93d5791a35677b9d73c9618f96fee25bafc/canodrom.barcelona/simple/root/etc/config/lime-10FEEDE5F0C8#L4-L11

And we did that trying to follow the example here:

#config net port5 # Do not put any "." in the section name
# option linux_name 'eth1.5' # Put here the actual name of the interface
# list protocols 'wan' # Some of these protocols require the relative package "lime-proto-..."
# list protocols 'static' # Set up a static IP (both IPv4 and IPv6 supported)
# option static_ipv4 '192.168.1.2/24'
# option static_gateway_ipv4 '192.168.1.1'
# option static_ipv6 '2a00:1508:0a00::1234/64'
# option static_gateway_ipv6 'fe80::1'

Maybe we missed the wan proto?

Anyway, this is the error that Pedro observed running lime-config on a TP-Link WDR4300:

/usr/lib/lua/lime/network.lua:428: attempt to index local 'addr' (a nil value)
stack traceback:
    /usr/lib/lua/lime/network.lua:404: in function </usr/lib/lua/lime/network.lua:404>
    /usr/lib/lua/lime/network.lua:428: in function 'createStaticIface'
    /usr/lib/lua/lime/proto/static.lua:23: in function 'setup_interface'
    /usr/lib/lua/lime/network.lua:403: in function </usr/lib/lua/lime/network.lua:403>
    [C]: in function 'xpcall'
    /usr/lib/lua/lime/network.lua:403: in function </usr/lib/lua/lime/network.lua:361>
    [C]: in function 'xpcall'
    /usr/lib/lua/lime/config.lua:221: in function 'main'
    /usr/bin/lime-config:55: in main chunk
    [C]: ?

A very similar malfunction has also maybe been observed and reported here:
#1059 (comment)

@ilario
Copy link
Member Author

ilario commented May 15, 2024

Sorry, I missed a : in the IPv6 so it was invalid, and that caused the error.
Now I tried again and it works.

@ilario ilario closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant