Opened 12 years ago

Closed 11 years ago

#437 closed enhancement (fixed)

Cannot use lan_proto=dhcp

Reported by: b.candler@… Owned by: developers
Priority: low Milestone: 0.9/rc6
Component: base system Version:
Keywords: Cc:


You cannot use lan_proto=dhcp, because this is forcibly overridden in /etc/init.d/S05nvram:

# linksys bug; remove when not using static configuration for lan
nvram set lan_proto="static"

Is there any reason not to change this to

# linksys bug
nvram_default lan_proto static


Attachments (0)

Change History (5)

comment:1 Changed 12 years ago by kaloz

  • Milestone set to 1.0-rc6

comment:2 Changed 12 years ago by mbm

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

It's intentional; and no we can't change it because of some horrible linksys defaults -

Linksys uses lan_proto=dhcp to mean "run a dhcp server on the lan" and openwrt follows the convention of *_proto=dhcp meaning "run a dhcp client on the interface".

comment:3 Changed 11 years ago by anonymous

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Then OpenWRT should accept another value in addition to dhcp to mean "run a dhcp client on this interface".


It's incongruous to not be able to set the LAN interface's IP address via DHCP without tooling around in /etc.

comment:4 Changed 11 years ago by anonymous

Followup: the idea here is that S05nvram would only do |nvram set lan_proto="static"| if the current value of lan_proto is dhcp (or empty?). This is sufficient to work around the horrible linksys defaults. If lan_proto is anything else, its value is allowed to remain. If dhcpclient is added as a synonym for dhcp, users will be able to properly set their device to obtain a LAN address via DHCP.

comment:5 Changed 11 years ago by nbd

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

fixed in [4641]

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.