Skip to content

Reusing net.en.start() #424

Description

@progerstar

Network driver (tested on lan8720) works only once.
2 different scenarios:

1. DHCP after DHCP

/ > net.en.setup()
/ > net.en.start(false)
[..IP is ok..]
/ > net.en.stop()
/ > net.en.setup()
/ > net.en.start(false)
stdin:1: 503316483:can't connect check cable
stack traceback:
[C]: in field 'start'
stdin:1: in main chunk
[C]: in ?

2. Static IP if DHCP failed

/ > net.en.setup()
[..DHCP server is unpulgged..]
/ > net.en.start(false)
stdin:1: 503316483:can't connect check cable
stack traceback:
[C]: in field 'start'
stdin:1: in main chunk
[C]: in ?
/ > net.en.setup( net.packip(192,168,1,200), net.packip(255,255,255,0), net.packip(192,168,1,1), net.packip(8,8,8,8), net.packip(8,8,4,4) )
/ > net.en.start(false)
/ > net.stat()
...
ip address 0.0.0.0 netmask 0.0.0.0
gw address 0.0.0.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions