• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Host interface routing

Scheduled Pinned Locked Moved Problems Installing or Upgrading TNSR Software
4 Posts 2 Posters 2.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    hien
    last edited by Nov 24, 2020, 4:06 PM

    I just finish install TNSR. How can I add a default route for management on host interface? There is no doc about routing on host interface.
    Thanks

    1 Reply Last reply Reply Quote 0
    • K
      kiokoman LAYER 8
      last edited by kiokoman Nov 24, 2020, 5:39 PM Nov 24, 2020, 4:19 PM

      tnsr is on top of centos 8
      from shell as root or with sudo
      example:
      ip route add 172.18.0.0/24 via 192.168.10.1 dev ens256

      To make it persist

      nano /etc/sysconfig/network-scripts/route-ens256
      or vi 😑
      file need to be created
      Add the line
      172.18.0.0/24 via 192.168.10.1 dev ens256

      Immagine.jpg

      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
      Please do not use chat/PM to ask for help
      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

      1 Reply Last reply Reply Quote 0
      • H
        hien
        last edited by Nov 24, 2020, 5:28 PM

        Thank you.
        So the default routing table is for host. Others tables will be used for TNSR network interfaces.

        1 Reply Last reply Reply Quote 0
        • K
          kiokoman LAYER 8
          last edited by kiokoman Nov 24, 2020, 6:21 PM Nov 24, 2020, 6:04 PM

          the other network interface are hidden and you can't use it under centos if they are assigned to the dataplane
          to manage the route of the dataplane you need to do it with clixon_cli ->
          https://docs.netgate.com/tnsr/en/latest/routing/manage.html

          example (i'm using random ip here just to show you):

          sudo /usr/bin/clixon_cli
          config
          route ipv4 table ipv4-VRF:0
          route 172.18.0.0/24
          next-hop 0 via 192.168.150.2
          exit
          exit
          show route
          

          Immagine.jpg

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received