Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Turris OS packages
Turris OS packages
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Turris
  • Turris OS packagesTurris OS packages
  • Issues
  • #291

Closed
Open
Opened Dec 24, 2018 by Ghost User@ghost

static route not being applied when a four 8-bit octets ipv4 subnet mask is set

TOS 3.11.1

Adding a static subnet route via LuCI or ssh file edit the route is not applied when a subnet mask is set via four 8-bit octets. The route however is applied if the netmask is omitted and 255.255.255.255 is assumed and thus makes the target subnet a host address instead of a subnet.

According to the upstream documentation the syntax for subnets in ipv4 and ipv6 differs and yet seems that the ipv4 subnet mask for the target network receives the same parsing treatment as ipv6, i.e not as four 8-bit octets but its equivalent integer.

Not working (though it would be expected)

config route
	option interface 'foobar'
	option target 'ip'
	option gateway 'ip'
	option netmask ‘255.255.255.0’

Working instead (which is rather unexpected)

config route
	option interface 'foobar'
	option target 'ip/24'
	option gateway 'ip'

Not sure whether it is a bug or by design and latter not having made into the documentation.

TO forum cross reference https://forum.turris.cz/t/static-route-not-applied/8525

Edited Dec 25, 2018 by Ghost User
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: turris/turris-os-packages#291