Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Static routes added through WebUI are not reflected in kernel

Description

Gateway (192.168.12.0) for static routes added through WebUI are not showing up in kernel, even after rebooting. Migration from Core. Problem was present in Scale prior to Bluefin upgrade.

 

HPE ML 350 Gen6

Intel Quad NIC

Bare metal (non-hypervised install)

network config page

 

ROUTE output:

root@truenas[~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.11.1 0.0.0.0 UG 0 0 0 enp22s0f0
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 kube-bridge
192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 enp22s0f0
192.168.12.0 0.0.0.0 255.255.255.0 U 0 0 0 enp23s0f1

 

 

NETSTAT output:

root@truenas[~]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.11.1 0.0.0.0 UG 0 0 0 enp22s0f0
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 kube-bridge
192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 enp22s0f0
192.168.12.0 0.0.0.0 255.255.255.0 U 0 0 0 enp23s0f1

 

 

MIDCTL output:

root@truenas[~]# midclt call interface.query | jq
[
{
"id": "enp22s0f0",
"name": "enp22s0f0",
"fake": false,
"type": "PHYSICAL",
"state": {
"name": "enp22s0f0",
"orig_name": "enp22s0f0",
"description": "enp22s0f0",
"mtu": 1500,
"cloned": false,
"flags": [
"RUNNING",
"UP",
"BROADCAST",
"MULTICAST",
"LOWER_UP"
],
"nd6_flags": [
"HOMEADDRESS"
],
"capabilities": [
"tx-scatter-gather",
"tx-checksum-ip-generic",
"tx-vlan-hw-insert",
"rx-vlan-hw-parse",
"tx-generic-segmentation",
"rx-gro",
"tx-tcp-segmentation",
"tx-tcp6-segmentation",
"rx-hashing",
"rx-checksum"
],
"link_state": "LINK_STATE_UP",
"media_type": "Ethernet",
"media_subtype": "autoselect",
"active_media_type": "Ethernet",
"active_media_subtype": "1000Mb/s Twisted Pair",
"supported_media": [
"10baseT/Half",
"10baseT/Full",
"100baseT/Half",
"100baseT/Full",
"1000baseT/Full"
],
"media_options": null,
"link_address": "00:15:17:62:78:9c",
"aliases": [
{
"type": "LINK",
"address": "00:15:17:62:78:9c"
},
{
"type": "INET",
"address": "192.168.11.2",
"netmask": 24,
"broadcast": "192.168.11.255"
},
{
"type": "INET6",
"address": "fe80::215:17ff:fe62:789c",
"netmask": 64,
"broadcast": "fe80::ffff:ffff:ffff:ffff"
}
],
"vrrp_config": null,
"rx_queues": 1,
"tx_queues": 1
},
"aliases": [
{
"type": "INET",
"address": "192.168.11.2",
"netmask": 24
}
],
"ipv4_dhcp": false,
"ipv6_auto": false,
"description": "Intelytterst mot Hofsfossveien 12",
"mtu": null
},
{
"id": "enp22s0f1",
"name": "enp22s0f1",
"fake": false,
"type": "PHYSICAL",
"state": {
"name": "enp22s0f1",
"orig_name": "enp22s0f1",
"description": "enp22s0f1",
"mtu": 1500,
"cloned": false,
"flags": [
"MULTICAST",
"BROADCAST"
],
"nd6_flags": [],
"capabilities": [
"tx-scatter-gather",
"tx-checksum-ip-generic",
"tx-vlan-hw-insert",
"rx-vlan-hw-parse",
"tx-generic-segmentation",
"rx-gro",
"tx-tcp-segmentation",
"tx-tcp6-segmentation",
"rx-hashing",
"rx-checksum"
],
"link_state": "LINK_STATE_DOWN",
"media_type": "Ethernet",
"media_subtype": "autoselect",
"active_media_type": "Ethernet",
"active_media_subtype": "Unknown Twisted Pair",
"supported_media": [
"10baseT/Half",
"10baseT/Full",
"100baseT/Half",
"100baseT/Full",
"1000baseT/Full"
],
"media_options": null,
"link_address": "00:15:17:62:78:9d",
"aliases": [
{
"type": "LINK",
"address": "00:15:17:62:78:9d"
}
],
"vrrp_config": null,
"rx_queues": 1,
"tx_queues": 1
},
"aliases": [],
"ipv4_dhcp": false,
"ipv6_auto": false,
"description": "",
"mtu": null
},
{
"id": "enp23s0f0",
"name": "enp23s0f0",
"fake": false,
"type": "PHYSICAL",
"state": {
"name": "enp23s0f0",
"orig_name": "enp23s0f0",
"description": "enp23s0f0",
"mtu": 1500,
"cloned": false,
"flags": [
"MULTICAST",
"UP",
"BROADCAST"
],
"nd6_flags": [],
"capabilities": [
"tx-scatter-gather",
"tx-checksum-ip-generic",
"tx-vlan-hw-insert",
"rx-vlan-hw-parse",
"tx-generic-segmentation",
"rx-gro",
"tx-tcp-segmentation",
"tx-tcp6-segmentation",
"rx-hashing",
"rx-checksum"
],
"link_state": "LINK_STATE_DOWN",
"media_type": "Ethernet",
"media_subtype": "autoselect",
"active_media_type": "Ethernet",
"active_media_subtype": "Unknown Twisted Pair",
"supported_media": [
"10baseT/Half",
"10baseT/Full",
"100baseT/Half",
"100baseT/Full",
"1000baseT/Full"
],
"media_options": null,
"link_address": "00:15:17:62:78:9e",
"aliases": [
{
"type": "LINK",
"address": "00:15:17:62:78:9e"
}
],
"vrrp_config": null,
"rx_queues": 1,
"tx_queues": 1
},
"aliases": [],
"ipv4_dhcp": false,
"ipv6_auto": false,
"description": "dummy",
"mtu": 1500
},
{
"id": "enp23s0f1",
"name": "enp23s0f1",
"fake": false,
"type": "PHYSICAL",
"state": {
"name": "enp23s0f1",
"orig_name": "enp23s0f1",
"description": "enp23s0f1",
"mtu": 1500,
"cloned": false,
"flags": [
"RUNNING",
"UP",
"BROADCAST",
"MULTICAST",
"LOWER_UP"
],
"nd6_flags": [
"HOMEADDRESS"
],
"capabilities": [
"tx-scatter-gather",
"tx-checksum-ip-generic",
"tx-vlan-hw-insert",
"rx-vlan-hw-parse",
"tx-generic-segmentation",
"rx-gro",
"tx-tcp-segmentation",
"tx-tcp6-segmentation",
"rx-hashing",
"rx-checksum"
],
"link_state": "LINK_STATE_UP",
"media_type": "Ethernet",
"media_subtype": "autoselect",
"active_media_type": "Ethernet",
"active_media_subtype": "1000Mb/s Twisted Pair",
"supported_media": [
"10baseT/Half",
"10baseT/Full",
"100baseT/Half",
"100baseT/Full",
"1000baseT/Full"
],
"media_options": null,
"link_address": "00:15:17:62:78:9f",
"aliases": [
{
"type": "LINK",
"address": "00:15:17:62:78:9f"
},
{
"type": "INET",
"address": "192.168.12.2",
"netmask": 24,
"broadcast": "192.168.12.255"
},
{
"type": "INET6",
"address": "fe80::215:17ff:fe62:789f",
"netmask": 64,
"broadcast": "fe80::ffff:ffff:ffff:ffff"
}
],
"vrrp_config": null,
"rx_queues": 1,
"tx_queues": 1
},
"aliases": [
{
"type": "INET",
"address": "192.168.12.2",
"netmask": 24
}
],
"ipv4_dhcp": false,
"ipv6_auto": false,
"description": "kubenic",
"mtu": 1500
}
]

 

root@truenas[~]# midclt call staticroute.query | jq
[
{
"id": 4,
"destination": "192.168.12.0/24",
"gateway": "192.168.12.1",
"description": "KUBERNETES-TRAFFIC"
}
]

Problem/Justification

None

Impact

None

Attachments

1
  • 30 Jan 2023, 09:44 PM

Activity

Show:

Automation for JiraFebruary 16, 2023 at 4:11 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

CalebFebruary 16, 2023 at 4:10 PM

CalebFebruary 16, 2023 at 4:09 PM

Why do you need a gateway for 192.168.12 subnet? The NIC should be able to get an ARP address for 192.168.12.1 on layer 2 without needing a static route. This isn’t how routing works. The routes need to be handled external to the TrueNAS

Automation for JiraJanuary 30, 2023 at 9:44 PM

Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System -> Advanced -> Save Debug.

https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153

Complete

Details

Assignee

Reporter

Labels

Impact

Medium

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created January 30, 2023 at 9:44 PM
Updated February 16, 2023 at 4:11 PM
Resolved February 16, 2023 at 4:10 PM

Flag notifications