Modify

Opened 4 years ago

Last modified 4 years ago

#11816 new enhancement

allow creation of unreachable routes in /etc/config/network

Reported by: Kenyon Ralph <kenyon@…> Owned by: developers
Priority: normal Milestone: Netifd Implementation
Component: base system Version: Trunk
Keywords: Cc:

Description

There should be a way to do the equivalent of "ip route add unreachable 2001:db8::/48" in /etc/config/network. This is important to prevent routing loops if you have a network prefix routed to your router which also has a default route. I don't see any way to do this according to http://wiki.openwrt.org/doc/uci/network#ipv6.routes.

More generally, perhaps there should be a way to execute arbitrary commands when an interface goes up or down, like the "up" and "down" options in Debian's /etc/network/interfaces file. This would make it possible to do even more fancy things.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Lutz.Pressler@…

This can be done with scripts in /etc/hotplug.d/iface.
See https://dev.openwrt.org/attachment/ticket/12205/

Lutzrrr

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.