Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14311 closed defect (fixed)

option gateway 0.0.0.0 to disable default route in dhcp configuration does not work

Reported by: roman@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Documentation says in dhcp section:

gateway string no (none) Suppresses DHCP-assigned default gateway if set to 0.0.0.0

However, it does not work. It seems that udhcpc calls /lib/netifd/dhcp.script and this script does NOT handle 0.0.0.0 gateway, always installing default route. /usr/share/udhcpc/default.script does, but udhcpc does not call it anymore...

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by jow

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

That approach is deprecated since the netifd introduction. Use "option defaultroute 0" which is the proto-independant option to suppress default gateways.

comment:2 Changed 4 years ago by roman@…

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Then the documentation here http://wiki.openwrt.org/doc/uci/network must be changed to reflect this. I spent a lot of time digging this problem, it's NOT obvious... something has to be fixed, either script or documentation.

comment:3 Changed 4 years ago by jow

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

Well it is a wiki ;) I updated the documentation now.

comment:4 Changed 4 years ago by roman@…

Thanks

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.