[FS#3312] static route being added to wrong table if ip4table is used
OpenWrt Bugs
openwrt-bugs at lists.openwrt.org
Sun Aug 30 18:59:49 EDT 2020
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Peter (petzah)
Attached to Project - OpenWrt/LEDE Project
Summary - static route being added to wrong table if ip4table is used
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I have a separate route table called 'lan':
root at btkrgn:~# cat /etc/iproute2/rt_tables
#
# reserved values
#
128 prelocal
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
40 lan
Then I have an interface configured with ip4table:
config interface 'ni'
option type 'bridge'
option delegate '0'
option ifname 'eth0.22 vx22'
option proto 'static'
option ipaddr '192.168.22.248'
option ip4table 'lan'
option netmask '255.255.255.0'
And I also have static route with explicitly defined table 'main':
config route
option interface 'ni'
option target '192.168.22.0'
option netmask '255.255.255.0'
option gateway '192.168.22.253'
option table 'main'
option metric '100'
I expected that this static route will be in the 'main' table however it is being added to 'lan' table:
root at btkrgn:~# ip route show table lan
192.168.22.0/24 dev br-ni proto static scope link
192.168.22.0/24 via 192.168.22.253 dev br-ni proto static metric 100
More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3312
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the openwrt-bugs
mailing list